Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
227a4e60
Commit
227a4e60
authored
Jan 08, 2026
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(jg): 压力管道后续业务
1.注销报废、停用启用关键业务接口增加记录日志
parent
7a3b0d9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
10 deletions
+22
-10
JgEnableDisableController.java
...t/module/jg/biz/controller/JgEnableDisableController.java
+9
-4
JgScrapCancelController.java
...oot/module/jg/biz/controller/JgScrapCancelController.java
+13
-6
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgEnableDisableController.java
View file @
227a4e60
...
@@ -15,6 +15,7 @@ import io.swagger.annotations.ApiParam;
...
@@ -15,6 +15,7 @@ import io.swagger.annotations.ApiParam;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.component.event.RestEventTrigger
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
...
@@ -42,7 +43,8 @@ public class JgEnableDisableController extends BaseController {
...
@@ -42,7 +43,8 @@ public class JgEnableDisableController extends BaseController {
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"停用启用新增"
,
notes
=
"新增"
)
@RestEventTrigger
(
value
=
"operateLogRestEventHandler"
)
public
ResponseModel
<
Object
>
save
(
@RequestBody
JSONObject
map
)
{
public
ResponseModel
<
Object
>
save
(
@RequestBody
JSONObject
map
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
return
ResponseHelper
.
buildResponse
(
jgEnableDisableServiceImpl
.
saveOrUpdate
(
map
,
reginParams
));
return
ResponseHelper
.
buildResponse
(
jgEnableDisableServiceImpl
.
saveOrUpdate
(
map
,
reginParams
));
...
@@ -65,7 +67,8 @@ public class JgEnableDisableController extends BaseController {
...
@@ -65,7 +67,8 @@ public class JgEnableDisableController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/flowExecute"
)
@PostMapping
(
value
=
"/flowExecute"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"执行流程"
,
notes
=
"执行流程"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"停用启用执行流程"
,
notes
=
"执行流程"
)
@RestEventTrigger
(
value
=
"operateLogRestEventHandler"
)
public
ResponseModel
<
Object
>
flowExecute
(
@RequestBody
JSONObject
map
)
{
public
ResponseModel
<
Object
>
flowExecute
(
@RequestBody
JSONObject
map
)
{
jgEnableDisableServiceImpl
.
flowExecute
(
Long
.
valueOf
(
String
.
valueOf
(
map
.
get
(
"sequenceNbr"
))),
jgEnableDisableServiceImpl
.
flowExecute
(
Long
.
valueOf
(
String
.
valueOf
(
map
.
get
(
"sequenceNbr"
))),
String
.
valueOf
(
map
.
get
(
"instanceId"
)),
String
.
valueOf
(
map
.
get
(
"instanceId"
)),
...
@@ -78,7 +81,8 @@ public class JgEnableDisableController extends BaseController {
...
@@ -78,7 +81,8 @@ public class JgEnableDisableController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/withdraw"
)
@PostMapping
(
value
=
"/withdraw"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"撤回"
,
notes
=
"撤回"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"停用启用撤回"
,
notes
=
"撤回"
)
@RestEventTrigger
(
value
=
"operateLogRestEventHandler"
)
public
ResponseModel
<
Object
>
withdraw
(
@RequestBody
JSONObject
map
)
{
public
ResponseModel
<
Object
>
withdraw
(
@RequestBody
JSONObject
map
)
{
jgEnableDisableServiceImpl
.
withdraw
(
String
.
valueOf
(
map
.
get
(
"instanceId"
)),
String
.
valueOf
(
map
.
get
(
"nextTaskId"
)));
jgEnableDisableServiceImpl
.
withdraw
(
String
.
valueOf
(
map
.
get
(
"instanceId"
)),
String
.
valueOf
(
map
.
get
(
"nextTaskId"
)));
return
ResponseHelper
.
buildResponse
(
"ok"
);
return
ResponseHelper
.
buildResponse
(
"ok"
);
...
@@ -86,7 +90,8 @@ public class JgEnableDisableController extends BaseController {
...
@@ -86,7 +90,8 @@ public class JgEnableDisableController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/deleteMessage"
)
@DeleteMapping
(
value
=
"/deleteMessage"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"删除"
,
notes
=
"删除"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"停用启用删除"
,
notes
=
"删除"
)
@RestEventTrigger
(
value
=
"operateLogRestEventHandler"
)
public
ResponseModel
<
Object
>
deleteMessage
(
@RequestParam
(
"sequenceNbr"
)
Long
sequenceNbr
)
{
public
ResponseModel
<
Object
>
deleteMessage
(
@RequestParam
(
"sequenceNbr"
)
Long
sequenceNbr
)
{
jgEnableDisableServiceImpl
.
deleteMessage
(
sequenceNbr
);
jgEnableDisableServiceImpl
.
deleteMessage
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
"ok"
);
return
ResponseHelper
.
buildResponse
(
"ok"
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgScrapCancelController.java
View file @
227a4e60
...
@@ -13,6 +13,7 @@ import io.swagger.annotations.ApiOperation;
...
@@ -13,6 +13,7 @@ import io.swagger.annotations.ApiOperation;
import
io.swagger.annotations.ApiParam
;
import
io.swagger.annotations.ApiParam
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.component.event.RestEventTrigger
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
...
@@ -40,7 +41,8 @@ public class JgScrapCancelController extends BaseController {
...
@@ -40,7 +41,8 @@ public class JgScrapCancelController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"暂存、工作台提交"
,
notes
=
"暂存、工作台提交"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"注销报废暂存、工作台提交"
,
notes
=
"暂存、工作台提交"
)
@RestEventTrigger
(
value
=
"operateLogRestEventHandler"
)
public
ResponseModel
<
Object
>
save
(
@RequestParam
String
submitType
,
@RequestBody
Map
<
String
,
Object
>
model
)
{
public
ResponseModel
<
Object
>
save
(
@RequestParam
String
submitType
,
@RequestBody
Map
<
String
,
Object
>
model
)
{
return
ResponseHelper
.
buildResponse
(
jgScrapCancelService
.
save
(
submitType
,
model
));
return
ResponseHelper
.
buildResponse
(
jgScrapCancelService
.
save
(
submitType
,
model
));
}
}
...
@@ -52,7 +54,8 @@ public class JgScrapCancelController extends BaseController {
...
@@ -52,7 +54,8 @@ public class JgScrapCancelController extends BaseController {
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/updateInfo"
)
@PostMapping
(
value
=
"/updateInfo"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"保存、保存并提交、提交"
,
notes
=
"保存、保存并提交、提交"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"注销报废保存、保存并提交、提交"
,
notes
=
"保存、保存并提交、提交"
)
@RestEventTrigger
(
value
=
"operateLogRestEventHandler"
)
public
ResponseModel
<
JgScrapCancelDto
>
updateInfo
(
@RequestParam
String
submitType
,
public
ResponseModel
<
JgScrapCancelDto
>
updateInfo
(
@RequestParam
String
submitType
,
@RequestBody
Map
<
String
,
Object
>
model
,
@RequestBody
Map
<
String
,
Object
>
model
,
@RequestParam
(
value
=
"op"
,
required
=
false
)
String
op
)
{
@RequestParam
(
value
=
"op"
,
required
=
false
)
String
op
)
{
...
@@ -69,7 +72,8 @@ public class JgScrapCancelController extends BaseController {
...
@@ -69,7 +72,8 @@ public class JgScrapCancelController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/flowExecute"
)
@PostMapping
(
value
=
"/flowExecute"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"执行流程"
,
notes
=
"执行流程"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"注销报废执行流程"
,
notes
=
"执行流程"
)
@RestEventTrigger
(
value
=
"operateLogRestEventHandler"
)
public
ResponseModel
<
Object
>
flowExecute
(
@RequestBody
JSONObject
map
)
{
public
ResponseModel
<
Object
>
flowExecute
(
@RequestBody
JSONObject
map
)
{
LinkedHashMap
<?,
?>
model1
=
(
LinkedHashMap
<?,
?>)
map
.
get
(
"model"
);
LinkedHashMap
<?,
?>
model1
=
(
LinkedHashMap
<?,
?>)
map
.
get
(
"model"
);
...
@@ -89,7 +93,8 @@ public class JgScrapCancelController extends BaseController {
...
@@ -89,7 +93,8 @@ public class JgScrapCancelController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/deleteBatch"
)
@PostMapping
(
value
=
"/deleteBatch"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"批量删除"
,
notes
=
"批量删除"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"注销报废批量删除"
,
notes
=
"批量删除"
)
@RestEventTrigger
(
value
=
"operateLogRestEventHandler"
)
public
ResponseModel
<
Object
>
deleteBatch
(
@RequestBody
JSONObject
map
)
{
public
ResponseModel
<
Object
>
deleteBatch
(
@RequestBody
JSONObject
map
)
{
List
<
Long
>
ids
=
(
List
<
Long
>)
map
.
get
(
"ids"
);
List
<
Long
>
ids
=
(
List
<
Long
>)
map
.
get
(
"ids"
);
jgScrapCancelService
.
deleteBatch
(
ids
);
jgScrapCancelService
.
deleteBatch
(
ids
);
...
@@ -98,7 +103,8 @@ public class JgScrapCancelController extends BaseController {
...
@@ -98,7 +103,8 @@ public class JgScrapCancelController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/deleteMessage"
)
@PostMapping
(
value
=
"/deleteMessage"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"单个删除"
,
notes
=
"单个删除"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"注销报废单个删除"
,
notes
=
"单个删除"
)
@RestEventTrigger
(
value
=
"operateLogRestEventHandler"
)
public
ResponseModel
<
Object
>
deleteMessage
(
@RequestParam
(
"id"
)
Long
id
)
{
public
ResponseModel
<
Object
>
deleteMessage
(
@RequestParam
(
"id"
)
Long
id
)
{
List
<
Long
>
ids
=
Collections
.
singletonList
(
id
);
List
<
Long
>
ids
=
Collections
.
singletonList
(
id
);
jgScrapCancelService
.
deleteBatch
(
ids
);
jgScrapCancelService
.
deleteBatch
(
ids
);
...
@@ -140,7 +146,8 @@ public class JgScrapCancelController extends BaseController {
...
@@ -140,7 +146,8 @@ public class JgScrapCancelController extends BaseController {
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/withdraw"
)
@PostMapping
(
value
=
"/withdraw"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"撤回"
,
notes
=
"撤回"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"注销报废撤回"
,
notes
=
"撤回"
)
@RestEventTrigger
(
value
=
"operateLogRestEventHandler"
)
public
ResponseModel
<
Object
>
revocation
(
@RequestBody
JSONObject
map
)
{
public
ResponseModel
<
Object
>
revocation
(
@RequestBody
JSONObject
map
)
{
jgScrapCancelService
.
revocation
(
String
.
valueOf
(
map
.
get
(
"instanceId"
)),
String
.
valueOf
(
map
.
get
(
"nextTaskId"
)));
jgScrapCancelService
.
revocation
(
String
.
valueOf
(
map
.
get
(
"instanceId"
)),
String
.
valueOf
(
map
.
get
(
"nextTaskId"
)));
return
ResponseHelper
.
buildResponse
(
"ok"
);
return
ResponseHelper
.
buildResponse
(
"ok"
);
...
...
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