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
6c6be709
Commit
6c6be709
authored
Oct 09, 2021
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
4c1205ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
FireExpertsController.java
...t/module/common/biz/controller/FireExpertsController.java
+4
-1
FirefightersPostController.java
...ule/common/biz/controller/FirefightersPostController.java
+12
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/FireExpertsController.java
View file @
6c6be709
...
...
@@ -55,7 +55,7 @@ public class FireExpertsController extends BaseController {
@Autowired
DataDictionaryServiceImpl
dataDictionaryService
;
/**
...
...
@@ -67,6 +67,9 @@ public class FireExpertsController extends BaseController {
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
public
ResponseModel
<
FireExpertsDto
>
save
(
@RequestBody
FireExpertsDto
model
)
{
String
expertCode
=
model
.
getExpertCode
();
DataDictionary
zjly
=
dataDictionaryService
.
getByCode
(
expertCode
,
"ZJLY"
);
model
.
setExpert
(
zjly
.
getName
());
model
=
fireExpertsServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/FirefightersPostController.java
View file @
6c6be709
...
...
@@ -2,6 +2,8 @@ package com.yeejoin.amos.boot.module.common.biz.controller;
import
java.util.Arrays
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
...
...
@@ -57,6 +59,9 @@ public class FirefightersPostController extends BaseController {
@Autowired
FirefightersWorkexperienceServiceImpl
ifirefightersWorkexperienceService
;
@Autowired
DataDictionaryServiceImpl
dataDictionaryService
;
@Autowired
RedisUtils
redisUtils
;
@Value
(
"${redis.cache.failure.time}"
)
private
long
time
;
...
...
@@ -81,6 +86,13 @@ public class FirefightersPostController extends BaseController {
queryWrapper
.
eq
(
"firefighters_id"
,
firefightersDataDto
.
getFirefightersPost
().
getFirefightersId
());
FirefightersPost
firefightersPost
=
iFirefightersPostService
.
getOne
(
queryWrapper
);
/*bug3071 消防人员,专家领域选择子分类时概要信息中专家领域未显示 2021-10-09 chenzhao */
if
(
firefightersDataDto
.
getFirefightersPost
().
getAreasExpertiseCode
()
!=
null
){
String
areasExpertiseCode
=
firefightersDataDto
.
getFirefightersPost
().
getAreasExpertiseCode
();
DataDictionary
zjly
=
dataDictionaryService
.
getByCode
(
areasExpertiseCode
,
"ZJLY"
);
firefightersDataDto
.
getFirefightersPost
().
setAreasExpertise
(
zjly
.
getName
());
}
/*bug3071 消防人员,专家领域选择子分类时概要信息中专家领域未显示 2021-10-09 chenzhao */
if
(
firefightersPost
==
null
)
{
iFirefightersPostService
.
save
(
firefightersDataDto
.
getFirefightersPost
());
}
else
{
...
...
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