Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
1636c9f4
Commit
1636c9f4
authored
Nov 11, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电站管理列表接口修改
parent
5c18bd22
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
PowerStationMapper.java
.../amos/boot/module/hygf/api/mapper/PowerStationMapper.java
+2
-1
PowerStationMapper.xml
...pi/src/main/resources/mapper/mysql/PowerStationMapper.xml
+3
-0
PowerStationController.java
...ot/module/hygf/biz/controller/PowerStationController.java
+3
-2
PowerStationServiceImpl.java
...module/hygf/biz/service/impl/PowerStationServiceImpl.java
+4
-4
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/PowerStationMapper.java
View file @
1636c9f4
...
@@ -22,7 +22,8 @@ public interface PowerStationMapper extends BaseMapper<PowerStation> {
...
@@ -22,7 +22,8 @@ public interface PowerStationMapper extends BaseMapper<PowerStation> {
@Param
(
"ownersName"
)
String
ownersName
,
@Param
(
"serviceAgent"
)
String
serviceAgent
,
@Param
(
"ownersName"
)
String
ownersName
,
@Param
(
"serviceAgent"
)
String
serviceAgent
,
@Param
(
"regionalCompaniesName"
)
String
regionalCompaniesName
,
@Param
(
"processStatus"
)
String
processStatus
,
@Param
(
"regionalCompaniesName"
)
String
regionalCompaniesName
,
@Param
(
"processStatus"
)
String
processStatus
,
@Param
(
"province"
)
String
province
,
@Param
(
"province"
)
String
province
,
@Param
(
"projectAddress"
)
String
projectAddress
);
@Param
(
"projectAddress"
)
String
projectAddress
,
@Param
(
"status"
)
String
status
);
String
getInstanceIdByhouseId
(
String
peasantHouseholdId
);
String
getInstanceIdByhouseId
(
String
peasantHouseholdId
);
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PowerStationMapper.xml
View file @
1636c9f4
...
@@ -82,6 +82,9 @@
...
@@ -82,6 +82,9 @@
<if
test=
"province != null and province != ''"
>
<if
test=
"province != null and province != ''"
>
AND ph.project_address_name LIKE CONCAT('%', #{province}, '%')
AND ph.project_address_name LIKE CONCAT('%', #{province}, '%')
</if>
</if>
<if
test=
"status != null and status != ''"
>
AND lc.status = #{status}
</if>
ORDER BY ps.rec_date DESC
ORDER BY ps.rec_date DESC
</select>
</select>
<select
id=
"getInstanceIdByhouseId"
resultType=
"java.lang.String"
>
<select
id=
"getInstanceIdByhouseId"
resultType=
"java.lang.String"
>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/PowerStationController.java
View file @
1636c9f4
...
@@ -106,12 +106,13 @@ public class PowerStationController extends BaseController {
...
@@ -106,12 +106,13 @@ public class PowerStationController extends BaseController {
@RequestParam
(
value
=
"processStatus"
,
required
=
false
)
String
processStatus
,
@RequestParam
(
value
=
"processStatus"
,
required
=
false
)
String
processStatus
,
@RequestParam
(
value
=
"regionalCompaniesName"
,
required
=
false
)
String
regionalCompaniesName
,
@RequestParam
(
value
=
"regionalCompaniesName"
,
required
=
false
)
String
regionalCompaniesName
,
@RequestParam
(
value
=
"province"
,
required
=
false
)
String
province
,
@RequestParam
(
value
=
"province"
,
required
=
false
)
String
province
,
@RequestParam
(
value
=
"projectAddress"
,
required
=
false
)
String
projectAddress
)
{
@RequestParam
(
value
=
"projectAddress"
,
required
=
false
)
String
projectAddress
,
@RequestParam
(
value
=
"status"
,
required
=
false
)
String
status
)
{
Page
<
PowerStationDto
>
page
=
new
Page
<
PowerStationDto
>();
Page
<
PowerStationDto
>
page
=
new
Page
<
PowerStationDto
>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
AgencyUserModel
userInfo
=
getUserInfo
();
AgencyUserModel
userInfo
=
getUserInfo
();
return
ResponseHelper
.
buildResponse
(
powerStationServiceImpl
.
queryForPowerStationUserRoles
(
page
,
powerStationCode
,
ownersName
,
userInfo
,
serviceAgent
,
regionalCompaniesName
,
processStatus
,
province
,
projectAddress
));
return
ResponseHelper
.
buildResponse
(
powerStationServiceImpl
.
queryForPowerStationUserRoles
(
page
,
powerStationCode
,
ownersName
,
userInfo
,
serviceAgent
,
regionalCompaniesName
,
processStatus
,
province
,
projectAddress
,
status
));
}
}
/**
/**
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/PowerStationServiceImpl.java
View file @
1636c9f4
...
@@ -98,7 +98,7 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
...
@@ -98,7 +98,7 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
private
RedisLockUtil
redisLockUtil
;
private
RedisLockUtil
redisLockUtil
;
public
Page
<
PowerStationDto
>
queryForPowerStationUserRoles
(
Page
<
PowerStationDto
>
page
,
String
powerStationCode
,
public
Page
<
PowerStationDto
>
queryForPowerStationUserRoles
(
Page
<
PowerStationDto
>
page
,
String
powerStationCode
,
String
ownersName
,
AgencyUserModel
userInfo
,
String
serviceAgent
,
String
regionalCompaniesName
,
String
processStatus
,
String
province
,
String
projectAddress
)
{
String
ownersName
,
AgencyUserModel
userInfo
,
String
serviceAgent
,
String
regionalCompaniesName
,
String
processStatus
,
String
province
,
String
projectAddress
,
String
status
)
{
// Map<Long, List<RoleModel>> orgRoles = userInfo.getOrgRoles();
// Map<Long, List<RoleModel>> orgRoles = userInfo.getOrgRoles();
// Collection<List<RoleModel>> roleModels = orgRoles.values();
// Collection<List<RoleModel>> roleModels = orgRoles.values();
// if(roleModels !=null){
// if(roleModels !=null){
...
@@ -124,7 +124,7 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
...
@@ -124,7 +124,7 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
// this.queryForPowerStationPage(page,powerStationCode,ownersName,serviceAgent);
// this.queryForPowerStationPage(page,powerStationCode,ownersName,serviceAgent);
Page
<
PowerStationDto
>
powerStationDtoPage
=
this
.
queryPage
((
int
)
page
.
getCurrent
(),
(
int
)
page
.
getSize
(),
powerStationCode
,
ownersName
,
Page
<
PowerStationDto
>
powerStationDtoPage
=
this
.
queryPage
((
int
)
page
.
getCurrent
(),
(
int
)
page
.
getSize
(),
powerStationCode
,
ownersName
,
serviceAgent
,
regionalCompaniesName
,
processStatus
,
province
,
projectAddress
);
serviceAgent
,
regionalCompaniesName
,
processStatus
,
province
,
projectAddress
,
status
);
// if(powerStationDtoPage.getRecords() != null && powerStationDtoPage.getRecords().size() > 0) {
// if(powerStationDtoPage.getRecords() != null && powerStationDtoPage.getRecords().size() > 0) {
// powerStationDtoPage.getRecords().forEach(e -> {
// powerStationDtoPage.getRecords().forEach(e -> {
...
@@ -170,10 +170,10 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
...
@@ -170,10 +170,10 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
// 查询电站审核记录
// 查询电站审核记录
public
Page
<
PowerStationDto
>
queryPage
(
int
current
,
int
size
,
String
powerStationCode
,
String
ownersName
,
public
Page
<
PowerStationDto
>
queryPage
(
int
current
,
int
size
,
String
powerStationCode
,
String
ownersName
,
String
serviceAgent
,
String
regionalCompaniesName
,
String
processStatus
,
String
province
,
String
projectAddress
)
{
String
serviceAgent
,
String
regionalCompaniesName
,
String
processStatus
,
String
province
,
String
projectAddress
,
String
status
)
{
PageHelper
.
startPage
(
current
,
size
);
PageHelper
.
startPage
(
current
,
size
);
List
<
PowerStationDto
>
list
=
powerStationMapper
.
queryPage
(
powerStationCode
,
ownersName
,
serviceAgent
,
regionalCompaniesName
,
processStatus
,
province
,
projectAddress
);
List
<
PowerStationDto
>
list
=
powerStationMapper
.
queryPage
(
powerStationCode
,
ownersName
,
serviceAgent
,
regionalCompaniesName
,
processStatus
,
province
,
projectAddress
,
status
);
PageInfo
<
PowerStationDto
>
pages
=
new
PageInfo
(
list
);
PageInfo
<
PowerStationDto
>
pages
=
new
PageInfo
(
list
);
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
PowerStationDto
>
pagenew
=
new
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
PowerStationDto
>();
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
PowerStationDto
>
pagenew
=
new
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
PowerStationDto
>();
...
...
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