安全
This commit is contained in:
@ -175,6 +175,7 @@ public class BusProjectTeamMemberServiceImpl extends ServiceImpl<BusProjectTeamM
|
||||
.set(SubConstructionUser::getEntryDate, new Date())
|
||||
.set(SubConstructionUser::getLeaveDate, null)
|
||||
.set(SubConstructionUser::getExitStatus, "0")
|
||||
.set(SubConstructionUser::getTypeOfWork,req.getTypeOfWork())
|
||||
.set(constructionUser.getFirstDate() == null, SubConstructionUser::getFirstDate, LocalDate.now());
|
||||
constructionUserService.update(constructionUserLuw);
|
||||
|
||||
|
||||
@ -55,4 +55,11 @@ public class HseSafetyInspectionQueryReq implements Serializable {
|
||||
*/
|
||||
private String reviewType;
|
||||
|
||||
/**
|
||||
* 整改人
|
||||
*/
|
||||
private Long correctorId;
|
||||
|
||||
|
||||
private Long createBy;
|
||||
}
|
||||
|
||||
@ -127,17 +127,19 @@ public class HseSafetyInspectionServiceImpl extends ServiceImpl<HseSafetyInspect
|
||||
@Override
|
||||
public TableDataInfo<HseSafetyInspectionVo> queryPageList(HseSafetyInspectionQueryReq req, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<HseSafetyInspection> lqw = this.buildQueryWrapper(req);
|
||||
Long userId = LoginHelper.getUserId();
|
||||
if (userId != null) {
|
||||
BusProjectTeamMember one = projectTeamMemberService.lambdaQuery()
|
||||
.eq(BusProjectTeamMember::getMemberId, userId)
|
||||
.eq(BusProjectTeamMember::getPostId, "0")
|
||||
.last("limit 1")
|
||||
.one();
|
||||
if (one != null) {
|
||||
lqw.eq(HseSafetyInspection::getCorrectorId, userId);
|
||||
}
|
||||
}
|
||||
lqw.eq(req.getCorrectorId()!= null, HseSafetyInspection::getCorrectorId, req.getCorrectorId());
|
||||
lqw.eq(req.getCreateBy() != null, HseSafetyInspection::getCreateBy, req.getCreateBy());
|
||||
// Long userId = LoginHelper.getUserId();
|
||||
// if (userId != null) {
|
||||
// BusProjectTeamMember one = projectTeamMemberService.lambdaQuery()
|
||||
// .eq(BusProjectTeamMember::getMemberId, userId)
|
||||
// .eq(BusProjectTeamMember::getPostId, "0")
|
||||
// .last("limit 1")
|
||||
// .one();
|
||||
// if (one != null) {
|
||||
// lqw.eq(HseSafetyInspection::getCorrectorId, userId);
|
||||
// }
|
||||
// }
|
||||
Page<HseSafetyInspection> result = this.page(pageQuery.build(), lqw);
|
||||
return TableDataInfo.build(this.getVoPage(result));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user