Compare commits
3 Commits
b8fc71f492
...
9ac3eb04ec
Author | SHA1 | Date |
---|---|---|
ArgonarioD | 9ac3eb04ec | |
ArgonarioD | 762c4814e3 | |
ArgonarioD | 621ff50499 |
|
@ -3,15 +3,15 @@ package cn.edu.hfut.rmdjzz.projectmanagement.entity;
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
import lombok.experimental.Accessors;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 张韬
|
* @author 张韬
|
||||||
* created at 2022/6/30 21:31
|
* created at 2022/6/30 21:31
|
||||||
*/
|
*/
|
||||||
@Accessors(chain = true)
|
@Builder
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@Data
|
@Data
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package cn.edu.hfut.rmdjzz.projectmanagement.entity.query;
|
package cn.edu.hfut.rmdjzz.projectmanagement.entity.dto;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import lombok.Data;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class ResultProjectGroup {
|
public class ProjectGroupDto {
|
||||||
Integer staffId;
|
Integer staffId;
|
||||||
String staffFullname;
|
String staffFullname;
|
||||||
Integer projectId;
|
Integer projectId;
|
|
@ -82,9 +82,10 @@ public class ProjectGroupServiceImpl extends ServiceImpl<ProjectGroupMapper, Pro
|
||||||
}
|
}
|
||||||
|
|
||||||
baseMapper.update(
|
baseMapper.update(
|
||||||
new ProjectGroup()
|
ProjectGroup.builder()
|
||||||
.setProjectId(projectId)
|
.projectId(projectId)
|
||||||
.setStaffId(targetId),
|
.staffId(targetId)
|
||||||
|
.build(),
|
||||||
Wrappers.<ProjectGroup>lambdaUpdate().set(ProjectGroup::getProjectStaffPosition, positions)
|
Wrappers.<ProjectGroup>lambdaUpdate().set(ProjectGroup::getProjectStaffPosition, positions)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue