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
343c1597
Commit
343c1597
authored
Jun 25, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
空角色/部分封装异常去除
parent
27a8b0de
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
34 deletions
+9
-34
UnitInfoController.java
...s/boot/module/hygf/biz/controller/UnitInfoController.java
+0
-5
DealerReviewServiceImpl.java
...module/hygf/biz/service/impl/DealerReviewServiceImpl.java
+1
-11
PersonnelBusinessServiceImpl.java
...e/hygf/biz/service/impl/PersonnelBusinessServiceImpl.java
+4
-3
PowerStationServiceImpl.java
...module/hygf/biz/service/impl/PowerStationServiceImpl.java
+4
-13
SurveyInformationServiceImpl.java
...e/hygf/biz/service/impl/SurveyInformationServiceImpl.java
+0
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/UnitInfoController.java
View file @
343c1597
...
...
@@ -674,9 +674,7 @@ public class UnitInfoController extends BaseController {
FeignClientResult
<
Collection
<
CompanyModel
>>
feignClientResult
=
Privilege
.
companyClient
.
querySubAgencyTree
(
regionalCompanies
);
companyModel
=
(
List
<
CompanyModel
>)
feignClientResult
.
getResult
();
}
return
ResponseHelper
.
buildResponse
(
companyModel
);
}
...
...
@@ -759,9 +757,6 @@ public class UnitInfoController extends BaseController {
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>
>
getUnitInfoListData
(
@RequestParam
(
required
=
false
)
Long
unitInfoId
,
@RequestParam
(
required
=
false
)
Long
regionalCompaniesSeq
)
{
UnitInfo
unitInfo
=
unitInfoMapper
.
selectById
(
unitInfoId
);
List
<
PeasantHousehold
>
list
=
peasantHouseholdMapper
.
selectPeasantHouseholdList
(
unitInfo
.
getAmosCompanySeq
(),
regionalCompaniesSeq
,
null
,
null
,
null
);
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/DealerReviewServiceImpl.java
View file @
343c1597
...
...
@@ -110,13 +110,12 @@ public class DealerReviewServiceImpl extends BaseService<DealerReviewDto, Dealer
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
false
;
//
throw new BaseException("获取工作流节点失败!", "400", "获取工作流节点失败!");
//
}
}
public
WorkDto
getNodeInfoCode
(
String
flowTaskId
,
boolean
token
)
{
WorkDto
workDto
=
null
;
try
{
FeignClientResult
<
JSONObject
>
jSONObject
=
null
;
if
(
token
)
{
jSONObject
=
workflowFeignClient
.
getNodeInfo
(
flowTaskId
);
...
...
@@ -145,16 +144,11 @@ public class DealerReviewServiceImpl extends BaseService<DealerReviewDto, Dealer
}
return
workDto
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
BaseException
(
"获取工作流节点失败!"
,
"400"
,
"获取工作流节点失败!"
);
}
}
public
String
getTaskNoAuth
(
String
processInstanceId
,
boolean
token
)
{
String
flowTaskId
=
null
;
try
{
JSONObject
jSONObject
=
null
;
if
(
token
)
{
jSONObject
=
workflowFeignClient
.
getTaskNoAuth
(
processInstanceId
);
...
...
@@ -170,11 +164,7 @@ public class DealerReviewServiceImpl extends BaseService<DealerReviewDto, Dealer
throw
new
BaseException
(
"获取工作流节点失败!"
,
"400"
,
"获取工作流节点失败!"
);
}
return
flowTaskId
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
BaseException
(
"获取工作流节点失败!"
,
"400"
,
"获取工作流节点失败!"
);
}
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/PersonnelBusinessServiceImpl.java
View file @
343c1597
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
...
...
@@ -369,10 +370,10 @@ public class PersonnelBusinessServiceImpl extends BaseService<PersonnelBusinessD
System
.
out
.
println
(
"删除旧管理员===================================:"
+
publicAgencyUsex
.
getAmosUserId
());
List
<
String
>
userId1
=
new
ArrayList
<>();
if
(
roidx
!=
null
&&!
roidx
.
isEmpty
()&&
roidx
.
size
()==
1
&&
roidx
.
get
(
0
).
longValue
()==
userGroupId
){
//新增空角色防止单位丢失
List
<
String
>
userId1
=
new
ArrayList
<>();
userId1
.
add
(
publicAgencyUsex
.
getAmosUserId
());
Privilege
.
groupUserClient
.
create
(
userGroupempty
,
userId1
);
}
...
...
@@ -394,7 +395,7 @@ public class PersonnelBusinessServiceImpl extends BaseService<PersonnelBusinessD
publicAgencyUsex
.
setRole
(
null
);
}
else
{
roidx
.
remove
(
userGroupId
);
publicAgencyUsex
.
setRole
(
JSON
.
toJSONString
(
roidx
));
publicAgencyUsex
.
setRole
(
CollectionUtil
.
isEmpty
(
roidx
)?
JSON
.
toJSONString
(
Arrays
.
asList
(
userGroupempty
)):
JSON
.
toJSONString
(
roidx
));
}
//修改当前用户角色权限
List
<
Long
>
roid
=
JSONArray
.
parseArray
(
publicAgencyUse
.
getRole
(),
Long
.
class
);
...
...
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 @
343c1597
...
...
@@ -152,7 +152,7 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
@Override
@Transactional
public
boolean
savePowerStation
(
PowerStation
powerStation
,
boolean
flag
,
String
name
,
String
meg
)
{
try
{
try
{
//流程节点code
// if (flag) {
// String flowTaskIdnext = this.getTaskNoAuth(powerStation.getProcessInstanceId());
...
...
@@ -220,8 +220,8 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
return
fl
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
BaseException
(
"获取工作流节点失败!"
,
"400"
,
"获取工作流节点失败!"
);
}
return
false
;
}
@Override
...
...
@@ -353,7 +353,7 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
// }
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
BaseException
(
"获取工作流节点失败!"
,
"400"
,
"获取工作流节点失败!"
);
}
return
code
;
...
...
@@ -438,7 +438,6 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
public
WorkDto
getNodeInfoCode
(
String
flowTaskId
)
{
WorkDto
workDto
=
null
;
try
{
FeignClientResult
<
JSONObject
>
jSONObject
=
workflowFeignClient
.
getNodeInfo
(
flowTaskId
);
if
(
IDX_REQUEST_STATE
.
equals
(
String
.
valueOf
(
jSONObject
.
getStatus
())))
{
JSONObject
js
=
jSONObject
.
getResult
();
...
...
@@ -463,16 +462,12 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
}
return
workDto
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
BaseException
(
"获取工作流节点失败!"
,
"400"
,
"获取工作流节点失败!"
);
}
}
public
String
getTaskNoAuth
(
String
processInstanceId
)
{
String
flowTaskId
=
null
;
try
{
JSONObject
jSONObject
=
workflowFeignClient
.
getTaskNoAuth
(
processInstanceId
);
if
(
IDX_REQUEST_STATE
.
equals
(
String
.
valueOf
(
jSONObject
.
get
(
"code"
))))
{
LinkedHashMap
jsd
=
jSONObject
.
get
(
"data"
)
!=
null
?
(
LinkedHashMap
)
jSONObject
.
get
(
"data"
)
:
null
;
...
...
@@ -482,11 +477,7 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
throw
new
BaseException
(
"获取工作流节点失败!"
,
"400"
,
"获取工作流节点失败!"
);
}
return
flowTaskId
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
BaseException
(
"获取工作流节点失败!"
,
"400"
,
"获取工作流节点失败!"
);
}
}
// 设计信息填充
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/SurveyInformationServiceImpl.java
View file @
343c1597
...
...
@@ -282,7 +282,6 @@ public class SurveyInformationServiceImpl
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
BadRequest
(
"系统异常"
);
}
return
surveyInfoAllDto
;
...
...
@@ -369,7 +368,6 @@ public class SurveyInformationServiceImpl
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
BaseException
(
"获取工作流节点失败!"
,
"400"
,
"获取工作流节点失败!"
);
}
// PowerStation powerStation = powerStationService.getObjByNhId(String.valueOf(peasantHousehold.getSequenceNbr()), PowerStationProcessStateEnum.作废.getCode());
...
...
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