Commit 6be1d267 authored by 朱晨阳's avatar 朱晨阳

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

parents d7eab8e8 09d2e346
...@@ -29,7 +29,7 @@ public interface PeasantHouseholdMapper extends BaseMapper<PeasantHousehold> { ...@@ -29,7 +29,7 @@ public interface PeasantHouseholdMapper extends BaseMapper<PeasantHousehold> {
); );
@UserEmpower(field={},dealerField={"developer_code","regional_companies_code","developer_user_id"} ,fieldConditions ={"eq","in","eq"} ,relationship="and") @UserEmpower(field={},dealerField={"developer_code","regional_companies_code","developer_user_id"} ,fieldConditions ={"eq","in","eq"} ,relationship="and")
List<PeasantHousehold> queryForPage( String developerCode,String ownersName,Long developerId,Integer isCertified,String preparationMoneyState); List<PeasantHousehold> queryForPage( String developerCode,String ownersName,Long developerId,Integer isCertified,String preparationMoneyState, String peasantHouseholdNo);
List<Map<String,Object>> selectUserIsHouse(String telephone); List<Map<String,Object>> selectUserIsHouse(String telephone);
......
...@@ -68,6 +68,9 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb ...@@ -68,6 +68,9 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
<if test="developerCode!=null and developerCode !=''"> <if test="developerCode!=null and developerCode !=''">
and developer_code = #{developerCode} and developer_code = #{developerCode}
</if> </if>
<if test="peasantHouseholdNo!=null and peasantHouseholdNo !=''">
and peasant_household_no = #{peasantHouseholdNo}
</if>
ORDER BY creation_time DESC ORDER BY creation_time DESC
</select> </select>
<select id="selectUserIsHouse" resultType="java.util.Map"> <select id="selectUserIsHouse" resultType="java.util.Map">
......
...@@ -66,11 +66,6 @@ ...@@ -66,11 +66,6 @@
LEFT JOIN hygf_peasant_household on hygf_peasant_household.sequence_nbr=hygf_work_order_power_station.peasant_household_id LEFT JOIN hygf_peasant_household on hygf_peasant_household.sequence_nbr=hygf_work_order_power_station.peasant_household_id
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 hygf_power_station_engineering_info on hygf_power_station_engineering_info.work_order_power_station_id=hygf_work_order_power_station.sequence_nbr
ORDER BY
FIELD(hygf_work_order_power_station.power_station_construction_status, '待登记', '待审核', '已完成'),
hygf_power_station_engineering_info.completion_date DESC
<where> <where>
<if test="dto.workOrderId!=null and dto.workOrderId!=''"> <if test="dto.workOrderId!=null and dto.workOrderId!=''">
...@@ -115,9 +110,10 @@ ...@@ -115,9 +110,10 @@
</if> </if>
ORDER BY ORDER BY
FIELD(hygf_work_order_power_station.power_station_construction_status, '待施工', '施工中', '待登记', '登记中', '待审核', '审核中', '未通过', '已完工'), hygf_power_station_engineering_info.completion_date DESC,
FIELD(hygf_work_order_power_station.power_station_construction_status, '待施工', '施工中', '待登记', '登记中', '待审核', '审核中', '未通过', '已完工')
hygf_work_order_power_station.rec_date DESC
</where> </where>
</select> </select>
......
...@@ -209,7 +209,8 @@ public class PeasantHouseholdController extends BaseController { ...@@ -209,7 +209,8 @@ public class PeasantHouseholdController extends BaseController {
@RequestParam(value = "size") int size, @RequestParam(value = "size") int size,
@RequestParam(value = "ownersName",required = false)String ownersName, @RequestParam(value = "ownersName",required = false)String ownersName,
@RequestParam(value = "preparationMoneyState",required = false)String preparationMoneyState, @RequestParam(value = "preparationMoneyState",required = false)String preparationMoneyState,
@RequestParam(value = "developerId",required = false)Long developerId) { @RequestParam(value = "developerId",required = false)Long developerId,
@RequestParam(value = "peasantHouseholdNo",required = false) String peasantHouseholdNo) {
Page<PeasantHousehold> page = new Page<PeasantHousehold>(); Page<PeasantHousehold> page = new Page<PeasantHousehold>();
page.setCurrent(current); page.setCurrent(current);
page.setSize(size); page.setSize(size);
...@@ -222,7 +223,7 @@ public class PeasantHouseholdController extends BaseController { ...@@ -222,7 +223,7 @@ public class PeasantHouseholdController extends BaseController {
// String orgCode = userUnitInformationDto.getAmosDealerOrgCode(); // String orgCode = userUnitInformationDto.getAmosDealerOrgCode();
Integer isCertified = PeasantHouseholdEnum.已认证.getCode(); Integer isCertified = PeasantHouseholdEnum.已认证.getCode();
return ResponseHelper.buildResponse(peasantHouseholdServiceImpl.queryForPeasantHouseholdPage(page, null,ownersName,developerId,isCertified,preparationMoneyState)); return ResponseHelper.buildResponse(peasantHouseholdServiceImpl.queryForPeasantHouseholdPage(page, null,ownersName,developerId,isCertified,preparationMoneyState, peasantHouseholdNo));
} }
/** /**
......
...@@ -241,11 +241,16 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina ...@@ -241,11 +241,16 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
if (!CollectionUtils.isEmpty(financingInfos)) { if (!CollectionUtils.isEmpty(financingInfos)) {
FinancingInfo financingInfo = financingInfos.get(0); FinancingInfo financingInfo = financingInfos.get(0);
financingInfo.setStatus("待推送");
financingInfo.setFinancingCompaniesCode(null); LambdaQueryWrapper<FinancingAuditing> wrapper = new LambdaQueryWrapper();
financingInfo.setFinancingCompaniesSeq(null); wrapper.eq(FinancingAuditing::getPeasantHouseholdId,financingInfo.getPeasantHouseholdId());
financingInfo.setFinancingCompaniesName(null); financingAuditingService.getBaseMapper().delete(wrapper);
this.updateById(financingInfo);
LambdaQueryWrapper<FinancingRectificationOrder> wrapper1 = new LambdaQueryWrapper();
wrapper1.eq(FinancingRectificationOrder::getPeasantHouseholdId,financingInfo.getPeasantHouseholdId());
financingRectificationOrderService.getBaseMapper().delete(wrapper1);
this.deleteBySeq(financingInfo.getSequenceNbr());
} }
} }
......
...@@ -228,12 +228,12 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto ...@@ -228,12 +228,12 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
* 分页查询 * 分页查询
*/ */
public Page<PeasantHousehold> queryForPeasantHouseholdPage(Page<PeasantHousehold> page,String developerCode, String ownersName,Long developerId, Integer isCertified,String preparationMoneyState) { public Page<PeasantHousehold> queryForPeasantHouseholdPage(Page<PeasantHousehold> page,String developerCode, String ownersName,Long developerId, Integer isCertified,String preparationMoneyState, String peasantHouseholdNo) {
int current = (int)page.getCurrent(); int current = (int)page.getCurrent();
int size = (int)page.getSize(); int size = (int)page.getSize();
PageHelper.startPage(current,size); PageHelper.startPage(current,size);
List<PeasantHousehold> records = peasantHouseholdMapper.queryForPage( developerCode,ownersName,developerId, isCertified,preparationMoneyState); List<PeasantHousehold> records = peasantHouseholdMapper.queryForPage( developerCode,ownersName,developerId, isCertified,preparationMoneyState, peasantHouseholdNo);
PageInfo<PeasantHousehold> objectPageInfo = new PageInfo<PeasantHousehold>(records); PageInfo<PeasantHousehold> objectPageInfo = new PageInfo<PeasantHousehold>(records);
......
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