Commit 7387b49d by wuwenlong

Merge remote-tracking branch 'origin/dev' into dev

parents ba7010fc bf921dc4
...@@ -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.isEmpty(accountCode)) { if (StringUtils.isBlank(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.isEmpty(depCode)) { if (StringUtils.isBlank(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.isEmpty(accountCode)) { if (ObjectUtils.isNullBlank(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.isEmpty(depCode)) { if (ObjectUtils.isNullBlank(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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment