Commit 4471bf94 by zhangxingmin

push

parent 54c0b61a
...@@ -186,6 +186,7 @@ public class ApiBeneficiaryServiceImpl implements ApiBeneficiaryService { ...@@ -186,6 +186,7 @@ public class ApiBeneficiaryServiceImpl implements ApiBeneficiaryService {
List<Beneficiary> saveList = list.stream().map(dto -> { List<Beneficiary> saveList = list.stream().map(dto -> {
Beneficiary beneficiary = new Beneficiary(); Beneficiary beneficiary = new Beneficiary();
BeanUtils.copyProperties(dto,beneficiary); BeanUtils.copyProperties(dto,beneficiary);
beneficiary.setId(null);
beneficiary.setAppointmentBizId(appointmentBizId); beneficiary.setAppointmentBizId(appointmentBizId);
beneficiary.setBeneficiaryBizId(RandomStringGenerator.generateBizId16(CommonEnum.UID_TYPE_BENEFICIARY.getCode())); beneficiary.setBeneficiaryBizId(RandomStringGenerator.generateBizId16(CommonEnum.UID_TYPE_BENEFICIARY.getCode()));
return beneficiary; return beneficiary;
......
...@@ -152,7 +152,7 @@ public class ApiProductPlanServiceImpl implements ApiProductPlanService { ...@@ -152,7 +152,7 @@ public class ApiProductPlanServiceImpl implements ApiProductPlanService {
} }
if (!Objects.isNull(productPlanInfoDto) if (!Objects.isNull(productPlanInfoDto)
&& !Objects.isNull(productPlanInfoDto.getApiProductPlanMainInfoDto()) && !Objects.isNull(productPlanInfoDto.getApiProductPlanMainInfoDto())
&& StringUtils.isNotBlank(productPlanInfoDto.getApiProductPlanMainInfoDto().getPlanBizId())){ && StringUtils.isBlank(productPlanInfoDto.getApiProductPlanMainInfoDto().getPlanBizId())){
//不能为空 //不能为空
throw new BusinessException("产品计划信息表唯一业务ID不能为空"); throw new BusinessException("产品计划信息表唯一业务ID不能为空");
} }
......
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