|
@@ -134,6 +134,12 @@ public class AddOrderJob implements Job,ApplicationContextAware {
|
|
|
sql=sql+" order by s.dDate desc ";
|
|
|
}else {
|
|
|
sql=sql+" s.cSOCode = "+this.parameter+" order by s.dDate desc ";
|
|
|
+ //查找是否是更新数据,如为更新数据 删除老数据重新添加新数据
|
|
|
+ String id = syOrderDataService.queryIDBYOrderNumber(this.parameter);
|
|
|
+ if(id!=null){
|
|
|
+ syOrderDataService.deleteByID(id);
|
|
|
+ syOrderDataItemService.deleteByID(id);
|
|
|
+ }
|
|
|
}
|
|
|
List<Map<String, Object>> list = new ArrayList<>();
|
|
|
if(pkorgValue[0].equals("one")){
|