This commit is contained in:
zt
2025-09-25 10:24:39 +08:00
parent bc41175162
commit 1de11bb110
3 changed files with 21 additions and 11 deletions

View File

@ -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);

View File

@ -55,4 +55,11 @@ public class HseSafetyInspectionQueryReq implements Serializable {
*/
private String reviewType;
/**
* 整改人
*/
private Long correctorId;
private Long createBy;
}

View File

@ -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));
}