|
@@ -44,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectPdmMaintenanceProcessList" parameterType="PdmMaintenanceProcess" resultMap="PdmMaintenanceProcessResult">
|
|
|
- select a.*,getExamiAmountFun((select ROUND(sum(hour_num)) from pdm_stop_records where std_org_no=a.std_org_no
|
|
|
+ select a.*,getExamiAmountFun((select ROUND(sum(hour_num)) from pdm_stop_records where std_county_org_no=a.std_county_org_no
|
|
|
and poweroff_nature_cd in('2111','2112','2121','2122','2141','2211','2212','2221','2231','2241')
|
|
|
and DATE_FORMAT(poweroff_start_tm, '%Y-%m-%d') >= a.week_start_dt
|
|
|
and DATE_FORMAT(poweroff_term_tm, '%Y-%m-%d') <= a.week_end_dt),per_hour_households_w) exami_Amount from ( <include refid="selectPdmMaintenanceProcessVo"/>
|