|
@@ -43,10 +43,10 @@ public class AddOrderJob implements Job,ApplicationContextAware {
|
|
|
private static ISenYuDataSourceTwo senYuDataSourceTwo;
|
|
|
private static ISenYuDataSourceThree senYuDataSourceThree;
|
|
|
|
|
|
- private String code;
|
|
|
+ private String parameter;
|
|
|
|
|
|
- public void setCode(String code){
|
|
|
- this.code=code;
|
|
|
+ public void setCode(String parameter){
|
|
|
+ this.parameter=parameter;
|
|
|
}
|
|
|
|
|
|
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
|
@@ -130,10 +130,10 @@ public class AddOrderJob implements Job,ApplicationContextAware {
|
|
|
" left join Vendor v on s.cDefine12=v.cVenName" +
|
|
|
" where s.iStatus = 1 AND (s.cdefine15 is null or s.cdefine15 !='1') ";
|
|
|
|
|
|
- if(this.code==null || this.code.equals("") || this.code.equals(" ")){
|
|
|
+ if(this.parameter==null || this.parameter.equals("") || this.parameter.equals(" ")){
|
|
|
sql=sql+" order by s.dDate desc ";
|
|
|
}else {
|
|
|
- sql=sql+" s.cSOCode = "+this.code+" order by s.dDate desc ";
|
|
|
+ sql=sql+" s.cSOCode = "+this.parameter+" order by s.dDate desc ";
|
|
|
}
|
|
|
List<Map<String, Object>> list = new ArrayList<>();
|
|
|
if(pkorgValue[0].equals("one")){
|