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
be2fe103
Commit
be2fe103
authored
Jun 20, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单事项预审增加撤回接口
parent
14f57ba1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
1 deletion
+40
-1
single-matter/db/add_table.sql
single-matter/db/add_table.sql
+4
-0
single-matter/src/main/java/com/mortals/xhx/common/utils/MatterApplyDelayTask.java
...va/com/mortals/xhx/common/utils/MatterApplyDelayTask.java
+1
-1
single-matter/src/main/java/com/mortals/xhx/module/apply/web/MatterApplyController.java
...m/mortals/xhx/module/apply/web/MatterApplyController.java
+35
-0
No files found.
single-matter/db/add_table.sql
View file @
be2fe103
...
@@ -78,3 +78,7 @@ INSERT INTO `mortals_xhx_param` (`name`, `firstOrganize`, `secondOrganize`, `par
...
@@ -78,3 +78,7 @@ INSERT INTO `mortals_xhx_param` (`name`, `firstOrganize`, `secondOrganize`, `par
INSERT
INTO
`mortals_xhx_param`
(
`name`
,
`firstOrganize`
,
`secondOrganize`
,
`paramKey`
,
`paramValue`
,
`validStatus`
,
`modStatus`
,
`displayType`
,
`remark`
,
`createTime`
,
`createUserId`
,
`createUserName`
)
VALUES
(
'性别'
,
'MatterApply'
,
'sexual'
,
'1'
,
'男'
,
'1'
,
'4'
,
'0'
,
'sexual'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
(
`name`
,
`firstOrganize`
,
`secondOrganize`
,
`paramKey`
,
`paramValue`
,
`validStatus`
,
`modStatus`
,
`displayType`
,
`remark`
,
`createTime`
,
`createUserId`
,
`createUserName`
)
VALUES
(
'性别'
,
'MatterApply'
,
'sexual'
,
'1'
,
'男'
,
'1'
,
'4'
,
'0'
,
'sexual'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
(
`name`
,
`firstOrganize`
,
`secondOrganize`
,
`paramKey`
,
`paramValue`
,
`validStatus`
,
`modStatus`
,
`displayType`
,
`remark`
,
`createTime`
,
`createUserId`
,
`createUserName`
)
VALUES
(
'性别'
,
'MatterApply'
,
'sexual'
,
'2'
,
'女'
,
'1'
,
'4'
,
'0'
,
'sexual'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
(
`name`
,
`firstOrganize`
,
`secondOrganize`
,
`paramKey`
,
`paramValue`
,
`validStatus`
,
`modStatus`
,
`displayType`
,
`remark`
,
`createTime`
,
`createUserId`
,
`createUserName`
)
VALUES
(
'性别'
,
'MatterApply'
,
'sexual'
,
'2'
,
'女'
,
'1'
,
'4'
,
'0'
,
'sexual'
,
NULL
,
NULL
,
NULL
);
-- 2024-06-20
INSERT
INTO
`mortals_xhx_param`
(
`name`
,
`firstOrganize`
,
`secondOrganize`
,
`paramKey`
,
`paramValue`
,
`validStatus`
,
`modStatus`
,
`displayType`
,
`remark`
,
`createTime`
,
`createUserId`
,
`createUserName`
)
VALUES
(
'审批状态'
,
'MatterApply'
,
'applyState'
,
'3'
,
'已撤销'
,
'1'
,
'4'
,
'0'
,
'applyState'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
(
`name`
,
`firstOrganize`
,
`secondOrganize`
,
`paramKey`
,
`paramValue`
,
`validStatus`
,
`modStatus`
,
`displayType`
,
`remark`
,
`createTime`
,
`createUserId`
,
`createUserName`
)
VALUES
(
'审批状态'
,
'MatterApply'
,
'applyState'
,
'-1'
,
'审批中'
,
'1'
,
'4'
,
'0'
,
'applyState'
,
NULL
,
NULL
,
NULL
);
\ No newline at end of file
single-matter/src/main/java/com/mortals/xhx/common/utils/MatterApplyDelayTask.java
View file @
be2fe103
...
@@ -32,7 +32,7 @@ public class MatterApplyDelayTask implements Runnable, Delayed {
...
@@ -32,7 +32,7 @@ public class MatterApplyDelayTask implements Runnable, Delayed {
@Override
@Override
public
void
run
()
{
public
void
run
()
{
MatterApplyEntity
entity
=
matterApplyService
.
get
(
matterApplyId
);
MatterApplyEntity
entity
=
matterApplyService
.
get
(
matterApplyId
);
if
(
entity
!=
null
)
{
if
(
entity
!=
null
&&
entity
.
getApplyState
()==-
1
)
{
MatterApplyEntity
update
=
new
MatterApplyEntity
();
MatterApplyEntity
update
=
new
MatterApplyEntity
();
update
.
setId
(
entity
.
getId
());
update
.
setId
(
entity
.
getId
());
update
.
setApplyState
(
0
);
update
.
setApplyState
(
0
);
...
...
single-matter/src/main/java/com/mortals/xhx/module/apply/web/MatterApplyController.java
View file @
be2fe103
...
@@ -416,4 +416,39 @@ public class MatterApplyController extends BaseCRUDJsonBodyMappingController<Mat
...
@@ -416,4 +416,39 @@ public class MatterApplyController extends BaseCRUDJsonBodyMappingController<Mat
}
}
}
}
}
}
/**
* 撤回
* @param entity
* @return
*/
@PostMapping
({
"revoke"
})
public
String
applyRevoke
(
@RequestBody
MatterApplyEntity
entity
)
{
Map
<
String
,
Object
>
model
=
new
HashMap
();
Context
context
=
this
.
getContext
();
String
busiDesc
=
"撤回"
+
this
.
getModuleDesc
();
int
code
;
try
{
entity
.
setApplyState
(
3
);
this
.
service
.
applyExamine
(
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
();
}
}
}
\ No newline at end of file
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