Commit 81ade4db by jianan

新单跟进68

parent 8c51446d
......@@ -49,10 +49,10 @@ public class PolicyFollowAddRequest implements Serializable {
private String appointmentNo;
/**
* 签单
* 签单员列表
*/
@Schema(description = "签单")
private String signer;
@Schema(description = "签单员列表")
private List<PolicySigner> signerList;
/**
* 供款年期
......
......@@ -151,9 +151,8 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
PolicyFollowUpdateDto policyFollowUpdateDto = policyFollowUpdateRequest.getPolicyFollowUpdateDto();
if (policyFollowUpdateDto != null) {
BeanUtils.copyProperties(policyFollowUpdateDto, policyFollow, "id", "policyBizId");
if (CollectionUtils.isNotEmpty(policyFollowUpdateDto.getSignerList())) {
// 签单员列表 => 字符串
policyFollow.setSignerList(GSONUtil.toJson(policyFollowUpdateDto.getSignerList()));
}
// 计算冷却期结束日期
if (policyFollowUpdateDto.getCoolingOffDays() != null && policyFollowUpdateDto.getEffectiveDate() != null) {
policyFollow.setCoolingOffEndDate(DateUtil.offset(policyFollowUpdateDto.getEffectiveDate(), DateField.DAY_OF_MONTH, policyFollowUpdateDto.getCoolingOffDays()));
......@@ -243,6 +242,9 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
// 生成新单编号
String policyBizId = RandomStringGenerator.generateBizId16(CommonEnum.UID_TYPE_POLICY.getCode());
policyFollow.setPolicyBizId(policyBizId);
// 签单员列表 => 字符串
policyFollow.setSignerList(GSONUtil.toJson(policyFollowAddRequest.getSignerList()));
// 计算冷却期结束日期
if (policyFollowAddRequest.getCoolingOffDays() != null) {
policyFollow.setCoolingOffEndDate(DateUtil.offset(policyFollowAddRequest.getEffectiveDate(), DateField.DAY_OF_MONTH, policyFollowAddRequest.getCoolingOffDays()));
}
......
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