| | |
| | | <result property="gateStatus" column="gate_status"/> |
| | | <result property="content" column="content"/> |
| | | <result property="images" column="images" typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/> |
| | | <result property="reportUser" column="real_name"/> |
| | | |
| | | <result property="createDept" column="create_dept"/> |
| | | <result property="createUser" column="create_user"/> |
| | |
| | | |
| | | |
| | | <select id="selectRecordPage" resultMap="vo"> |
| | | SELECT R.*,arb."name" reservoirName,U.REAL_NAME FROM SM_SCHEDULING_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 |
| | | WHERE R.IS_DELETED = 0 |
| | | <if test="record.reservoirName != null and record.reservoirName !=''"> |
| | | AND arb."name" LIKE CONCAT('%',#{record.reservoirName},'%') |
| | | </if> |
| | | <if test="record.gateStatus !=null and record.gateStatus !=''"> |
| | | AND R.gate_status = #{record.gateStatus} |
| | | </if> |
| | | ORDER BY R.CREATE_TIME DESC |
| | | </select> |
| | | <select id="customizeGetDetail" resultType="cn.gistack.sm.schedulingModules.vo.SchedulingRecordVO"> |
| | | SELECT R.*,arb."name" reservoirName FROM SM_SCHEDULING_RECORD R |
| | | LEFT JOIN SJZT_MD."att_res_base" arb on arb."guid" = R.reservoir_id |
| | | WHERE R.IS_DELETED = 0 |
| | | WHERE R.IS_DELETED = 0 AND r.id = #{record.id} |
| | | <if test="record.reservoirName != null and record.reservoirName !=''"> |
| | | AND arb."name" LIKE CONCAT('%',#{record.reservoirName},'%') |
| | | </if> |