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
43dde8b5
Commit
43dde8b5
authored
1 year ago
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
事项申请列表返回值增加材料分组
parent
4fe75cfa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
single-matter/src/main/java/com/mortals/xhx/module/apply/service/impl/MatterApplyServiceImpl.java
...xhx/module/apply/service/impl/MatterApplyServiceImpl.java
+17
-0
single-matter/src/main/java/com/mortals/xhx/module/single/model/vo/SingleMatterVo.java
...om/mortals/xhx/module/single/model/vo/SingleMatterVo.java
+2
-0
single-matter/src/main/java/com/mortals/xhx/module/single/service/impl/SingleMatterServiceImpl.java
...x/module/single/service/impl/SingleMatterServiceImpl.java
+2
-0
No files found.
single-matter/src/main/java/com/mortals/xhx/module/apply/service/impl/MatterApplyServiceImpl.java
View file @
43dde8b5
...
...
@@ -17,6 +17,10 @@ import com.mortals.xhx.module.apply.model.vo.MatterApplyDatumGroupVO;
import
com.mortals.xhx.module.apply.service.ApproverService
;
import
com.mortals.xhx.module.apply.service.MatterApplyDatumService
;
import
com.mortals.xhx.module.apply.service.MatterApplyService
;
import
com.mortals.xhx.module.matter.model.MatterEntity
;
import
com.mortals.xhx.module.matter.service.MatterService
;
import
com.mortals.xhx.module.single.model.SingleMatterEntity
;
import
com.mortals.xhx.module.single.service.SingleMatterService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.BeanUtils
;
...
...
@@ -46,9 +50,22 @@ public class MatterApplyServiceImpl extends AbstractCRUDServiceImpl<MatterApplyD
private
ApproverService
approverService
;
@Autowired
private
UserService
userService
;
@Autowired
private
SingleMatterService
singleMatterService
;
@Override
protected
void
saveBefore
(
MatterApplyEntity
entity
,
Context
context
)
throws
AppException
{
if
(
entity
.
getSingleMatterId
()==
null
){
throw
new
AppException
(
"单事项ID不能为空"
);
}
if
(
entity
.
getMatterId
()==
null
){
throw
new
AppException
(
"基础事项ID不能为空"
);
}
SingleMatterEntity
singleMatterEntity
=
singleMatterService
.
get
(
entity
.
getSingleMatterId
());
if
(
singleMatterEntity
!=
null
){
entity
.
setDeptCode
(
singleMatterEntity
.
getDeptCode
());
entity
.
setMatterName
(
singleMatterEntity
.
getMatterName
());
}
entity
.
setSiteId
(
1
l
);
entity
.
setApplyTime
(
entity
.
getCreateTime
());
entity
.
setApplyState
(
0
);
...
...
This diff is collapsed.
Click to expand it.
single-matter/src/main/java/com/mortals/xhx/module/single/model/vo/SingleMatterVo.java
View file @
43dde8b5
...
...
@@ -16,4 +16,6 @@ public class SingleMatterVo extends BaseEntityLong {
private
Integer
hasApplyForm
=
0
;
/** 申请表下载地址 */
private
String
applyFormUrl
;
/** 申请表文件名称 */
private
String
applyFormFileName
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
single-matter/src/main/java/com/mortals/xhx/module/single/service/impl/SingleMatterServiceImpl.java
View file @
43dde8b5
...
...
@@ -49,6 +49,7 @@ public class SingleMatterServiceImpl extends AbstractCRUDServiceImpl<SingleMatte
if
(
singleMatterFileEntity
!=
null
){
item
.
setHasApplyForm
(
1
);
item
.
setApplyFormUrl
(
singleMatterFileEntity
.
getFileUrl
());
item
.
setApplyFormFileName
(
singleMatterFileEntity
.
getFilename
());
}
}).
count
();
super
.
findAfter
(
params
,
context
,
list
);
...
...
@@ -67,6 +68,7 @@ public class SingleMatterServiceImpl extends AbstractCRUDServiceImpl<SingleMatte
if
(
singleMatterFileEntity
!=
null
){
item
.
setHasApplyForm
(
1
);
item
.
setApplyFormUrl
(
singleMatterFileEntity
.
getFileUrl
());
item
.
setApplyFormFileName
(
singleMatterFileEntity
.
getFilename
());
}
}).
count
();
super
.
findAfter
(
params
,
context
,
list
);
...
...
This diff is collapsed.
Click to expand it.
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