|
@@ -79,6 +79,8 @@ public class AdvertiserController {
|
|
|
private ProjectMapper projectMapper;
|
|
|
@Autowired
|
|
|
private ProjectMemberMapper projectMemberMapper;
|
|
|
+ @Autowired
|
|
|
+ private IUserAllocationService userAllocationService;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -171,6 +173,7 @@ public class AdvertiserController {
|
|
|
|
|
|
@Autowired
|
|
|
private ISysUserService sysUserService;
|
|
|
+
|
|
|
/**
|
|
|
* 添加
|
|
|
*
|
|
@@ -237,6 +240,11 @@ public class AdvertiserController {
|
|
|
Project updateProject = new Project();
|
|
|
updateProject.setAdvertiserName(advertiser.getName());
|
|
|
projectService.update(updateProject, projectQueryWrapper);
|
|
|
+ QueryWrapper<UserAllocation> userAllocationQueryWrapper = new QueryWrapper<>();
|
|
|
+ userAllocationQueryWrapper.eq("advertiser_id", advertiser.getId());
|
|
|
+ UserAllocation updateUserAllocation = new UserAllocation();
|
|
|
+ updateUserAllocation.setAdvertiserName(advertiser.getName());
|
|
|
+ userAllocationService.update(updateUserAllocation, userAllocationQueryWrapper);
|
|
|
if (ok) {
|
|
|
result.success("修改成功!");
|
|
|
}
|