Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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
base_platform_enterprise
gic-platform-enterprise
Commits
d4c6404d
Commit
d4c6404d
authored
Nov 19, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
9f5fe385
b213ac12
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
13 deletions
+24
-13
ConfigRuleEnterpriseServiceImpl.java
...erprise/service/impl/ConfigRuleEnterpriseServiceImpl.java
+1
-1
ConfigRuleEnterpriseApiServiceImpl.java
...ervice/outer/impl/ConfigRuleEnterpriseApiServiceImpl.java
+1
-1
AuditLogController.java
...com/gic/enterprise/web/controller/AuditLogController.java
+22
-11
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/ConfigRuleEnterpriseServiceImpl.java
View file @
d4c6404d
...
@@ -37,7 +37,7 @@ public class ConfigRuleEnterpriseServiceImpl implements ConfigRuleEnterpriseServ
...
@@ -37,7 +37,7 @@ public class ConfigRuleEnterpriseServiceImpl implements ConfigRuleEnterpriseServ
public
Integer
save
(
RuleEnterpriseDTO
dto
)
{
public
Integer
save
(
RuleEnterpriseDTO
dto
)
{
dto
.
setCreateTime
(
new
Date
());
dto
.
setCreateTime
(
new
Date
());
dto
.
setUpdateTime
(
new
Date
());
dto
.
setUpdateTime
(
new
Date
());
dto
.
set
Status
(
1
);
dto
.
set
DeleteFlag
(
0
);
TabConfigRuleEnterprise
record
=
EntityUtil
.
changeEntityNew
(
TabConfigRuleEnterprise
.
class
,
dto
);
TabConfigRuleEnterprise
record
=
EntityUtil
.
changeEntityNew
(
TabConfigRuleEnterprise
.
class
,
dto
);
tabConfigRuleEnterpriseMapper
.
insert
(
record
);
tabConfigRuleEnterpriseMapper
.
insert
(
record
);
return
record
.
getEnterpriseRuleId
();
return
record
.
getEnterpriseRuleId
();
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/ConfigRuleEnterpriseApiServiceImpl.java
View file @
d4c6404d
...
@@ -185,7 +185,7 @@ public class ConfigRuleEnterpriseApiServiceImpl implements ConfigRuleEnterpriseA
...
@@ -185,7 +185,7 @@ public class ConfigRuleEnterpriseApiServiceImpl implements ConfigRuleEnterpriseA
if
(
defaultRule
!=
null
&&
defaultRule
.
getEnterpriseRuleId
().
intValue
()
==
enterpriseRuleId
)
{
if
(
defaultRule
!=
null
&&
defaultRule
.
getEnterpriseRuleId
().
intValue
()
==
enterpriseRuleId
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"平台默认规则不允许删除"
);
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"平台默认规则不允许删除"
);
}
}
configRuleEnterpriseService
.
update
(
record
.
setDeleteFlag
(
0
));
configRuleEnterpriseService
.
update
(
record
.
setDeleteFlag
(
1
));
//解绑
//解绑
configRuleEnterpriseService
.
deleteByEnterpriseRuleId
(
enterpriseRuleId
);
configRuleEnterpriseService
.
deleteByEnterpriseRuleId
(
enterpriseRuleId
);
configRuleEnterpriseService
.
deleteByEnterpriseRuleIdForRuleRel
(
enterpriseRuleId
);
configRuleEnterpriseService
.
deleteByEnterpriseRuleIdForRuleRel
(
enterpriseRuleId
);
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/AuditLogController.java
View file @
d4c6404d
...
@@ -14,6 +14,7 @@ import com.gic.enterprise.qo.AuditLogQO;
...
@@ -14,6 +14,7 @@ import com.gic.enterprise.qo.AuditLogQO;
import
com.gic.enterprise.service.AuditLogApiService
;
import
com.gic.enterprise.service.AuditLogApiService
;
import
com.gic.enterprise.service.ProjectItemApiService
;
import
com.gic.enterprise.service.ProjectItemApiService
;
import
com.gic.enterprise.utils.ResultControllerUtils
;
import
com.gic.enterprise.utils.ResultControllerUtils
;
import
com.gic.enterprise.utils.UserDetail
;
import
com.gic.enterprise.utils.UserDetailUtils
;
import
com.gic.enterprise.utils.UserDetailUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -44,20 +45,30 @@ public class AuditLogController {
...
@@ -44,20 +45,30 @@ public class AuditLogController {
auditLogDTO
.
setAuditLogId
(
auditLogQO
.
getAuditLogId
());
auditLogDTO
.
setAuditLogId
(
auditLogQO
.
getAuditLogId
());
auditLogDTO
.
setAuditResult
(
auditLogQO
.
getAuditResult
());
auditLogDTO
.
setAuditResult
(
auditLogQO
.
getAuditResult
());
auditLogDTO
.
setAuditReason
(
auditLogQO
.
getAuditReason
());
auditLogDTO
.
setAuditReason
(
auditLogQO
.
getAuditReason
());
ServiceResponse
<
AuditorDTO
>
auditorServiceResponse
;
UserDetail
userDetail
=
UserDetailUtils
.
getUserDetail
();
AuditorDTO
auditorDTO
;
if
(
StringUtils
.
isNotBlank
(
auditLogQO
.
getOpenid
()))
{
if
(
StringUtils
.
isNotBlank
(
auditLogQO
.
getOpenid
()))
{
auditorServiceResponse
=
auditorApiService
.
getAuditorByOpenid
(
auditLogQO
.
getOpenid
());
ServiceResponse
<
AuditorDTO
>
auditorServiceResponse
=
auditorApiService
.
getAuditorByOpenid
(
auditLogQO
.
getOpenid
());
}
else
if
(
UserDetailUtils
.
getUserDetail
()
!=
null
)
{
if
(!
auditorServiceResponse
.
isSuccess
())
{
auditorServiceResponse
=
auditorApiService
.
getAuditorByUserId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
UserDetailUtils
.
getUserDetail
().
getUserId
());
return
ResultControllerUtils
.
commonResult
(
auditorServiceResponse
);
}
else
{
}
auditorDTO
=
auditorServiceResponse
.
getResult
();
}
else
if
(
userDetail
!=
null
)
{
if
(
userDetail
.
getUserInfo
().
getSuperAdmin
()
==
0
)
{
ServiceResponse
<
AuditorDTO
>
auditorServiceResponse
=
auditorApiService
.
getAuditorByUserId
(
userDetail
.
getEnterpriseId
(),
userDetail
.
getUserId
());
if
(!
auditorServiceResponse
.
isSuccess
())
{
return
ResultControllerUtils
.
commonResult
(
auditorServiceResponse
);
}
auditorDTO
=
auditorServiceResponse
.
getResult
();
}
else
{
auditorDTO
=
new
AuditorDTO
();
auditorDTO
.
setAuditorId
(
null
);
auditLogDTO
.
setAuditorName
(
userDetail
.
getUserInfo
().
getUserName
());
auditLogDTO
.
setAuditorPhone
(
userDetail
.
getUserInfo
().
getPhoneNumber
());
}
}
else
{
return
RestResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"参数错误"
);
return
RestResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"参数错误"
);
}
}
if
(!
auditorServiceResponse
.
isSuccess
())
{
return
ResultControllerUtils
.
commonResult
(
auditorServiceResponse
);
}
auditLogDTO
.
setAuditorId
(
auditorServiceResponse
.
getResult
().
getAuditorId
());
auditLogDTO
.
setAuditorName
(
auditorServiceResponse
.
getResult
().
getAuditorName
());
auditLogDTO
.
setAuditorPhone
(
auditorServiceResponse
.
getResult
().
getPhone
());
ServiceResponse
<
AuditLogDTO
>
serviceResponse
=
auditLogApiService
.
audit
(
auditLogDTO
);
ServiceResponse
<
AuditLogDTO
>
serviceResponse
=
auditLogApiService
.
audit
(
auditLogDTO
);
if
(
serviceResponse
.
isSuccess
())
{
if
(
serviceResponse
.
isSuccess
())
{
createLog
(
auditLogDTO
);
createLog
(
auditLogDTO
);
...
...
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