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
a47bd1a0
Commit
a47bd1a0
authored
Jul 21, 2023
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.并发修改
parent
44201a83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
RegUnitInfoServiceImpl.java
...dule/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
+6
-3
logback-dev.xml
...os-boot-module-tcm-biz/src/main/resources/logback-dev.xml
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
View file @
a47bd1a0
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
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.yeejoin.amos.boot.biz.common.constants.CommonConstant
;
import
com.yeejoin.amos.boot.biz.common.constants.CommonConstant
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
...
@@ -401,8 +402,10 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
...
@@ -401,8 +402,10 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
regUnitInfoDto
.
setName
(
String
.
valueOf
(
resultMap
.
get
(
"unitName"
)));
regUnitInfoDto
.
setName
(
String
.
valueOf
(
resultMap
.
get
(
"unitName"
)));
regUnitInfoDto
.
setLegalPerson
(
String
.
valueOf
(
resultMap
.
get
(
"legalPeople"
)));
regUnitInfoDto
.
setLegalPerson
(
String
.
valueOf
(
resultMap
.
get
(
"legalPeople"
)));
String
industryName
=
""
;
String
industryName
=
""
;
DataDictionary
dataDictionary
=
iDataDictionaryService
.
getByCode
(
String
.
valueOf
(
resultMap
.
get
(
"industryCode"
)),
"HYXLDM"
);
List
<
DataDictionary
>
dictionaries
=
this
.
initAllDataDictionaryList
();
if
(!
ValidationUtil
.
isEmpty
(
dataDictionary
))
{
Optional
<
DataDictionary
>
op
=
dictionaries
.
stream
().
filter
(
d
->
d
.
getCode
().
equals
(
String
.
valueOf
(
resultMap
.
get
(
"industryCode"
)))
&&
"HYXLDM"
.
equals
(
d
.
getType
())).
findFirst
();
if
(
op
.
isPresent
())
{
DataDictionary
dataDictionary
=
op
.
get
();
industryName
=
dataDictionary
.
getName
();
industryName
=
dataDictionary
.
getName
();
}
}
String
approveDate
=
String
.
valueOf
(
resultMap
.
get
(
"approval_time"
));
String
approveDate
=
String
.
valueOf
(
resultMap
.
get
(
"approval_time"
));
...
@@ -496,7 +499,7 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
...
@@ -496,7 +499,7 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
String
json
=
redisUtil
.
get
(
BizCommonConstant
.
TCM_ALL_DATA_DICT_REDIS_KEY
).
toString
();
String
json
=
redisUtil
.
get
(
BizCommonConstant
.
TCM_ALL_DATA_DICT_REDIS_KEY
).
toString
();
dictionaries
=
JSONObject
.
parseArray
(
json
,
DataDictionary
.
class
);
dictionaries
=
JSONObject
.
parseArray
(
json
,
DataDictionary
.
class
);
}
else
{
}
else
{
dictionaries
=
dataDictionaryService
.
list
();
dictionaries
=
dataDictionaryService
.
list
(
new
LambdaQueryWrapper
<
DataDictionary
>().
eq
(
BaseEntity:
:
getIsDelete
,
false
)
);
redisUtil
.
set
(
BizCommonConstant
.
TCM_ALL_DATA_DICT_REDIS_KEY
,
JSONObject
.
toJSONString
(
dictionaries
));
redisUtil
.
set
(
BizCommonConstant
.
TCM_ALL_DATA_DICT_REDIS_KEY
,
JSONObject
.
toJSONString
(
dictionaries
));
}
}
}
}
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/resources/logback-dev.xml
View file @
a47bd1a0
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
<logger
name=
"com.yeejoin"
level=
"INFO"
/>
<logger
name=
"com.yeejoin"
level=
"INFO"
/>
<!-- 日志输出级别 -->
<!-- 日志输出级别 -->
<root
level=
"
DEBUG
"
>
<root
level=
"
ERROR
"
>
<!-- <appender-ref ref="FILE" /> -->
<!-- <appender-ref ref="FILE" /> -->
<appender-ref
ref=
"STDOUT"
/>
<appender-ref
ref=
"STDOUT"
/>
<!-- <appender-ref ref="ELK" />-->
<!-- <appender-ref ref="ELK" />-->
...
...
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