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
afb98290
Commit
afb98290
authored
Aug 27, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yanshou
parent
011f9c21
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
32 deletions
+37
-32
AcceptanceCheckController.java
...module/hygf/biz/controller/AcceptanceCheckController.java
+34
-32
application.properties
...module-hygf-biz/src/main/resources/application.properties
+3
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/AcceptanceCheckController.java
View file @
afb98290
...
@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
...
@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
import
com.yeejoin.amos.boot.module.hygf.api.config.UserLimits
;
import
com.yeejoin.amos.boot.module.hygf.api.config.UserLimits
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.BasicGridRecordDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.BasicGridRecordDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.HygfRectificationOrder
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.HygfRectificationOrder
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -40,6 +41,20 @@ public class AcceptanceCheckController extends BaseController {
...
@@ -40,6 +41,20 @@ public class AcceptanceCheckController extends BaseController {
@Autowired
@Autowired
AcceptanceCheckServiceImpl
acceptanceCheckServiceImpl
;
AcceptanceCheckServiceImpl
acceptanceCheckServiceImpl
;
@Value
(
"${admin.tourong.roleId}"
)
Long
tourongId
;
@Value
(
"${admin.fawu.roleId}"
)
Long
fawuId
;
@Value
(
"${admin.area.roleId}"
)
Long
areaId
;
@Value
(
"${admin.zichan.roleId}"
)
Long
zichanId
;
@Value
(
"${admin.delerKaId.roleId}"
)
Long
kaifaId
;
@Value
(
"${admin.delerAdmin.roleId}"
)
Long
delerAdminId
;
/**
/**
* 新增并网验收节点
* 新增并网验收节点
*
*
...
@@ -93,23 +108,6 @@ public class AcceptanceCheckController extends BaseController {
...
@@ -93,23 +108,6 @@ public class AcceptanceCheckController extends BaseController {
return
ResponseHelper
.
buildResponse
(
acceptanceCheckServiceImpl
.
queryBySeq
(
sequenceNbr
));
return
ResponseHelper
.
buildResponse
(
acceptanceCheckServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"并网验收节点分页查询"
,
notes
=
"并网验收节点分页查询"
)
public
ResponseModel
<
Page
<
AcceptanceCheckDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
AcceptanceCheckDto
>
page
=
new
Page
<
AcceptanceCheckDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
acceptanceCheckServiceImpl
.
queryForAcceptanceCheckPage
(
page
));
}
/**
/**
* 列表全部数据查询
* 列表全部数据查询
...
@@ -214,27 +212,31 @@ public class AcceptanceCheckController extends BaseController {
...
@@ -214,27 +212,31 @@ public class AcceptanceCheckController extends BaseController {
for
(
Long
aLong
:
reginParams
.
getUserModel
().
getOrgRoleSeqs
().
keySet
())
{
for
(
Long
aLong
:
reginParams
.
getUserModel
().
getOrgRoleSeqs
().
keySet
())
{
List
<
Long
>
longs
=
reginParams
.
getUserModel
().
getOrgRoleSeqs
().
get
(
aLong
);
List
<
Long
>
longs
=
reginParams
.
getUserModel
().
getOrgRoleSeqs
().
get
(
aLong
);
roleIds
.
addAll
(
longs
);
roleIds
.
addAll
(
longs
);
// if (longs.contains(areaId)) {
if
(
longs
.
contains
(
areaId
))
{
// basicGridNodes.add("bw-area");
basicGridNodes
.
add
(
"ys-area"
);
// }
}
// if (longs.contains(engineeringId)) {
if
(
longs
.
contains
(
tourongId
))
{
// basicGridNodes.add("bw-engineering");
basicGridNodes
.
add
(
"ys-tourong"
);
// }
}
// if (longs.contains(designId)) {
if
(
longs
.
contains
(
fawuId
))
{
// basicGridNodes.add("bw-design");
basicGridNodes
.
add
(
"ys-fawu"
);
// }
}
// if (longs.contains(delerAdminId)) {
if
(
longs
.
contains
(
zichanId
))
{
// basicGridNodes.add("bw-design");
basicGridNodes
.
add
(
"ys-zichan"
);
// basicGridNodes.add("bw-engineering");
}
// basicGridNodes.add("bw-area");
if
(
longs
.
contains
(
delerAdminId
))
{
// }
basicGridNodes
.
add
(
"ys-tourong"
);
basicGridNodes
.
add
(
"ys-area"
);
basicGridNodes
.
add
(
"ys-fawu"
);
basicGridNodes
.
add
(
"ys-zichan"
);
}
}
}
Page
<
AcceptanceCheckDto
>
page
=
acceptanceCheckServiceImpl
.
selectPage
(
null
,
null
,
current
,
size
,
projectAddress
,
powerStationCode
,
ownersName
,
gridStatus
,
gridConnectionTime
,
""
,
basicGridNodes
,
type
);
Page
<
AcceptanceCheckDto
>
page
=
acceptanceCheckServiceImpl
.
selectPage
(
null
,
null
,
current
,
size
,
projectAddress
,
powerStationCode
,
ownersName
,
gridStatus
,
gridConnectionTime
,
""
,
basicGridNodes
,
type
);
//根据角色及当前节点判断是否有操作权限
//根据角色及当前节点判断是否有操作权限
if
(
basicGridNodes
!=
null
){
if
(
basicGridNodes
!=
null
){
for
(
AcceptanceCheckDto
e
:
page
.
getRecords
())
{
for
(
AcceptanceCheckDto
e
:
page
.
getRecords
())
{
for
(
String
g
:
basicGridNodes
)
{
for
(
String
g
:
basicGridNodes
)
{
if
(
null
!=
e
.
getBasicGridNode
()
&&
e
.
getBasicGridNode
().
contains
(
g
)
){
//&& (roleIds.contains(areaId) ||roleIds.contains(designId) || roleIds.contains(engineeringId))
if
(
null
!=
e
.
getBasicGridNode
()
&&
e
.
getBasicGridNode
().
contains
(
g
)
&&
(
roleIds
.
contains
(
areaId
)
||
roleIds
.
contains
(
fawuId
)
||
roleIds
.
contains
(
zichanId
)||
roleIds
.
contains
(
tourongId
))){
e
.
setIsAudit
(
"0"
);
e
.
setIsAudit
(
"0"
);
break
;
break
;
}
else
{
}
else
{
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/resources/application.properties
View file @
afb98290
...
@@ -75,6 +75,9 @@ dealer.amosDealerId=1767820997374775298
...
@@ -75,6 +75,9 @@ dealer.amosDealerId=1767820997374775298
admin.engineering.roleId
=
1702512052154687489
admin.engineering.roleId
=
1702512052154687489
admin.area.roleId
=
1822904567478620161
admin.area.roleId
=
1822904567478620161
admin.design.roleId
=
1702511991735738370
admin.design.roleId
=
1702511991735738370
admin.tourong.roleId
=
1702511733832179714
admin.fawu.roleId
=
1702511782167339010
admin.zichan.roleId
=
1827897297053159426
admin.deveEngineering.roleId
=
1702550832882413570
admin.deveEngineering.roleId
=
1702550832882413570
admin.delerAdmin.roleId
=
1702512164058718210
admin.delerAdmin.roleId
=
1702512164058718210
admin.delerKaId.roleId
=
1702551022574006274
admin.delerKaId.roleId
=
1702551022574006274
...
...
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