Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
isc-core
Overview
Overview
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
isc-v3.1-tmp
isc-core
Commits
7c35976f
Commit
7c35976f
authored
Oct 30, 2024
by
hulei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SettleContext调整为多实体模式
parent
c8c2c2e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
SettleContext.java
...java/com/brilliance/isc/common/context/SettleContext.java
+19
-12
No files found.
isc-common-service/src/main/java/com/brilliance/isc/common/context/SettleContext.java
View file @
7c35976f
...
...
@@ -33,13 +33,13 @@ import java.util.Objects;
@Component
public
class
SettleContext
{
private
final
String
ETY_EXTKEY
=
"CEB"
;
private
final
String
ETG_EXTKEY
=
"CEBGRP"
;
//
private final String ETY_EXTKEY = "CEB";
//
private final String ETG_EXTKEY = "CEBGRP";
private
final
static
List
<
String
>
US_LOCALE_LIST
=
Arrays
.
asList
(
"LE"
,
"LI"
,
"BE"
,
"BR"
);
private
Ety
ety
;
private
Etg
etg
;
//
private Ety ety;
//
private Etg etg;
@Autowired
private
EtyMapper
etyMapper
;
...
...
@@ -73,11 +73,11 @@ public class SettleContext {
@Autowired
private
AtpBchCacheService
atpBchCacheService
;
@PostConstruct
public
void
loadEtyAndEtg
()
{
ety
=
etyMapper
.
getEtyByExtkey
(
ETY_EXTKEY
);
etg
=
etgMapper
.
getEtgByExtkey
(
ETG_EXTKEY
);
}
//
@PostConstruct
//
public void loadEtyAndEtg() {
//
ety = etyMapper.getEtyByExtkey(ETY_EXTKEY);
//
etg = etgMapper.getEtgByExtkey(ETG_EXTKEY);
//
}
private
static
ThreadLocal
<
SettleSession
>
userSessionThreadLocal
=
new
ThreadLocal
<>();
...
...
@@ -243,7 +243,7 @@ public class SettleContext {
if
(
userVo
==
null
)
{
throw
new
CommonServiceException
(
"找不到 "
+
sessionUserVo
.
getLogName
()
+
" 用户信息!"
);
}
userVo
.
setEty
(
ETY_EXTKEY
);
// userVo.setEty(userVo.getEtyextkey()
);
// 填充用户信息
settleSession
.
setUserVo
(
userVo
);
...
...
@@ -269,6 +269,9 @@ public class SettleContext {
Atp
atp
=
atpMapper
.
getAtpByCod
(
settleSession
.
getTransName
());
settleSession
.
setAtp
(
atp
);
Ety
ety
=
etyMapper
.
getEtyByExtkey
(
usr
.
getEty
());
Etg
etg
=
etgMapper
.
getEtgByExtkey
(
ety
.
getEtg
());
settleSession
.
setEty
(
ety
);
settleSession
.
setEtg
(
etg
);
...
...
@@ -387,7 +390,7 @@ public class SettleContext {
if
(
userVo
==
null
)
{
throw
new
CommonServiceException
(
"找不到 "
+
sessionUserVo
.
getLogName
()
+
" 用户信息!"
);
}
userVo
.
setEty
(
ETY_EXTKEY
);
//
userVo.setEty(ETY_EXTKEY);
// 填充用户信息
settleSession
.
setUserVo
(
userVo
);
...
...
@@ -413,6 +416,8 @@ public class SettleContext {
Atp
atp
=
atpMapper
.
getAtpByCod
(
settleSession
.
getTransName
());
settleSession
.
setAtp
(
atp
);
Ety
ety
=
etyMapper
.
getEtyByExtkey
(
usr
.
getEty
());
Etg
etg
=
etgMapper
.
getEtgByExtkey
(
ety
.
getEtg
());
settleSession
.
setEty
(
ety
);
settleSession
.
setEtg
(
etg
);
...
...
@@ -463,7 +468,7 @@ public class SettleContext {
if
(
userVo
==
null
)
{
throw
new
CommonServiceException
(
"找不到 "
+
sessionUserVo
.
getLogName
()
+
" 用户信息!"
);
}
userVo
.
setEty
(
ETY_EXTKEY
);
//
userVo.setEty(ETY_EXTKEY);
// 填充用户信息
settleSession
.
setUserVo
(
userVo
);
...
...
@@ -489,6 +494,8 @@ public class SettleContext {
Atp
atp
=
atpMapper
.
getAtpByCod
(
settleSession
.
getTransName
());
settleSession
.
setAtp
(
atp
);
Ety
ety
=
etyMapper
.
getEtyByExtkey
(
usr
.
getEty
());
Etg
etg
=
etgMapper
.
getEtgByExtkey
(
ety
.
getEtg
());
settleSession
.
setEty
(
ety
);
settleSession
.
setEtg
(
etg
);
...
...
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