增加入库单打印

master
erzhongxmu 2020-05-13 00:07:14 +08:00
parent 087fa47278
commit 5224cd5f0c
1 changed files with 16 additions and 16 deletions

View File

@ -467,23 +467,23 @@ public class WmToUpGoodsController extends BaseController {
//保存
try{
D0.setOK(true);
WmInQmIEntity wmInQmIEntity = systemService.get(WmInQmIEntity.class,wmToUpGoods.getOrderIdI());
// if(wmInQmIEntity!=null){
// if("Y".equals(wmInQmIEntity.getBinSta())){
// D0.setOK(false);
// D0.setErrorMsg("已经上架,不能重复上架");
// return new ResponseEntity(D0, HttpStatus.OK);
// }
// wmInQmIEntity.setBinSta("Y");
// systemService.updateEntitie(wmInQmIEntity);
// }else{
// D0.setOK(false);
// D0.setErrorMsg("验收任务已经删除,不能上架");
//
// return new ResponseEntity(D0, HttpStatus.OK);
// }
WmInQmIEntity wmInQmIEntity = systemService.get(WmInQmIEntity.class,wmToUpGoods.getWmToUpId());
if(wmInQmIEntity!=null){
if("Y".equals(wmInQmIEntity.getBinSta())){
D0.setOK(false);
D0.setErrorMsg("已经上架,不能重复上架");
return new ResponseEntity(D0, HttpStatus.OK);
}
wmInQmIEntity.setBinSta("Y");
systemService.updateEntitie(wmInQmIEntity);
}else{
D0.setOK(false);
D0.setErrorMsg("验收任务已经删除,不能上架");
return new ResponseEntity(D0, HttpStatus.OK);
}
if(StringUtil.isNotEmpty(wmToUpGoods.getOrderIdI())){
List<WmToUpGoodsEntity> wmToUpGoodsEntity = systemService.findByProperty(WmToUpGoodsEntity.class,"orderIdI",wmToUpGoods.getOrderIdI());
List<WmToUpGoodsEntity> wmToUpGoodsEntity = systemService.findByProperty(WmToUpGoodsEntity.class,"orderIdI",wmToUpGoods.getWmToUpId());
if(wmToUpGoodsEntity!=null&&wmToUpGoodsEntity.size()>0){
D0.setOK(false);
D0.setErrorMsg("已经上架,不能重复上架");