| | |
| | | <result property="isDeleted" column="is_deleted"/> |
| | | <result property="reservoirId" column="reservoir_id"/> |
| | | <result property="reservoirName" column="reservoirName"/> |
| | | <result property="toUserName" column="toUserName"/> |
| | | </resultMap> |
| | | |
| | | <select id="getAll" resultMap="vo"> |
| | |
| | | AND SDR.status = #{dangerReport.status} |
| | | </if> |
| | | </select> |
| | | <select id="selectRecordPage" resultMap="vo"> |
| | | SELECT R.*,arb."name" reservoirName,U.REAL_NAME toUserName FROM SM_DANGER_REPORT R |
| | | LEFT JOIN BLADE_USER U ON U.ID = R.TO_USER |
| | | LEFT JOIN SJZT_MD."att_res_base" arb ON arb."guid" = R.RESERVOIR_ID |
| | | WHERE R.IS_DELETED = 0 |
| | | <if test="dangerReportVO.reservoirName != null and dangerReportVO.reservoirName !=''"> |
| | | AND arb."name" LIKE CONCAT('%',#{dangerReportVO.reservoirName},'%') |
| | | </if> |
| | | <if test="dangerReportVO.toUser != null and dangerReportVO.toUser !=''"> |
| | | AND r.to_user = #{dangerReportVO.toUser} |
| | | </if> |
| | | <if test="dangerReportVO.status != null and dangerReportVO.status !=''"> |
| | | AND r.status = #{dangerReportVO.status} |
| | | </if> |
| | | </select> |
| | | </mapper> |