上下架读取商品名称

master
e 2019-09-21 10:40:03 +08:00
parent 847e91689a
commit 8f03e64f45
1 changed files with 8 additions and 0 deletions

View File

@ -462,6 +462,14 @@ public class WmToUpGoodsController extends BaseController {
wmInQmIEntity.setBinSta("Y");
systemService.updateEntitie(wmInQmIEntity);
}
if(StringUtil.isNotEmpty(wmToUpGoods.getWmToUpId())){
List<WmToUpGoodsEntity> wmToUpGoodsEntity = systemService.findByProperty(WmToUpGoodsEntity.class,"wmToUpId",wmToUpGoods.getWmToUpId());
if(wmToUpGoodsEntity!=null&&wmToUpGoodsEntity.size()>0){
D0.setOK(false);
return new ResponseEntity(D0, HttpStatus.OK);
}
}
wmToUpGoods.setGoodsName(wmInQmIEntity.getGoodsName());
wmToUpGoods.setCreateDate(DateUtils.getDate());
wmToUpGoodsService.save(wmToUpGoods);