|
|
@@ -1,10 +1,14 @@
|
|
|
package com.jzg.organization.controller;
|
|
|
|
|
|
+import com.jzg.commons.aop.OperatorTrajectory;
|
|
|
import com.jzg.commons.core.base.BaseController;
|
|
|
import com.jzg.commons.core.page.HttpResult;
|
|
|
+import com.jzg.commons.constants.OperationTypeEnum;
|
|
|
import com.jzg.commons.entity.dto.AgreementRulesAddParam;
|
|
|
import com.jzg.commons.entity.dto.AgreementRulesEditParam;
|
|
|
+import com.jzg.commons.entity.po.PtlAgreementUndwrtRules;
|
|
|
import com.jzg.commons.entity.vo.AgreementRulesVo;
|
|
|
+import com.jzg.organization.mapper.PtlAgreementUndwrtRulesMapper;
|
|
|
import com.jzg.organization.service.PtlAgreementUndwrtRulesAttrLinkService;
|
|
|
import com.jzg.organization.service.PtlAgreementUndwrtRulesService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
@@ -54,6 +58,7 @@ public class AgreementRulesController extends BaseController {
|
|
|
* @author lipf
|
|
|
* @date 2026/4/13 11:32
|
|
|
*/
|
|
|
+ @OperatorTrajectory(moduleName = "报价配置/协议管理/承保规则/添加规则", mapperClass = PtlAgreementUndwrtRulesMapper.class, entityClass = AgreementRulesAddParam.class)
|
|
|
@Operation(summary = "添加承保规则")
|
|
|
@PostMapping("/rulesAdd")
|
|
|
public HttpResult<String> rulesAdd(@Validated @RequestBody AgreementRulesAddParam param) {
|
|
|
@@ -61,6 +66,7 @@ public class AgreementRulesController extends BaseController {
|
|
|
HttpResult.ok("添加承保规则成功") : HttpResult.error("添加承保规则失败");
|
|
|
}
|
|
|
|
|
|
+ @OperatorTrajectory(moduleName = "报价配置/协议管理/承保规则/修改规则", type = "U", OperationDict = OperationTypeEnum.UPDATE, mapperClass = PtlAgreementUndwrtRulesMapper.class, entityClass = AgreementRulesEditParam.class)
|
|
|
@Operation(summary = "修改承保规则")
|
|
|
@PostMapping("/rulesEdit")
|
|
|
public HttpResult rulesEdit(@RequestBody AgreementRulesEditParam param) {
|
|
|
@@ -68,6 +74,7 @@ public class AgreementRulesController extends BaseController {
|
|
|
HttpResult.ok("修改承保规则成功") : HttpResult.error("修改承保规则失败");
|
|
|
}
|
|
|
|
|
|
+ @OperatorTrajectory(moduleName = "报价配置/协议管理/承保规则/删除规则", OperationDict = OperationTypeEnum.DELETE, type = "D", mapperClass = PtlAgreementUndwrtRulesMapper.class, entityClass = PtlAgreementUndwrtRules.class)
|
|
|
@Operation(summary = "删除承保规则")
|
|
|
@DeleteMapping("/rulesDelete")
|
|
|
public HttpResult rulesDelete(String id) {
|