Commit 3e19da20 by zhanglt

货品模块校验

parent 655027f9
......@@ -78,7 +78,7 @@ public class GoodsController extends BaseController {
return "modules/warehouse/goods/goodsList";
}
/**
/**
* 货品模块列表数据
*/
@ResponseBody
......@@ -124,6 +124,16 @@ public class GoodsController extends BaseController {
j.setMsg(errMsg);
return j;
}
if (StringUtils.isNotBlank(goods.getBatchNum())){
Goods goods1 = new Goods();
goods1.setBatchNum(goods.getBatchNum());
List<Goods> list = goodsService.findList(goods1);
if(list != null && list.size()>0){
j.setSuccess(false);
j.setMsg("该批次号重复,请重新填写批次号");
return j;
}
}
//新增或编辑表单保存
goodsService.save(goods);//保存
j.setSuccess(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment