优化
This commit is contained in:
@ -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;
|
||||
|
||||
}
|
||||
|
@ -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("银行卡号格式不正确");
|
||||
|
Reference in New Issue
Block a user