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
ff88aadd
Commit
ff88aadd
authored
May 22, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单事项申请增加siteId值写入,单事项预审增加批量审批接口
parent
db549d57
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
1 deletion
+69
-1
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/MatterApplyService.java
.../mortals/xhx/module/apply/service/MatterApplyService.java
+7
-0
single-matter/src/main/java/com/mortals/xhx/module/apply/service/impl/MatterApplyServiceImpl.java
...xhx/module/apply/service/impl/MatterApplyServiceImpl.java
+26
-1
single-matter/src/main/java/com/mortals/xhx/module/apply/web/MatterApplyController.java
...m/mortals/xhx/module/apply/web/MatterApplyController.java
+34
-0
No files found.
single-matter/src/main/java/com/mortals/xhx/module/apply/model/vo/MatterApplyVo.java
View file @
ff88aadd
...
...
@@ -31,4 +31,6 @@ public class MatterApplyVo extends BaseEntityLong {
private
String
applyTypeName
;
private
List
<
MatterApplyDatumGroupVO
>
datumGroupList
;
private
List
<
Long
>
idList
;
}
\ No newline at end of file
single-matter/src/main/java/com/mortals/xhx/module/apply/service/MatterApplyService.java
View file @
ff88aadd
...
...
@@ -30,4 +30,11 @@ public interface MatterApplyService extends ICRUDService<MatterApplyEntity,Long>
* @throws AppException
*/
void
reApply
(
MatterApplyEntity
entity
,
Context
context
)
throws
AppException
;
/**
* 批量审批
* @param entity
* @throws AppException
*/
void
applyExamineBatch
(
MatterApplyEntity
entity
,
Context
context
)
throws
AppException
;
}
\ No newline at end of file
single-matter/src/main/java/com/mortals/xhx/module/apply/service/impl/MatterApplyServiceImpl.java
View file @
ff88aadd
...
...
@@ -71,7 +71,7 @@ public class MatterApplyServiceImpl extends AbstractCRUDServiceImpl<MatterApplyD
entity
.
setDeptCode
(
singleMatterEntity
.
getDeptCode
());
entity
.
setMatterName
(
singleMatterEntity
.
getMatterName
());
}
entity
.
setSiteId
(
1
l
);
//
entity.setSiteId(1l);
entity
.
setApplyTime
(
entity
.
getCreateTime
());
entity
.
setApplyState
(
0
);
}
...
...
@@ -274,4 +274,29 @@ public class MatterApplyServiceImpl extends AbstractCRUDServiceImpl<MatterApplyD
protected
void
removeAfter
(
Long
[]
ids
,
Context
context
,
int
result
)
throws
AppException
{
matterApplyDatumService
.
remobeByApplyIds
(
ids
,
context
);
}
@Override
public
void
applyExamineBatch
(
MatterApplyEntity
entity
,
Context
context
)
throws
AppException
{
if
(
CollectionUtils
.
isEmpty
(
entity
.
getIdList
()))
{
throw
new
AppException
(
"申报id不能为空"
);
}
if
(
entity
.
getApplyState
()
==
null
)
{
throw
new
AppException
(
"审批状态不能为空"
);
}
List
<
MatterApplyEntity
>
updateList
=
new
ArrayList
<>();
for
(
Long
id:
entity
.
getIdList
())
{
MatterApplyEntity
update
=
new
MatterApplyEntity
();
update
.
setId
(
id
);
update
.
setApplyState
(
entity
.
getApplyState
());
update
.
setAdvisement
(
entity
.
getAdvisement
());
if
(
context
!=
null
&&
context
.
getUser
()
!=
null
)
{
update
.
setUpdateUserId
(
context
.
getUser
().
getId
());
}
update
.
setUpdateTime
(
new
Date
());
updateList
.
add
(
update
);
}
if
(
updateList
.
size
()>
0
)
{
dao
.
updateBatch
(
updateList
);
}
}
}
\ No newline at end of file
single-matter/src/main/java/com/mortals/xhx/module/apply/web/MatterApplyController.java
View file @
ff88aadd
...
...
@@ -178,6 +178,40 @@ public class MatterApplyController extends BaseCRUDJsonBodyMappingController<Mat
return
ret
.
toJSONString
();
}
/**
* 批量审批
* @param entity
* @return
*/
@PostMapping
({
"examine/batch"
})
public
String
applyExamineBatch
(
@RequestBody
MatterApplyEntity
entity
)
{
Map
<
String
,
Object
>
model
=
new
HashMap
();
Context
context
=
this
.
getContext
();
String
busiDesc
=
"审批"
+
this
.
getModuleDesc
();
int
code
;
try
{
this
.
service
.
applyExamineBatch
(
entity
,
context
);
model
.
put
(
"id"
,
entity
.
getId
());
code
=
this
.
saveAfter
(
entity
,
model
,
context
);
model
.
put
(
"entity"
,
entity
);
model
.
put
(
"message_info"
,
busiDesc
+
"成功"
);
this
.
recordSysLog
(
this
.
request
,
busiDesc
+
" 【成功】 [id:"
+
entity
.
getId
()
+
"]"
);
}
catch
(
Exception
var9
)
{
this
.
doException
(
this
.
request
,
busiDesc
,
model
,
var9
);
model
.
put
(
"entity"
,
entity
);
this
.
init
(
model
,
context
);
code
=
this
.
saveException
(
entity
,
model
,
context
,
var9
);
}
this
.
init
(
model
,
context
);
JSONObject
ret
=
new
JSONObject
();
ret
.
put
(
"code"
,
code
);
ret
.
put
(
"msg"
,
model
.
remove
(
"message_info"
));
ret
.
put
(
"data"
,
model
);
return
ret
.
toJSONString
();
}
/**
* 重新申请
* @param entity
...
...
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