机械化标准配置,新增配置时,无法输入,只能点选;添加完要么弹窗不关闭,要么增加数量录入
This commit is contained in:
parent
f580e018ad
commit
150389f72a
|
|
@ -176,6 +176,7 @@ public class StandardConfigManageServiceImpl implements StandardConfigManageServ
|
|||
StandardConfigDetailsVo bean1 = new StandardConfigDetailsVo();
|
||||
bean1.setConfigId(bean.getConfigId());
|
||||
bean1.setTypeId(typeId);
|
||||
bean1.setNum(bean.getNum());
|
||||
int count = mapper.getCountById(bean1);
|
||||
if (count > 0) {
|
||||
throw new Exception("该类型下已存在该配置!");
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
insert into bm_standard_config_details(
|
||||
config_id,
|
||||
type_id,
|
||||
num,
|
||||
create_by,
|
||||
create_time,
|
||||
update_by,
|
||||
|
|
@ -35,6 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
values(
|
||||
#{configId},
|
||||
#{typeId},
|
||||
#{num},
|
||||
#{createBy},
|
||||
#{createTime},
|
||||
#{createBy},
|
||||
|
|
|
|||
Loading…
Reference in New Issue