Commit cdabf289 authored by fangxinjiang's avatar fangxinjiang

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

parent 7c93db7f
......@@ -472,10 +472,19 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
@Override
public R<Boolean> updateProjectServerTeam(List<TSettleDomainUpServerTeamVo> list) {
TSettleDomain domain;
TSettleDomain tSettleDomainInfo;
for (TSettleDomainUpServerTeamVo vo:list) {
domain = new TSettleDomain();
BeanUtil.copyProperties(vo,domain);
initServerTeamPermission(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);
}
}
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