TMS增加筛选条件
parent
1da6327829
commit
8b3aceac0c
|
@ -522,18 +522,15 @@ public class TmsYwDingdanController extends BaseController {
|
||||||
ResultDO D0 = new ResultDO();
|
ResultDO D0 = new ResultDO();
|
||||||
D0.setOK(true);
|
D0.setOK(true);
|
||||||
String hql="from WmTmsNoticeHEntity ";
|
String hql="from WmTmsNoticeHEntity ";
|
||||||
// String hql="from WmTmsNoticeHEntity where omSta = ";
|
|
||||||
List<WmTmsNoticeHEntity> listWaveToDowns =new ArrayList<>();
|
List<WmTmsNoticeHEntity> listWaveToDowns =new ArrayList<>();
|
||||||
// if(StringUtil.isNotEmpty(searchstr)){
|
if(StringUtil.isNotEmpty(searchstr)){
|
||||||
// hql="from WmOmNoticeHEntity where omSta = ? and reMember = ? and omNoticeId = ?";
|
hql="from WmTmsNoticeHEntity where omSta <> ? and reMember = ? and omNoticeId = ?";
|
||||||
// listWaveToDowns = wmOmNoticeHService.findHql(hql,searchstr2,username,searchstr);
|
listWaveToDowns = wmOmNoticeHService.findHql(hql,"已送货",username,searchstr);
|
||||||
// }else{
|
}else{
|
||||||
// hql="from WmOmNoticeHEntity where omSta = ? and reMember = ? ";
|
hql="from WmTmsNoticeHEntity where omSta <> ? and reMember = ? ";
|
||||||
// listWaveToDowns = wmOmNoticeHService.findHql(hql,searchstr2,username);
|
listWaveToDowns = wmOmNoticeHService.findHql(hql,"已送货",username);
|
||||||
//
|
|
||||||
// }
|
}
|
||||||
listWaveToDowns = wmOmNoticeHService.findHql(hql);
|
|
||||||
// listWaveToDowns = wmOmNoticeHService.findHql(hql,"已装车");
|
|
||||||
D0.setObj(listWaveToDowns);
|
D0.setObj(listWaveToDowns);
|
||||||
return new ResponseEntity(D0, HttpStatus.OK);
|
return new ResponseEntity(D0, HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
@ -546,14 +543,6 @@ public class TmsYwDingdanController extends BaseController {
|
||||||
D0.setOK(true);
|
D0.setOK(true);
|
||||||
String hql="from WmTmsNoticeIEntity where omNoticeId = ?";
|
String hql="from WmTmsNoticeIEntity where omNoticeId = ?";
|
||||||
List<WmTmsNoticeIEntity> listWaveToDowns =new ArrayList<>();
|
List<WmTmsNoticeIEntity> listWaveToDowns =new ArrayList<>();
|
||||||
// if(StringUtil.isNotEmpty(searchstr)){
|
|
||||||
// hql="from WmOmNoticeHEntity where omSta = ? and reMember = ? and omNoticeId = ?";
|
|
||||||
// listWaveToDowns = wmOmNoticeHService.findHql(hql,searchstr2,username,searchstr);
|
|
||||||
// }else{
|
|
||||||
// hql="from WmOmNoticeHEntity where omSta = ? and reMember = ? ";
|
|
||||||
// listWaveToDowns = wmOmNoticeHService.findHql(hql,searchstr2,username);
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
listWaveToDowns = wmOmNoticeHService.findHql(hql,omnoticeid);
|
listWaveToDowns = wmOmNoticeHService.findHql(hql,omnoticeid);
|
||||||
D0.setObj(listWaveToDowns);
|
D0.setObj(listWaveToDowns);
|
||||||
return new ResponseEntity(D0, HttpStatus.OK);
|
return new ResponseEntity(D0, HttpStatus.OK);
|
||||||
|
@ -574,14 +563,6 @@ public class TmsYwDingdanController extends BaseController {
|
||||||
t.setOmSta("已送货");
|
t.setOmSta("已送货");
|
||||||
wmOmNoticeHService.updateEntitie(t);
|
wmOmNoticeHService.updateEntitie(t);
|
||||||
}
|
}
|
||||||
// if(StringUtil.isNotEmpty(searchstr)){
|
|
||||||
// hql="from WmOmNoticeHEntity where omSta = ? and reMember = ? and omNoticeId = ?";
|
|
||||||
// listWaveToDowns = wmOmNoticeHService.findHql(hql,searchstr2,username,searchstr);
|
|
||||||
// }else{
|
|
||||||
// hql="from WmOmNoticeHEntity where omSta = ? and reMember = ? ";
|
|
||||||
// listWaveToDowns = wmOmNoticeHService.findHql(hql,searchstr2,username);
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
D0.setObj(listWaveToDowns);
|
D0.setObj(listWaveToDowns);
|
||||||
return new ResponseEntity(D0, HttpStatus.OK);
|
return new ResponseEntity(D0, HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2458,6 +2458,7 @@ public class WmOmNoticeHController extends BaseController {
|
||||||
try{
|
try{
|
||||||
MdGoodsEntity md =systemService.findUniqueByProperty(MdGoodsEntity.class,"shpBianMa",t.getGoodsId());
|
MdGoodsEntity md =systemService.findUniqueByProperty(MdGoodsEntity.class,"shpBianMa",t.getGoodsId());
|
||||||
t.setCusCode(md.getSuoShuKeHu());
|
t.setCusCode(md.getSuoShuKeHu());
|
||||||
|
wmOmNoticeH.setOmSta("未送货");
|
||||||
wmOmNoticeH.setCusCode(md.getSuoShuKeHu());
|
wmOmNoticeH.setCusCode(md.getSuoShuKeHu());
|
||||||
}catch ( Exception e){
|
}catch ( Exception e){
|
||||||
|
|
||||||
|
@ -2517,14 +2518,14 @@ public class WmOmNoticeHController extends BaseController {
|
||||||
String hql="from WmOmNoticeHEntity ";
|
String hql="from WmOmNoticeHEntity ";
|
||||||
|
|
||||||
List<WmOmNoticeHEntity> listWaveToDowns =new ArrayList<>();
|
List<WmOmNoticeHEntity> listWaveToDowns =new ArrayList<>();
|
||||||
// if(StringUtil.isNotEmpty(searchstr)){
|
if(StringUtil.isNotEmpty(searchstr)){
|
||||||
// hql="from WmOmNoticeHEntity where omSta = ? and reMember = ? and omNoticeId = ?";
|
hql="from WmOmNoticeHEntity where omSta <> ? and reMember = ? and omNoticeId = ?";
|
||||||
// listWaveToDowns = wmOmNoticeHService.findHql(hql,searchstr2,username,searchstr);
|
listWaveToDowns = wmOmNoticeHService.findHql(hql,"复核完成",username,searchstr);
|
||||||
// }else{
|
}else{
|
||||||
// hql="from WmOmNoticeHEntity where omSta = ? and reMember = ? ";
|
hql="from WmOmNoticeHEntity where omSta <> ? and reMember = ? ";
|
||||||
// listWaveToDowns = wmOmNoticeHService.findHql(hql,searchstr2,username);
|
listWaveToDowns = wmOmNoticeHService.findHql(hql,"复核完成",username);
|
||||||
//
|
|
||||||
// }
|
}
|
||||||
listWaveToDowns = wmOmNoticeHService.findHql(hql);
|
listWaveToDowns = wmOmNoticeHService.findHql(hql);
|
||||||
D0.setObj(listWaveToDowns);
|
D0.setObj(listWaveToDowns);
|
||||||
return new ResponseEntity(D0, HttpStatus.OK);
|
return new ResponseEntity(D0, HttpStatus.OK);
|
||||||
|
@ -2539,10 +2540,10 @@ public class WmOmNoticeHController extends BaseController {
|
||||||
List<WmOmNoticeIEntity> listWaveToDowns =new ArrayList<>();
|
List<WmOmNoticeIEntity> listWaveToDowns =new ArrayList<>();
|
||||||
// hql="from WmImNoticeIEntity where noticeiSta <> ? and omNoticeId = ?";
|
// hql="from WmImNoticeIEntity where noticeiSta <> ? and omNoticeId = ?";
|
||||||
// listWaveToDowns = wmOmNoticeHService.findHql(hql,"已核货",searchstr);
|
// listWaveToDowns = wmOmNoticeHService.findHql(hql,"已核货",searchstr);
|
||||||
hql="from WmOmNoticeIEntity ";
|
// hql="from WmOmNoticeIEntity ";
|
||||||
// hql="from WmOmNoticeIEntity where omSta = ? and omNoticeId = ?";
|
hql="from WmOmNoticeIEntity where omNoticeId = ?";
|
||||||
listWaveToDowns = wmOmNoticeHService.findHql(hql);
|
// listWaveToDowns = wmOmNoticeHService.findHql(hql);
|
||||||
// listWaveToDowns = wmOmNoticeHService.findHql(hql,"Y", omnoticeid);
|
listWaveToDowns = wmOmNoticeHService.findHql(hql, omnoticeid);
|
||||||
D0.setObj(listWaveToDowns);
|
D0.setObj(listWaveToDowns);
|
||||||
return new ResponseEntity(D0, HttpStatus.OK);
|
return new ResponseEntity(D0, HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
@ -2556,10 +2557,32 @@ public class WmOmNoticeHController extends BaseController {
|
||||||
List<WmOmNoticeIEntity> listWaveToDowns =new ArrayList<>();
|
List<WmOmNoticeIEntity> listWaveToDowns =new ArrayList<>();
|
||||||
hql=" from WmOmNoticeIEntity where id = ?";
|
hql=" from WmOmNoticeIEntity where id = ?";
|
||||||
listWaveToDowns = wmOmNoticeHService.findHql(hql,id);
|
listWaveToDowns = wmOmNoticeHService.findHql(hql,id);
|
||||||
for(WmOmNoticeIEntity t: listWaveToDowns){
|
if(listWaveToDowns!=null&&listWaveToDowns.size()>0){
|
||||||
t.setOmSta("YH");
|
String noticeid = listWaveToDowns.get(0).getOmNoticeId();
|
||||||
|
String hqlh=" from WmOmNoticeHEntity where omNoticeId = ? ";
|
||||||
|
List<WmOmNoticeHEntity> listWaveToDowns11 = wmOmNoticeHService.findHql(hqlh,noticeid);
|
||||||
|
|
||||||
|
for(WmOmNoticeHEntity t: listWaveToDowns11){
|
||||||
|
t.setOmSta("复核完成");
|
||||||
wmOmNoticeHService.updateEntitie(t);
|
wmOmNoticeHService.updateEntitie(t);
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
String hql1=" from WmOmNoticeHEntity where omNoticeId = ? ";
|
||||||
|
List<WmOmNoticeHEntity> listWaveToDowns11 = wmOmNoticeHService.findHql(hql1,id);
|
||||||
|
for(WmOmNoticeHEntity t: listWaveToDowns11){
|
||||||
|
t.setOmSta("复核完成");
|
||||||
|
wmOmNoticeHService.updateEntitie(t);
|
||||||
|
}
|
||||||
|
|
||||||
|
String hql2=" from WmOmNoticeHEntity where id = ? ";
|
||||||
|
List<WmOmNoticeHEntity> listWaveToDowns12 = wmOmNoticeHService.findHql(hql2,id);
|
||||||
|
for(WmOmNoticeHEntity t: listWaveToDowns12){
|
||||||
|
t.setOmSta("复核完成");
|
||||||
|
wmOmNoticeHService.updateEntitie(t);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
D0.setObj(listWaveToDowns);
|
D0.setObj(listWaveToDowns);
|
||||||
return new ResponseEntity(D0, HttpStatus.OK);
|
return new ResponseEntity(D0, HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue