Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
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
王衍超
cloud-fb
Commits
ec9e8b47
Commit
ec9e8b47
authored
Mar 19, 2021
by
王衍超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改采砂用户功能;
parent
f03a3456
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
23 additions
and
83 deletions
+23
-83
SandUserContextConstants.java
...code/inz/basis/context/sand/SandUserContextConstants.java
+1
-1
SandUserContextRepository.java
...ode/inz/basis/context/sand/SandUserContextRepository.java
+7
-7
Position$sequence.jmx
...n/resources/com/xyst/dinas/biz/bill/Position$sequence.jmx
+1
-5
Position$serial.jmx
...ain/resources/com/xyst/dinas/biz/bill/Position$serial.jmx
+1
-5
Position.jmx
...z/src/main/resources/com/xyst/dinas/biz/bill/Position.jmx
+1
-5
BusinessTripApply$sequence.jmx
...ces/com/xyst/dinas/oa/bill/BusinessTripApply$sequence.jmx
+1
-5
BusinessTripApply$serial.jmx
...urces/com/xyst/dinas/oa/bill/BusinessTripApply$serial.jmx
+1
-5
BusinessTripApply.jmx
...in/resources/com/xyst/dinas/oa/bill/BusinessTripApply.jmx
+1
-5
ProtocolDocument$sequence.jmx
...rces/com/xyst/dinas/oa/bill/ProtocolDocument$sequence.jmx
+1
-5
ProtocolDocument$serial.jmx
...ources/com/xyst/dinas/oa/bill/ProtocolDocument$serial.jmx
+1
-5
ProtocolDocument.jmx
...ain/resources/com/xyst/dinas/oa/bill/ProtocolDocument.jmx
+1
-5
SealBorrow$sequence.jmx
.../resources/com/xyst/dinas/oa/bill/SealBorrow$sequence.jmx
+1
-5
SealBorrow$serial.jmx
...in/resources/com/xyst/dinas/oa/bill/SealBorrow$serial.jmx
+1
-5
SealBorrow.jmx
.../src/main/resources/com/xyst/dinas/oa/bill/SealBorrow.jmx
+1
-5
UseCarApply$sequence.jmx
...resources/com/xyst/dinas/oa/bill/UseCarApply$sequence.jmx
+1
-5
UseCarApply$serial.jmx
...n/resources/com/xyst/dinas/oa/bill/UseCarApply$serial.jmx
+1
-5
UseCarApply.jmx
...src/main/resources/com/xyst/dinas/oa/bill/UseCarApply.jmx
+1
-5
No files found.
backend/inz.basis/src/main/java/com/beecode/inz/basis/context/sand/SandUserContextConstants.java
View file @
ec9e8b47
...
...
@@ -5,6 +5,6 @@ public interface SandUserContextConstants {
/**
* 当前用户
*/
public
String
CURRENT_
WAREHOUSE_
USER
=
"currentSandUser"
;
public
String
CURRENT_USER
=
"currentSandUser"
;
}
backend/inz.basis/src/main/java/com/beecode/inz/basis/context/sand/SandUserContextRepository.java
View file @
ec9e8b47
...
...
@@ -34,7 +34,7 @@ public class SandUserContextRepository {
@Autowired
private
ObjectMapper
objectMapper
;
public
static
final
String
WAREHOUSE_USER_CONTEXT_KEY
=
"WAREHOUSE
_USER_CONTEXT"
;
public
static
final
String
SAND_USER_CONTEXT_KEY
=
"SAND
_USER_CONTEXT"
;
protected
final
Log
logger
=
LogFactory
.
getLog
(
this
.
getClass
());
...
...
@@ -74,7 +74,7 @@ public class SandUserContextRepository {
if
(
session
==
null
)
{
return
false
;
}
return
session
.
getAttribute
(
WAREHOUSE
_USER_CONTEXT_KEY
)
!=
null
;
return
session
.
getAttribute
(
SAND
_USER_CONTEXT_KEY
)
!=
null
;
}
protected
SandUserContext
generateNewContext
(
HttpSession
httpSession
)
{
...
...
@@ -91,7 +91,7 @@ public class SandUserContextRepository {
}
SandUser
SandUser
=
null
;
String
SandUserJsonObj
=
(
String
)
httpSession
.
getAttribute
(
SandUserContextConstants
.
CURRENT_
WAREHOUSE_
USER
);
String
SandUserJsonObj
=
(
String
)
httpSession
.
getAttribute
(
SandUserContextConstants
.
CURRENT_USER
);
if
(
StringUtils
.
isEmpty
(
SandUserJsonObj
))
{
try
{
Authentication
authentication
=
SecurityContextHolder
.
getContext
().
getAuthentication
();
...
...
@@ -106,7 +106,7 @@ public class SandUserContextRepository {
if
(
null
==
SandUser
)
{
throw
new
RuntimeException
(
"not found SandUser#"
+
userName
);
}
httpSession
.
setAttribute
(
SandUserContextConstants
.
CURRENT_
WAREHOUSE_
USER
,
objectMapper
.
writeValueAsString
(
SandUser
));
httpSession
.
setAttribute
(
SandUserContextConstants
.
CURRENT_USER
,
objectMapper
.
writeValueAsString
(
SandUser
));
}
catch
(
JsonProcessingException
e
)
{
e
.
printStackTrace
();
...
...
@@ -116,7 +116,7 @@ public class SandUserContextRepository {
SandUser
=
objectMapper
.
readValue
(
SandUserJsonObj
,
SandUser
.
class
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
httpSession
.
removeAttribute
(
SandUserContextConstants
.
CURRENT_
WAREHOUSE_
USER
);
httpSession
.
removeAttribute
(
SandUserContextConstants
.
CURRENT_USER
);
}
}
...
...
@@ -180,7 +180,7 @@ public class SandUserContextRepository {
// session
// SEC-1735 remove if the contextBeforeExecution was not
// anonymous
httpSession
.
removeAttribute
(
WAREHOUSE
_USER_CONTEXT_KEY
);
httpSession
.
removeAttribute
(
SAND
_USER_CONTEXT_KEY
);
}
return
;
}
...
...
@@ -196,7 +196,7 @@ public class SandUserContextRepository {
// We may have a new session, so check also whether the context
// attribute
// is set SEC-1561
if
(
contextChanged
(
context
)
||
httpSession
.
getAttribute
(
WAREHOUSE
_USER_CONTEXT_KEY
)
==
null
)
{
if
(
contextChanged
(
context
)
||
httpSession
.
getAttribute
(
SAND
_USER_CONTEXT_KEY
)
==
null
)
{
// httpSession.setAttribute(customerContextKey, context);
if
(
logger
.
isDebugEnabled
())
{
...
...
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/bill/Position$sequence.jmx
View file @
ec9e8b47
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-sequence"
>
<specification>
1.0
</specification>
<<<<<<
< HEAD
<id
>
7f76e0b6-30c6-4365-b7a8-ed44b83ac742
</id>
=======
<id>
2a96eab1-c316-400c-8dfe-73277f5a618e
</id>
>>>>>>> e1eeb4e1cecf0ac7f3c02d6be14a7a3c953e6551
<id>
a5be25d5-3ed4-41d7-93e3-fc35d4b56ace
</id>
<name>
com.xyst.dinas.biz.bill.Position$sequence
</name>
<title>
岗位$sequence
</title>
<description>
岗位
</description>
...
...
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/bill/Position$serial.jmx
View file @
ec9e8b47
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-serial"
>
<specification>
1.0
</specification>
<<<<<<
< HEAD
<id
>
4ab0c98c-a865-4cc5-aa98-65062df17a7e
</id>
=======
<id>
15a90012-30db-4266-b2dc-f05cac8f5865
</id>
>>>>>>> e1eeb4e1cecf0ac7f3c02d6be14a7a3c953e6551
<id>
805f11cf-2f52-4530-bd82-4dc8c2e9cb23
</id>
<name>
com.xyst.dinas.biz.bill.Position$serial
</name>
<title>
岗位$serial
</title>
<description>
岗位
</description>
...
...
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/bill/Position.jmx
View file @
ec9e8b47
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-biztype"
>
<specification>
1.0
</specification>
<<<<<<
< HEAD
<id
>
33903504-3e8e-48a9-bdc3-05c7197f842c
</id>
=======
<id>
be913aae-6093-474c-b008-ba25211f107e
</id>
>>>>>>> e1eeb4e1cecf0ac7f3c02d6be14a7a3c953e6551
<id>
bd507082-d5d9-4b82-ae89-e8190d21efb9
</id>
<name>
com.xyst.dinas.biz.bill.Position
</name>
<title>
岗位
</title>
<description>
岗位
</description>
...
...
backend/xyst.dinas.oa/src/main/resources/com/xyst/dinas/oa/bill/BusinessTripApply$sequence.jmx
View file @
ec9e8b47
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-sequence"
>
<specification>
1.0
</specification>
<<<<<<
< HEAD
<id
>
e7136a79-9d58-4402-a53c-af0629a9b9a4
</id>
=======
<id>
61aee674-615d-4458-8f8d-c05110452d33
</id>
>>>>>>> e1eeb4e1cecf0ac7f3c02d6be14a7a3c953e6551
<id>
5ccfe86d-3a09-4096-942c-12f0cf34b2c9
</id>
<name>
com.xyst.dinas.oa.bill.BusinessTripApply$sequence
</name>
<title>
出差申请$sequence
</title>
<description>
出差申请
</description>
...
...
backend/xyst.dinas.oa/src/main/resources/com/xyst/dinas/oa/bill/BusinessTripApply$serial.jmx
View file @
ec9e8b47
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-serial"
>
<specification>
1.0
</specification>
<<<<<<
< HEAD
<id
>
55bb1063-d13c-4862-a854-cb60be8239d5
</id>
=======
<id>
79839413-2bfb-4318-a1eb-e7814f596d32
</id>
>>>>>>> e1eeb4e1cecf0ac7f3c02d6be14a7a3c953e6551
<id>
fa113b4f-9717-463b-b5c7-c39274105c4d
</id>
<name>
com.xyst.dinas.oa.bill.BusinessTripApply$serial
</name>
<title>
出差申请$serial
</title>
<description>
出差申请
</description>
...
...
backend/xyst.dinas.oa/src/main/resources/com/xyst/dinas/oa/bill/BusinessTripApply.jmx
View file @
ec9e8b47
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-biztype"
>
<specification>
1.0
</specification>
<<<<<<
< HEAD
<id
>
ec447a08-5c30-4ecc-a85a-f277f50dbc4e
</id>
=======
<id>
49c6c36a-38a9-46b4-a84b-899535ce796b
</id>
>>>>>>> e1eeb4e1cecf0ac7f3c02d6be14a7a3c953e6551
<id>
34032bde-f86d-42c5-9e54-815d2df4a38d
</id>
<name>
com.xyst.dinas.oa.bill.BusinessTripApply
</name>
<title>
出差申请
</title>
<description>
出差申请
</description>
...
...
backend/xyst.dinas.oa/src/main/resources/com/xyst/dinas/oa/bill/ProtocolDocument$sequence.jmx
View file @
ec9e8b47
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-sequence"
>
<specification>
1.0
</specification>
<<<<<<
< HEAD
<id
>
9409d229-d33b-433d-9e26-2633c863fea4
</id>
=======
<id>
322b4f87-72ba-4d4e-8455-512d61b449e1
</id>
>>>>>>> e1eeb4e1cecf0ac7f3c02d6be14a7a3c953e6551
<id>
5e0ac321-141b-47c7-9ad6-9f79bd4200a4
</id>
<name>
com.xyst.dinas.oa.bill.ProtocolDocument$sequence
</name>
<title>
拟文$sequence
</title>
<description>
拟文
</description>
...
...
backend/xyst.dinas.oa/src/main/resources/com/xyst/dinas/oa/bill/ProtocolDocument$serial.jmx
View file @
ec9e8b47
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-serial"
>
<specification>
1.0
</specification>
<<<<<<
< HEAD
<id
>
defcdd02-7707-4a13-a368-5d5d5080ee23
</id>
=======
<id>
b050fc3f-9e62-4dee-8e53-a1ab61737dde
</id>
>>>>>>> e1eeb4e1cecf0ac7f3c02d6be14a7a3c953e6551
<id>
3244bf79-7b2b-4be1-80c8-1864ce709939
</id>
<name>
com.xyst.dinas.oa.bill.ProtocolDocument$serial
</name>
<title>
拟文$serial
</title>
<description>
拟文
</description>
...
...
backend/xyst.dinas.oa/src/main/resources/com/xyst/dinas/oa/bill/ProtocolDocument.jmx
View file @
ec9e8b47
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-biztype"
>
<specification>
1.0
</specification>
<<<<<<
< HEAD
<id
>
c6741756-a59b-448f-ba12-7573d0916500
</id>
=======
<id>
4c19c3a8-6955-4f7a-aa97-989e22b20ffe
</id>
>>>>>>> e1eeb4e1cecf0ac7f3c02d6be14a7a3c953e6551
<id>
2ccd3fa2-51cc-4547-8e00-4ffc62150a03
</id>
<name>
com.xyst.dinas.oa.bill.ProtocolDocument
</name>
<title>
拟文
</title>
<description>
拟文
</description>
...
...
backend/xyst.dinas.oa/src/main/resources/com/xyst/dinas/oa/bill/SealBorrow$sequence.jmx
View file @
ec9e8b47
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-sequence"
>
<specification>
1.0
</specification>
<<<<<<
< HEAD
<id
>
3a4943d0-5867-4e75-bd3a-4383cdbe177e
</id>
=======
<id>
5a583754-de0c-4884-a37e-613a82e0db8f
</id>
>>>>>>> e1eeb4e1cecf0ac7f3c02d6be14a7a3c953e6551
<id>
6438c802-9eb6-47e2-a6fb-1ff2876ce099
</id>
<name>
com.xyst.dinas.oa.bill.SealBorrow$sequence
</name>
<title>
证章借出$sequence
</title>
<description>
证章借出
</description>
...
...
backend/xyst.dinas.oa/src/main/resources/com/xyst/dinas/oa/bill/SealBorrow$serial.jmx
View file @
ec9e8b47
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-serial"
>
<specification>
1.0
</specification>
<<<<<<
< HEAD
<id
>
a05be48f-04b2-4ce4-8479-6b72b61f60ad
</id>
=======
<id>
9311fb59-73d8-4241-a570-a962f280034f
</id>
>>>>>>> e1eeb4e1cecf0ac7f3c02d6be14a7a3c953e6551
<id>
b132b075-ae72-409a-a55f-22cd9938fbb4
</id>
<name>
com.xyst.dinas.oa.bill.SealBorrow$serial
</name>
<title>
证章借出$serial
</title>
<description>
证章借出
</description>
...
...
backend/xyst.dinas.oa/src/main/resources/com/xyst/dinas/oa/bill/SealBorrow.jmx
View file @
ec9e8b47
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-biztype"
>
<specification>
1.0
</specification>
<<<<<<
< HEAD
<id
>
e37cda04-f87d-4654-9f21-584266c2943d
</id>
=======
<id>
e705d36c-0ca6-46be-9f89-48389d162e3e
</id>
>>>>>>> e1eeb4e1cecf0ac7f3c02d6be14a7a3c953e6551
<id>
bceccd52-bbcf-4a61-a60e-2c623920899f
</id>
<name>
com.xyst.dinas.oa.bill.SealBorrow
</name>
<title>
证章借出
</title>
<description>
证章借出
</description>
...
...
backend/xyst.dinas.oa/src/main/resources/com/xyst/dinas/oa/bill/UseCarApply$sequence.jmx
View file @
ec9e8b47
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-sequence"
>
<specification>
1.0
</specification>
<<<<<<
< HEAD
<id
>
c9f4221c-5f56-43d8-bf3f-823fdee8e35a
</id>
=======
<id>
cf3798f9-c744-4ee5-afe5-52cf07e246cb
</id>
>>>>>>> e1eeb4e1cecf0ac7f3c02d6be14a7a3c953e6551
<id>
2084c1e0-7086-4188-8d8a-e8b996b30ab9
</id>
<name>
com.xyst.dinas.oa.bill.UseCarApply$sequence
</name>
<title>
用车申请$sequence
</title>
<description>
用车申请
</description>
...
...
backend/xyst.dinas.oa/src/main/resources/com/xyst/dinas/oa/bill/UseCarApply$serial.jmx
View file @
ec9e8b47
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-serial"
>
<specification>
1.0
</specification>
<<<<<<
< HEAD
<id
>
13edff2f-bc4d-4041-9d09-2881245d1ccd
</id>
=======
<id>
8087d2fa-7450-4054-961e-01f5cc35b3c9
</id>
>>>>>>> e1eeb4e1cecf0ac7f3c02d6be14a7a3c953e6551
<id>
e7544710-bc86-47e3-a63f-7375222d9e95
</id>
<name>
com.xyst.dinas.oa.bill.UseCarApply$serial
</name>
<title>
用车申请$serial
</title>
<description>
用车申请
</description>
...
...
backend/xyst.dinas.oa/src/main/resources/com/xyst/dinas/oa/bill/UseCarApply.jmx
View file @
ec9e8b47
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-biztype"
>
<specification>
1.0
</specification>
<<<<<<
< HEAD
<id
>
4ede1d03-e4a0-4a64-836c-e6e9f8f203a3
</id>
=======
<id>
6f73f099-8c03-4ee5-80f3-527c0bd4ed37
</id>
>>>>>>> e1eeb4e1cecf0ac7f3c02d6be14a7a3c953e6551
<id>
f313762f-ef57-4810-a6b6-b3e4f45b22d6
</id>
<name>
com.xyst.dinas.oa.bill.UseCarApply
</name>
<title>
用车申请
</title>
<description>
用车申请
</description>
...
...
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