Commit 98412675 authored by 李灿灿's avatar 李灿灿

Merge branch 'feature-licancan' into 'feature/insurance-1.1.0'

feat:已投保信息修改调试

See merge request !280
parents 36f13bed 751a581b
......@@ -2106,7 +2106,8 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
.last(CommonConstants.LAST_ONE_SQL)
);
TInsuranceDetail oldDetail = detail;
TInsuranceDetail oldDetail = new TInsuranceDetail();
BeanCopyUtils.copyProperties(detail,oldDetail);
detail.setPolicyStart(LocalDateUtil.parseLocalDate(success.getPolicyStartNew()));
detail.setPolicyEnd(LocalDateUtil.parseLocalDate(success.getPolicyEndNew()));
detail.setBuyType(success.getBuyType());
......@@ -2172,7 +2173,8 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if (byId.getBuyHandleStatus() != CommonConstants.THREE_INT){
R.failed(InsurancesConstants.BUY_HANDLE_STATUS_NOT_THREE);
}
TInsuranceDetail old = byId;
TInsuranceDetail old = new TInsuranceDetail();
BeanCopyUtils.copyProperties(byId,old);
if (StringUtils.isNotBlank(param.getPolicyStart())){
byId.setPolicyStart(LocalDateUtil.parseLocalDate(param.getPolicyStart()));
}
......
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