标签打印新增物料查询

master
zpl 4 years ago
parent 5849272dc3
commit 102a1e17bb

@ -539,8 +539,10 @@
<!--自定义sql-->
<select id="getPrintLogListByCondition" resultMap="BaseResultMap">
SELECT * FROM Z_PRINT_LOG PL
WHERE SITE = #{site}
SELECT PL.*, I.ITEM ,IT.DESCRIPTION ITEM_DESCRIPTION FROM Z_PRINT_LOG PL
LEFT JOIN ITEM I ON I.HANDLE = PL.ITEM_BO
LEFT JOIN ITEM_T IT ON IT.ITEM_BO = I.HANDLE
WHERE PL.SITE = #{site}
<if test="startFromDate != null">
AND PL.CREATED_DATE_TIME >= #{startFromDate}
</if>
@ -559,6 +561,9 @@
<if test="sfc != null and sfc != ''">
AND PL.SFC = #{sfc}
</if>
<if test="item != null and item != ''">
AND I.ITEM = #{item}
</if>
ORDER BY PL.CREATED_DATE_TIME DESC
</select>

Loading…
Cancel
Save