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
491d6d2f
Commit
491d6d2f
authored
Aug 03, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
4b031755
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
ProjectController.java
...mos/boot/module/ugp/biz/controller/ProjectController.java
+2
-0
ProjectServiceImpl.java
.../boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
+11
-0
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/ProjectController.java
View file @
491d6d2f
...
@@ -825,6 +825,8 @@ public class ProjectController extends BaseController {
...
@@ -825,6 +825,8 @@ public class ProjectController extends BaseController {
String
s
=
""
;
String
s
=
""
;
if
(
split
.
length
!=
0
)
{
if
(
split
.
length
!=
0
)
{
s
=
split
[
0
]+
"Km"
;
s
=
split
[
0
]+
"Km"
;
}
else
{
s
=
"0Km"
;
}
}
jsonObject
.
put
(
"number"
,
count
);
jsonObject
.
put
(
"number"
,
count
);
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
View file @
491d6d2f
...
@@ -27,6 +27,7 @@ import com.yeejoin.amos.feign.privilege.model.AgencyUserModel;
...
@@ -27,6 +27,7 @@ import com.yeejoin.amos.feign.privilege.model.AgencyUserModel;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.model.RegionModel
;
import
com.yeejoin.amos.feign.systemctl.model.RegionModel
;
import
net.logstash.logback.encoder.org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -559,6 +560,16 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
...
@@ -559,6 +560,16 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
public
List
<
ProjectDto
>
getPage
(
List
<
ProjectDto
>
projects
){
public
List
<
ProjectDto
>
getPage
(
List
<
ProjectDto
>
projects
){
ArrayList
<
ProjectDto
>
list
=
Lists
.
newArrayList
();
ArrayList
<
ProjectDto
>
list
=
Lists
.
newArrayList
();
for
(
ProjectDto
projectDto:
projects
){
for
(
ProjectDto
projectDto:
projects
){
if
(
OrgEnum
.
安装单位
.
getKey
().
equals
(
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanyType
())){
if
(
projectDto
.
getStatus
().
contains
(
"/"
))
{
projectDto
.
setStatus
(
StringUtils
.
substringAfter
(
projectDto
.
getStatus
(),
"/"
));
}
}
else
if
(
OrgEnum
.
设计单位
.
getKey
().
equals
(
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanyType
())){
if
(
projectDto
.
getStatus
().
contains
(
"/"
))
{
projectDto
.
setStatus
(
StringUtils
.
substringBefore
(
projectDto
.
getStatus
(),
"/"
));
}
}
if
(
ProjectInitiationEnum
.
监检员分配
.
getName
().
equals
(
projectDto
.
getStatus
()))
{
if
(
ProjectInitiationEnum
.
监检员分配
.
getName
().
equals
(
projectDto
.
getStatus
()))
{
if
(!
ValidationUtil
.
isEmpty
(
projectDto
.
getContext
())
&&
JSONObject
.
parseObject
(
projectDto
.
getContext
()).
containsKey
(
"insDepId"
))
{
if
(!
ValidationUtil
.
isEmpty
(
projectDto
.
getContext
())
&&
JSONObject
.
parseObject
(
projectDto
.
getContext
()).
containsKey
(
"insDepId"
))
{
String
insDepId
=
JSONObject
.
parseObject
(
projectDto
.
getContext
()).
getString
(
"insDepId"
);
String
insDepId
=
JSONObject
.
parseObject
(
projectDto
.
getContext
()).
getString
(
"insDepId"
);
...
...
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