|
@@ -15,6 +15,29 @@
|
|
<result column="construction_end_date" property="constructionEndDate" />
|
|
<result column="construction_end_date" property="constructionEndDate" />
|
|
<result column="relocation_days" property="relocationDays" />
|
|
<result column="relocation_days" property="relocationDays" />
|
|
<!-- 其他字段映射 -->
|
|
<!-- 其他字段映射 -->
|
|
|
|
+ <result column="project_classification" property="projectClassification" />
|
|
|
|
+ <result column="transit_time" property="transitTime" />
|
|
|
|
+ <result column="daily_gas_injection" property="dailyGasInjection" />
|
|
|
|
+ <result column="daily_water_injection" property="dailyWaterInjection" />
|
|
|
|
+ <result column="daily_inject_gas_time" property="dailyInjectGasTime" />
|
|
|
|
+ <result column="daily_inject_water_time" property="dailyInjectWaterTime" />
|
|
|
|
+ <result column="daily_power_usage" property="dailyPowerUsage" />
|
|
|
|
+ <!-- 其他字段映射 -->
|
|
|
|
+ <result column="non_production_time" property="nonProductionTime" />
|
|
|
|
+ <result column="npt_reason" property="nptReason" />
|
|
|
|
+ <result column="production_status" property="productionStatus" />
|
|
|
|
+ <result column="next_plan" property="nextPlan" />
|
|
|
|
+ <result column="total_water_injection" property="totalWaterInjection" />
|
|
|
|
+ <result column="personnel" property="personnel" />
|
|
|
|
+ <result column="total_gas_injection" property="totalGasInjection" />
|
|
|
|
+ <!-- 其他字段映射 -->
|
|
|
|
+ <result column="cumulative_completion" property="cumulativeCompletion" />
|
|
|
|
+ <result column="remark" property="remark" />
|
|
|
|
+ <result column="status" property="status" />
|
|
|
|
+ <result column="creator" property="creator" />
|
|
|
|
+ <result column="create_time" property="createTime" />
|
|
|
|
+ <result column="updater" property="updater" />
|
|
|
|
+ <result column="update_time" property="updateTime" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<!-- 使用窗口函数实现分组查询 -->
|
|
<!-- 使用窗口函数实现分组查询 -->
|
|
@@ -112,4 +135,38 @@
|
|
GROUP BY dept_id;
|
|
GROUP BY dept_id;
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="rhDailyReports" resultMap="BaseResultMap"
|
|
|
|
+ parameterType="cn.iocoder.yudao.module.pms.controller.admin.iotrhdailyreport.vo.IotRhDailyReportPageReqVO">
|
|
|
|
+ SELECT
|
|
|
|
+ *
|
|
|
|
+ FROM
|
|
|
|
+ rq_iot_rh_daily_report rdr
|
|
|
|
+ INNER JOIN system_dept d ON d.id = rdr.dept_id
|
|
|
|
+ WHERE
|
|
|
|
+ rdr.deleted = 0
|
|
|
|
+ AND rdr.dept_id IS NOT NULL
|
|
|
|
+ <if test="deptIds != null and deptIds.size > 0">
|
|
|
|
+ AND rdr.dept_id IN
|
|
|
|
+ <foreach collection="deptIds" index="index" item="key" open="(" separator="," close=")">
|
|
|
|
+ #{key}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="projectIds != null and projectIds.size > 0">
|
|
|
|
+ AND rdr.project_id IN
|
|
|
|
+ <foreach collection="projectIds" index="index" item="key" open="(" separator="," close=")">
|
|
|
|
+ #{key}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="taskIds != null and taskIds.size > 0">
|
|
|
|
+ AND rdr.task_id IN
|
|
|
|
+ <foreach collection="taskIds" index="index" item="key" open="(" separator="," close=")">
|
|
|
|
+ #{key}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ ORDER BY
|
|
|
|
+ rdr.create_time DESC,
|
|
|
|
+ REGEXP_REPLACE ( d.`name`, '[0-9]+', '' ) ASC,
|
|
|
|
+ CAST( REGEXP_REPLACE ( d.`name`, '[^0-9]+', '' ) AS UNSIGNED ) ASC;
|
|
|
|
+ </select>
|
|
|
|
+
|
|
</mapper>
|
|
</mapper>
|