| | |
| | | <result property="reservoirId" column="reservoir_id"/> |
| | | <result property="reservoirName" column="reservoirName"/> |
| | | <result property="type" column="type"/> |
| | | <result property="typeLabel" column="typeLabel"/> |
| | | <result property="content" column="content"/> |
| | | <result property="reportTime" column="report_time"/> |
| | | <result property="images" column="images" typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/> |
| | |
| | | </resultMap> |
| | | |
| | | <select id="selectRecordPage" resultMap="vo"> |
| | | SELECT R.*,arb."name" reservoirName,U.REAL_NAME FROM SM_MANAGE_PROTECT_RECORD R |
| | | SELECT |
| | | R.*, |
| | | arb."name" AS reservoirName, |
| | | U.REAL_NAME , |
| | | BDB.DICT_VALUE AS typeLabel |
| | | FROM SM_MANAGE_PROTECT_RECORD R |
| | | LEFT JOIN SJZT_MD."att_res_base" arb on arb."guid" = R.reservoir_id |
| | | LEFT JOIN BLADE_USER U ON U.ID = R.CREATE_USER |
| | | LEFT JOIN BLADE_DICT_BIZ BDB ON BDB.DICT_KEY = R.TYPE AND BDB.CODE = 'MANAGE_PROTECT_TYPE' |
| | | WHERE R.IS_DELETED = 0 |
| | | <if test="record.reservoirName != null and record.reservoirName !=''"> |
| | | AND arb."name" LIKE CONCAT('%',#{record.reservoirName},'%') |
| | |
| | | <if test="record.type !=null and record.type !=''"> |
| | | AND R.type = #{record.type} |
| | | </if> |
| | | <if test="record.createUser != null and record.createUser !='' "> |
| | | AND R.CREATE_USER = #{record.createUser} |
| | | </if> |
| | | ORDER BY R.CREATE_TIME DESC |
| | | </select> |
| | | </mapper> |