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