Commit d5614cf1 authored by wujiang's avatar wujiang

提交代码

parent 196a6fe7
......@@ -68,11 +68,19 @@ LEFT JOIN hygf_document_station on hygf_document_station.station_id=hygf_peasan
hygf_document_station.preparation_money_id as preparationMoneyId,
hygf_preparation_money.delivery_time as deliveryTime,
hygf_preparation_money.arrival_time as arrivalTime,
(select instance_id from hygf_preparation_money_auditing where hygf_document_station.preparation_money_id = hygf_preparation_money_auditing.preparation_money_id limit 1) as instanceId from
hygf_commercial.scale,
hygf_power_station_engineering_info.real_scale as realScale,
m.instance_id AS instanceId
from
hygf_peasant_household
LEFT JOIN hygf_document_station on hygf_peasant_household.sequence_nbr = hygf_document_station.station_id
LEFT JOIN hygf_power_station on hygf_peasant_household.sequence_nbr = hygf_power_station.peasant_household_id
LEFT JOIN hygf_preparation_money on hygf_preparation_money.sequence_nbr = hygf_document_station.preparation_money_id
LEFT JOIN hygf_commercial on hygf_commercial.survey_information_id =hygf_peasant_household.survey_information_id
LEFT JOIN hygf_work_order_power_station on hygf_work_order_power_station.peasant_household_id =hygf_peasant_household.sequence_nbr
LEFT JOIN hygf_power_station_engineering_info on hygf_power_station_engineering_info.work_order_power_station_id=hygf_work_order_power_station.sequence_nbr
LEFT JOIN (select instance_id,preparation_money_id AS preparation_money_id from hygf_preparation_money_auditing group by instance_id,preparation_money_id) m on m.preparation_money_id=hygf_document_station.preparation_money_id
<where>
<if test="routhPathId != null and routhPathId != ''">
and hygf_preparation_money.sequence_nbr = #{routhPathId}
......
......@@ -1307,15 +1307,14 @@ public class PreparationMoneyServiceImpl extends BaseService<PreparationMoneyDto
PageHelper.startPage(current, size);
List<Map<String, Object>> resultPage = preparationMoneyMapper.preparationStation(preparationMoneyState,ownersName,regionalcompaniesSeq,developerId,state,province, projectAddress, startTime, endTime,routhPathId);
if(resultPage != null && resultPage.size() > 0) {
resultPage.forEach(e -> {
System.out.println("+++++++++++++++" + e.get("peasantHouseholdNo"));
if(e.get("peasantHouseholdNo") != null) {
e.put("scale", householdContractMapper.getHygfCommercialScale((String) e.get("peasantHouseholdNo")));
e.put("realScale", powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo((String) e.get("peasantHouseholdNo")));
}
});
}
// if(resultPage != null && resultPage.size() > 0) {
// resultPage.forEach(e -> {
// if(e.get("peasantHouseholdNo") != null) {
// // e.put("scale", householdContractMapper.getHygfCommercialScale((String) e.get("peasantHouseholdNo")));
// e.put("realScale", powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo((String) e.get("peasantHouseholdNo")));
// }
// });
// }
PageInfo<Map<String, Object>> page = new PageInfo(resultPage);
......
......@@ -33,11 +33,11 @@
<logger name="java.sql.Statement" level="DEBUG"/>
<logger name="java.sql.PreparedStatement" level="DEBUG"/>
<logger name="com.baomidou.mybatisplus" level="DEBUG"/>
<logger name="org.springframework" level="DEBUG"/>
<logger name="org.springframework" level="ERROR"/>
<logger name="org.typroject" level="DEBUG"/>
<logger name="com.yeejoin" level="DEBUG"/>
<!-- 日志输出级别 -->
<root level="DEBUG">
<root level="INFO">
<appender-ref ref="FILE" />
<appender-ref ref="STDOUT" />
</root>
......
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