diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/impl/StandardConfigManageServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/impl/StandardConfigManageServiceImpl.java index ee1efb7a..04d84172 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/impl/StandardConfigManageServiceImpl.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/impl/StandardConfigManageServiceImpl.java @@ -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("该类型下已存在该配置!"); diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/ma/StandardConfigManageMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/ma/StandardConfigManageMapper.xml index 820ee2e4..a2f0e92f 100644 --- a/bonus-modules/bonus-material/src/main/resources/mapper/material/ma/StandardConfigManageMapper.xml +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/ma/StandardConfigManageMapper.xml @@ -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},