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

接口参数修改

parent 678f7b07
...@@ -23,6 +23,12 @@ public class WorkOrderPage { ...@@ -23,6 +23,12 @@ public class WorkOrderPage {
@ApiModelProperty(value = "农户信息编号") @ApiModelProperty(value = "农户信息编号")
private String peasantHouseholdNo; private String peasantHouseholdNo;
@ApiModelProperty(value = "开发商")
private String developerName;
@ApiModelProperty(value = "区域公司")
private String regionalCompaniesName;
@ApiModelProperty(value = "派工单编号") @ApiModelProperty(value = "派工单编号")
private String workOrderNum; private String workOrderNum;
......
...@@ -47,6 +47,12 @@ ...@@ -47,6 +47,12 @@
<if test="map.amosDealerId!=null and map.amosDealerId!=''"> <if test="map.amosDealerId!=null and map.amosDealerId!=''">
and hygf_work_order.amos_dealer_id = #{map.amosDealerId} and hygf_work_order.amos_dealer_id = #{map.amosDealerId}
</if> </if>
<if test="map.developerName!=null and map.developerName!=''">
and hph.developer_name like concat('%',#{map.developerName},'%')
</if>
<if test="map.regionalCompaniesName!=null and map.regionalCompaniesName!=''">
and hph.regional_companies_name like concat('%',#{map.regionalCompaniesName},'%')
</if>
<if test="map.regionCompanyId!=null and map.regionCompanyId!=''"> <if test="map.regionCompanyId!=null and map.regionCompanyId!=''">
and hygf_work_order.region_company_id =#{map.regionCompanyId} and hygf_work_order.region_company_id =#{map.regionCompanyId}
</if> </if>
......
...@@ -61,6 +61,12 @@ ...@@ -61,6 +61,12 @@
<if test="map.powerStationCode!=null and map.powerStationCode!=''"> <if test="map.powerStationCode!=null and map.powerStationCode!=''">
and hph.peasant_household_no like concat('%',#{map.powerStationCode},'%') and hph.peasant_household_no like concat('%',#{map.powerStationCode},'%')
</if> </if>
<if test="map.developerName!=null and map.developerName!=''">
and hph.developer_name like concat('%',#{map.developerName},'%')
</if>
<if test="map.regionalCompaniesName!=null and map.regionalCompaniesName!=''">
and hph.regional_companies_name like concat('%',#{map.regionalCompaniesName},'%')
</if>
<if test="map.formType != null and map.formType!=''"> <if test="map.formType != null and map.formType!=''">
AND hbga.grid_status IN ('2', '3', '4') AND hbga.grid_status IN ('2', '3', '4')
</if> </if>
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
CONCAT(info.disbursement_money,'') as disbursementMoney, CONCAT(info.disbursement_money,'') as disbursementMoney,
hph.regional_companies_code, hph.regional_companies_code,
hph.developer_code, hph.developer_code,
hph.developer_name developerName,
hph.is_history isHistory, hph.is_history isHistory,
info.financing_companies_name financingCompaniesName info.financing_companies_name financingCompaniesName
FROM FROM
...@@ -29,6 +30,15 @@ ...@@ -29,6 +30,15 @@
<if test="params.ownersName != null and params.ownersName !=''"> <if test="params.ownersName != null and params.ownersName !=''">
and hph.owners_name like concat('%',#{params.ownersName},'%') and hph.owners_name like concat('%',#{params.ownersName},'%')
</if> </if>
<if test="params.peasantHouseholdNo != null and params.peasantHouseholdNo !=''">
and hph.peasant_household_no like concat('%',#{params.peasantHouseholdNo},'%')
</if>
<if test="params.developerName != null and params.developerName !=''">
and hph.developer_name like concat('%',#{params.developerName},'%')
</if>
<if test="params.financingCompaniesName != null and params.financingCompaniesName !=''">
and info.financing_companies_name like concat('%',#{params.financingCompaniesName},'%')
</if>
<if test="params.isHistory != null and params.isHistory !='' and params.type != 2 "> <if test="params.isHistory != null and params.isHistory !='' and params.type != 2 ">
and hph.is_history is not null and hph.is_history is not null
</if> </if>
......
...@@ -73,6 +73,8 @@ ...@@ -73,6 +73,8 @@
select select
hygf_peasant_household.sequence_nbr sequenceNbr, hygf_peasant_household.sequence_nbr sequenceNbr,
hygf_peasant_household.peasant_household_no peasantHouseholdNo, hygf_peasant_household.peasant_household_no peasantHouseholdNo,
hygf_peasant_household.developer_name developerName,
hygf_peasant_household.regional_companies_name regionalCompaniesName,
substring_index ( hygf_peasant_household.project_address_name, '/', 1 ) AS province, substring_index ( hygf_peasant_household.project_address_name, '/', 1 ) AS province,
hygf_work_order.work_order_num workOrderNum, hygf_work_order.work_order_num workOrderNum,
hygf_peasant_household.owners_name ownersName, hygf_peasant_household.owners_name ownersName,
...@@ -126,6 +128,9 @@ ...@@ -126,6 +128,9 @@
<if test="dto.peasantHouseholdNo!=null and dto.peasantHouseholdNo!=''"> <if test="dto.peasantHouseholdNo!=null and dto.peasantHouseholdNo!=''">
and hygf_peasant_household.peasant_household_no like concat(concat('%',#{dto.peasantHouseholdNo}),'%') and hygf_peasant_household.peasant_household_no like concat(concat('%',#{dto.peasantHouseholdNo}),'%')
</if> </if>
<if test="dto.constructionRegionManager!=null and dto.constructionRegionManager!=''">
and hygf_work_order.construction_region_manager like concat(concat('%',#{dto.constructionRegionManager}),'%')
</if>
<if test="dto.ownersName!=null and dto.ownersName!=''"> <if test="dto.ownersName!=null and dto.ownersName!=''">
and hygf_peasant_household.owners_name like concat(concat('%',#{dto.ownersName}),'%') and hygf_peasant_household.owners_name like concat(concat('%',#{dto.ownersName}),'%')
</if> </if>
......
...@@ -206,7 +206,9 @@ public class AcceptanceCheckController extends BaseController { ...@@ -206,7 +206,9 @@ public class AcceptanceCheckController extends BaseController {
@RequestParam(required = false,value = "acceptanceCheckStatus") String acceptanceCheckStatus, @RequestParam(required = false,value = "acceptanceCheckStatus") String acceptanceCheckStatus,
@RequestParam(required = false,value = "type") String type, @RequestParam(required = false,value = "type") String type,
@RequestParam(required = false,value = "acceptanceTime") String acceptanceTime, @RequestParam(required = false,value = "acceptanceTime") String acceptanceTime,
@RequestParam(required = false, value = "province") String province) throws Exception { @RequestParam(required = false, value = "province") String province,
@RequestParam(required = false, value = "developerName") String developerName,
@RequestParam(required = false, value = "regionalCompaniesName") String regionalCompaniesName) throws Exception {
//当前登录人所属场站 //当前登录人所属场站
// UserUnitInformationDto userUnitInformationDto=personnelBusinessMapper.getUserUnitInformationDto( getUserInfo().getUserId()); // UserUnitInformationDto userUnitInformationDto=personnelBusinessMapper.getUserUnitInformationDto( getUserInfo().getUserId());
...@@ -235,7 +237,7 @@ public class AcceptanceCheckController extends BaseController { ...@@ -235,7 +237,7 @@ public class AcceptanceCheckController extends BaseController {
basicGridNodes.add("ys-zichan"); basicGridNodes.add("ys-zichan");
} }
} }
Page<AcceptanceCheckDto> page = acceptanceCheckServiceImpl.selectPage(null,null,current, size, projectAddress, powerStationCode, ownersName, acceptanceCheckStatus, acceptanceTime, "",basicGridNodes,type,province); Page<AcceptanceCheckDto> page = acceptanceCheckServiceImpl.selectPage(null,null,current, size, projectAddress, powerStationCode, ownersName, acceptanceCheckStatus, acceptanceTime, "",basicGridNodes,type,province, developerName, regionalCompaniesName);
//根据角色及当前节点判断是否有操作权限 //根据角色及当前节点判断是否有操作权限
if (basicGridNodes != null){ if (basicGridNodes != null){
for (AcceptanceCheckDto e : page.getRecords()) { for (AcceptanceCheckDto e : page.getRecords()) {
......
...@@ -151,7 +151,9 @@ public class BasicGridAcceptanceController extends BaseController { ...@@ -151,7 +151,9 @@ public class BasicGridAcceptanceController extends BaseController {
@RequestParam(required = false, value = "gridStatus") String gridStatus, @RequestParam(required = false, value = "gridStatus") String gridStatus,
@RequestParam(required = false, value = "type") String type, @RequestParam(required = false, value = "type") String type,
@RequestParam(required = false, value = "gridConnectionTime") String gridConnectionTime, @RequestParam(required = false, value = "gridConnectionTime") String gridConnectionTime,
@RequestParam(required = false, value = "province") String province) throws Exception { @RequestParam(required = false, value = "province") String province,
@RequestParam(required = false, value = "developerName") String developerName,
@RequestParam(required = false, value = "regionalCompaniesName") String regionalCompaniesName) throws Exception {
// 当前登录人所属场站 // 当前登录人所属场站
// UserUnitInformationDto userUnitInformationDto=personnelBusinessMapper.getUserUnitInformationDto( getUserInfo().getUserId()); // UserUnitInformationDto userUnitInformationDto=personnelBusinessMapper.getUserUnitInformationDto( getUserInfo().getUserId());
...@@ -178,7 +180,7 @@ public class BasicGridAcceptanceController extends BaseController { ...@@ -178,7 +180,7 @@ public class BasicGridAcceptanceController extends BaseController {
} }
Page<BasicGridRecordDto> page = basicGridAcceptanceServiceImpl.selectPage(null, null, current, size, Page<BasicGridRecordDto> page = basicGridAcceptanceServiceImpl.selectPage(null, null, current, size,
projectAddress, powerStationCode, ownersName, gridStatus, gridConnectionTime, "", basicGridNodes, type, projectAddress, powerStationCode, ownersName, gridStatus, gridConnectionTime, "", basicGridNodes, type,
province); province, developerName, regionalCompaniesName);
// 根据角色及当前节点判断是否有操作权限 // 根据角色及当前节点判断是否有操作权限
if (basicGridNodes != null) { if (basicGridNodes != null) {
for (BasicGridRecordDto e : page.getRecords()) { for (BasicGridRecordDto e : page.getRecords()) {
...@@ -218,7 +220,7 @@ public class BasicGridAcceptanceController extends BaseController { ...@@ -218,7 +220,7 @@ public class BasicGridAcceptanceController extends BaseController {
// 当前登录人所属场站 // 当前登录人所属场站
Page<BasicGridRecordDto> page = basicGridAcceptanceServiceImpl.selectPage(null, null, current, size, Page<BasicGridRecordDto> page = basicGridAcceptanceServiceImpl.selectPage(null, null, current, size,
projectAddress, powerStationCode, ownersName, gridStatus, gridConnectionTime, "check", null, null,province); projectAddress, powerStationCode, ownersName, gridStatus, gridConnectionTime, "check", null, null,province, null, null);
return ResponseHelper.buildResponse(page); return ResponseHelper.buildResponse(page);
} }
......
...@@ -167,11 +167,14 @@ public class FinancingInfoController extends BaseController { ...@@ -167,11 +167,14 @@ public class FinancingInfoController extends BaseController {
@RequestParam(value = "batchNo" ,required = false) String batchNo , @RequestParam(value = "batchNo" ,required = false) String batchNo ,
@RequestParam(value = "isHistory" ,required = false) String isHistory , @RequestParam(value = "isHistory" ,required = false) String isHistory ,
@RequestParam(value = "ownersName",required = false) String ownersName, @RequestParam(value = "ownersName",required = false) String ownersName,
@RequestParam(value = "projectAddress",required = false) String projectAddress){ @RequestParam(value = "projectAddress",required = false) String projectAddress,
@RequestParam(value = "peasantHouseholdNo",required = false) String peasantHouseholdNo,
@RequestParam(value = "developerName",required = false) String developerName,
@RequestParam(value = "financingCompaniesName",required = false) String financingCompaniesName){
Page<Map<String, Object>> page = new Page<Map<String, Object>>(); Page<Map<String, Object>> page = new Page<Map<String, Object>>();
page.setCurrent(current); page.setCurrent(current);
page.setSize(size); page.setSize(size);
return ResponseHelper.buildResponse(financingInfoServiceImpl.queryForFinancingInfoPage(page,type,status,regionalCompaniesCode,ownersName, region,batchNo,isHistory, projectAddress)); return ResponseHelper.buildResponse(financingInfoServiceImpl.queryForFinancingInfoPage(page,type,status,regionalCompaniesCode,ownersName, region,batchNo,isHistory, projectAddress, peasantHouseholdNo, developerName, financingCompaniesName));
} }
/** /**
......
...@@ -70,7 +70,7 @@ public class AcceptanceCheckServiceImpl extends BaseService<AcceptanceCheckDto,A ...@@ -70,7 +70,7 @@ public class AcceptanceCheckServiceImpl extends BaseService<AcceptanceCheckDto,A
public Page<AcceptanceCheckDto> selectPage(Long regionCompanyId, Long amosDealerId, int current, int size, public Page<AcceptanceCheckDto> selectPage(Long regionCompanyId, Long amosDealerId, int current, int size,
String projectAddress, String powerStationCode, String ownersName, String acceptanceCheckStatus, String projectAddress, String powerStationCode, String ownersName, String acceptanceCheckStatus,
String gridConnectionTime, String formType, List<String> basicGridNodes, String type,String province) throws Exception { String gridConnectionTime, String formType, List<String> basicGridNodes, String type,String province, String developerName, String regionalCompaniesName) throws Exception {
PageHelper.startPage(current, size); PageHelper.startPage(current, size);
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
Date date = null; Date date = null;
...@@ -88,6 +88,8 @@ public class AcceptanceCheckServiceImpl extends BaseService<AcceptanceCheckDto,A ...@@ -88,6 +88,8 @@ public class AcceptanceCheckServiceImpl extends BaseService<AcceptanceCheckDto,A
map.put("basicGridNodes",basicGridNodes); map.put("basicGridNodes",basicGridNodes);
map.put("type",type); map.put("type",type);
map.put("province",province); map.put("province",province);
map.put("developerName", developerName);
map.put("regionalCompaniesName", regionalCompaniesName);
List<AcceptanceCheckDto> list = acceptanceCheckMapper.selectPageList(map); List<AcceptanceCheckDto> list = acceptanceCheckMapper.selectPageList(map);
if(list != null && list.size() > 0) { if(list != null && list.size() > 0) {
......
...@@ -100,7 +100,7 @@ public class BasicGridAcceptanceServiceImpl extends BaseService<BasicGridAccepta ...@@ -100,7 +100,7 @@ public class BasicGridAcceptanceServiceImpl extends BaseService<BasicGridAccepta
public Page<BasicGridRecordDto> selectPage(Long regionCompanyId, Long amosDealerId, int current, int size, public Page<BasicGridRecordDto> selectPage(Long regionCompanyId, Long amosDealerId, int current, int size,
String projectAddress, String powerStationCode, String ownersName, String gridStatus, String projectAddress, String powerStationCode, String ownersName, String gridStatus,
String gridConnectionTime, String formType, List<String> basicGridNodes, String type, String province) String gridConnectionTime, String formType, List<String> basicGridNodes, String type, String province, String developerName, String regionalCompaniesName)
throws Exception { throws Exception {
PageHelper.startPage(current, size); PageHelper.startPage(current, size);
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
...@@ -119,6 +119,8 @@ public class BasicGridAcceptanceServiceImpl extends BaseService<BasicGridAccepta ...@@ -119,6 +119,8 @@ public class BasicGridAcceptanceServiceImpl extends BaseService<BasicGridAccepta
map.put("basicGridNodes", basicGridNodes); map.put("basicGridNodes", basicGridNodes);
map.put("type", type); map.put("type", type);
map.put("province", province); map.put("province", province);
map.put("developerName", developerName);
map.put("regionalCompaniesName", regionalCompaniesName);
List<BasicGridRecordDto> list = basicGridAcceptanceMapper.selectPageList(map); List<BasicGridRecordDto> list = basicGridAcceptanceMapper.selectPageList(map);
PageInfo<BasicGridRecordDto> page = new PageInfo(list); PageInfo<BasicGridRecordDto> page = new PageInfo(list);
Page<BasicGridRecordDto> pageNew = new Page<>(); Page<BasicGridRecordDto> pageNew = new Page<>();
......
...@@ -87,7 +87,7 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina ...@@ -87,7 +87,7 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
private RedisLockUtil redisLockUtil; private RedisLockUtil redisLockUtil;
@UserLimits @UserLimits
public Page<Map<String, Object>> queryForFinancingInfoPage(Page<Map<String, Object>> page, String type, String status, String regionalCompaniesCode, String ownersName, String region,String batchNo,String isHistory, String projectAddress) { public Page<Map<String, Object>> queryForFinancingInfoPage(Page<Map<String, Object>> page, String type, String status, String regionalCompaniesCode, String ownersName, String region,String batchNo,String isHistory, String projectAddress, String peasantHouseholdNo, String developerName, String financingCompaniesName) {
StdUserEmpower orgCode = (StdUserEmpower) redisUtils.get("Emp_" + RedisKey.buildReginKey(RequestContext.getExeUserId(), RequestContext.getToken())); StdUserEmpower orgCode = (StdUserEmpower) redisUtils.get("Emp_" + RedisKey.buildReginKey(RequestContext.getExeUserId(), RequestContext.getToken()));
ReginParams reginParams = JSON.parseObject(redisUtils.get(RedisKey.buildReginKey(RequestContext.getExeUserId(), RequestContext.getToken())).toString(), ReginParams.class); ReginParams reginParams = JSON.parseObject(redisUtils.get(RedisKey.buildReginKey(RequestContext.getExeUserId(), RequestContext.getToken())).toString(), ReginParams.class);
List<String> amosOrgCodes = orgCode.getAmosOrgCode(); List<String> amosOrgCodes = orgCode.getAmosOrgCode();
...@@ -102,6 +102,9 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina ...@@ -102,6 +102,9 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
params.put("isHistory", isHistory); params.put("isHistory", isHistory);
params.put("region", region); params.put("region", region);
params.put("projectAddress", projectAddress); params.put("projectAddress", projectAddress);
params.put("peasantHouseholdNo", peasantHouseholdNo);
params.put("developerName", developerName);
params.put("financingCompaniesName", financingCompaniesName);
// 1 投融人员 2.融资 3经销商管理员 // 1 投融人员 2.融资 3经销商管理员
switch (type) { switch (type) {
case "1": case "1":
......
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