增加商品校验

This commit is contained in:
季圣华
2021-06-20 23:53:58 +08:00
parent e5ce3194ee
commit 09cf354086
4 changed files with 56 additions and 24 deletions

View File

@@ -406,4 +406,42 @@
</if>
and ifnull(m.delete_flag,'0') !='1'
</select>
<select id="checkIsExist" resultType="java.lang.Integer">
select count(1) from jsh_material m
where ifnull(m.delete_flag,'0') !='1'
<if test="name != null">
and m.name = #{name}
</if>
<if test="model != null">
and m.model = #{model}
</if>
<if test="color != null">
and m.color = #{color}
</if>
<if test="standard != null">
and m.standard = #{standard}
</if>
<if test="mfrs != null">
and m.mfrs = #{mfrs}
</if>
<if test="otherField1 != null">
and m.other_field1 = #{otherField1}
</if>
<if test="otherField2 != null">
and m.other_field2 = #{otherField2}
</if>
<if test="otherField3 != null">
and m.other_field3 = #{otherField3}
</if>
<if test="unit != null">
and m.unit = #{unit}
</if>
<if test="unitId != null">
and m.unit_id = #{unitId}
</if>
<if test="id != null">
and m.id != #{id}
</if>
</select>
</mapper>