| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.mdc.mapper.MdcMessageApprovalMapper"> |
| | | |
| | | <!--列表查询--> |
| | | <select id="pageList" resultType="org.jeecg.modules.mdc.entity.MdcMessageApproval"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | mdc_message_approval |
| | | <where> |
| | | (sender_ids LIKE CONCAT(CONCAT('%',#{userId}),'%') OR approver_ids LIKE CONCAT(CONCAT('%',#{userId}),'%')) |
| | | <if test="mdcMessageApproval.equipmentId != null and mdcMessageApproval.equipmentId != ''"> |
| | | AND equipment_id = #{mdcMessageApproval.equipmentId} |
| | | </if> |
| | | <if test="mdcMessageApproval.msgStatus != null and mdcMessageApproval.msgStatus != ''"> |
| | | AND msg_status = #{msgStatus} |
| | | </if> |
| | | </where> |
| | | ORDER BY create_time DESC |
| | | </select> |
| | | </mapper> |