Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
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
platform
hg-smart
Commits
7387b49d
Commit
7387b49d
authored
May 08, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
ba7010fc
bf921dc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
DaoUtils.java
src/main/java/com/baosight/hggp/core/dao/DaoUtils.java
+4
-4
No files found.
src/main/java/com/baosight/hggp/core/dao/DaoUtils.java
View file @
7387b49d
...
@@ -108,7 +108,7 @@ public class DaoUtils {
...
@@ -108,7 +108,7 @@ public class DaoUtils {
// 创建人企业编码
// 创建人企业编码
try
{
try
{
String
accountCode
=
BeanUtils
.
getProperty
(
bean
,
"accountCode"
);
String
accountCode
=
BeanUtils
.
getProperty
(
bean
,
"accountCode"
);
if
(
StringUtils
.
is
Empty
(
accountCode
))
{
if
(
StringUtils
.
is
Blank
(
accountCode
))
{
accountCode
=
UserSessionUtils
.
getAccountCode
();
accountCode
=
UserSessionUtils
.
getAccountCode
();
AssertUtils
.
isEmpty
(
accountCode
,
"当前用户未绑定公司,无法操作数据,请联系管理员!"
);
AssertUtils
.
isEmpty
(
accountCode
,
"当前用户未绑定公司,无法操作数据,请联系管理员!"
);
}
}
...
@@ -119,7 +119,7 @@ public class DaoUtils {
...
@@ -119,7 +119,7 @@ public class DaoUtils {
// 创建人组织机构
// 创建人组织机构
try
{
try
{
String
depCode
=
BeanUtils
.
getProperty
(
bean
,
"depCode"
);
String
depCode
=
BeanUtils
.
getProperty
(
bean
,
"depCode"
);
if
(
StringUtils
.
is
Empty
(
depCode
))
{
if
(
StringUtils
.
is
Blank
(
depCode
))
{
List
<
String
>
orgIds
=
UserSessionUtils
.
getOrgId
();
List
<
String
>
orgIds
=
UserSessionUtils
.
getOrgId
();
AssertUtils
.
isEmpty
(
orgIds
,
"当前用户未绑定部门,无法操作数据,请联系管理员!"
);
AssertUtils
.
isEmpty
(
orgIds
,
"当前用户未绑定部门,无法操作数据,请联系管理员!"
);
depCode
=
orgIds
.
get
(
0
);
depCode
=
orgIds
.
get
(
0
);
...
@@ -169,7 +169,7 @@ public class DaoUtils {
...
@@ -169,7 +169,7 @@ public class DaoUtils {
// 创建人企业编码
// 创建人企业编码
try
{
try
{
String
accountCode
=
MapUtils
.
getString
(
map
,
"accountCode"
);
String
accountCode
=
MapUtils
.
getString
(
map
,
"accountCode"
);
if
(
ObjectUtils
.
is
Empty
(
accountCode
))
{
if
(
ObjectUtils
.
is
NullBlank
(
accountCode
))
{
accountCode
=
UserSessionUtils
.
getAccountCode
();
accountCode
=
UserSessionUtils
.
getAccountCode
();
AssertUtils
.
isEmpty
(
accountCode
,
"当前用户未绑定公司,无法操作数据,请联系管理员!"
);
AssertUtils
.
isEmpty
(
accountCode
,
"当前用户未绑定公司,无法操作数据,请联系管理员!"
);
}
}
...
@@ -180,7 +180,7 @@ public class DaoUtils {
...
@@ -180,7 +180,7 @@ public class DaoUtils {
// 创建人部门编码
// 创建人部门编码
try
{
try
{
String
depCode
=
MapUtils
.
getString
(
map
,
"depCode"
);
String
depCode
=
MapUtils
.
getString
(
map
,
"depCode"
);
if
(
ObjectUtils
.
is
Empty
(
depCode
))
{
if
(
ObjectUtils
.
is
NullBlank
(
depCode
))
{
List
<
String
>
orgIds
=
UserSessionUtils
.
getOrgId
();
List
<
String
>
orgIds
=
UserSessionUtils
.
getOrgId
();
AssertUtils
.
isEmpty
(
orgIds
,
"当前用户未绑定部门,无法操作数据,请联系管理员!"
);
AssertUtils
.
isEmpty
(
orgIds
,
"当前用户未绑定部门,无法操作数据,请联系管理员!"
);
depCode
=
orgIds
.
get
(
0
);
depCode
=
orgIds
.
get
(
0
);
...
...
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