Commit 5f692fea authored by 朱晨阳's avatar 朱晨阳

解决冲突

parent c87dcc03
...@@ -629,7 +629,7 @@ ...@@ -629,7 +629,7 @@
`rec_date` recDate, `rec_date` recDate,
`rec_user_id` recUserId, `rec_user_id` recUserId,
`rec_user_name` recUserName, `rec_user_name` recUserName,
`sn_code` snCode, hygf_jp_station.sn_code snCode,
CAST( (FLOOR(`capacity` * 1000) / 1000) AS DECIMAL(20, 3)) capacity, CAST( (FLOOR(`capacity` * 1000) / 1000) AS DECIMAL(20, 3)) capacity,
`name` , `name` ,
`code` , `code` ,
...@@ -646,7 +646,7 @@ ...@@ -646,7 +646,7 @@
`module_count` moduleCount, `module_count` moduleCount,
`on_grid_type` onGridType, `on_grid_type` onGridType,
`on_grid_time` onGridTime, `on_grid_time` onGridTime,
`third_station_id` thirdStationId, hygf_jp_station.third_station_id thirdStationId,
`third_code` thirdCode, `third_code` thirdCode,
`station_id` stationId, `station_id` stationId,
`day_power_use` dayPowerUse, `day_power_use` dayPowerUse,
...@@ -670,8 +670,10 @@ ...@@ -670,8 +670,10 @@
rated_power ratedPower, rated_power ratedPower,
CAST( (FLOOR(`day_generate`/capacity * 1000) / 1000) AS DECIMAL(20, 3)) fullhour, CAST( (FLOOR(`day_generate`/capacity * 1000) / 1000) AS DECIMAL(20, 3)) fullhour,
(select privilege_company.COMPANY_NAME from privilege_company where (select privilege_company.COMPANY_NAME from privilege_company where
privilege_company.ORG_CODE=hygf_jp_station.regional_companies_code) regionalCompaniesName privilege_company.ORG_CODE=hygf_jp_station.regional_companies_code) regionalCompaniesName,
newTable.sn_code nbqSnCode
from hygf_jp_station from hygf_jp_station
left join (select hygf_jp_inverter.sn_code, hygf_jp_inverter.third_station_id from hygf_jp_station left join hygf_jp_inverter on hygf_jp_station.third_station_id = hygf_jp_inverter.third_station_id) newTable on hygf_jp_station.third_station_id = newTable.third_station_id
<where> <where>
<if test="dto.name!=null"> <if test="dto.name!=null">
and hygf_jp_station.name like concat(concat('%',#{dto.name}),'%') and hygf_jp_station.name like concat(concat('%',#{dto.name}),'%')
...@@ -706,6 +708,9 @@ ...@@ -706,6 +708,9 @@
<if test="dto.amosCompanyCode!=null"> <if test="dto.amosCompanyCode!=null">
and hygf_jp_station.amos_company_code =#{dto.amosCompanyCode} and hygf_jp_station.amos_company_code =#{dto.amosCompanyCode}
</if> </if>
<if test="dto.nbqSnCode!=null">
and newTable.sn_code =#{dto.nbqSnCode}
</if>
</where> </where>
ORDER BY CASE ORDER BY CASE
WHEN state = '报警' THEN 1 WHEN state = '报警' THEN 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment