From a27eaa377f329e8e6e1ee9c994dd42b858000b20 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 03 四月 2024 15:32:42 +0800
Subject: [PATCH] git ch
---
server/service/src/main/java/com/doumee/service/business/impl/ApplyChangeServiceImpl.java | 9 +++++----
server/service/src/main/java/com/doumee/dao/business/model/UnionApply.java | 28 ++++++++++++++++++++++++++++
server/service/src/main/java/com/doumee/service/business/impl/UnionApplyServiceImpl.java | 11 +++++++++--
3 files changed, 42 insertions(+), 6 deletions(-)
diff --git a/server/service/src/main/java/com/doumee/dao/business/model/UnionApply.java b/server/service/src/main/java/com/doumee/dao/business/model/UnionApply.java
index dbdf314..30fb03c 100644
--- a/server/service/src/main/java/com/doumee/dao/business/model/UnionApply.java
+++ b/server/service/src/main/java/com/doumee/dao/business/model/UnionApply.java
@@ -136,6 +136,34 @@
@TableField(exist = false)
private String statusInfo;
+ @ApiModelProperty(value = "鏈�浣庡勾榫�", example = "1")
+ @TableField(exist = false)
+ private Integer minAge;
+
+ @ApiModelProperty(value = "鏈�楂樺勾榫�", example = "1")
+ @TableField(exist = false)
+ private Integer maxAge;
+
+ @ApiModelProperty(value = "淇濋櫓璐圭敤(浜�/澶╋級", example = "1")
+ @TableField(exist = false)
+ private BigDecimal price;
+
+ @ApiModelProperty(value = "淇濋櫓鏃堕棿鍗曚綅0澶� 1鍗婃湀 2鏈� 3骞�", example = "1")
+ @TableField(exist = false)
+ private Integer timeUnit;
+
+ @ApiModelProperty(value = "鐗瑰埆绾﹀畾")
+ @TableField(exist = false)
+ private String specialAgreement;
+
+ @ApiModelProperty(value = "鐗瑰埆璇存槑")
+ @TableField(exist = false)
+ private String specialInfo;
+
+ @ApiModelProperty(value = "鍏朵粬璇存槑")
+ @TableField(exist = false)
+ private String ortherInfo;
+
@ApiModelProperty(value = "鏃ュ織璁板綍")
@TableField(exist = false)
diff --git a/server/service/src/main/java/com/doumee/service/business/impl/ApplyChangeServiceImpl.java b/server/service/src/main/java/com/doumee/service/business/impl/ApplyChangeServiceImpl.java
index deeb284..bcdb428 100644
--- a/server/service/src/main/java/com/doumee/service/business/impl/ApplyChangeServiceImpl.java
+++ b/server/service/src/main/java/com/doumee/service/business/impl/ApplyChangeServiceImpl.java
@@ -780,9 +780,9 @@
if (Objects.isNull(insuranceApply)) {
throw new BusinessException(ResponseStatus.DATA_EMPTY);
}
- if (!(Constants.equalsInteger(insuranceApply.getStatus(),
- Constants.InsuranceApplyStatus.UPLOAD_INSURANCE.getKey())||Constants.equalsInteger(insuranceApply.getStatus(),
- Constants.InsuranceApplyStatus.WTB_DONE.getKey()))
+ if (!(Constants.equalsInteger(insuranceApply.getStatus(), Constants.InsuranceApplyStatus.UPLOAD_INSURANCE.getKey())
+ ||Constants.equalsInteger(insuranceApply.getStatus(), Constants.InsuranceApplyStatus.WTB_DONE.getKey())
+ )
) {
throw new BusinessException(ResponseStatus.DATA_ERRO.getCode(), "淇濆崟鐘舵�侀敊璇�");
}
@@ -1529,7 +1529,8 @@
.leftJoin(Company.class,Company::getId,InsuranceApply::getCompanyId)
.eq(!Objects.isNull(model.getType()),ApplyChange::getType,model.getType())
.eq(!Objects.isNull(model.getStatus())&&!model.getStatus().equals(Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey()),ApplyChange::getStatus,model.getStatus())
- .in(!Objects.isNull(model.getStatus())&&model.getStatus().equals(Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey()),ApplyChange::getStatus,
+ .in(!Objects.isNull(model.getStatus())&&model.getStatus().equals(Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey()),
+ ApplyChange::getStatus,
Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey(),
Constants.ApplyChangeStatus.RETURN_APPLY_SIGNATURE.getKey())
.eq(!Objects.isNull(model.getUnionApplyId()),InsuranceApply::getUnionApplyId,model.getUnionApplyId())
diff --git a/server/service/src/main/java/com/doumee/service/business/impl/UnionApplyServiceImpl.java b/server/service/src/main/java/com/doumee/service/business/impl/UnionApplyServiceImpl.java
index 3c60cbd..54f5b85 100644
--- a/server/service/src/main/java/com/doumee/service/business/impl/UnionApplyServiceImpl.java
+++ b/server/service/src/main/java/com/doumee/service/business/impl/UnionApplyServiceImpl.java
@@ -146,7 +146,14 @@
MPJLambdaWrapper<UnionApply> queryWrapper = new MPJLambdaWrapper<>();
Utils.MP.blankToNull(pageWrap.getModel());
queryWrapper.selectAll(UnionApply.class);
- queryWrapper.selectAs(Solutions::getName,UnionApply::getSolutionName);
+ queryWrapper.selectAs(Solutions::getName,UnionApply::getSolutionName)
+ .selectAs(Solutions::getMaxAge,UnionApply::getMaxAge)
+ .selectAs(Solutions::getMinAge,UnionApply::getMinAge)
+ .selectAs(Solutions::getPrice,UnionApply::getPrice)
+ .selectAs(Solutions::getTimeUnit,UnionApply::getTimeUnit)
+ .selectAs(Solutions::getOrtherInfo,UnionApply::getOrtherInfo)
+ .selectAs(Solutions::getSpecialAgreement,UnionApply::getSpecialAgreement)
+ .selectAs(Solutions::getSpecialInfo,UnionApply::getSpecialInfo);
queryWrapper.select("(select count(b.id) from apply_detail b where b.isdeleted=0 and b.union_apply_id=t.id) as insureNum ");
queryWrapper.leftJoin(Solutions.class,Solutions::getId,UnionApply::getSolutionId);
LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal();
@@ -409,7 +416,7 @@
if(insuranceApplyList.size()!=saveUnionApplyDTO.getApplyIds().size()){
throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"瀛樺湪鏁版嵁宸插鐞嗭紝璇峰埛鏂伴噸璇�");
}
-
+ saveUnionApplyDTO.setEndDate(DateUtil.getMontageDate(saveUnionApplyDTO.getEndDate(),2));
UnionApply unionApply = new UnionApply();
unionApply.setCreateDate(new Date());
unionApply.setCreator(user.getId());
--
Gitblit v1.9.3