Commit 2c388ec1 authored by huyuchen's avatar huyuchen

提供角色类表接口

parent b48a0c2a
...@@ -2997,6 +2997,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -2997,6 +2997,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
TDispatchSocialFundInfo infoEntity = new TDispatchSocialFundInfo(); TDispatchSocialFundInfo infoEntity = new TDispatchSocialFundInfo();
BeanUtils.copyProperties(socialFund,infoEntity); BeanUtils.copyProperties(socialFund,infoEntity);
infoEntity.setReduceSocialFundId(dispatch.getId()); infoEntity.setReduceSocialFundId(dispatch.getId());
infoEntity.setId(String.valueOf(UUID.randomUUID()).replaceAll("-", ""));
infoService.save(infoEntity); infoService.save(infoEntity);
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), CommonConstants.SAVE_SUCCESS, CommonConstants.GREEN)); errorMessageList.add(new ErrorMessage(excel.getRowIndex(), CommonConstants.SAVE_SUCCESS, CommonConstants.GREEN));
}catch (Exception e){ }catch (Exception e){
...@@ -4105,7 +4106,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -4105,7 +4106,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
.eq(TDispatchSocialFundInfo::getReduceSocialFundId, dis.getId()) .eq(TDispatchSocialFundInfo::getReduceSocialFundId, dis.getId())
.last(CommonConstants.LAST_ONE_SQL)); .last(CommonConstants.LAST_ONE_SQL));
if (Common.isNotNull(socialFundInfo)) { if (Common.isNotNull(socialFundInfo)) {
String reduceSocialFundId = socialFundInfo.getReduceSocialFundId();
BeanUtils.copyProperties(sf,socialFundInfo); BeanUtils.copyProperties(sf,socialFundInfo);
socialFundInfo.setReduceSocialFundId(reduceSocialFundId);
infoService.updateById(socialFundInfo); infoService.updateById(socialFundInfo);
} }
} }
......
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