Compare commits

..

3 Commits

3 changed files with 8 additions and 7 deletions

View File

@ -3,15 +3,15 @@ package cn.edu.hfut.rmdjzz.projectmanagement.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
/**
* @author
* created at 2022/6/30 21:31
*/
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data

View File

@ -1,4 +1,4 @@
package cn.edu.hfut.rmdjzz.projectmanagement.entity.query;
package cn.edu.hfut.rmdjzz.projectmanagement.entity.dto;
import lombok.Data;
@ -8,7 +8,7 @@ import lombok.Data;
*/
@Data
public class ResultProjectGroup {
public class ProjectGroupDto {
Integer staffId;
String staffFullname;
Integer projectId;

View File

@ -82,9 +82,10 @@ public class ProjectGroupServiceImpl extends ServiceImpl<ProjectGroupMapper, Pro
}
baseMapper.update(
new ProjectGroup()
.setProjectId(projectId)
.setStaffId(targetId),
ProjectGroup.builder()
.projectId(projectId)
.staffId(targetId)
.build(),
Wrappers.<ProjectGroup>lambdaUpdate().set(ProjectGroup::getProjectStaffPosition, positions)
);
}