OMS-GW-log

This commit is contained in:
zhaoqing
2026-05-08 11:06:49 +08:00
parent 506f9ef569
commit 5235076d2d
6 changed files with 220 additions and 0 deletions
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mhd.oms.domain.gwLog.repository.mapper.GwLogMapper">
<select id="queryList" resultType="com.mhd.oms.domain.gwLog.repository.po.GwLogPO">
SELECT *
FROM gw_log
WHERE DEL_FLAG = 1
<if test="status != null">
AND STATUS = #{status}
</if>
<if test="sendTimeFrom != null and sendTimeFrom != ''">
AND DATE_FORMAT(SEND_TIME, '%Y-%m-%d') &gt;= #{sendTimeFrom}
</if>
<if test="sendTimeTo != null and sendTimeTo != ''">
AND DATE_FORMAT(SEND_TIME, '%Y-%m-%d') &lt;= #{sendTimeTo}
</if>
<if test="organizationId != null">
AND ORGANIZATION_ID = #{organizationId}
</if>
ORDER BY CREATE_TIME DESC
</select>
</mapper>