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

电站管理列表修改

parent 317f2fb4
......@@ -101,6 +101,6 @@ public class PowerStationDto extends BaseDto {
private String realScale;
@ApiModelProperty(value = "省份")
private String province;
@ApiModelProperty(value = "制单日期")
private String creatorTime;
@ApiModelProperty(value = "经销商首次确认时间")
private String firstSubmitDate;
}
......@@ -35,7 +35,7 @@
SUBSTRING_INDEX(ph.project_address_name, '/', 1) AS province,
lc.stamp_status,
lc.status,
hsi.creator_time
ps.kc_create_time AS firstSubmitDate
FROM
hygf_power_station ps
LEFT JOIN (
......@@ -57,7 +57,6 @@
ON lc.peasant_household_id = ps.peasant_household_id
LEFT JOIN hygf_peasant_household ph
ON ph.sequence_nbr = ps.peasant_household_id
LEFT JOIN (select sequence_nbr, creator_time from hygf_survey_information ) hsi on ph.survey_information_id = hsi.sequence_nbr
WHERE
ps.is_delete = 0
<if test="powerStationCode != null and powerStationCode != ''">
......@@ -88,10 +87,10 @@
AND lc.status = #{status}
</if>
<if test="startTime != null and startTime != ''">
AND hsi.creator_time &gt;= #{startTime}
AND ps.kc_create_time &gt;= #{startTime}
</if>
<if test="endTime != null and endTime != ''">
AND hsi.creator_time &lt;= #{endTime}
AND ps.kc_create_time &lt;= #{endTime}
</if>
ORDER BY ps.rec_date DESC
</select>
......
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