合同审核接口修改
合同提交审核接口修改 调整价配置对应字段修改 合同提交erp接口修改 作废接口修改 完结接口修改
This commit is contained in:
@@ -16,6 +16,9 @@ public class DeductRespDTO {
|
|||||||
@Schema(description = "条款主键")
|
@Schema(description = "条款主键")
|
||||||
private Long formulaId;
|
private Long formulaId;
|
||||||
|
|
||||||
|
@Schema(description = "金属元素缩写")
|
||||||
|
private String elementAbbreviation;
|
||||||
|
|
||||||
@Schema(description = "数据项类型(字典:GRD_CFG_TP)")
|
@Schema(description = "数据项类型(字典:GRD_CFG_TP)")
|
||||||
private String configType;
|
private String configType;
|
||||||
|
|
||||||
@@ -25,6 +28,18 @@ public class DeductRespDTO {
|
|||||||
@Schema(description = "调整价")
|
@Schema(description = "调整价")
|
||||||
private BigDecimal gradeAmount;
|
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 = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
}
|
}
|
||||||
@@ -135,11 +135,10 @@ public class ContractController implements BusinessControllerMarker {
|
|||||||
return success(contractService.submitApproval(id));
|
return success(contractService.submitApproval(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO
|
|
||||||
@PostMapping("/approval")
|
@PostMapping("/approval")
|
||||||
@Operation(summary = "合同审批 TODO")
|
@Operation(summary = "合同审批")
|
||||||
@PreAuthorize("@ss.hasPermission('base:contract:approval')")
|
@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));
|
return success(contractService.approval(reqVO));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,11 +13,11 @@ public class ApprovalReqVO {
|
|||||||
@NotNull(message = "合同主键ID不能为空")
|
@NotNull(message = "合同主键ID不能为空")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@Schema(description = "审核结果(通过:PASS,驳回:REJECT)", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
||||||
@NotBlank(message = "审核结果不能为空")
|
|
||||||
private String auditResult;
|
|
||||||
|
|
||||||
@Schema(description = "审批意见", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "审批意见", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@NotBlank(message = "审核意见不能为空")
|
@NotBlank(message = "审核意见不能为空")
|
||||||
private String reviewOpinion;
|
private String reviewOpinion;
|
||||||
|
|
||||||
|
@Schema(description = "状态:待推送 WAIT_PUSH,已驳回 REJECTED", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@NotBlank(message = "审核状态不能为空")
|
||||||
|
private String status;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ public class DeductRespVO {
|
|||||||
@Schema(description = "条款主键")
|
@Schema(description = "条款主键")
|
||||||
private Long formulaId;
|
private Long formulaId;
|
||||||
|
|
||||||
|
@Schema(description = "金属元素缩写")
|
||||||
|
private String elementAbbreviation;
|
||||||
|
|
||||||
@Schema(description = "数据项类型(字典:GRD_CFG_TP)")
|
@Schema(description = "数据项类型(字典:GRD_CFG_TP)")
|
||||||
private String configType;
|
private String configType;
|
||||||
|
|
||||||
@@ -24,6 +27,18 @@ public class DeductRespVO {
|
|||||||
@Schema(description = "调整价")
|
@Schema(description = "调整价")
|
||||||
private BigDecimal gradeAmount;
|
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 = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ public class DeductSaveReqVO {
|
|||||||
@Schema(description = "条款主键")
|
@Schema(description = "条款主键")
|
||||||
private Long formulaId;
|
private Long formulaId;
|
||||||
|
|
||||||
|
@Schema(description = "金属元素缩写")
|
||||||
|
private String elementAbbreviation;
|
||||||
|
|
||||||
@Schema(description = "数据项类型(字典:GRD_CFG_TP)")
|
@Schema(description = "数据项类型(字典:GRD_CFG_TP)")
|
||||||
private String configType;
|
private String configType;
|
||||||
|
|
||||||
@@ -23,4 +26,16 @@ public class DeductSaveReqVO {
|
|||||||
|
|
||||||
@Schema(description = "调整价")
|
@Schema(description = "调整价")
|
||||||
private BigDecimal gradeAmount;
|
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;
|
||||||
}
|
}
|
||||||
@@ -34,6 +34,11 @@ public class ContractDeductDO extends BusinessBaseDO {
|
|||||||
*/
|
*/
|
||||||
@TableField("FMU_ID")
|
@TableField("FMU_ID")
|
||||||
private Long formulaId;
|
private Long formulaId;
|
||||||
|
/**
|
||||||
|
* 金属元素缩写(Cu\Au\Ag)
|
||||||
|
*/
|
||||||
|
@TableField("ELEM_ABBR")
|
||||||
|
private String elementAbbreviation;
|
||||||
/**
|
/**
|
||||||
* 数据项类型(字典:GRD_CFG_TP)
|
* 数据项类型(字典:GRD_CFG_TP)
|
||||||
*/
|
*/
|
||||||
@@ -49,4 +54,24 @@ public class ContractDeductDO extends BusinessBaseDO {
|
|||||||
*/
|
*/
|
||||||
@TableField("GRD_AMT")
|
@TableField("GRD_AMT")
|
||||||
private BigDecimal gradeAmount;
|
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;
|
||||||
}
|
}
|
||||||
@@ -64,7 +64,7 @@ public interface ContractService {
|
|||||||
* @param reqVO 审批信息
|
* @param reqVO 审批信息
|
||||||
* @return 审批结果
|
* @return 审批结果
|
||||||
*/
|
*/
|
||||||
String approval(@Valid ApprovalReqVO reqVO);
|
Boolean approval(@Valid ApprovalReqVO reqVO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询不计价规则列表
|
* 查询不计价规则列表
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -338,7 +338,7 @@ public class ErpContractServiceImpl implements ErpContractService {
|
|||||||
head.put("DDSKJE", erpContract.getPayeeConditionAmount());
|
head.put("DDSKJE", erpContract.getPayeeConditionAmount());
|
||||||
|
|
||||||
Map<String, Object> req = new HashMap<>();
|
Map<String, Object> req = new HashMap<>();
|
||||||
req.put("head", head);
|
req.put("header", head);
|
||||||
erpSubmitReqDTO.setReq(req);
|
erpSubmitReqDTO.setReq(req);
|
||||||
|
|
||||||
HashMap<String, String> response = erpExternalApi.submitDataToErp(erpSubmitReqDTO);
|
HashMap<String, String> response = erpExternalApi.submitDataToErp(erpSubmitReqDTO);
|
||||||
|
|||||||
Reference in New Issue
Block a user