Commit cdabf289 authored by fangxinjiang's avatar fangxinjiang

项目服务团队权限同步接口

parent 7c93db7f
...@@ -472,11 +472,20 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T ...@@ -472,11 +472,20 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
@Override @Override
public R<Boolean> updateProjectServerTeam(List<TSettleDomainUpServerTeamVo> list) { public R<Boolean> updateProjectServerTeam(List<TSettleDomainUpServerTeamVo> list) {
TSettleDomain domain; TSettleDomain domain;
TSettleDomain tSettleDomainInfo;
for (TSettleDomainUpServerTeamVo vo:list) { for (TSettleDomainUpServerTeamVo vo:list) {
domain = new TSettleDomain(); domain = new TSettleDomain();
BeanUtil.copyProperties(vo,domain); BeanUtil.copyProperties(vo,domain);
tSettleDomainInfo = baseMapper.selectOne(Wrappers.<TSettleDomain>query().lambda()
.eq(TSettleDomain::getDepartNo,domain.getDepartNo())
.orderByDesc(BaseEntity::getCreateTime)
.last(CommonConstants.LAST_ONE_SQL));
if (Common.isNotNull(tSettleDomainInfo)){
domain.setDepartName(tSettleDomainInfo.getDepartName());
domain.setId(tSettleDomainInfo.getId());
initServerTeamPermission(domain); initServerTeamPermission(domain);
} }
}
return R.ok(Boolean.TRUE,CommonConstants.RESULT_DATA_SUCESS); return R.ok(Boolean.TRUE,CommonConstants.RESULT_DATA_SUCESS);
} }
......
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