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