diff --git a/ruoyi-system/src/main/java/com/ruoyi/bgt/service/impl/BgtProjectRecruitApplyServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/bgt/service/impl/BgtProjectRecruitApplyServiceImpl.java index 3305ccd..297cad9 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/bgt/service/impl/BgtProjectRecruitApplyServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/bgt/service/impl/BgtProjectRecruitApplyServiceImpl.java @@ -314,7 +314,7 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl queryDTOPage = new Page<>(); queryDTOPage.setCurrent(dto.getPageNum()); queryDTOPage.setSize(dto.getPageSize()); + dto.setUserId(SecurityUtils.getAppUserId()); Page queryVOPage = baseMapper.appQueryPageList(queryDTOPage, dto); for(BgtProjectRecruitVO vo : queryVOPage.getRecords()) { BgtProjectRecruitApplyUserDTO userDTO = new BgtProjectRecruitApplyUserDTO(); @@ -235,7 +236,7 @@ public class BgtProjectRecruitServiceImpl extends ServicePlusImpl wgzAppRegisteredProjectResTableDataInfo = PageUtils.buildDataInfo(baseMapper.userRegisteredProject(pe, userId)); // wgzAppRegisteredProjectResTableDataInfo.getRows().forEach(registeredProjectRes -> { -// //1、获取当前用户的取消、满员、失效、同意、拒绝状态 +// //1、获取当前用户的满员、失效、同意、拒绝、报名状态 // //1、获取当前项目下的成员 // List wgzUser = baseMapper.GetsTheMembersUnderTheCurrentProject(registeredProjectRes.getId()); // }); diff --git a/ruoyi-system/src/main/java/com/ruoyi/wgz/bo/res/WgzAppCancelRegistrationProjectDetailsRes.java b/ruoyi-system/src/main/java/com/ruoyi/wgz/bo/res/WgzAppCancelRegistrationProjectDetailsRes.java index efa35cf..9799ae6 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/wgz/bo/res/WgzAppCancelRegistrationProjectDetailsRes.java +++ b/ruoyi-system/src/main/java/com/ruoyi/wgz/bo/res/WgzAppCancelRegistrationProjectDetailsRes.java @@ -111,6 +111,6 @@ public class WgzAppCancelRegistrationProjectDetailsRes implements Serializable { @ApiModelProperty("招工是否正常(0正常 1已招满 2已失效)") private String full; - @ApiModelProperty("务工者同意拒绝状态:3务工者同意 4务工者拒绝") + @ApiModelProperty("务工者状态:0报名 1包工同意 2包工头拒绝 3务工者同意 4务工者拒绝 5进场 6离场 7取消") private String status; } diff --git a/ruoyi-system/src/main/java/com/ruoyi/wgz/bo/res/WgzAppRegisteredProjectRes.java b/ruoyi-system/src/main/java/com/ruoyi/wgz/bo/res/WgzAppRegisteredProjectRes.java index 7e08b15..967d1f7 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/wgz/bo/res/WgzAppRegisteredProjectRes.java +++ b/ruoyi-system/src/main/java/com/ruoyi/wgz/bo/res/WgzAppRegisteredProjectRes.java @@ -67,5 +67,11 @@ public class WgzAppRegisteredProjectRes implements Serializable { @ApiModelProperty("工种名称") private String typeOfWorkLabel; + @ApiModelProperty("招工状态(1-进行中,2-已招满,3-已过期)") + private String status; + + @ApiModelProperty("0报名 1包工同意 2包工头拒绝(截止时间)3务工者同意 4务工者拒绝 5进场 6离场 7取消") + private String statusApply; + } diff --git a/ruoyi-system/src/main/java/com/ruoyi/wgz/bo/rests/WgzAppCardReplacementApplicationTwo.java b/ruoyi-system/src/main/java/com/ruoyi/wgz/bo/rests/WgzAppCardReplacementApplicationTwo.java index 8a33859..1bb219f 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/wgz/bo/rests/WgzAppCardReplacementApplicationTwo.java +++ b/ruoyi-system/src/main/java/com/ruoyi/wgz/bo/rests/WgzAppCardReplacementApplicationTwo.java @@ -14,7 +14,7 @@ import java.time.LocalDateTime; @NoArgsConstructor @Accessors(chain = true) public class WgzAppCardReplacementApplicationTwo implements Serializable { - @ApiModelProperty("补卡自增ID") + @ApiModelProperty("考勤打卡自增ID") private Long id; @ApiModelProperty("补卡状态(1迟到 2早退 3上班缺卡 4下班缺卡)") diff --git a/ruoyi-system/src/main/java/com/ruoyi/wgz/mapper/WgzReissueacardMapper.java b/ruoyi-system/src/main/java/com/ruoyi/wgz/mapper/WgzReissueacardMapper.java index b4a618a..b07e9c4 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/wgz/mapper/WgzReissueacardMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/wgz/mapper/WgzReissueacardMapper.java @@ -29,6 +29,6 @@ public interface WgzReissueacardMapper extends BaseMapperPlus { Page appQueryPageList(@Param("page") Page page,@Param("dto") BgtReissueacardListDTO dto); - WgzAppUserReplacementCardRecordDetailsRes userReplacementCardRecordDetails(@Param("userId") Long id); + WgzAppUserReplacementCardRecordDetailsRes userReplacementCardRecordDetails(@Param("id") Long id); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/wgz/service/impl/WgzAttendanceServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/wgz/service/impl/WgzAttendanceServiceImpl.java index b936159..e10cced 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/wgz/service/impl/WgzAttendanceServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/wgz/service/impl/WgzAttendanceServiceImpl.java @@ -32,9 +32,11 @@ import com.ruoyi.wgz.bo.rests.WgzAppCardReplacementApplicationTwo; import com.ruoyi.wgz.bo.rests.WgzAppPunchTheCalendarRecordThree; import com.ruoyi.wgz.bo.rests.WgzAppPunchTheCalendarRecordTwo; import com.ruoyi.wgz.domain.WgzAttendance; +import com.ruoyi.wgz.domain.WgzReissueacard; import com.ruoyi.wgz.mapper.WgzAttendanceMapper; import com.ruoyi.wgz.service.IWgzAttendanceService; import com.ruoyi.wgz.service.IWgzLeaveService; +import com.ruoyi.wgz.service.IWgzReissueacardService; import com.ruoyi.wgz.service.IWgzUserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Lazy; @@ -70,6 +72,9 @@ public class WgzAttendanceServiceImpl extends ServicePlusImpllambdaQuery(). + eq(WgzReissueacard::getRecruitId, wgzAttendance.getRecruitId()). + eq(WgzReissueacard::getUserId, wgzAttendance.getUserId()). + eq(WgzReissueacard::getAttendanceId, wgzAttendance.getId()). + eq(WgzReissueacard::getType, type == 1 || type == 3 ? 0 : 1) + ); + if (count == 0){ + list.add(two); + } } @Override diff --git a/ruoyi-system/src/main/java/com/ruoyi/wgz/service/impl/WgzReissueacardServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/wgz/service/impl/WgzReissueacardServiceImpl.java index 6c22bdf..c00f06c 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/wgz/service/impl/WgzReissueacardServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/wgz/service/impl/WgzReissueacardServiceImpl.java @@ -153,7 +153,7 @@ public class WgzReissueacardServiceImpl extends ServicePlusImpl SELECT a.id as recruitApplyId, + a.status as statusApply, b.*, c.task_name, c.task_address, @@ -75,6 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" a.user_id = #{userId} AND (a.status = '0' or a.status = '1') AND a.del_flag = 0 + order by create_time desc