添加商品类别编号唯一校验

This commit is contained in:
cjl
2019-02-20 14:24:13 +08:00
parent 6bbc0aefb4
commit 7f1cd5f16c
4 changed files with 52 additions and 0 deletions

View File

@@ -91,5 +91,13 @@
name=#{name},remark=#{remark}
where id =#{id}
</update>
<select id="getMaterialCategoryBySerialNo" resultMap="com.jsh.erp.datasource.mappers.MaterialCategoryMapper.BaseResultMap">
select
<include refid="com.jsh.erp.datasource.mappers.MaterialCategoryMapper.Base_Column_List"/>
FROM jsh_materialcategory
where 1=1
and serial_no=#{serialNo}
and status !='2'
</select>
</mapper>