Commit eec25519 by 崔彦峰

Merge branch 'v5.5.4_20260128' into 'master'

上线合并

See merge request !8
2 parents 57356d19 7204f558
Showing 19 changed files with 320 additions and 2 deletions
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
</parent> </parent>
<artifactId>gsc-vcp-api</artifactId> <artifactId>gsc-vcp-api</artifactId>
<version>1.0.4-SNAPSHOT</version> <version>1.0.5-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<description>gsc 二车手业务api模块</description> <description>gsc 二车手业务api模块</description>
......
...@@ -243,4 +243,7 @@ public class EvalElectronicContractDTO extends EvalElectronicContract { ...@@ -243,4 +243,7 @@ public class EvalElectronicContractDTO extends EvalElectronicContract {
@Schema(description = "经办人") @Schema(description = "经办人")
private String handler; private String handler;
@Schema(description = "合同企业主体: hzglsk-惠州广联数科科技有限公司、szyjzh-深圳市优加智汇科技有限公司")
private String contractOrg;
} }
...@@ -21,4 +21,9 @@ public class InitiateESignContractDTO implements Serializable { ...@@ -21,4 +21,9 @@ public class InitiateESignContractDTO implements Serializable {
// 签署人类型:0:个人 1:企业委托 2:企业 // 签署人类型:0:个人 1:企业委托 2:企业
private Integer signerType; private Integer signerType;
/**
* 合同企业主体: hzglsk-惠州广联数科科技有限公司、szyjzh-深圳市优加智汇科技有限公司
*/
private String contractOrg;
} }
...@@ -218,4 +218,7 @@ public class EvalOrderPageResDTO implements Serializable { ...@@ -218,4 +218,7 @@ public class EvalOrderPageResDTO implements Serializable {
*/ */
@Schema(description = "总部定价师") @Schema(description = "总部定价师")
private String evalOperatorName; private String evalOperatorName;
@Schema(description = "合同企业主体: hzglsk-惠州广联数科科技有限公司、szyjzh-深圳市优加智汇科技有限公司")
private String contractOrg;
} }
...@@ -109,4 +109,7 @@ public class EvalElectronicContractPageReq { ...@@ -109,4 +109,7 @@ public class EvalElectronicContractPageReq {
@Schema(description = "签署人类型:0:个人 1:企业委托 2:企业") @Schema(description = "签署人类型:0:个人 1:企业委托 2:企业")
private Integer signerType; private Integer signerType;
@Schema(description = "合同企业主体: hzglsk-惠州广联数科科技有限公司、szyjzh-深圳市优加智汇科技有限公司")
private String contractOrg;
} }
...@@ -4,6 +4,7 @@ import com.alibaba.excel.annotation.ExcelProperty; ...@@ -4,6 +4,7 @@ import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat; import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.gsc4cloud.gsc.vpc.api.util.excel.ExcelValueReplace; import com.gsc4cloud.gsc.vpc.api.util.excel.ExcelValueReplace;
import com.gsc4cloud.gsc.vpc.api.util.excel.ReplaceIntegerToStringConvert; import com.gsc4cloud.gsc.vpc.api.util.excel.ReplaceIntegerToStringConvert;
import com.gsc4cloud.gsc.vpc.api.util.excel.ReplaceStringToStringConvert;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
...@@ -111,4 +112,8 @@ public class EvalElectronicContractExportResDTO implements Serializable { ...@@ -111,4 +112,8 @@ public class EvalElectronicContractExportResDTO implements Serializable {
@ExcelValueReplace(replace={"个人_0","企业委托_1","企业_2"},repeatValue=true) @ExcelValueReplace(replace={"个人_0","企业委托_1","企业_2"},repeatValue=true)
@ExcelProperty(value="签署人类型", converter= ReplaceIntegerToStringConvert.class) @ExcelProperty(value="签署人类型", converter= ReplaceIntegerToStringConvert.class)
private Integer signerType; private Integer signerType;
@ExcelValueReplace(replace={"惠州广联_hzglsk","优加_szyjzh"},repeatValue=true)
@ExcelProperty(value="合同企业主体", converter= ReplaceStringToStringConvert.class)
private String contractOrg;
} }
...@@ -5,7 +5,7 @@ import com.alibaba.excel.annotation.format.DateTimeFormat; ...@@ -5,7 +5,7 @@ import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.gsc4cloud.gsc.vpc.api.util.excel.ExcelValueReplace; import com.gsc4cloud.gsc.vpc.api.util.excel.ExcelValueReplace;
import com.gsc4cloud.gsc.vpc.api.util.excel.ReplaceByteToStringConvert; import com.gsc4cloud.gsc.vpc.api.util.excel.ReplaceByteToStringConvert;
import com.gsc4cloud.gsc.vpc.api.util.excel.ReplaceIntegerToStringConvert; import com.gsc4cloud.gsc.vpc.api.util.excel.ReplaceIntegerToStringConvert;
import io.swagger.v3.oas.annotations.media.Schema; import com.gsc4cloud.gsc.vpc.api.util.excel.ReplaceStringToStringConvert;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
...@@ -114,4 +114,8 @@ public class EvalOrderExportResDTO implements Serializable { ...@@ -114,4 +114,8 @@ public class EvalOrderExportResDTO implements Serializable {
@ExcelProperty(value="车辆评估价") @ExcelProperty(value="车辆评估价")
private BigDecimal evalPrice; private BigDecimal evalPrice;
@ExcelValueReplace(replace={"惠州广联_hzglsk","优加_szyjzh"},repeatValue=true)
@ExcelProperty(value="合同企业主体", converter= ReplaceStringToStringConvert.class)
private String contractOrg;
} }
package com.gsc4cloud.gsc.vpc.api.dto.web.resdto.evalorder;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class MerchantInfoDTO {
@Schema(description = "园区店编号")
private Integer yqMerchantNo;
@Schema(description = "园区店名称")
private String yqMerchantName;
}
...@@ -60,6 +60,10 @@ public class ElectronicContractOaAudit implements Serializable { ...@@ -60,6 +60,10 @@ public class ElectronicContractOaAudit implements Serializable {
@Schema(description = "合同来源 1-系统生成 2-人工导入") @Schema(description = "合同来源 1-系统生成 2-人工导入")
private Integer source; private Integer source;
@TableField(value = "contract_org")
@Schema(description = "合同企业主体: hzglsk-惠州广联数科科技有限公司、szyjzh-深圳市优加智汇科技有限公司")
private String contractOrg;
/** /**
* oa审批流程状态 1-审核中 2-通过 3-驳回 4-撤销 * oa审批流程状态 1-审核中 2-通过 3-驳回 4-撤销
*/ */
......
...@@ -95,4 +95,10 @@ public class ElectronicContractTemplate implements Serializable { ...@@ -95,4 +95,10 @@ public class ElectronicContractTemplate implements Serializable {
@TableLogic(value = "N", delval = "D") @TableLogic(value = "N", delval = "D")
private String deletedFlag; private String deletedFlag;
/**
* 合同企业主体: hzglsk-惠州广联数科科技有限公司、szyjzh-深圳市优加智汇科技有限公司
*/
@TableField(value = "contract_org")
private String contractOrg;
} }
package com.gsc4cloud.gsc.vpc.api.entity.contract;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
/**
* 门店商户合同企业主体配置表
*
* @author auto-generated
*/
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("vcp_merchant_electronic_contract_org_config")
public class MerchantElectronicContractOrgConfig implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@TableId(value = "id", type = IdType.AUTO)
@Schema(description = "主键ID")
private Integer id;
/**
* 门店商户号(4S店)
*/
@TableField(value = "seller_merchant_id")
@Schema(description = "门店商户号(4S店)")
private Integer sellerMerchantId;
/**
* 合同企业主体: hzglsk-惠州广联数科科技有限公司、szyjzh-深圳市优加智汇科技有限公司
*/
@TableField(value = "contract_org")
@Schema(description = "合同企业主体: hzglsk-惠州广联数科科技有限公司、szyjzh-深圳市优加智汇科技有限公司")
private String contractOrg;
/**
* 创建人
*/
@TableField(value = "created_by")
@Schema(description = "创建人")
private String createdBy;
/**
* 创建时间
*/
@TableField(value = "created_date")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "创建时间")
private Date createdDate;
/**
* 修改人
*/
@TableField(value = "updated_by")
@Schema(description = "修改人")
private String updatedBy;
/**
* 修改时间
*/
@TableField(value = "updated_date")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "修改时间")
private Date updatedDate;
/**
* 删除标识:N未删除,D已删除
*/
@TableLogic(value = "N", delval = "D")
@TableField(value = "deleted_flag")
@Schema(description = "删除标识:N未删除,D已删除")
private String deletedFlag;
}
\ No newline at end of file \ No newline at end of file
...@@ -179,4 +179,10 @@ public class EvalElectronicContract implements Serializable { ...@@ -179,4 +179,10 @@ public class EvalElectronicContract implements Serializable {
@TableField(value = "signer_type") @TableField(value = "signer_type")
private Integer signerType; private Integer signerType;
/**
* 合同企业主体: hzglsk-惠州广联数科科技有限公司、szyjzh-深圳市优加智汇科技有限公司
*/
@TableField(value = "contract_org")
private String contractOrg;
} }
...@@ -358,4 +358,10 @@ public class EvalOrder implements Serializable { ...@@ -358,4 +358,10 @@ public class EvalOrder implements Serializable {
@Schema(description = "被交接次数") @Schema(description = "被交接次数")
private Integer handoverCount; private Integer handoverCount;
/**
* 合同企业主体: hzglsk-惠州广联数科科技有限公司、szyjzh-深圳市优加智汇科技有限公司
*/
@TableField(value = "contract_org")
private String contractOrg;
} }
...@@ -22,6 +22,7 @@ public enum ErrorCodeEnum { ...@@ -22,6 +22,7 @@ public enum ErrorCodeEnum {
EVAL_ORDER_EXPORT_IMAGE_ZIP_ASYNC_ERROR(3003, "评估单车辆图片压缩包异步下载错误"), EVAL_ORDER_EXPORT_IMAGE_ZIP_ASYNC_ERROR(3003, "评估单车辆图片压缩包异步下载错误"),
EVAL_ORDER_EDIT_NOT_CHANGE(3004, "您未对表单内容进行任何修改,请修改后重新提交"), EVAL_ORDER_EDIT_NOT_CHANGE(3004, "您未对表单内容进行任何修改,请修改后重新提交"),
EVAL_ORDER_REVOKE_ERROR(3005, "该评估单不允许撤回,请刷新页面查看最新状态!"), EVAL_ORDER_REVOKE_ERROR(3005, "该评估单不允许撤回,请刷新页面查看最新状态!"),
EVAL_ORDER_CONTRACT_ORG_ERROR(3006, "合同主体异常"),
// ========== 电子合同相关 ========== // ========== 电子合同相关 ==========
...@@ -45,6 +46,7 @@ public enum ErrorCodeEnum { ...@@ -45,6 +46,7 @@ public enum ErrorCodeEnum {
GET_SIGNING_FILE_PREVIEW_URL_FAIL(4017, "获取预览签署中文件及附属材料链接失败"), GET_SIGNING_FILE_PREVIEW_URL_FAIL(4017, "获取预览签署中文件及附属材料链接失败"),
EXPORT_DOC_TEMPLATES_FAIL(4018, "导出合同模板失败"), EXPORT_DOC_TEMPLATES_FAIL(4018, "导出合同模板失败"),
IMPORT_DOC_TEMPLATES_FAIL(4019, "导入合同模板失败"), IMPORT_DOC_TEMPLATES_FAIL(4019, "导入合同模板失败"),
CONTRACT_ORG_NOT_FOUND(4020, "合同主体不存在"),
// ========== excel相关 ========== // ========== excel相关 ==========
......
package com.gsc4cloud.gsc.vpc.api.enums.electroniccontract;
import com.gsc4cloud.gsc.vpc.api.enums.BaseEnum;
/**
* 电子合同企业主体枚举
*/
public enum ElectronicContractOrgInfoEnum implements BaseEnum<String, String> {
HZGLSK("hzglsk", "惠州广联数科科技有限公司"),
SZYJZH("szyjzh", "深圳市优加智汇科技有限公司");
private final String code;
private final String desc;
ElectronicContractOrgInfoEnum(String code, String desc) {
this.code = code;
this.desc = desc;
}
@Override
public String getCode() {
return code;
}
@Override
public String getDesc() {
return desc;
}
}
\ No newline at end of file \ No newline at end of file
...@@ -8,6 +8,7 @@ import com.gsc4cloud.gsc.vpc.api.dto.pad.reqdto.evalorder.EvalOrderBasicReqDTO; ...@@ -8,6 +8,7 @@ import com.gsc4cloud.gsc.vpc.api.dto.pad.reqdto.evalorder.EvalOrderBasicReqDTO;
import com.gsc4cloud.gsc.vpc.api.validation.ValidImageList; import com.gsc4cloud.gsc.vpc.api.validation.ValidImageList;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid; import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.NotNull;
import lombok.Data; import lombok.Data;
...@@ -41,6 +42,7 @@ public class EvalOrderCreateRequest { ...@@ -41,6 +42,7 @@ public class EvalOrderCreateRequest {
@Schema(description = "评估单车辆图像信息") @Schema(description = "评估单车辆图像信息")
@ValidImageList @ValidImageList
@NotEmpty(message = "图片不能为空")
@Valid @Valid
private List<EvalImageInfoReqDTO> imageList; private List<EvalImageInfoReqDTO> imageList;
......
...@@ -162,4 +162,7 @@ public class EvalOrderPageRequest { ...@@ -162,4 +162,7 @@ public class EvalOrderPageRequest {
@Schema(description = "关键字模糊查询(车主姓名、车主电话、评估单号、车牌号)") @Schema(description = "关键字模糊查询(车主姓名、车主电话、评估单号、车牌号)")
private String keyWord; private String keyWord;
@Schema(description = "合同企业主体: hzglsk-惠州广联数科科技有限公司、szyjzh-深圳市优加智汇科技有限公司")
private String contractOrg;
} }
...@@ -46,4 +46,7 @@ public class CheckReportCreateRequest { ...@@ -46,4 +46,7 @@ public class CheckReportCreateRequest {
*/ */
@Schema(description = "创建人-不用前端传值") @Schema(description = "创建人-不用前端传值")
private String createBy; private String createBy;
@Schema(description = "创建人uuid")
private String uuid;
} }
package com.gsc4cloud.gsc.vpc.api.util.excel;
import com.alibaba.excel.converters.Converter;
import com.alibaba.excel.enums.CellDataTypeEnum;
import com.alibaba.excel.metadata.GlobalConfiguration;
import com.alibaba.excel.metadata.data.CellData;
import com.alibaba.excel.metadata.data.WriteCellData;
import com.alibaba.excel.metadata.property.ExcelContentProperty;
import org.apache.commons.collections4.BidiMap;
import org.apache.commons.collections4.bidimap.DualHashBidiMap;
import org.apache.commons.lang3.StringUtils;
import java.text.MessageFormat;
public class ReplaceStringToStringConvert implements Converter<String> {
private BidiMap data = null;
public ReplaceStringToStringConvert() {
}
public Class supportJavaTypeKey() {
return null;
}
public CellDataTypeEnum supportExcelTypeKey() {
return CellDataTypeEnum.STRING;
}
public String convertToJavaData(CellData cellData, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) throws Exception {
if (cellData == null) {
return null;
} else {
String text = cellData.getStringValue();
if (StringUtils.isBlank(text)) {
return null;
} else {
ExcelValueReplace vr = (ExcelValueReplace) contentProperty.getField().getAnnotation(ExcelValueReplace.class);
if (vr != null) {
Object value = this.getValue(vr, contentProperty, text, false);
if (value != null) {
return value.toString();
}
}
return text;
}
}
}
public WriteCellData convertToExcelData(String value, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) throws Exception {
if (value == null) {
return new WriteCellData("");
} else {
ExcelValueReplace vr = (ExcelValueReplace) contentProperty.getField().getAnnotation(ExcelValueReplace.class);
if (vr != null) {
Object text = this.getValue(vr, contentProperty, value, true);
if (text != null) {
return new WriteCellData(text.toString());
}
}
return new WriteCellData(value);
}
}
private Object getValue(ExcelValueReplace vr, ExcelContentProperty contentProperty, String key, boolean isGetValue) {
String textMethod;
int var18;
if (vr.repeatValue()) {
if (vr != null && vr.replace() != null) {
String[] var15 = vr.replace();
int var17 = var15.length;
for (var18 = 0; var18 < var17; ++var18) {
textMethod = var15[var18];
String[] arr = textMethod.split("_");
if (arr.length < 2) {
throw new RuntimeException(MessageFormat.format("{0}.ExcelValueReplace.replace error", contentProperty.getField().getName()));
}
String text = arr[0];
String value = textMethod.substring(textMethod.indexOf("_") + 1);
if (isGetValue) {
if (value.equals(key)) {
return text;
}
} else if (text.equals(key)) {
return value;
}
}
}
return null;
} else if (this.data != null) {
return isGetValue ? this.data.get(key) : this.data.getKey(key);
} else {
this.data = new DualHashBidiMap();
Class<? extends Enum> enumClass = vr.enumClass();
if (enumClass != Enum.class) {
Enum[] bes = (Enum[]) enumClass.getEnumConstants();
String valueMethod = vr.enumValueMethod();
textMethod = vr.enumTextMethod();
Enum[] var9 = bes;
int var10 = bes.length;
for (int var11 = 0; var11 < var10; ++var11) {
Enum be = var9[var11];
Object value = EasyExcelConverterUtil.getValue(enumClass, be, new String[]{valueMethod});
Object text = EasyExcelConverterUtil.getValue(enumClass, be, new String[]{textMethod});
if (value == null || text == null) {
break;
}
this.data.put(value.toString(), text.toString());
}
}
if (vr != null && vr.replace() != null) {
String[] var16 = vr.replace();
var18 = var16.length;
for (int var19 = 0; var19 < var18; ++var19) {
String v = var16[var19];
String[] arr = v.split("_");
if (arr.length < 2) {
throw new RuntimeException(MessageFormat.format("{0}.ExcelValueReplace.replace error", contentProperty.getField().getName()));
}
this.data.put(v.substring(v.indexOf("_") + 1), arr[0]);
}
}
return isGetValue ? this.data.get(key) : this.data.getKey(key);
}
}
}
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!