添加序列号新增时验证条件

This commit is contained in:
cjl
2019-01-24 10:00:36 +08:00
parent 69bd3567fb
commit 2b77119819
8 changed files with 127 additions and 39 deletions

View File

@@ -113,4 +113,16 @@
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<select id="findSerialNumberByMaterialId" resultType="java.lang.Integer">
SELECT
count(ser.id)
FROM jsh_serial_number ser
where 1=1
<if test="materialId != null">
and ser.material_Id=#{materialId}
</if>
and ser.delete_Flag !='1'
and ser.is_Sell !='1'
</select>
</mapper>