增加二次校验重复

master
erzhongxmu 2020-04-25 15:07:15 +08:00
parent 7085938f28
commit 394e7ef1f6
1 changed files with 40 additions and 40 deletions

View File

@ -747,8 +747,8 @@ public class WmToDownGoodsController extends BaseController {
wmToDownGoods.setOmBeizhu(wmOmQmIEntity.getOmBeizhu());
try{
WmToDownGoodsEntity wmToDownGoods1 = systemService.findUniqueByProperty(WmToDownGoodsEntity.class,"orderIdI",wmToDownGoods.getOrderIdI());
if (wmToDownGoods1!=null){
List<WmToDownGoodsEntity> wmToDownGoods1 = systemService.findByProperty(WmToDownGoodsEntity.class,"orderIdI",wmToDownGoods.getOrderIdI());
if (wmToDownGoods1!=null&&wmToDownGoods1.size()>0){
D0.setOK(false);
D0.setErrorMsg("重复保存");