Browse Source

销售订单同步 定时任务

liuchaohui 2 years ago
parent
commit
f780fc2608

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/quartz/job/AddOrderJob.java

@@ -133,7 +133,7 @@ public class AddOrderJob implements Job,ApplicationContextAware {
                 if(this.parameter==null || this.parameter.equals("") || this.parameter.equals(" ")){
                     sql=sql+" order by s.dDate desc ";
                 }else {
-                    sql=sql+" s.cSOCode = "+this.parameter+" order by s.dDate desc ";
+                    sql=sql+" and s.cSOCode = "+this.parameter+" order by s.dDate desc ";
                     //查找是否是更新数据,如为更新数据 删除老数据重新添加新数据
                     String id = syOrderDataService.queryIDBYOrderNumber(this.parameter);
                     if(id!=null){