| | |
| | | package com.zy.ints.task.scheduler; |
| | | |
| | | import com.zy.asrs.service.ApiLogService; |
| | | import com.zy.ints.entity.ErpDetTb; |
| | | import com.zy.ints.entity.ErpLk; |
| | | import com.zy.ints.erp.ErpSqlServer; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Value("${erp.enabled}") |
| | | private Boolean erpEnabled; |
| | | @Value("${erp.useName.ip}") |
| | | private String ip; |
| | | @Autowired |
| | | private ApiLogService apiLogService; |
| | | @Autowired |
| | | private ErpSqlServer erpSqlServer; |
| | | /** |
| | |
| | | } |
| | | } |
| | | }catch (Exception e){ |
| | | |
| | | Date date = new Date(); |
| | | log.error(date + ": 表名:bas_erp_lk :" + e); |
| | | } |
| | | } |
| | | |
| | | public void callApiLogSave(ErpLk erpLk, String tableName, String response, Boolean bool) { |
| | | apiLogService.save("ERP下发订单信息", tableName, "null", ip, |
| | | "品号:" + erpLk.getPrdNo() + "、货品特征:" + erpLk.getPrdMark() + "、数量:" + erpLk.getQty() + "、状态:" + erpLk.getStatus(), |
| | | response, bool); |
| | | } |
| | | } |