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
179f4d55
Commit
179f4d55
authored
Jun 28, 2021
by
gaodongdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
c3f90e71
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
18 deletions
+35
-18
OrgDepartmentController.java
...ot/module/jcs/biz/controller/OrgDepartmentController.java
+5
-3
OrgPersonController.java
...s/boot/module/jcs/biz/controller/OrgPersonController.java
+2
-0
OrgUsrController.java
...amos/boot/module/jcs/biz/controller/OrgUsrController.java
+4
-2
OrgUsrServiceImpl.java
...s/boot/module/jcs/biz/service/impl/OrgUsrServiceImpl.java
+24
-13
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/OrgDepartmentController.java
View file @
179f4d55
...
@@ -46,7 +46,7 @@ import io.swagger.annotations.ApiOperation;
...
@@ -46,7 +46,7 @@ import io.swagger.annotations.ApiOperation;
*/
*/
@RestController
@RestController
@Api
(
tags
=
"部门Api"
)
@Api
(
tags
=
"部门Api"
)
@RequestMapping
(
value
=
"/
jcs/
org-department"
)
@RequestMapping
(
value
=
"/org-department"
)
public
class
OrgDepartmentController
{
public
class
OrgDepartmentController
{
@Autowired
@Autowired
OrgUsrServiceImpl
iOrgUsrService
;
OrgUsrServiceImpl
iOrgUsrService
;
...
@@ -62,7 +62,8 @@ public class OrgDepartmentController {
...
@@ -62,7 +62,8 @@ public class OrgDepartmentController {
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增部门信息"
,
notes
=
"新增部门信息"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增部门信息"
,
notes
=
"新增部门信息"
)
public
ResponseModel
<
Object
>
saveOrgUsr
(
HttpServletRequest
request
,
@RequestBody
OrgDepartmentVo
OrgDepartmentVo
)
throws
Exception
{
public
ResponseModel
<
Object
>
saveOrgUsr
(
HttpServletRequest
request
,
@RequestBody
OrgDepartmentVo
OrgDepartmentVo
)
throws
Exception
{
iOrgUsrService
.
saveOrgDepartment
(
OrgDepartmentVo
);
OrgDepartmentVo
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_DEPARTMENT
);
iOrgUsrService
.
saveOrgDepartment
(
OrgDepartmentVo
);
return
ResponseHelper
.
buildResponse
(
null
);
return
ResponseHelper
.
buildResponse
(
null
);
}
}
...
@@ -91,7 +92,8 @@ public class OrgDepartmentController {
...
@@ -91,7 +92,8 @@ public class OrgDepartmentController {
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
PUT
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
PUT
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"更新部门数据"
,
notes
=
"更新部门数据"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"更新部门数据"
,
notes
=
"更新部门数据"
)
public
ResponseModel
<
Object
>
updateByIdOrgUsr
(
HttpServletRequest
request
,
@RequestBody
OrgDepartmentVo
OrgDepartmentVo
,
@PathVariable
Long
id
)
throws
Exception
{
public
ResponseModel
<
Object
>
updateByIdOrgUsr
(
HttpServletRequest
request
,
@RequestBody
OrgDepartmentVo
OrgDepartmentVo
,
@PathVariable
Long
id
)
throws
Exception
{
iOrgUsrService
.
updateByIdOrgDepartment
(
OrgDepartmentVo
,
id
);
OrgDepartmentVo
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_DEPARTMENT
);
iOrgUsrService
.
updateByIdOrgDepartment
(
OrgDepartmentVo
,
id
);
return
ResponseHelper
.
buildResponse
(
null
);
return
ResponseHelper
.
buildResponse
(
null
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/OrgPersonController.java
View file @
179f4d55
...
@@ -57,6 +57,7 @@ public class OrgPersonController {
...
@@ -57,6 +57,7 @@ public class OrgPersonController {
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增人员信息"
,
notes
=
"新增人员信息"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增人员信息"
,
notes
=
"新增人员信息"
)
public
ResponseModel
saveOrgUsr
(
HttpServletRequest
request
,
@RequestBody
OrgPersonVo
OrgPersonVo
)
throws
Exception
{
public
ResponseModel
saveOrgUsr
(
HttpServletRequest
request
,
@RequestBody
OrgPersonVo
OrgPersonVo
)
throws
Exception
{
OrgPersonVo
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_PERSON
);
iOrgUsrService
.
saveOrgPerson
(
OrgPersonVo
);
iOrgUsrService
.
saveOrgPerson
(
OrgPersonVo
);
return
ResponseHelper
.
buildResponse
(
null
);
return
ResponseHelper
.
buildResponse
(
null
);
}
}
...
@@ -85,6 +86,7 @@ public class OrgPersonController {
...
@@ -85,6 +86,7 @@ public class OrgPersonController {
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
PUT
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
PUT
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"更新单位数据"
,
notes
=
"更新单位数据"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"更新单位数据"
,
notes
=
"更新单位数据"
)
public
ResponseModel
updateByIdOrgUsr
(
HttpServletRequest
request
,
@RequestBody
OrgPersonVo
OrgPersonVo
,
@PathVariable
Long
id
)
throws
Exception
{
public
ResponseModel
updateByIdOrgUsr
(
HttpServletRequest
request
,
@RequestBody
OrgPersonVo
OrgPersonVo
,
@PathVariable
Long
id
)
throws
Exception
{
OrgPersonVo
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_PERSON
);
iOrgUsrService
.
updateByIdOrgPerson
(
OrgPersonVo
,
id
);
iOrgUsrService
.
updateByIdOrgPerson
(
OrgPersonVo
,
id
);
return
ResponseHelper
.
buildResponse
(
null
);
return
ResponseHelper
.
buildResponse
(
null
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/OrgUsrController.java
View file @
179f4d55
...
@@ -66,7 +66,8 @@ public class OrgUsrController extends BaseController {
...
@@ -66,7 +66,8 @@ public class OrgUsrController extends BaseController {
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增单位信息"
,
notes
=
"新增单位信息"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增单位信息"
,
notes
=
"新增单位信息"
)
public
ResponseModel
saveOrgUsr
(
HttpServletRequest
request
,
@RequestBody
OrgUsrVo
OrgUsrVo
)
throws
Exception
{
public
ResponseModel
saveOrgUsr
(
HttpServletRequest
request
,
@RequestBody
OrgUsrVo
OrgUsrVo
)
throws
Exception
{
iOrgUsrService
.
saveOrgUsr
(
OrgUsrVo
);
OrgUsrVo
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_COMPANY
);
iOrgUsrService
.
saveOrgUsr
(
OrgUsrVo
);
return
ResponseHelper
.
buildResponse
(
null
);
return
ResponseHelper
.
buildResponse
(
null
);
}
}
...
@@ -95,7 +96,8 @@ public class OrgUsrController extends BaseController {
...
@@ -95,7 +96,8 @@ public class OrgUsrController extends BaseController {
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
PUT
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
PUT
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"更新单位数据"
,
notes
=
"更新单位数据"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"更新单位数据"
,
notes
=
"更新单位数据"
)
public
ResponseModel
updateByIdOrgUsr
(
HttpServletRequest
request
,
@RequestBody
OrgUsrVo
OrgUsrVo
,
@PathVariable
Long
id
)
throws
Exception
{
public
ResponseModel
updateByIdOrgUsr
(
HttpServletRequest
request
,
@RequestBody
OrgUsrVo
OrgUsrVo
,
@PathVariable
Long
id
)
throws
Exception
{
iOrgUsrService
.
updateByIdOrgUsr
(
OrgUsrVo
,
id
);
OrgUsrVo
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_COMPANY
);
iOrgUsrService
.
updateByIdOrgUsr
(
OrgUsrVo
,
id
);
return
ResponseHelper
.
buildResponse
(
null
);
return
ResponseHelper
.
buildResponse
(
null
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/OrgUsrServiceImpl.java
View file @
179f4d55
...
@@ -218,6 +218,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -218,6 +218,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
QueryWrapper
phoneWrapper
=
new
QueryWrapper
<
AlertFormValue
>();
QueryWrapper
phoneWrapper
=
new
QueryWrapper
<
AlertFormValue
>();
phoneWrapper
.
allEq
(
phone
);
phoneWrapper
.
allEq
(
phone
);
AlertFormValue
phoneValue
=
alertFormValueServiceImpl
.
getOne
(
phoneWrapper
);
AlertFormValue
phoneValue
=
alertFormValueServiceImpl
.
getOne
(
phoneWrapper
);
if
(
phoneValue
==
null
)
{
throw
new
Exception
(
"表单数据错误"
);
}
resultMap
.
put
(
"tel"
,
phoneValue
.
getFieldValue
());
resultMap
.
put
(
"tel"
,
phoneValue
.
getFieldValue
());
// 获取单位人员列表信息
// 获取单位人员列表信息
personList
=
listPerson
(
company
.
getSequenceNbr
()+
""
).
stream
().
map
(
p
->
{
personList
=
listPerson
(
company
.
getSequenceNbr
()+
""
).
stream
().
map
(
p
->
{
...
@@ -327,7 +330,6 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -327,7 +330,6 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
@Override
@Override
public
void
saveOrgUsr
(
OrgUsr
oriOrgUsr
,
Long
id
)
throws
Exception
{
public
void
saveOrgUsr
(
OrgUsr
oriOrgUsr
,
Long
id
)
throws
Exception
{
OrgUsr
orgUsr
=
new
OrgUsr
();
OrgUsr
orgUsr
=
new
OrgUsr
();
orgUsr
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_PERSON
);
orgUsr
.
setSequenceNbr
(
id
);
orgUsr
.
setSequenceNbr
(
id
);
orgUsr
.
setRecDate
(
new
Date
());
orgUsr
.
setRecDate
(
new
Date
());
orgUsr
.
setRecUserId
(
oriOrgUsr
.
getRecUserId
());
orgUsr
.
setRecUserId
(
oriOrgUsr
.
getRecUserId
());
...
@@ -360,21 +362,30 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -360,21 +362,30 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
alertFromValue
.
setAlertCalledId
(
orgUsr
.
getSequenceNbr
());
alertFromValue
.
setAlertCalledId
(
orgUsr
.
getSequenceNbr
());
});
});
List
<
AlertFromValueDto
>
formList
=
alertFormValueServiceImpl
.
queryByCalledId
(
orgUsr
.
getSequenceNbr
());
List
<
AlertFromValueDto
>
formList
=
alertFormValueServiceImpl
.
queryByCalledId
(
orgUsr
.
getSequenceNbr
());
for
(
AlertFormValue
dis
:
alertFromValuelist
)
{
if
(
formList
!=
null
&&
formList
.
size
()
>
0
)
{
for
(
AlertFromValueDto
src
:
formList
)
{
for
(
AlertFormValue
dis
:
alertFromValuelist
)
{
if
(
dis
.
getAlertFormId
()
==
src
.
getAlertFormId
())
{
for
(
AlertFromValueDto
src
:
formList
)
{
dis
.
setSequenceNbr
(
src
.
getSequenceNbr
());
if
(
dis
.
getAlertFormId
()
==
src
.
getAlertFormId
())
{
dis
.
setRecDate
(
new
Date
());
dis
.
setSequenceNbr
(
src
.
getSequenceNbr
());
dis
.
setRecUserId
(
orgUsr
.
getRecUserId
());
dis
.
setRecDate
(
new
Date
());
dis
.
setRecUserName
(
orgUsr
.
getRecUserName
());
dis
.
setRecUserId
(
orgUsr
.
getRecUserId
());
dis
.
setAlertTypeCode
(
src
.
getAlertTypeCode
());
dis
.
setRecUserName
(
orgUsr
.
getRecUserName
());
dis
.
setAlertFormId
(
src
.
getAlertFormId
());
dis
.
setAlertTypeCode
(
src
.
getAlertTypeCode
());
break
;
dis
.
setAlertFormId
(
src
.
getAlertFormId
());
break
;
}
}
}
}
}
// 保存动态表单数据
alertFormValueServiceImpl
.
updateBatchById
(
alertFromValuelist
);
}
else
{
// 填充主键
alertFromValuelist
.
stream
().
forEach
(
alertFromValue
->
{
alertFromValue
.
setAlertCalledId
(
orgUsr
.
getSequenceNbr
());
});
// 保存动态表单数据
alertFormValueServiceImpl
.
saveBatch
(
alertFromValuelist
);
}
}
// 保存动态表单数据
alertFormValueServiceImpl
.
updateBatchById
(
alertFromValuelist
);
}
}
@Override
@Override
...
...
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