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
2b89c411
Commit
2b89c411
authored
Nov 15, 2022
by
wanglong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://39.98.45.134:8090/moa/amos-boot-biz
into developer
parents
63cb53df
950705f7
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
13 deletions
+24
-13
AttachmentController.java
.../boot/module/ugp/biz/controller/AttachmentController.java
+3
-1
WelderController.java
...amos/boot/module/ugp/biz/controller/WelderController.java
+5
-0
AttachmentServiceImpl.java
...ot/module/ugp/biz/service/impl/AttachmentServiceImpl.java
+9
-2
OrgServiceImpl.java
...amos/boot/module/ugp/biz/service/impl/OrgServiceImpl.java
+5
-8
ProjectServiceImpl.java
.../boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
+2
-2
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/AttachmentController.java
View file @
2b89c411
...
...
@@ -7,6 +7,8 @@ import io.swagger.annotations.Api;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
java.util.Map
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.AttachmentServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
...
@@ -123,7 +125,7 @@ public class AttachmentController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/unit"
)
@ApiOperation
(
httpMethod
=
"Get"
,
value
=
"单位选择查询"
,
notes
=
"单位选择查询"
)
public
ResponseModel
<
String
>
selectUnit
(){
public
ResponseModel
<
Map
>
selectUnit
(){
return
ResponseHelper
.
buildResponse
(
attachmentServiceImpl
.
selectUnit
());
}
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/WelderController.java
View file @
2b89c411
...
...
@@ -210,6 +210,11 @@ public class WelderController extends BaseController {
page
=
orgServiceImpl
.
getPersonInfo
(
String
.
valueOf
(
orgServiceImpl
.
getReginParams
().
getBusinessInfo
().
getCompanySequenceNbr
()),
page
);
List
<
Map
>
mapList
=
page
.
getRecords
();
for
(
Map
map
:
mapList
){
try
{
map
.
put
(
"dept"
,
orgServiceImpl
.
getOrgUsrById
(
String
.
valueOf
(
map
.
get
(
"deptId"
))).
getBizOrgName
());
}
catch
(
Exception
e
)
{
map
.
put
(
"dept"
,
String
.
valueOf
(
map
.
get
(
"deptId"
)));
}
if
(
OrgEnum
.
焊工
.
getKey
().
equals
((
String
)
map
.
get
(
"type"
))){
map
.
put
(
"typeName"
,
OrgEnum
.
焊工
.
getName
());
}
else
{
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/AttachmentServiceImpl.java
View file @
2b89c411
...
...
@@ -17,7 +17,11 @@ import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
com.yeejoin.amos.boot.module.ugp.biz.controller.ProjectController
;
...
...
@@ -81,14 +85,16 @@ public class AttachmentServiceImpl extends BaseService<AttachmentDto,Attachment,
*
*/
@BusinessIdentify
public
String
selectUnit
(){
public
Map
selectUnit
(){
Map
map
=
new
HashMap
<>();
//获取登录人的redis信息
ReginParams
reginParams
=
orgServiceImpl
.
getReginParams
();
//根据redis信息去获取登录人信息后再获取到登录人的sequenceNbr
Long
companyId
=
reginParams
.
getBusinessInfo
().
getCompanySequenceNbr
();
OrgUsr
orgUsr
=
orgUsrService
.
getById
(
companyId
);
String
key
=
orgUsr
.
getOrgExpandAttr1
();
return
OrgEnum
.
map
.
get
(
key
);
map
.
put
(
"type"
,
OrgEnum
.
map
.
get
(
key
));
return
map
;
}
}
\ 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/service/impl/OrgServiceImpl.java
View file @
2b89c411
...
...
@@ -153,17 +153,14 @@ public class OrgServiceImpl {
//判断筛选条件
if
(!
ValidationUtil
.
isEmpty
(
jsonObject
.
getLong
(
"isCheck"
)))
{
wrapper
.
eq
(
OrgUsr
::
getAmosOrgId
,
jsonObject
.
getLong
(
"isCheck"
));
}
else
{
}
else
if
(!
jsonObject
.
getString
(
"deptId"
).
isEmpty
())
{
//设置所属机构
//判断是否存在监检机构id
if
(!
jsonObject
.
getString
(
"dept"
).
isEmpty
()){
wrapper
.
eq
(
BaseEntity:
:
getSequenceNbr
,
jsonObject
.
getString
(
"dept"
));
orgUsr
.
setParentId
(
String
.
valueOf
(
orgUsrServiceImpl
.
getOne
(
wrapper
).
getSequenceNbr
()));
}
else
{
//判断是否存在部门id
wrapper
.
eq
(
OrgUsr:
:
getSequenceNbr
,
jsonObject
.
getString
(
"deptId"
));
}
else
{
wrapper
.
eq
(
OrgUsr
::
getAmosOrgId
,
String
.
valueOf
(
reginParams
.
getCompany
().
getSequenceNbr
()));
orgUsr
.
setParentId
(
String
.
valueOf
(
orgUsrServiceImpl
.
getOne
(
wrapper
).
getSequenceNbr
()));
}
}
orgUsr
.
setParentId
(
String
.
valueOf
(
orgUsrServiceImpl
.
getOne
(
wrapper
).
getSequenceNbr
()));
}
if
(
OrgEnum
.
部门
.
getKey
().
equals
(
bizOrgType
))
{
LambdaQueryWrapper
<
OrgUsr
>
wrapper
=
new
LambdaQueryWrapper
<>();
...
...
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 @
2b89c411
...
...
@@ -210,10 +210,10 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
for
(
Object
object:
subForm
){
JSONObject
jo
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
object
));
String
type
=
jo
.
getString
(
"type"
);
if
(
OrgEnum
.
设计单位
.
get
Key
().
equals
(
type
)){
if
(
OrgEnum
.
设计单位
.
get
Name
().
equals
(
type
)){
design
=
true
;
}
if
(
OrgEnum
.
安装单位
.
get
Key
().
equals
(
type
)){
if
(
OrgEnum
.
安装单位
.
get
Name
().
equals
(
type
)){
install
=
true
;
}
}
...
...
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