|
@@ -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);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 修改企业协议
|
|
|
*/
|