| package com.zy.asrs.utils; | 
|   | 
| import com.core.common.SpringUtils; | 
| import com.fasterxml.jackson.databind.util.BeanUtil; | 
| import com.zy.system.entity.SaasLog; | 
| import com.zy.system.service.SaasLogService; | 
|   | 
| import java.util.Date; | 
|   | 
| public class SaasUtils { | 
|     public static void insertLog(Integer type, String locNo, String matnr,Double anfme){ | 
|         SaasLogService bean = SpringUtils.getBean(SaasLogService.class); | 
|         SaasLog saasLog = new SaasLog(); | 
|         saasLog.setType(type); | 
|         saasLog.setLocNo(locNo); | 
|         saasLog.setMatnr(matnr); | 
|         saasLog.setIoTime(new Date()); | 
|         saasLog.setAnfme(anfme); | 
|         saasLog.setCreateBy(1L); | 
|         bean.insert(saasLog); | 
|     } | 
| } |