Commit a6564a74 authored by 朱晨阳's avatar 朱晨阳

添加字段

parent 8d7bf2c7
...@@ -79,4 +79,5 @@ public class AcceptanceCheckDto extends BaseDto { ...@@ -79,4 +79,5 @@ public class AcceptanceCheckDto extends BaseDto {
// 电站安装规模 // 电站安装规模
private String scale; private String scale;
private String realScale;
} }
...@@ -76,4 +76,6 @@ public class BasicGridRecordDto extends BaseDto { ...@@ -76,4 +76,6 @@ public class BasicGridRecordDto extends BaseDto {
// 电站安装规模(kW) // 电站安装规模(kW)
private String scale; private String scale;
private String realScale;
} }
...@@ -97,4 +97,6 @@ public class PowerStationDto extends BaseDto { ...@@ -97,4 +97,6 @@ public class PowerStationDto extends BaseDto {
@ApiModelProperty(value = "电站安装规模") @ApiModelProperty(value = "电站安装规模")
private String scale; private String scale;
@ApiModelProperty(value = "电站实际规模")
private String realScale;
} }
...@@ -86,4 +86,6 @@ public class WorkOrderPage { ...@@ -86,4 +86,6 @@ public class WorkOrderPage {
@ApiModelProperty(value = "电站安装规模") @ApiModelProperty(value = "电站安装规模")
private String scale ; private String scale ;
@ApiModelProperty(value = "电站实际规模")
private String realScale ;
} }
...@@ -260,4 +260,7 @@ public class HouseholdContract extends BaseEntity { ...@@ -260,4 +260,7 @@ public class HouseholdContract extends BaseEntity {
@TableField(exist = false) @TableField(exist = false)
private String scale; private String scale;
@TableField(exist = false)
private String realScale;
} }
...@@ -217,8 +217,14 @@ public class PeasantHousehold extends BaseEntity { ...@@ -217,8 +217,14 @@ public class PeasantHousehold extends BaseEntity {
private Integer isAllRevoke; private Integer isAllRevoke;
/** /**
* 商务信息安装规模 * 电站规模
*/ */
@TableField(exist = false) @TableField(exist = false)
private String scale; private String scale;
/**
* 电站规模
*/
@TableField(exist = false)
private String realScale;
} }
...@@ -45,6 +45,12 @@ public class PowerStationEngineeringInfo extends BaseEntity { ...@@ -45,6 +45,12 @@ public class PowerStationEngineeringInfo extends BaseEntity {
private Integer componentQuantity; private Integer componentQuantity;
/** /**
* 组件数量
*/
@TableField("real_scale")
private Double realScale;
/**
* 逆变器数量 * 逆变器数量
*/ */
@TableField("inverter_quantity") @TableField("inverter_quantity")
......
...@@ -51,5 +51,5 @@ public interface PeasantHouseholdMapper extends BaseMapper<PeasantHousehold> { ...@@ -51,5 +51,5 @@ public interface PeasantHouseholdMapper extends BaseMapper<PeasantHousehold> {
void deleteHhcByNo(String peasantHouseholdNo); void deleteHhcByNo(String peasantHouseholdNo);
String getHygfCommercialScale(Long surveyInformationId); // String getHygfCommercialScale(Long surveyInformationId);
} }
...@@ -11,4 +11,5 @@ import com.yeejoin.amos.boot.module.hygf.api.entity.PowerStationEngineeringInfo; ...@@ -11,4 +11,5 @@ import com.yeejoin.amos.boot.module.hygf.api.entity.PowerStationEngineeringInfo;
*/ */
public interface PowerStationEngineeringInfoMapper extends BaseMapper<PowerStationEngineeringInfo> { public interface PowerStationEngineeringInfoMapper extends BaseMapper<PowerStationEngineeringInfo> {
String getRealScaleByPeasantHouseholdNo(String peasantHouseholdNumber);
} }
...@@ -134,7 +134,7 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb ...@@ -134,7 +134,7 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
DELETE FROM hygf_household_contract WHERE peasant_household_number=#{peasantHouseholdNo} DELETE FROM hygf_household_contract WHERE peasant_household_number=#{peasantHouseholdNo}
</select> </select>
<select id="getHygfCommercialScale" resultType="String"> <!-- <select id="getHygfCommercialScale" resultType="String">-->
select scale from hygf_commercial where survey_information_id=${surveyInformationId} <!-- select scale from hygf_commercial where survey_information_id=${surveyInformationId}-->
</select> <!-- </select>-->
</mapper> </mapper>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeejoin.amos.boot.module.hygf.api.mapper.PowerStationEngineeringInfoMapper"> <mapper namespace="com.yeejoin.amos.boot.module.hygf.api.mapper.PowerStationEngineeringInfoMapper">
<select id="getRealScaleByPeasantHouseholdNo" resultType="String">
select
hpsei.real_scale realScale
from
hygf_peasant_household hph,
hygf_work_order_power_station hwops,
hygf_power_station_engineering_info hpsei
where
hph.peasant_household_no = #{peasantHouseholdNo} and
hph.sequence_nbr = hwops.peasant_household_id and
hwops.sequence_nbr = hpsei.work_order_power_station_id
</select>
</mapper> </mapper>
...@@ -11,10 +11,7 @@ import com.yeejoin.amos.boot.module.hygf.api.entity.DesignInformation; ...@@ -11,10 +11,7 @@ import com.yeejoin.amos.boot.module.hygf.api.entity.DesignInformation;
import com.yeejoin.amos.boot.module.hygf.api.entity.HygfReplenishment; import com.yeejoin.amos.boot.module.hygf.api.entity.HygfReplenishment;
import com.yeejoin.amos.boot.module.hygf.api.entity.PeasantHousehold; import com.yeejoin.amos.boot.module.hygf.api.entity.PeasantHousehold;
import com.yeejoin.amos.boot.module.hygf.api.entity.PreparationMoney; import com.yeejoin.amos.boot.module.hygf.api.entity.PreparationMoney;
import com.yeejoin.amos.boot.module.hygf.api.mapper.DocumentStationMapper; import com.yeejoin.amos.boot.module.hygf.api.mapper.*;
import com.yeejoin.amos.boot.module.hygf.api.mapper.HouseholdContractMapper;
import com.yeejoin.amos.boot.module.hygf.api.mapper.PersonnelBusinessMapper;
import com.yeejoin.amos.boot.module.hygf.api.mapper.PreparationMoneyMapper;
import com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseNewUtil; import com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseNewUtil;
import com.yeejoin.amos.boot.module.hygf.biz.service.impl.DesignInformationServiceImpl; import com.yeejoin.amos.boot.module.hygf.biz.service.impl.DesignInformationServiceImpl;
import com.yeejoin.amos.boot.module.hygf.biz.service.impl.HygfReplenishmentServiceImpl; import com.yeejoin.amos.boot.module.hygf.biz.service.impl.HygfReplenishmentServiceImpl;
...@@ -56,6 +53,8 @@ public class PreparationMoneyController extends BaseController { ...@@ -56,6 +53,8 @@ public class PreparationMoneyController extends BaseController {
PreparationMoneyMapper preparationMoneyMapper; PreparationMoneyMapper preparationMoneyMapper;
@Autowired @Autowired
HouseholdContractMapper householdContractMapper; HouseholdContractMapper householdContractMapper;
@Autowired
PowerStationEngineeringInfoMapper powerStationEngineeringInfoMapper;
@Autowired @Autowired
DesignInformationServiceImpl designInformationService; DesignInformationServiceImpl designInformationService;
@Autowired @Autowired
...@@ -233,6 +232,7 @@ public class PreparationMoneyController extends BaseController { ...@@ -233,6 +232,7 @@ public class PreparationMoneyController extends BaseController {
list.forEach(e -> { list.forEach(e -> {
if(e.getPeasantHouseholdNo() != null) { if(e.getPeasantHouseholdNo() != null) {
e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo())); e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo()));
e.setRealScale(powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo(e.getPeasantHouseholdNo()));
} }
}); });
......
...@@ -46,6 +46,8 @@ public class WorkOrderController extends BaseController { ...@@ -46,6 +46,8 @@ public class WorkOrderController extends BaseController {
WorkOrderMapper workOrderMapper; WorkOrderMapper workOrderMapper;
@Autowired @Autowired
HouseholdContractMapper householdContractMapper; HouseholdContractMapper householdContractMapper;
@Autowired
PowerStationEngineeringInfoMapper powerStationEngineeringInfoMapper;
@Autowired @Autowired
PersonnelBusinessMapper personnelBusinessMapper; PersonnelBusinessMapper personnelBusinessMapper;
...@@ -231,6 +233,7 @@ public class WorkOrderController extends BaseController { ...@@ -231,6 +233,7 @@ public class WorkOrderController extends BaseController {
} }
if(e.getPeasantHouseholdNo() != null) { if(e.getPeasantHouseholdNo() != null) {
e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo())); e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo()));
e.setRealScale(powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo(e.getPeasantHouseholdNo()));
} }
}); });
...@@ -256,6 +259,7 @@ public class WorkOrderController extends BaseController { ...@@ -256,6 +259,7 @@ public class WorkOrderController extends BaseController {
list.forEach(e -> { list.forEach(e -> {
if(e.getPeasantHouseholdNo() != null) { if(e.getPeasantHouseholdNo() != null) {
e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo())); e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo()));
e.setRealScale(powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo(e.getPeasantHouseholdNo()));
} }
}); });
......
...@@ -18,6 +18,7 @@ import com.yeejoin.amos.boot.module.hygf.api.entity.*; ...@@ -18,6 +18,7 @@ import com.yeejoin.amos.boot.module.hygf.api.entity.*;
import com.yeejoin.amos.boot.module.hygf.api.mapper.AcceptanceCheckMapper; import com.yeejoin.amos.boot.module.hygf.api.mapper.AcceptanceCheckMapper;
import com.yeejoin.amos.boot.module.hygf.api.mapper.HouseholdContractMapper; import com.yeejoin.amos.boot.module.hygf.api.mapper.HouseholdContractMapper;
import com.yeejoin.amos.boot.module.hygf.api.mapper.PeasantHouseholdMapper; import com.yeejoin.amos.boot.module.hygf.api.mapper.PeasantHouseholdMapper;
import com.yeejoin.amos.boot.module.hygf.api.mapper.PowerStationEngineeringInfoMapper;
import com.yeejoin.amos.boot.module.hygf.api.service.IAcceptanceCheckService; import com.yeejoin.amos.boot.module.hygf.api.service.IAcceptanceCheckService;
import com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseNewUtil; import com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseNewUtil;
import com.yeejoin.amos.component.robot.BadRequest; import com.yeejoin.amos.component.robot.BadRequest;
...@@ -56,6 +57,8 @@ public class AcceptanceCheckServiceImpl extends BaseService<AcceptanceCheckDto,A ...@@ -56,6 +57,8 @@ public class AcceptanceCheckServiceImpl extends BaseService<AcceptanceCheckDto,A
@Autowired @Autowired
AcceptanceCheckMapper acceptanceCheckMapper; AcceptanceCheckMapper acceptanceCheckMapper;
@Autowired @Autowired
PowerStationEngineeringInfoMapper powerStationEngineeringInfoMapper;
@Autowired
PeasantHouseholdMapper peasantHouseholdMapper; PeasantHouseholdMapper peasantHouseholdMapper;
@Autowired @Autowired
HouseholdContractMapper householdContractMapper; HouseholdContractMapper householdContractMapper;
...@@ -88,6 +91,7 @@ public class AcceptanceCheckServiceImpl extends BaseService<AcceptanceCheckDto,A ...@@ -88,6 +91,7 @@ public class AcceptanceCheckServiceImpl extends BaseService<AcceptanceCheckDto,A
list.forEach(e -> { list.forEach(e -> {
if(e.getPeasantHouseholdNo() != null) { if(e.getPeasantHouseholdNo() != null) {
e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo())); e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo()));
e.setRealScale(powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo(e.getPeasantHouseholdNo()));
} }
}); });
} }
......
...@@ -57,6 +57,8 @@ public class BasicGridAcceptanceServiceImpl ...@@ -57,6 +57,8 @@ public class BasicGridAcceptanceServiceImpl
@Autowired @Autowired
PersonnelBusinessMapper personnelBusinessMapper; PersonnelBusinessMapper personnelBusinessMapper;
@Autowired @Autowired
PowerStationEngineeringInfoMapper powerStationEngineeringInfoMapper;
@Autowired
WorkflowImpl workflow; WorkflowImpl workflow;
@Autowired @Autowired
AcceptanceCheckItemMapper acceptanceCheckItemMapper; AcceptanceCheckItemMapper acceptanceCheckItemMapper;
...@@ -120,6 +122,7 @@ public class BasicGridAcceptanceServiceImpl ...@@ -120,6 +122,7 @@ public class BasicGridAcceptanceServiceImpl
page.getList().forEach(e -> { page.getList().forEach(e -> {
if(e.getPeasantHouseholdNo() != null) { if(e.getPeasantHouseholdNo() != null) {
e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo())); e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo()));
e.setRealScale(powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo(e.getPeasantHouseholdNo()));
} }
}); });
} }
......
...@@ -30,6 +30,7 @@ import com.yeejoin.amos.boot.module.hygf.api.entity.FinancingRectificationOrder; ...@@ -30,6 +30,7 @@ import com.yeejoin.amos.boot.module.hygf.api.entity.FinancingRectificationOrder;
import com.yeejoin.amos.boot.module.hygf.api.entity.StdUserEmpower; import com.yeejoin.amos.boot.module.hygf.api.entity.StdUserEmpower;
import com.yeejoin.amos.boot.module.hygf.api.mapper.FinancingInfoMapper; import com.yeejoin.amos.boot.module.hygf.api.mapper.FinancingInfoMapper;
import com.yeejoin.amos.boot.module.hygf.api.mapper.HouseholdContractMapper; import com.yeejoin.amos.boot.module.hygf.api.mapper.HouseholdContractMapper;
import com.yeejoin.amos.boot.module.hygf.api.mapper.PowerStationEngineeringInfoMapper;
import com.yeejoin.amos.boot.module.hygf.api.service.IFinancingInfoService; import com.yeejoin.amos.boot.module.hygf.api.service.IFinancingInfoService;
import com.yeejoin.amos.boot.module.hygf.api.util.RedisLockUtil; import com.yeejoin.amos.boot.module.hygf.api.util.RedisLockUtil;
import com.yeejoin.amos.feign.workflow.model.ActWorkflowBatchDTO; import com.yeejoin.amos.feign.workflow.model.ActWorkflowBatchDTO;
...@@ -74,6 +75,8 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina ...@@ -74,6 +75,8 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
@Autowired @Autowired
private HouseholdContractMapper householdContractMapper; private HouseholdContractMapper householdContractMapper;
@Autowired @Autowired
private PowerStationEngineeringInfoMapper powerStationEngineeringInfoMapper;
@Autowired
private CommonServiceImpl commonService; private CommonServiceImpl commonService;
@Resource(type = RedisLockUtil.class) @Resource(type = RedisLockUtil.class)
...@@ -104,6 +107,7 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina ...@@ -104,6 +107,7 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
List<Map<String, Object>> list = financingInfoMapper.getStationFinancingInfoList(params, amosOrgCodes); List<Map<String, Object>> list = financingInfoMapper.getStationFinancingInfoList(params, amosOrgCodes);
list.forEach(e -> { list.forEach(e -> {
e.put("scale", householdContractMapper.getHygfCommercialScale((String) e.get("peasantHouseholdNo"))); e.put("scale", householdContractMapper.getHygfCommercialScale((String) e.get("peasantHouseholdNo")));
e.put("realScale", powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo((String) e.get("peasantHouseholdNo")));
if (null != e.get("instanceId") && e.get("instanceId").toString().contains(",")) { if (null != e.get("instanceId") && e.get("instanceId").toString().contains(",")) {
String[] instanceIds = e.get("instanceId").toString().split(","); String[] instanceIds = e.get("instanceId").toString().split(",");
......
...@@ -49,6 +49,9 @@ public class HouseholdContractServiceImpl extends BaseService<HouseholdContractD ...@@ -49,6 +49,9 @@ public class HouseholdContractServiceImpl extends BaseService<HouseholdContractD
ContractTemplateMapper contractTemplateMapper; ContractTemplateMapper contractTemplateMapper;
@Autowired @Autowired
PowerStationEngineeringInfoMapper powerStationEngineeringInfoMapper;
@Autowired
ToDoTasksServiceImpl toDoTasksServiceImpl; ToDoTasksServiceImpl toDoTasksServiceImpl;
@Autowired @Autowired
...@@ -97,6 +100,7 @@ public class HouseholdContractServiceImpl extends BaseService<HouseholdContractD ...@@ -97,6 +100,7 @@ public class HouseholdContractServiceImpl extends BaseService<HouseholdContractD
warningQuestionInfoIPage.getRecords().forEach(e -> { warningQuestionInfoIPage.getRecords().forEach(e -> {
if(e.getPeasantHouseholdNumber() != null) { if(e.getPeasantHouseholdNumber() != null) {
e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNumber())); e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNumber()));
e.setRealScale(powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo(e.getPeasantHouseholdNumber()));
} }
}); });
......
...@@ -22,7 +22,9 @@ import javax.annotation.Resource; ...@@ -22,7 +22,9 @@ import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.yeejoin.amos.boot.module.hygf.api.entity.PowerStationEngineeringInfo;
import com.yeejoin.amos.boot.module.hygf.api.mapper.HouseholdContractMapper; import com.yeejoin.amos.boot.module.hygf.api.mapper.HouseholdContractMapper;
import com.yeejoin.amos.boot.module.hygf.api.mapper.PowerStationEngineeringInfoMapper;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -134,6 +136,9 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc ...@@ -134,6 +136,9 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
@Resource(type = HouseholdContractMapper.class) @Resource(type = HouseholdContractMapper.class)
private HouseholdContractMapper householdContractMapper; private HouseholdContractMapper householdContractMapper;
@Resource(type = PowerStationEngineeringInfoMapper.class)
private PowerStationEngineeringInfoMapper powerStationEngineeringInfoMapper;
@Resource(type = HygfIcbcRequestMapper.class) @Resource(type = HygfIcbcRequestMapper.class)
private HygfIcbcRequestMapper hygfIcbcRequestMapper; private HygfIcbcRequestMapper hygfIcbcRequestMapper;
...@@ -424,6 +429,7 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc ...@@ -424,6 +429,7 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
peasantHouseholdList.forEach(e -> { peasantHouseholdList.forEach(e -> {
if(e.getSurveyInformationId() != null) { if(e.getSurveyInformationId() != null) {
e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo())); e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo()));
e.setRealScale(powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo(e.getPeasantHouseholdNo()));
} }
}); });
} }
......
...@@ -22,9 +22,7 @@ import com.yeejoin.amos.boot.module.hygf.api.Enum.TaskTypeStationEnum; ...@@ -22,9 +22,7 @@ import com.yeejoin.amos.boot.module.hygf.api.Enum.TaskTypeStationEnum;
import com.yeejoin.amos.boot.module.hygf.api.config.UserEmpower; import com.yeejoin.amos.boot.module.hygf.api.config.UserEmpower;
import com.yeejoin.amos.boot.module.hygf.api.dto.*; import com.yeejoin.amos.boot.module.hygf.api.dto.*;
import com.yeejoin.amos.boot.module.hygf.api.entity.*; import com.yeejoin.amos.boot.module.hygf.api.entity.*;
import com.yeejoin.amos.boot.module.hygf.api.mapper.PeasantHouseholdMapper; import com.yeejoin.amos.boot.module.hygf.api.mapper.*;
import com.yeejoin.amos.boot.module.hygf.api.mapper.PersonnelBusinessMapper;
import com.yeejoin.amos.boot.module.hygf.api.mapper.RegionalCompaniesMapper;
import com.yeejoin.amos.boot.module.hygf.api.service.IPeasantHouseholdService; import com.yeejoin.amos.boot.module.hygf.api.service.IPeasantHouseholdService;
import com.yeejoin.amos.boot.module.hygf.api.service.IWxService; import com.yeejoin.amos.boot.module.hygf.api.service.IWxService;
import com.yeejoin.amos.boot.module.hygf.api.util.NumberUtil; import com.yeejoin.amos.boot.module.hygf.api.util.NumberUtil;
...@@ -77,6 +75,10 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto ...@@ -77,6 +75,10 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
@Autowired @Autowired
PeasantHouseholdMapper peasantHouseholdMapper; PeasantHouseholdMapper peasantHouseholdMapper;
@Autowired @Autowired
HouseholdContractMapper householdContractMapper;
@Autowired
PowerStationEngineeringInfoMapper powerStationEngineeringInfoMapper;
@Autowired
SurveyInformationServiceImpl surveyInformationServiceImpl; SurveyInformationServiceImpl surveyInformationServiceImpl;
@Autowired @Autowired
HouseholdContractServiceImpl householdContractServiceImpl; HouseholdContractServiceImpl householdContractServiceImpl;
...@@ -274,8 +276,9 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto ...@@ -274,8 +276,9 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
if(newRecords != null && newRecords.size() > 0) { if(newRecords != null && newRecords.size() > 0) {
newRecords.forEach(e -> { newRecords.forEach(e -> {
if(e.getSurveyInformationId() != null) { if(e.getPeasantHouseholdNo() != null) {
e.setScale(peasantHouseholdMapper.getHygfCommercialScale(e.getSurveyInformationId())); e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo()));
e.setRealScale(powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo(e.getPeasantHouseholdNo()));
} }
}); });
...@@ -929,8 +932,9 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto ...@@ -929,8 +932,9 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
if(peasantHouseholdIPage.getRecords() != null && peasantHouseholdIPage.getRecords().size() > 0) { if(peasantHouseholdIPage.getRecords() != null && peasantHouseholdIPage.getRecords().size() > 0) {
peasantHouseholdIPage.getRecords().forEach(e -> { peasantHouseholdIPage.getRecords().forEach(e -> {
if(e.getSurveyInformationId() != null) { if(e.getPeasantHouseholdNo() != null) {
e.setScale(peasantHouseholdMapper.getHygfCommercialScale(e.getSurveyInformationId())); e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo()));
e.setRealScale(powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo(e.getPeasantHouseholdNo()));
} }
}); });
......
...@@ -61,6 +61,8 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS ...@@ -61,6 +61,8 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
DesignInformationMapper designInformationMapper; DesignInformationMapper designInformationMapper;
@Autowired @Autowired
DesignInformationServiceImpl designInformationService; DesignInformationServiceImpl designInformationService;
@Autowired
PowerStationEngineeringInfoMapper powerStationEngineeringInfoMapper;
@Autowired @Autowired
PeasantHouseholdServiceImpl peasantHouseholdService; PeasantHouseholdServiceImpl peasantHouseholdService;
...@@ -126,6 +128,7 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS ...@@ -126,6 +128,7 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
powerStationDtoPage.getRecords().forEach(e -> { powerStationDtoPage.getRecords().forEach(e -> {
if(e.getPowerStationCode() != null) { if(e.getPowerStationCode() != null) {
e.setScale(householdContractMapper.getHygfCommercialScale(e.getPowerStationCode())); e.setScale(householdContractMapper.getHygfCommercialScale(e.getPowerStationCode()));
e.setRealScale(powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo(e.getPowerStationCode()));
} }
}); });
......
...@@ -78,6 +78,8 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn ...@@ -78,6 +78,8 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
@Autowired @Autowired
PeasantHouseholdMapper peasantHouseholdMapper; PeasantHouseholdMapper peasantHouseholdMapper;
@Autowired @Autowired
PowerStationEngineeringInfoMapper powerStationEngineeringInfoMapper;
@Autowired
HouseholdContractMapper householdContractMapper; HouseholdContractMapper householdContractMapper;
@Autowired @Autowired
CommerceInfoMapper commerceInfoMapper; CommerceInfoMapper commerceInfoMapper;
...@@ -1086,6 +1088,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn ...@@ -1086,6 +1088,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
list.forEach(e -> { list.forEach(e -> {
if(e.getPeasantHouseholdNo() != null) { if(e.getPeasantHouseholdNo() != null) {
e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo())); e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo()));
e.setRealScale(powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo(e.getPeasantHouseholdNo()));
} }
}); });
} }
......
...@@ -314,6 +314,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W ...@@ -314,6 +314,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
list.forEach(e -> { list.forEach(e -> {
if(e.getPeasantHouseholdNo() != null) { if(e.getPeasantHouseholdNo() != null) {
e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo())); e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo()));
e.setRealScale(powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo(e.getPeasantHouseholdNo()));
} }
}); });
} }
...@@ -532,6 +533,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W ...@@ -532,6 +533,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
list.forEach(e -> { list.forEach(e -> {
if(e.getPeasantHouseholdNo() != null) { if(e.getPeasantHouseholdNo() != null) {
e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo())); e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo()));
e.setRealScale(powerStationEngineeringInfoMapper.getRealScaleByPeasantHouseholdNo(e.getPeasantHouseholdNo()));
} }
}); });
......
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