Commit daaa90da authored by hezhuozhi's avatar hezhuozhi

Merge remote-tracking branch 'origin/developer_bw' into developer_bw

parents 82c57c1e 39b72109
...@@ -101,6 +101,6 @@ public class PowerStationDto extends BaseDto { ...@@ -101,6 +101,6 @@ public class PowerStationDto extends BaseDto {
private String realScale; private String realScale;
@ApiModelProperty(value = "省份") @ApiModelProperty(value = "省份")
private String province; private String province;
@ApiModelProperty(value = "制单日期") @ApiModelProperty(value = "经销商首次确认时间")
private String creatorTime; private String firstSubmitDate;
} }
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
SUBSTRING_INDEX(ph.project_address_name, '/', 1) AS province, SUBSTRING_INDEX(ph.project_address_name, '/', 1) AS province,
lc.stamp_status, lc.stamp_status,
lc.status, lc.status,
hsi.creator_time ps.kc_create_time AS firstSubmitDate
FROM FROM
hygf_power_station ps hygf_power_station ps
LEFT JOIN ( LEFT JOIN (
...@@ -57,7 +57,6 @@ ...@@ -57,7 +57,6 @@
ON lc.peasant_household_id = ps.peasant_household_id ON lc.peasant_household_id = ps.peasant_household_id
LEFT JOIN hygf_peasant_household ph LEFT JOIN hygf_peasant_household ph
ON ph.sequence_nbr = ps.peasant_household_id 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 WHERE
ps.is_delete = 0 ps.is_delete = 0
<if test="powerStationCode != null and powerStationCode != ''"> <if test="powerStationCode != null and powerStationCode != ''">
...@@ -88,10 +87,10 @@ ...@@ -88,10 +87,10 @@
AND lc.status = #{status} AND lc.status = #{status}
</if> </if>
<if test="startTime != null and startTime != ''"> <if test="startTime != null and startTime != ''">
AND hsi.creator_time &gt;= #{startTime} AND ps.kc_create_time &gt;= #{startTime}
</if> </if>
<if test="endTime != null and endTime != ''"> <if test="endTime != null and endTime != ''">
AND hsi.creator_time &lt;= #{endTime} AND ps.kc_create_time &lt;= #{endTime}
</if> </if>
ORDER BY ps.rec_date DESC ORDER BY ps.rec_date DESC
</select> </select>
......
...@@ -39,10 +39,10 @@ LEFT JOIN hygf_document_station on hygf_document_station.station_id=hygf_peasan ...@@ -39,10 +39,10 @@ LEFT JOIN hygf_document_station on hygf_document_station.station_id=hygf_peasan
and hygf_preparation_money.delivery_state != '已作废' and hygf_preparation_money.delivery_state != '待发货' and hygf_preparation_money.delivery_state != '已作废' and hygf_preparation_money.delivery_state != '待发货'
</if> </if>
<if test="dto.deliveryTimeStart != null and dto.deliveryTimeStart != ''"> <if test="dto.deliveryTimeStart != null and dto.deliveryTimeStart != ''">
and hygf_preparation_money.delivery_time &gt;= #{dto.deliveryTimeEnd} and hygf_preparation_money.delivery_time &gt;= #{dto.deliveryTimeStart}
</if> </if>
<if test="dto.deliveryTimeEnd != null and dto.deliveryTimeEnd != ''"> <if test="dto.deliveryTimeEnd != null and dto.deliveryTimeEnd != ''">
and hygf_preparation_money.delivery_time &lt;= > #{dto.deliveryTimeEnd} and hygf_preparation_money.delivery_time &lt;= #{dto.deliveryTimeEnd}
</if> </if>
</where> </where>
ORDER BY hygf_preparation_money.sequence_nbr DESC ORDER BY hygf_preparation_money.sequence_nbr DESC
......
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