This commit is contained in:
zt
2025-03-24 13:46:10 +08:00
parent 531e345920
commit 0e65a90c52
5 changed files with 84 additions and 82 deletions

View File

@ -20,9 +20,8 @@ public class BgtAttendanceDetailDTO {
@ApiModelProperty("务工者ID")
private Long userId;
@ApiModelProperty("任务Id")
@NotNull(message = "任务Id不能为空")
private Long taskId;
// @ApiModelProperty("任务Id")
// private Long taskId;
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@ -30,6 +29,7 @@ public class BgtAttendanceDetailDTO {
private LocalDate date;
@ApiModelProperty("招工申请ID")
@NotNull(message = "招工申请ID不能为空")
private Long recruitApplyId;
}

View File

@ -136,6 +136,11 @@ public class BgtUserServiceImpl extends ServicePlusImpl<BgtUserMapper, BgtUser>
throw new BaseException("身份证号格式不正确");
}
//校验身份证是否使用过
if (!baseMapper.selectList(new LambdaQueryWrapper<BgtUser>().eq(BgtUser::getIdentityCard, dto.getIdentityCard())).isEmpty()) {
throw new BaseException("身份证号已使用");
}
// 校验银行卡号
if (!isValidBankCard(dto.getCardNo())) {
throw new BaseException("银行卡号格式不正确");