合同审核接口修改

合同提交审核接口修改
调整价配置对应字段修改
合同提交erp接口修改
作废接口修改
完结接口修改
This commit is contained in:
guojunyun
2025-10-17 15:44:57 +08:00
parent e70f0d8469
commit 36ff79ac97
9 changed files with 314 additions and 163 deletions

View File

@@ -16,6 +16,9 @@ public class DeductRespDTO {
@Schema(description = "条款主键")
private Long formulaId;
@Schema(description = "金属元素缩写")
private String elementAbbreviation;
@Schema(description = "数据项类型(字典:GRD_CFG_TP)")
private String configType;
@@ -25,6 +28,18 @@ public class DeductRespDTO {
@Schema(description = "调整价")
private BigDecimal gradeAmount;
@Schema(description = "区间方式(字典STLM_RNG_WY)")
private String rangeWay;
@Schema(description = "上限")
private String up;
@Schema(description = "下限")
private String down;
@Schema(description = "类型(字典STLM_COEF)")
private String type;
@Schema(description = "创建时间")
private LocalDateTime createTime;
}

View File

@@ -135,11 +135,10 @@ public class ContractController implements BusinessControllerMarker {
return success(contractService.submitApproval(id));
}
// TODO
@PostMapping("/approval")
@Operation(summary = "合同审批 TODO")
@Operation(summary = "合同审批")
@PreAuthorize("@ss.hasPermission('base:contract:approval')")
public CommonResult<String> approval(@Valid @RequestBody ApprovalReqVO reqVO) {
public CommonResult<Boolean> approval(@Valid @RequestBody ApprovalReqVO reqVO) {
return success(contractService.approval(reqVO));
}

View File

@@ -13,11 +13,11 @@ public class ApprovalReqVO {
@NotNull(message = "合同主键ID不能为空")
private Long id;
@Schema(description = "审核结果(通过PASS驳回REJECT)", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "审核结果不能为空")
private String auditResult;
@Schema(description = "审批意见", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "审核意见不能为空")
private String reviewOpinion;
@Schema(description = "状态:待推送 WAIT_PUSH已驳回 REJECTED", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "审核状态不能为空")
private String status;
}

View File

@@ -15,6 +15,9 @@ public class DeductRespVO {
@Schema(description = "条款主键")
private Long formulaId;
@Schema(description = "金属元素缩写")
private String elementAbbreviation;
@Schema(description = "数据项类型(字典:GRD_CFG_TP)")
private String configType;
@@ -24,6 +27,18 @@ public class DeductRespVO {
@Schema(description = "调整价")
private BigDecimal gradeAmount;
@Schema(description = "区间方式(字典STLM_RNG_WY)")
private String rangeWay;
@Schema(description = "上限")
private String up;
@Schema(description = "下限")
private String down;
@Schema(description = "类型(字典STLM_COEF)")
private String type;
@Schema(description = "创建时间")
private LocalDateTime createTime;
}

View File

@@ -15,6 +15,9 @@ public class DeductSaveReqVO {
@Schema(description = "条款主键")
private Long formulaId;
@Schema(description = "金属元素缩写")
private String elementAbbreviation;
@Schema(description = "数据项类型(字典:GRD_CFG_TP)")
private String configType;
@@ -23,4 +26,16 @@ public class DeductSaveReqVO {
@Schema(description = "调整价")
private BigDecimal gradeAmount;
@Schema(description = "区间方式(字典STLM_RNG_WY)")
private String rangeWay;
@Schema(description = "上限")
private String up;
@Schema(description = "下限")
private String down;
@Schema(description = "类型(字典STLM_COEF)")
private String type;
}

View File

@@ -34,6 +34,11 @@ public class ContractDeductDO extends BusinessBaseDO {
*/
@TableField("FMU_ID")
private Long formulaId;
/**
* 金属元素缩写Cu\Au\Ag
*/
@TableField("ELEM_ABBR")
private String elementAbbreviation;
/**
* 数据项类型(字典:GRD_CFG_TP)
*/
@@ -49,4 +54,24 @@ public class ContractDeductDO extends BusinessBaseDO {
*/
@TableField("GRD_AMT")
private BigDecimal gradeAmount;
/**
* 区间方式(字典STLM_RNG_WY)
*/
@TableField("RNG_WY")
private String rangeWay;
/**
* 上限
*/
@TableField("UP")
private String up;
/**
* 下限
*/
@TableField("DOWN")
private String down;
/**
* 类型(字典STLM_COEF)
*/
@TableField("TP")
private String type;
}

View File

@@ -64,7 +64,7 @@ public interface ContractService {
* @param reqVO 审批信息
* @return 审批结果
*/
String approval(@Valid ApprovalReqVO reqVO);
Boolean approval(@Valid ApprovalReqVO reqVO);
/**
* 查询不计价规则列表