Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
754577e3
Commit
754577e3
authored
Jan 26, 2024
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选择电站回显
parent
4a4f52a6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
11 deletions
+26
-11
PeasantHouseholdMapper.java
...s/boot/module/hygf/api/mapper/PeasantHouseholdMapper.java
+5
-2
PeasantHouseholdMapper.xml
...rc/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
+8
-0
UnitInfoController.java
...s/boot/module/hygf/biz/controller/UnitInfoController.java
+7
-5
UnitInfoServiceImpl.java
...oot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
+6
-4
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/PeasantHouseholdMapper.java
View file @
754577e3
...
@@ -16,11 +16,14 @@ public interface PeasantHouseholdMapper extends BaseMapper<PeasantHousehold> {
...
@@ -16,11 +16,14 @@ public interface PeasantHouseholdMapper extends BaseMapper<PeasantHousehold> {
List
<
PeasantHousehold
>
selectPeasantHouseholdList
(
@Param
(
"developerId"
)
Long
developerId
,
List
<
PeasantHousehold
>
selectPeasantHouseholdList
(
@Param
(
"developerId"
)
Long
developerId
,
@Param
(
"regionalCompaniesSeq"
)
Long
regionalCompaniesSeq
,
@Param
(
"regionalCompaniesSeq"
)
Long
regionalCompaniesSeq
,
@Param
(
"peasantHouseholdNo"
)
String
peasantHouseholdNo
,
@Param
(
"peasantHouseholdNo"
)
String
peasantHouseholdNo
,
@Param
(
"ownersName"
)
String
ownersName
@Param
(
"ownersName"
)
String
ownersName
,
@Param
(
"ids"
)
String
ids
);
);
List
<
PeasantHousehold
>
selectPeasantHouseholdListsg
(
@Param
(
"developerId"
)
Long
developerId
,
List
<
PeasantHousehold
>
selectPeasantHouseholdListsg
(
@Param
(
"developerId"
)
Long
developerId
,
@Param
(
"regionalCompaniesSeq"
)
Long
regionalCompaniesSeq
,
@Param
(
"regionalCompaniesSeq"
)
Long
regionalCompaniesSeq
,
@Param
(
"peasantHouseholdNo"
)
String
peasantHouseholdNo
,
@Param
(
"peasantHouseholdNo"
)
String
peasantHouseholdNo
,
@Param
(
"ownersName"
)
String
ownersName
@Param
(
"ownersName"
)
String
ownersName
,
@Param
(
"ids"
)
String
ids
);
);
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
View file @
754577e3
...
@@ -12,6 +12,10 @@ and hygf_peasant_household.regional_companies_seq=#{regionalCompaniesSeq}
...
@@ -12,6 +12,10 @@ and hygf_peasant_household.regional_companies_seq=#{regionalCompaniesSeq}
and hygf_peasant_household.survey_or_not=3 and hygf_peasant_household.sequence_nbr not in
and hygf_peasant_household.survey_or_not=3 and hygf_peasant_household.sequence_nbr not in
(select hygf_document_station.station_id from hygf_preparation_money LEFT JOIN hygf_document_station
(select hygf_document_station.station_id from hygf_preparation_money LEFT JOIN hygf_document_station
on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nbr where hygf_preparation_money.delivery_state !='已作废'
on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nbr where hygf_preparation_money.delivery_state !='已作废'
<if
test=
"ids!=null and ids !=''"
>
and hygf_document_station.preparation_money_id !=#{ids}
</if>
and hygf_document_station.station_id is not null
and hygf_document_station.station_id is not null
)
)
<if
test=
"peasantHouseholdNo!=null and peasantHouseholdNo !=''"
>
<if
test=
"peasantHouseholdNo!=null and peasantHouseholdNo !=''"
>
...
@@ -34,6 +38,10 @@ and hygf_document_station.station_id is not null
...
@@ -34,6 +38,10 @@ and hygf_document_station.station_id is not null
and hygf_peasant_household.regional_companies_seq=#{regionalCompaniesSeq}
and hygf_peasant_household.regional_companies_seq=#{regionalCompaniesSeq}
and hygf_peasant_household.sequence_nbr not in (
and hygf_peasant_household.sequence_nbr not in (
select hygf_work_order_power_station.peasant_household_id from hygf_work_order_power_station
select hygf_work_order_power_station.peasant_household_id from hygf_work_order_power_station
where 1=1
<if
test=
"ids!=null and ids !=''"
>
and hygf_work_order_power_station.work_order_id !=#{ids}
</if>
)
)
<if
test=
"peasantHouseholdNo!=null and peasantHouseholdNo !=''"
>
<if
test=
"peasantHouseholdNo!=null and peasantHouseholdNo !=''"
>
and hygf_peasant_household.peasant_household_no like concat(concat("%",#{peasantHouseholdNo}),"%")
and hygf_peasant_household.peasant_household_no like concat(concat("%",#{peasantHouseholdNo}),"%")
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/UnitInfoController.java
View file @
754577e3
...
@@ -739,7 +739,7 @@ public class UnitInfoController extends BaseController {
...
@@ -739,7 +739,7 @@ public class UnitInfoController extends BaseController {
)
{
)
{
UnitInfo
unitInfo
=
unitInfoMapper
.
selectById
(
unitInfoId
);
UnitInfo
unitInfo
=
unitInfoMapper
.
selectById
(
unitInfoId
);
List
<
PeasantHousehold
>
list
=
peasantHouseholdMapper
.
selectPeasantHouseholdList
(
unitInfo
.
getAmosCompanySeq
(),
regionalCompaniesSeq
,
null
,
null
);
List
<
PeasantHousehold
>
list
=
peasantHouseholdMapper
.
selectPeasantHouseholdList
(
unitInfo
.
getAmosCompanySeq
(),
regionalCompaniesSeq
,
null
,
null
,
null
);
List
<
Map
<
String
,
Object
>>
date
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
date
=
new
ArrayList
<>();
if
(
list
!=
null
){
if
(
list
!=
null
){
...
@@ -763,10 +763,11 @@ public class UnitInfoController extends BaseController {
...
@@ -763,10 +763,11 @@ public class UnitInfoController extends BaseController {
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
required
=
false
)
String
peasantHouseholdNo
,
@RequestParam
(
required
=
false
)
String
peasantHouseholdNo
,
@RequestParam
(
required
=
false
)
String
ownersName
@RequestParam
(
required
=
false
)
String
ownersName
,
@RequestParam
(
required
=
false
)
String
ids
)
{
)
{
return
ResponseHelper
.
buildResponse
(
unitInfoServiceImpl
.
getPeasantHouseholdData
(
unitInfoId
,
regionalCompaniesSeq
,
current
,
size
,
peasantHouseholdNo
,
ownersName
));
return
ResponseHelper
.
buildResponse
(
unitInfoServiceImpl
.
getPeasantHouseholdData
(
unitInfoId
,
regionalCompaniesSeq
,
current
,
size
,
peasantHouseholdNo
,
ownersName
,
ids
));
}
}
...
@@ -829,11 +830,12 @@ public ResponseModel< List<Map<String,Object>> > getRegionalCompanieByuser(
...
@@ -829,11 +830,12 @@ public ResponseModel< List<Map<String,Object>> > getRegionalCompanieByuser(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
required
=
false
)
String
peasantHouseholdNo
,
@RequestParam
(
required
=
false
)
String
peasantHouseholdNo
,
@RequestParam
(
required
=
false
)
String
ownersName
@RequestParam
(
required
=
false
)
String
ownersName
,
@RequestParam
(
required
=
false
)
String
ids
)
{
)
{
UserUnitInformationDto
userUnitInformationDto
=
personnelBusinessMapper
.
getUserUnitInformationDto
(
getUserInfo
().
getUserId
());
UserUnitInformationDto
userUnitInformationDto
=
personnelBusinessMapper
.
getUserUnitInformationDto
(
getUserInfo
().
getUserId
());
return
ResponseHelper
.
buildResponse
(
unitInfoServiceImpl
.
selectPeasantHouseholdListsg
(
userUnitInformationDto
.
getAmosDealerId
(),
regionalCompaniesSeq
,
current
,
size
,
peasantHouseholdNo
,
ownersName
));
return
ResponseHelper
.
buildResponse
(
unitInfoServiceImpl
.
selectPeasantHouseholdListsg
(
userUnitInformationDto
.
getAmosDealerId
(),
regionalCompaniesSeq
,
current
,
size
,
peasantHouseholdNo
,
ownersName
,
ids
));
}
}
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
View file @
754577e3
...
@@ -815,10 +815,11 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
...
@@ -815,10 +815,11 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
int
pageNum
,
int
pageNum
,
int
pageSize
,
int
pageSize
,
String
peasantHouseholdNo
,
String
peasantHouseholdNo
,
String
ownersName
){
String
ownersName
,
String
ids
){
PageHelper
.
startPage
(
pageNum
,
pageSize
);
PageHelper
.
startPage
(
pageNum
,
pageSize
);
UnitInfo
unitInfo
=
unitInfoMapper
.
selectById
(
unitInfoId
);
UnitInfo
unitInfo
=
unitInfoMapper
.
selectById
(
unitInfoId
);
List
<
PeasantHousehold
>
list
=
peasantHouseholdMapper
.
selectPeasantHouseholdList
(
unitInfo
.
getAmosCompanySeq
(),
regionalCompaniesSeq
,
peasantHouseholdNo
,
ownersName
);
List
<
PeasantHousehold
>
list
=
peasantHouseholdMapper
.
selectPeasantHouseholdList
(
unitInfo
.
getAmosCompanySeq
(),
regionalCompaniesSeq
,
peasantHouseholdNo
,
ownersName
,
ids
);
PageInfo
<
PeasantHousehold
>
page
=
new
PageInfo
(
list
);
PageInfo
<
PeasantHousehold
>
page
=
new
PageInfo
(
list
);
Page
<
PeasantHousehold
>
pagenew
=
new
Page
<
PeasantHousehold
>();
Page
<
PeasantHousehold
>
pagenew
=
new
Page
<
PeasantHousehold
>();
pagenew
.
setCurrent
(
pageNum
);
pagenew
.
setCurrent
(
pageNum
);
...
@@ -832,9 +833,10 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
...
@@ -832,9 +833,10 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
int
pageNum
,
int
pageNum
,
int
pageSize
,
int
pageSize
,
String
peasantHouseholdNo
,
String
peasantHouseholdNo
,
String
ownersName
){
String
ownersName
,
String
ids
){
PageHelper
.
startPage
(
pageNum
,
pageSize
);
PageHelper
.
startPage
(
pageNum
,
pageSize
);
List
<
PeasantHousehold
>
list
=
peasantHouseholdMapper
.
selectPeasantHouseholdListsg
(
unitInfoId
,
regionalCompaniesSeq
,
peasantHouseholdNo
,
ownersName
);
List
<
PeasantHousehold
>
list
=
peasantHouseholdMapper
.
selectPeasantHouseholdListsg
(
unitInfoId
,
regionalCompaniesSeq
,
peasantHouseholdNo
,
ownersName
,
ids
);
PageInfo
<
PeasantHousehold
>
page
=
new
PageInfo
(
list
);
PageInfo
<
PeasantHousehold
>
page
=
new
PageInfo
(
list
);
Page
<
PeasantHousehold
>
pagenew
=
new
Page
<
PeasantHousehold
>();
Page
<
PeasantHousehold
>
pagenew
=
new
Page
<
PeasantHousehold
>();
pagenew
.
setCurrent
(
pageNum
);
pagenew
.
setCurrent
(
pageNum
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment