|
|
@ -3,9 +3,15 @@ |
|
|
|
<mapper namespace="com.hnac.hzims.ticket.accessTicket.mapper.AccessTicketMapper"> |
|
|
|
<mapper namespace="com.hnac.hzims.ticket.accessTicket.mapper.AccessTicketMapper"> |
|
|
|
|
|
|
|
|
|
|
|
<select id="pageCondition" resultType="com.hnac.hzims.ticket.accessTicket.dto.response.AccessTicketPageRspDTO"> |
|
|
|
<select id="pageCondition" resultType="com.hnac.hzims.ticket.accessTicket.dto.response.AccessTicketPageRspDTO"> |
|
|
|
SELECT * FROM ACCESS_WORK_TICKET |
|
|
|
SELECT *,CREATE_USER AS HOLDER FROM ACCESS_WORK_TICKET |
|
|
|
<where> |
|
|
|
<where> |
|
|
|
IS_DELETED = 0 |
|
|
|
IS_DELETED = 0 |
|
|
|
|
|
|
|
<if test="param.deviceName != null and param.deviceName != ''"> |
|
|
|
|
|
|
|
AND (DEVICE_CODE LIKE CONCAT('%',#{param.deviceName},'%') OR |
|
|
|
|
|
|
|
DEVICE_NAME LIKE CONCAT('%',#{param.deviceName},'%') OR |
|
|
|
|
|
|
|
DEVICE_ADDRESS LIKE CONCAT('%',#{param.deviceName},'%') |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
</if> |
|
|
|
<if test="param.startTime != null and para.startTime != ''"> |
|
|
|
<if test="param.startTime != null and para.startTime != ''"> |
|
|
|
AND CREATE_TIME >= #{param.startTime} |
|
|
|
AND CREATE_TIME >= #{param.startTime} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|