退货入库、其它入库逻辑修改

This commit is contained in:
liuhanqing
2025-10-10 14:27:31 +08:00
parent 180e25eb87
commit fd7d227254
4 changed files with 223 additions and 151 deletions

View File

@@ -229,6 +229,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="selectMydoJobByEntranceId" parameterType="MydoJob" resultMap="MydoJobResult">
select top(1)* from mydo_job mj where in_or_out&lt;20 and mj.entrance_id = #{entranceId} and mj.status = #{status} order by mj.create_time
select top(1)* from mydo_job mj
where in_or_out&lt;20 and mj.entrance_id = #{entranceId}
and mj.status = #{status}
<if test="lineId != null and lineId != ''"> and mj.line_id = #{lineId}</if>
order by mj.create_time
</select>
</mapper>