Commit 751a581b authored by 李灿灿's avatar 李灿灿

feat:已投保信息修改调试

parent 36f13bed
......@@ -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