|
|
@ -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){
|
|
|
|