Commit 8e349b7c authored by huyuchen's avatar huyuchen

huych-商险自动化逻辑调整

parent 583dccca
......@@ -202,6 +202,9 @@ public class InsuranceAddParam implements Serializable {
@Schema(description = "项目名称")
private String deptName;
@Schema(description = "投标类型")
private Integer buyType;
@Schema(description ="客户id")
private String unitId;
......
......@@ -27,6 +27,16 @@ public class InsuranceAutoParam implements Serializable {
*/
@Schema(description = "项目编码")
private String deptNo;
/**
* 项目名称
*/
@Schema(description = "项目名称")
private String deptName;
/**
* 投标类型
*/
@Schema(description = "投标类型")
private Integer buyType;
/**
* 员工姓名
......
......@@ -199,6 +199,12 @@ public class InsuranceBatchParam implements Serializable {
@JsonIgnore
private LocalDate policyEnd;
@Schema(description = "项目名称")
private String deptName;
@Schema(description = "投标类型")
private Integer buyType;
/**
* EKP的 是否BPO: 是 否
*/
......
......@@ -138,6 +138,9 @@ public class InsuranceReplaceParam implements Serializable {
@Schema(description = "项目名称")
private String deptName;
@Schema(description = "投标类型")
private Integer buyType;
@Schema(description ="客户id")
private String unitId;
......
......@@ -767,6 +767,8 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
autoParam.setInsurancePreId(addParam.getInsurancePreId());
autoParam.setCustomerUserName(addParam.getCustomerUserName());
autoParam.setIsExit(addParam.getIsExit());
autoParam.setDeptName(addParam.getDeptName());
autoParam.setBuyType(addParam.getBuyType());
autoParam.setInProgressList(addParam.getInProgressList());
return autoParam;
}
......@@ -790,6 +792,8 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
autoParam.setInsurancePreId(batchParam.getInsurancePreId());
autoParam.setCustomerUserName(batchParam.getCustomerUserName());
autoParam.setIsExit(batchParam.getIsExit());
autoParam.setDeptName(batchParam.getDeptName());
autoParam.setBuyType(batchParam.getBuyType());
autoParam.setInProgressList(batchParam.getInProgressList());
return autoParam;
}
......@@ -813,6 +817,8 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
autoParam.setInsurancePreId(replaceParam.getInsurancePreId());
autoParam.setCustomerUserName(replaceParam.getCustomerUserName());
autoParam.setIsExit(replaceParam.getIsExit());
autoParam.setDeptName(replaceParam.getDeptName());
autoParam.setBuyType(replaceParam.getBuyType());
autoParam.setInProgressList(replaceParam.getInProgressList());
return autoParam;
}
......
......@@ -2704,6 +2704,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
outer:
for (int i = 0; i < distinctList.size(); i++) {
InsuranceAddParam param = distinctList.get(i);
param.setBuyType(CommonConstants.ONE_INT);
// 必填校验
if (StringUtils.isBlank(param.getEmpName())) {
param.setErrorMessage(InsurancesConstants.EMP_NAME_NOT_EMPTY);
......@@ -3109,6 +3110,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
outer:
for (int i = 0; i < distinctList.size(); i++) {
InsuranceBatchParam param = distinctList.get(i);
param.setBuyType(CommonConstants.THREE_INT);
// 必填校验
if (StringUtils.isBlank(param.getDeptNo())){
param.setErrorMessage(InsurancesConstants.DEPT_NO_NOT_EMPTY);
......@@ -3517,6 +3519,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
outer:
for (int i = 0; i < distinctList.size(); i++) {
InsuranceReplaceParam param = distinctList.get(i);
param.setBuyType(CommonConstants.FOUR_INT);
// 必填校验
if (StringUtils.isBlank(param.getEmpName())){
param.setErrorMessage(InsurancesConstants.EMP_NAME_NOT_EMPTY);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment