在出库的时候判断:序列号不存在或者已经出库
This commit is contained in:
@@ -210,4 +210,12 @@
|
||||
)
|
||||
and ifnull(ser.delete_flag,'0') !='1'
|
||||
</select>
|
||||
|
||||
<select id="getIsNotSellCountByParam" resultType="java.lang.Integer">
|
||||
select count(1) from jsh_serial_number
|
||||
where material_id = #{materialId}
|
||||
and serial_number = #{serialNumber}
|
||||
and is_sell = '0'
|
||||
and ifnull(delete_flag,'0') !='1'
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user