highway
zhaoxiaolin 1 year ago
parent 1d3eb31a88
commit cca83e6511

@ -111,6 +111,7 @@ public class WCSInterfaceController extends BaseController {
List<String> tables = new ArrayList<>(); List<String> tables = new ArrayList<>();
tables.add("mes_plc_log"); tables.add("mes_plc_log");
tables.add("mes_interface_log"); tables.add("mes_interface_log");
tables.add("sys_sap_log");
return success(wCInterfaceService.dataClearTask(tables)); return success(wCInterfaceService.dataClearTask(tables));
} }
//定期备份清理表 //定期备份清理表

@ -252,8 +252,8 @@ public class ProOrderController extends BaseController {
*/ */
@Log(title = "手动执行同步SAP订单", businessType = BusinessType.INSERT) @Log(title = "手动执行同步SAP订单", businessType = BusinessType.INSERT)
@PostMapping("/syncSAP") @PostMapping("/syncSAP")
public AjaxResult syncSAP() { public void syncSAP() {
return proOrderService.syncSAP(); proOrderService.syncSAP();
} }
@Log(title = "自动同步SAP订单", businessType = BusinessType.INSERT) @Log(title = "自动同步SAP订单", businessType = BusinessType.INSERT)

@ -97,7 +97,7 @@ public interface IProOrderService {
public AjaxResult getOrderList(String id); public AjaxResult getOrderList(String id);
public AjaxResult syncSAP(); public void syncSAP();
/** /**
* *

@ -419,7 +419,7 @@ public class ProOrderServiceImpl implements IProOrderService {
*/ */
@Override @Override
@DS("#header.poolName") @DS("#header.poolName")
public AjaxResult syncSAP() { public void syncSAP() {
SapShopOrderQuery sapqo = new SapShopOrderQuery(); SapShopOrderQuery sapqo = new SapShopOrderQuery();
// sapqo.setCreateTime(DateUtils.addDays(DateUtils.getNowDate(),-4)); // sapqo.setCreateTime(DateUtils.addDays(DateUtils.getNowDate(),-4));
// //获取当前所选工厂 // //获取当前所选工厂
@ -439,7 +439,7 @@ public class ProOrderServiceImpl implements IProOrderService {
sysSapLog.setId(IdUtils.fastSimpleUUID()); sysSapLog.setId(IdUtils.fastSimpleUUID());
sysSapLog.setMesssge(sapqo.toString()); sysSapLog.setMesssge(sapqo.toString());
sysSapLog.setMethod("syncSAP"); sysSapLog.setMethod("syncSAP");
sysSapLog.setReqcode("返回"); sysSapLog.setReqcode("请求");
sysSapLog.setCreateTime(DateUtils.getNowDate()); sysSapLog.setCreateTime(DateUtils.getNowDate());
proOrderMapper.addSapLog(sysSapLog); proOrderMapper.addSapLog(sysSapLog);
@ -452,8 +452,6 @@ public class ProOrderServiceImpl implements IProOrderService {
}else { }else {
syncSAPFunc(newOrders, "Job"); syncSAPFunc(newOrders, "Job");
} }
return success();
} }
public String syncSAPFunc(List<SapProOrder> newOrders,String syncUser){ public String syncSAPFunc(List<SapProOrder> newOrders,String syncUser){

@ -269,7 +269,7 @@ public class ProOrderWorkorderServiceImpl implements IProOrderWorkorderService {
//添加调用sap日志 //添加调用sap日志
SysSapLog sysSapLog = new SysSapLog(); SysSapLog sysSapLog = new SysSapLog();
sysSapLog.setId(IdUtils.fastSimpleUUID()); sysSapLog.setId(IdUtils.fastSimpleUUID());
sysSapLog.setMesssge(StringUtils.join(sapList,",")); sysSapLog.setMesssge(sapList.toString());
sysSapLog.setMethod("downProOrderWorkorderByWorkorderIds"); sysSapLog.setMethod("downProOrderWorkorderByWorkorderIds");
sysSapLog.setReqcode("请求"); sysSapLog.setReqcode("请求");
sysSapLog.setCreateTime(DateUtils.getNowDate()); sysSapLog.setCreateTime(DateUtils.getNowDate());

Loading…
Cancel
Save