Sfoglia il codice sorgente

批量修改费用日期 保险公司筛选不显示问题

Qchen 2 anni fa
parent
commit
500dd6aea1

+ 1 - 1
src/main/java/com/ydtech/modules/protocols/controller/PtlNewAgreementController.java

@@ -154,7 +154,7 @@ public class PtlNewAgreementController extends BaseController {
         return ptlAgreementProductCostsNewService.costsAuditBatch(costsAuditVo) ? HttpResult.ok("费用批量审核成功") : HttpResult.error("费用批量审核失败");
     }
 
-    @ApiOperation(value = "费用批量修改期")
+    @ApiOperation(value = "费用批量修改期")
     @PostMapping("/costs/endDateBatch")
     public HttpResult costsEndDateBatch(@RequestBody AgreementProductCostsEndDateVo agreementProductCostsEndDateVo){
         return ptlAgreementProductCostsNewService.costsEndDateBatch(agreementProductCostsEndDateVo) ? HttpResult.ok("费用批量修改成功") : HttpResult.error("费用批量修改失败");

+ 3 - 0
src/main/java/com/ydtech/modules/protocols/entity/vo/AgreementProductCostsEndDateVo.java

@@ -12,4 +12,7 @@ public class AgreementProductCostsEndDateVo {
 
     @ApiModelProperty(value = "费用止期")
     private String costsEndDate;
+
+    @ApiModelProperty(value = "费用起期")
+    private String costsStartDate;
 }

+ 5 - 3
src/main/java/com/ydtech/modules/protocols/service/impl/PtlAgreementProductCostsNewServiceImpl.java

@@ -983,10 +983,12 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
             if(ptlAgreementProductCostsNew == null){
                 throw new SystemException("费用不存在");
             }
-            if (agreementProductCostsEndDateVo.getCostsEndDate() == null) {
-                throw new SystemException("费用止期不可为空");
+            if (agreementProductCostsEndDateVo.getCostsEndDate() != null) {
+                ptlAgreementProductCostsNew.setCostsEndDate(agreementProductCostsEndDateVo.getCostsEndDate());
+            }
+            if (agreementProductCostsEndDateVo.getCostsStartDate() != null) {
+                ptlAgreementProductCostsNew.setCostsStartDate(agreementProductCostsEndDateVo.getCostsStartDate());
             }
-            ptlAgreementProductCostsNew.setCostsEndDate(agreementProductCostsEndDateVo.getCostsEndDate());
             String desc = "修改费用因子";
             //添加费用因子轨迹
             ptlAgreementProductCostsTrajectoryService.addCostsTrajectory(ptlAgreementProductCostsNew.getId(),desc,BaseController.getUser().getId());

+ 1 - 1
src/main/resources/mapper/modules/protocols/PtlAgreementProductCostsNewMapper.xml

@@ -14,7 +14,7 @@
         LEFT JOIN ptl_agreement pa ON papcn.agreement_id = pa.id
         where 1=1
         <if test="params.agreementIds != null and params.agreementIds != ''">
-            AND pa.id in (#{params.agreementIds})
+            AND pa.id in (${params.agreementIds})
         </if>
         <if test="params.agreementId != null and params.agreementId != ''">
             AND pa.id in (#{params.agreementId})