|  |  |  | 
|---|
|  |  |  | saveUnionChangeDTO.setAddValidDate(saveUnionChangeDTO.getApplyDate()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<ApplyChange> applyChangeList = applyChangeJoinMapper.selectJoinList(ApplyChange.class, | 
|---|
|  |  |  | new MPJLambdaWrapper<ApplyChange>() | 
|---|
|  |  |  | .selectAll(ApplyChange.class) | 
|---|
|  |  |  | 
|---|
|  |  |  | .eq(ApplyChange::getStatus,Constants.ApplyChangeStatus.CHECHED_PASSED.getKey()) | 
|---|
|  |  |  | .eq(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.WTB_DONE.getKey()) | 
|---|
|  |  |  | .eq(ApplyChange::getType,saveUnionChangeDTO.getBusinessType()) | 
|---|
|  |  |  | .le(ApplyChange::getApplyStartTime,DateUtil.getCurrDateTime()) | 
|---|
|  |  |  | //                        .le(InsuranceApply::getStartTime,DateUtil.getCurrDateTime()) | 
|---|
|  |  |  | .in(ApplyChange::getId,saveUnionChangeDTO.getApplyIds()) | 
|---|
|  |  |  | .isNull(ApplyChange::getUnionChangeId) | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | 
|---|
|  |  |  | .set(ApplyChagneDetail::getUnionChangeId,unionChange.getId()) | 
|---|
|  |  |  | .in(ApplyChagneDetail::getApplyChangeId,saveUnionChangeDTO.getApplyIds())); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Constants.ApplyLogType applyLogType = Constants.ApplyLogType.CA_HBD_UPLOAD; | 
|---|
|  |  |  | ApplyLog log = new ApplyLog(unionChange,applyLogType.getName(), null | 
|---|
|  |  |  | ,unionChange.getId(),applyLogType.getKey(),null, JSONObject.toJSONString(unionChange)); | 
|---|