Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chuanshan_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
廖旭伟
chuanshan_gov_platform
Commits
f92eecf2
Commit
f92eecf2
authored
Jun 07, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
事项申请列表增加类型名称
parent
aa741985
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
single-matter/src/main/java/com/mortals/xhx/module/apply/model/vo/MatterApplyVo.java
.../com/mortals/xhx/module/apply/model/vo/MatterApplyVo.java
+2
-0
single-matter/src/main/java/com/mortals/xhx/module/apply/service/impl/MatterApplyServiceImpl.java
...xhx/module/apply/service/impl/MatterApplyServiceImpl.java
+18
-0
No files found.
single-matter/src/main/java/com/mortals/xhx/module/apply/model/vo/MatterApplyVo.java
View file @
f92eecf2
...
...
@@ -27,4 +27,6 @@ public class MatterApplyVo extends BaseEntityLong {
/** 结束 申请时间 */
private
String
applyTimeEnd
;
private
String
applyTypeName
;
}
\ No newline at end of file
single-matter/src/main/java/com/mortals/xhx/module/apply/service/impl/MatterApplyServiceImpl.java
View file @
f92eecf2
...
...
@@ -5,6 +5,8 @@ import com.mortals.framework.model.Context;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.util.StringUtils
;
import
com.mortals.xhx.base.system.user.model.UserEntity
;
import
com.mortals.xhx.base.system.user.service.UserService
;
import
com.mortals.xhx.module.apply.dao.MatterApplyDao
;
import
com.mortals.xhx.module.apply.model.MatterApplyDatumEntity
;
import
com.mortals.xhx.module.apply.model.MatterApplyDatumQuery
;
...
...
@@ -38,6 +40,8 @@ public class MatterApplyServiceImpl extends AbstractCRUDServiceImpl<MatterApplyD
private
MatterApplyDatumService
matterApplyDatumService
;
@Autowired
private
ApproverService
approverService
;
@Autowired
private
UserService
userService
;
@Override
protected
void
saveBefore
(
MatterApplyEntity
entity
,
Context
context
)
throws
AppException
{
...
...
@@ -142,6 +146,20 @@ public class MatterApplyServiceImpl extends AbstractCRUDServiceImpl<MatterApplyD
for
(
MatterApplyEntity
entity:
list
){
List
<
MatterApplyDatumEntity
>
datumEntities
=
matterApplyDatumService
.
find
(
new
MatterApplyDatumQuery
().
applyId
(
entity
.
getId
()));
entity
.
setApplyDatumList
(
datumEntities
);
if
(
entity
.
getApplyType
()==
1
){
entity
.
setApplyTypeName
(
"移动端申请"
);
}
else
{
if
(
entity
.
getCreateUserId
()!=
null
)
{
UserEntity
userEntity
=
userService
.
get
(
entity
.
getCreateUserId
());
if
(
userEntity
!=
null
)
{
entity
.
setApplyTypeName
(
"后台申请("
+
userEntity
.
getRealName
()
+
")"
);
}
else
{
entity
.
setApplyTypeName
(
"后台申请"
);
}
}
else
{
entity
.
setApplyTypeName
(
"后台申请"
);
}
}
}
}
}
...
...
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