he2802 vor 1 Jahr
Ursprung
Commit
4a571d4e04

+ 13 - 0
zhongzheng-admin-business/src/main/java/com/zhongzheng/controller/covenant/BsCovenantController.java

@@ -131,6 +131,19 @@ public class BsCovenantController extends BaseController {
         return toAjax(iBsCovenantService.insertByAddBo(bo) ? 1 : 0);
     }
 
+    /**
+     * 修改企业协议
+     */
+    @ApiOperation("复制新增")
+    @Log(title = "企业协议", businessType = BusinessType.UPDATE)
+    @PostMapping("/copyAndInsert")
+    public AjaxResult<Void> copyAndInsert(@RequestBody BsCovenantAddBo bo) {
+        ClientBsLoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
+        bo.setUserId(loginUser.getUser().getUserId());
+        bo.setFormApp(2L);
+        return toAjax(iBsCovenantService.insertYXTByAddBo(bo) ? 1 : 0);
+    }
+
     /**
      * 修改企业协议
      */

+ 11 - 0
zhongzheng-admin/src/main/java/com/zhongzheng/controller/covenant/BsCovenantController.java

@@ -364,4 +364,15 @@ public class BsCovenantController extends BaseController {
     public AjaxResult<BsCovenantVo> getInfoYw(@PathVariable("covenantId") Long covenantId) {
         return AjaxResult.success(iBsCovenantService.queryById(covenantId));
     }
+
+    /**
+     * 修改企业协议
+     */
+    @ApiOperation("业务系统复制新增")
+    @Log(title = "企业协议", businessType = BusinessType.UPDATE)
+    @PostMapping("/Yw/copyAndInsert")
+    public AjaxResult<Void> copyAndInsertYw(@RequestBody BsCovenantAddBo bo) {
+        bo.setFormApp(3L);
+        return toAjax(iBsCovenantService.insertYXTByAddBo(bo) ? 1 : 0);
+    }
 }