|
@@ -34,6 +34,7 @@ import com.qunzhixinxi.hnqz.common.log.annotation.SysLog;
|
|
|
import com.qunzhixinxi.hnqz.common.security.util.SecurityUtils;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
@@ -188,6 +189,7 @@ public class WmDaAgentController {
|
|
|
*/
|
|
|
@SysLog("CSO管理-新增")
|
|
|
@PostMapping
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public R save(@RequestBody WmDaAgent wmDaAgent) {
|
|
|
WmDaAgent query = new WmDaAgent();
|
|
|
query.setGsmc(wmDaAgent.getGsmc());
|
|
@@ -417,6 +419,7 @@ public class WmDaAgentController {
|
|
|
*/
|
|
|
@SysLog("CSO管理-修改")
|
|
|
@PutMapping
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public R updateById(@RequestBody WmDaAgent wmDaAgent) {
|
|
|
SysDept sysDept1 = new SysDept();
|
|
|
sysDept1.setDeptId(Integer.parseInt(wmDaAgent.getDeptId()));
|