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