PDA下架禁止重复保存

master
e 2018-12-26 23:24:00 +08:00
parent a3923c9b1a
commit 631aa6ae46
1 changed files with 13 additions and 0 deletions

View File

@ -698,6 +698,19 @@ public class WmToDownGoodsController extends BaseController {
D0.setOK(false); D0.setOK(false);
} }
try{
WmToDownGoodsEntity wmToDownGoods1 = systemService.findUniqueByProperty(WmToDownGoodsEntity.class,"orderIdI",wmToDownGoods.getOrderIdI());
if (wmToDownGoods1!=null){
D0.setOK(false);
D0.setErrorMsg("重复保存");
return new ResponseEntity(D0,HttpStatus.OK);
}
}catch (Exception e){
}
try{ try{
t = systemService.get(WvGiNoticeEntity.class,wmToDownGoods.getOrderIdI()); t = systemService.get(WvGiNoticeEntity.class,wmToDownGoods.getOrderIdI());
if(t!=null&&StringUtil.isEmpty(wmToDownGoods.getBinIdFrom())){ if(t!=null&&StringUtil.isEmpty(wmToDownGoods.getBinIdFrom())){