|
|
@@ -52,6 +52,7 @@ import org.springblade.modules.system.entity.Dept;
|
|
|
import org.springblade.modules.system.entity.User;
|
|
|
import org.springblade.modules.system.service.IDeptService;
|
|
|
import org.springblade.modules.system.service.IUserService;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.Assert;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@@ -163,6 +164,7 @@ public class AutoDataController extends BladeController {
|
|
|
/**
|
|
|
* 新增
|
|
|
*/
|
|
|
+ @Transactional
|
|
|
@PostMapping("/save")
|
|
|
@ApiOperationSupport(order = 4)
|
|
|
@ApiOperation(value = "新增", notes = "传入autoData")
|
|
|
@@ -240,6 +242,7 @@ public class AutoDataController extends BladeController {
|
|
|
/**
|
|
|
* 修改
|
|
|
*/
|
|
|
+ @Transactional
|
|
|
@PostMapping("/update")
|
|
|
@ApiOperationSupport(order = 5)
|
|
|
@ApiOperation(value = "修改", notes = "传入autoData")
|
|
|
@@ -326,6 +329,7 @@ public class AutoDataController extends BladeController {
|
|
|
/**
|
|
|
* 審批通過
|
|
|
*/
|
|
|
+ @Transactional
|
|
|
@PostMapping("/approveYes/{end}")
|
|
|
@ApiOperationSupport(order = 6)
|
|
|
@ApiOperation(value = "審批通過", notes = "传入autoData")
|
|
|
@@ -447,6 +451,7 @@ public class AutoDataController extends BladeController {
|
|
|
/**
|
|
|
* 審批駁回-退回
|
|
|
*/
|
|
|
+ @Transactional
|
|
|
@PostMapping("/approveReject")
|
|
|
@ApiOperationSupport(order = 6)
|
|
|
@ApiOperation(value = "審批駁回-退回", notes = "传入autoData")
|
|
|
@@ -507,6 +512,7 @@ public class AutoDataController extends BladeController {
|
|
|
/**
|
|
|
* 審批不通过
|
|
|
*/
|
|
|
+ @Transactional
|
|
|
@PostMapping("/approveNo")
|
|
|
@ApiOperationSupport(order = 6)
|
|
|
@ApiOperation(value = "審批不通过", notes = "传入autoData")
|
|
|
@@ -561,6 +567,7 @@ public class AutoDataController extends BladeController {
|
|
|
/**
|
|
|
* 直接結束流程
|
|
|
*/
|
|
|
+ @Transactional
|
|
|
@PostMapping("/setEnd")
|
|
|
@ApiOperationSupport(order = 7)
|
|
|
@ApiOperation(value = "直接結束流程", notes = "传入id")
|