修复了@Accessors导致的reflect失效问题
parent
cd02c7c1b8
commit
621ff50499
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue