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
e4cc3b01
Commit
e4cc3b01
authored
Mar 27, 2023
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改tzs工作台接口,修改ugp流程待办已办
parent
fd57254b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
12 deletions
+30
-12
TzsAuthController.java
...mos/boot/module/tzs/biz/controller/TzsAuthController.java
+4
-0
application.properties
...-module-tzs-biz/src/main/resources/application.properties
+5
-2
ProjectController.java
...mos/boot/module/ugp/biz/controller/ProjectController.java
+6
-0
TaskController.java
...n/amos/boot/module/ugp/biz/controller/TaskController.java
+13
-7
ProjectInitiationServiceImpl.java
...le/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
+2
-3
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/TzsAuthController.java
View file @
e4cc3b01
...
@@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
...
@@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.yeejoin.amos.boot.module.tzs.api.entity.TzsCitInfo
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.TzsCitInfo
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.TzsCitInfoServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.TzsCitInfoServiceImpl
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -89,6 +90,8 @@ public class TzsAuthController extends BaseController {
...
@@ -89,6 +90,8 @@ public class TzsAuthController extends BaseController {
return
ResponseHelper
.
buildResponse
(
result
);
return
ResponseHelper
.
buildResponse
(
result
);
}
}
@Value
(
"${tzs.auth.user.photo}"
)
String
userPhoto
;
/**
/**
* 获取用户监管机构
* 获取用户监管机构
...
@@ -120,6 +123,7 @@ public class TzsAuthController extends BaseController {
...
@@ -120,6 +123,7 @@ public class TzsAuthController extends BaseController {
map
.
put
(
"companyId"
,
company
.
getParentId
()!=
0L
?
company
.
getParentId
():
company
.
getSequenceNbr
());
map
.
put
(
"companyId"
,
company
.
getParentId
()!=
0L
?
company
.
getParentId
():
company
.
getSequenceNbr
());
}
}
map
.
put
(
"userName"
,
result
.
getResult
().
getRealName
());
map
.
put
(
"userName"
,
result
.
getResult
().
getRealName
());
map
.
put
(
"userPhoto"
,
userPhoto
);
}
}
return
ResponseHelper
.
buildResponse
(
map
);
return
ResponseHelper
.
buildResponse
(
map
);
}
}
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/resources/application.properties
View file @
e4cc3b01
...
@@ -158,4 +158,7 @@ regulator.unit.code=50
...
@@ -158,4 +158,7 @@ regulator.unit.code=50
spring.main.allow-bean-definition-overriding
=
true
spring.main.allow-bean-definition-overriding
=
true
# 若tzs和ugp一起,则true
# 若tzs和ugp一起,则true
is.ugp
=
false
is.ugp
=
false
\ No newline at end of file
#工作台用户统一显示头像
tzs.auth.user.photo
=
/public/common/userPic.png
\ No newline at end of file
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/ProjectController.java
View file @
e4cc3b01
...
@@ -563,6 +563,12 @@ public class ProjectController extends BaseController {
...
@@ -563,6 +563,12 @@ public class ProjectController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据projectId查询信息"
,
notes
=
"根据projectId查询信息"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据projectId查询信息"
,
notes
=
"根据projectId查询信息"
)
@GetMapping
(
value
=
"/getProjectDetails"
)
@GetMapping
(
value
=
"/getProjectDetails"
)
public
ResponseModel
<
JSONObject
>
getProjectDetails
(
@RequestParam
(
"projectId"
)
Long
projectId
){
public
ResponseModel
<
JSONObject
>
getProjectDetails
(
@RequestParam
(
"projectId"
)
Long
projectId
){
if
(
ValidationUtil
.
isEmpty
(
projectServiceImpl
.
getById
(
projectId
))){
InstallNotice
installNotice
=
iInstallNoticeService
.
getById
(
projectId
);
if
(!
ValidationUtil
.
isEmpty
(
installNotice
)){
projectId
=
installNotice
.
getProjectId
();
}
}
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
//项目基本信息
//项目基本信息
jsonObject
.
put
(
TabLogoEnum
.
项目基本信息
.
getLogo
(),
projectServiceImpl
.
selectById
(
projectId
));
jsonObject
.
put
(
TabLogoEnum
.
项目基本信息
.
getLogo
(),
projectServiceImpl
.
selectById
(
projectId
));
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/TaskController.java
View file @
e4cc3b01
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.ProjectInitiationEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.ProjectInitiationEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.TaskTypeEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.TaskTypeEnum
;
...
@@ -28,6 +29,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseHelper;
...
@@ -28,6 +29,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.time.LocalDate
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -205,14 +207,18 @@ public class TaskController {
...
@@ -205,14 +207,18 @@ public class TaskController {
List
todyCompletedTask
=
new
ArrayList
();
List
todyCompletedTask
=
new
ArrayList
();
Long
unitId
=
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanySequenceNbr
();
Long
unitId
=
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanySequenceNbr
();
LambdaQueryWrapper
<
Task
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
Task
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
Task
>
Taskwrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
Task:
:
getUnitId
,
unitId
);
wrapper
.
eq
(
Task:
:
getUnitId
,
unitId
);
if
(
true
){
Taskwrapper
.
eq
(
Task:
:
getUnitId
,
unitId
);
wrapper
.
eq
(
Task:
:
getTaskType
,
false
);
myTask
=
iTzUgpTaskService
.
list
(
wrapper
);
wrapper
.
eq
(
Task:
:
getStatus
,
0
);
}
else
{
myTask
=
iTzUgpTaskService
.
list
(
wrapper
);
wrapper
.
eq
(
Task:
:
getTaskType
,
true
);
todyCompletedTask
=
iTzUgpTaskService
.
list
(
wrapper
);
Taskwrapper
.
eq
(
Task:
:
getStatus
,
1
);
}
LocalDate
today
=
LocalDate
.
now
();
Taskwrapper
.
like
(
Task:
:
getRecDate
,
today
);
todyCompletedTask
=
iTzUgpTaskService
.
list
(
Taskwrapper
);
Map
<
String
,
String
>
map
=
new
HashMap
();
Map
<
String
,
String
>
map
=
new
HashMap
();
map
.
put
(
"myTask"
,
String
.
valueOf
(
myTask
.
size
()));
map
.
put
(
"myTask"
,
String
.
valueOf
(
myTask
.
size
()));
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
View file @
e4cc3b01
...
@@ -284,7 +284,6 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
...
@@ -284,7 +284,6 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
//更新任务表的状态 已办
//更新任务表的状态 已办
taskType
=
getUnitId
(
unitIds
,
project
,
superviseRule
);
taskType
=
getUnitId
(
unitIds
,
project
,
superviseRule
);
unitIds
=
new
ArrayList
<>();
if
(
ProjectInitiationEnum
.
设计开工资料提交
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
安装开工资料提交
.
getName
().
equals
(
project
.
getStatus
())){
if
(
ProjectInitiationEnum
.
设计开工资料提交
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
安装开工资料提交
.
getName
().
equals
(
project
.
getStatus
())){
project
.
setStatus
(
ProjectInitiationEnum
.
提交资料
.
getName
());
project
.
setStatus
(
ProjectInitiationEnum
.
提交资料
.
getName
());
}
}
...
@@ -332,9 +331,9 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
...
@@ -332,9 +331,9 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
taskType
=
TaskTypeEnum
.
流程
.
getKey
();
taskType
=
TaskTypeEnum
.
流程
.
getKey
();
}
}
if
(
ProjectInitiationEnum
.
提交资料
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
安装开工资料提交
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
设计开工资料提交
.
getName
().
equals
(
project
.
getStatus
()))
{
if
(
ProjectInitiationEnum
.
提交资料
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
安装开工资料提交
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
设计开工资料提交
.
getName
().
equals
(
project
.
getStatus
()))
{
if
(
OrgEnum
.
安装单位
.
get
Type
().
equals
(
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanyType
())){
if
(
OrgEnum
.
安装单位
.
get
Key
().
equals
(
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanyType
())){
unitIds
.
add
(
project
.
getInstallationUnitId
());
unitIds
.
add
(
project
.
getInstallationUnitId
());
}
else
if
(
OrgEnum
.
设计单位
.
get
Type
().
equals
(
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanyType
())){
}
else
if
(
OrgEnum
.
设计单位
.
get
Key
().
equals
(
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanyType
())){
unitIds
.
add
(
project
.
getDesignUnitId
());
unitIds
.
add
(
project
.
getDesignUnitId
());
}
else
{
}
else
{
unitIds
.
add
(
project
.
getDesignUnitId
());
unitIds
.
add
(
project
.
getDesignUnitId
());
...
...
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