标签打印查询修改

master
zpl 4 years ago
parent 316d35736b
commit 4b7fd655c4

@ -537,4 +537,32 @@
</delete>
<!-- BaseMapper标准查询/修改/删除 -->
<!--自定义sql-->
<select id="getPrintLogListByCondition" resultMap="BaseResultMap">
SELECT * FROM Z_PRINT_LOG PL
WHERE SITE = #{site}
<if test="startFromDate != null">
AND PL.CREATED_DATE_TIME >= #{startFromDate}
</if>
<if test="startToDate != null">
AND PL.CREATED_DATE_TIME &lt;= #{startToDate}
</if>
<if test="isPrint != null">
AND PL.IS_PRINT = #{isPrint}
</if>
<if test="category != null">
AND PL.CATEGORY &lt;= #{category}
</if>
<if test="inventory != null">
AND PL.INVENTORY &lt;= #{inventory}
</if>
<if test="sfc != null">
AND PL.SFC &lt;= #{sfc}
</if>
ORDER BY PL.CREATED_DATE_TIME DESC
</select>
<!--自定义sql-->
</mapper>

Loading…
Cancel
Save