This commit is contained in:
2025-03-07 09:22:02 +08:00
parent ec9a2aa5ea
commit 43a6d38bba
13 changed files with 6 additions and 4 deletions

View File

@ -393,7 +393,7 @@ public class WgzAppController {
WgzApplyForPayrollSettlementAddRes res = new WgzApplyForPayrollSettlementAddRes(); WgzApplyForPayrollSettlementAddRes res = new WgzApplyForPayrollSettlementAddRes();
Long appUserId = SecurityUtils.getAppUserId(); Long appUserId = SecurityUtils.getAppUserId();
BgtProjectRecruitApply by = iBgtProjectRecruitApplyService.selectByUserIdProjectRecruitApplyId(appUserId); BgtProjectRecruitApply by = iBgtProjectRecruitApplyService.selectByUserIdProjectRecruitApplyId(appUserId);
BgtProjectRecruit appById = iBgtProjectRecruitService.getAppById(by.getId()); BgtProjectRecruit appById = iBgtProjectRecruitService.getAppById(by.getRecruitId());
//1、先获取项目详情基本信息 //1、先获取项目详情基本信息
WgzAppProjectDetailsRes wgzAppProjectDetailsRes = iBgtProjectRecruitService.userProjectDetails(id); WgzAppProjectDetailsRes wgzAppProjectDetailsRes = iBgtProjectRecruitService.userProjectDetails(id);
BeanUtils.copyProperties(wgzAppProjectDetailsRes, res); BeanUtils.copyProperties(wgzAppProjectDetailsRes, res);

View File

@ -474,7 +474,7 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl<BgtProjec
BgtProjectRecruitApply recruitApply = queryById(req.getRecruitApplyId()); BgtProjectRecruitApply recruitApply = queryById(req.getRecruitApplyId());
BgtProjectRecruit recruit = iBgtProjectRecruitService.getAppById(recruitApply.getRecruitId()); BgtProjectRecruit recruit = iBgtProjectRecruitService.getAppById(recruitApply.getRecruitId());
//数据库行级锁 //数据库行级锁
String s = new WgzMessageServiceImpl().JudgingRecruitment(recruit.getId(), recruit.getRecruitStaffNum(), recruit.getRecruitEndTime()); String s = new WgzMessageServiceImpl().JudgingRecruitment(req.getRecruitApplyId(), recruit.getRecruitStaffNum(), recruit.getRecruitEndTime());
switch (s) { switch (s) {
case "1": case "1":
throw new RuntimeException("已招满!"); throw new RuntimeException("已招满!");

View File

@ -44,7 +44,7 @@ public class WgzAppRegistrationInformationRes implements Serializable {
private String recruitAmount; private String recruitAmount;
@ApiModelProperty("招工数量") @ApiModelProperty("招工数量")
private int recruitStaffNum; private String recruitStaffNum;
@ApiModelProperty("任务名称") @ApiModelProperty("任务名称")
private String taskName; private String taskName;

View File

@ -169,6 +169,8 @@ public class WgzAttendanceServiceImpl extends ServicePlusImpl<WgzAttendanceMappe
// LocalDate localDate = startTime.toLocalDate(); // LocalDate localDate = startTime.toLocalDate();
// throw new RuntimeException("您有已通过的请假申请,请假时间为:"+localDate); // throw new RuntimeException("您有已通过的请假申请,请假时间为:"+localDate);
// } // }
//4、在进场时间时才能打卡如果有退场记录就不允许打卡
//5、查看当前人、当前工地、当天的打卡记录 //5、查看当前人、当前工地、当天的打卡记录
String formattedDate = LocalDate.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd")); String formattedDate = LocalDate.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
WgzAttendance we = publicFindByUserIdWait(appUserId, by.getRecruitId(), formattedDate); WgzAttendance we = publicFindByUserIdWait(appUserId, by.getRecruitId(), formattedDate);

View File

@ -210,7 +210,7 @@ public class WgzMessageServiceImpl extends ServicePlusImpl<WgzMessageMapper, Wgz
//2、根据招工ID得到招工信息及附件 //2、根据招工ID得到招工信息及附件
WgzAppRegistrationInformationRes byRecruitIdData = baseMapper.findByRecruitIdData(byId.getTableId()); WgzAppRegistrationInformationRes byRecruitIdData = baseMapper.findByRecruitIdData(byId.getTableId());
byRecruitIdData.setMessageId(byId.getId()).setIsOperation(byId.getIsOperation()); byRecruitIdData.setMessageId(byId.getId()).setIsOperation(byId.getIsOperation());
byRecruitIdData.setFull(JudgingRecruitment(byId.getTableId(), byRecruitIdData.getRecruitStaffNum(), byRecruitIdData.getRecruitEndTime())); byRecruitIdData.setFull(JudgingRecruitment(byId.getTableId(), Integer.parseInt(byRecruitIdData.getRecruitStaffNum()), byRecruitIdData.getRecruitEndTime()));
return byRecruitIdData; return byRecruitIdData;
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB