优化
This commit is contained in:
@ -17,6 +17,9 @@ public class WgzAppConfirmRegistrationReq implements Serializable {
|
||||
@ApiModelProperty("招工ID")
|
||||
private Long recruitApplyId;
|
||||
|
||||
@ApiModelProperty("消息ID")
|
||||
private Long messageId;
|
||||
|
||||
@ApiModelProperty("3务工者同意 4务工者拒绝 ")
|
||||
@Pattern(regexp = "^(3|4)$", message = "status 只能是 3 或 4")
|
||||
private String status;
|
||||
|
@ -10,6 +10,7 @@ import lombok.experimental.Accessors;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ -43,7 +44,7 @@ public class WgzAppRealNameAuthenticationReq implements Serializable {
|
||||
|
||||
@ApiModelProperty("出生日期")
|
||||
@NotBlank(message = "出生日期不能为空")
|
||||
private String birthdate;
|
||||
private LocalDate birthdate;
|
||||
|
||||
@ApiModelProperty("身份证号码")
|
||||
@NotBlank(message = "身份证号码不能为空")
|
||||
|
@ -26,6 +26,10 @@ public class WgzAppRegistrationInformationRes implements Serializable {
|
||||
@ApiModelProperty("招工申请ID")
|
||||
private Long recruitApplyId;
|
||||
|
||||
|
||||
@ApiModelProperty("消息ID")
|
||||
private Long messageId;
|
||||
|
||||
//==============
|
||||
@ApiModelProperty("封面图(多个逗号分隔)")
|
||||
private String coverPlan;
|
||||
@ -37,10 +41,10 @@ public class WgzAppRegistrationInformationRes implements Serializable {
|
||||
private String recruitName;
|
||||
|
||||
@ApiModelProperty("招工金额")
|
||||
private BigDecimal recruitAmount;
|
||||
private String recruitAmount;
|
||||
|
||||
@ApiModelProperty("招工数量")
|
||||
private Integer recruitStaffNum;
|
||||
private String recruitStaffNum;
|
||||
|
||||
@ApiModelProperty("任务名称")
|
||||
private String taskName;
|
||||
@ -66,6 +70,9 @@ public class WgzAppRegistrationInformationRes implements Serializable {
|
||||
@ApiModelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty("是否需要操作(0不需要 1需要 2已操作)")
|
||||
private String isOperation;
|
||||
|
||||
// @ApiModelProperty("附件实体数据")
|
||||
// private List<Annex> annex;
|
||||
|
||||
|
@ -206,10 +206,10 @@ public class WgzMessageServiceImpl extends ServicePlusImpl<WgzMessageMapper, Wgz
|
||||
//1、获取当前消息的招工ID
|
||||
WgzMessage byId = this.getById(messageId);
|
||||
//2、根据招工ID得到招工信息及附件
|
||||
WgzAppRegistrationInformationRes byRecruitIdData = baseMapper.findByRecruitIdData(byId.getId());
|
||||
WgzAppRegistrationInformationRes byRecruitIdData = baseMapper.findByRecruitIdData(byId.getTableId());
|
||||
// List<Annex> byUserIdAndRecruitId = annexService.findByUserIdAndRecruitId(appUserId, byId.getId(), new String[]{"1"});
|
||||
// byRecruitIdData.setAnnex(null);
|
||||
return byRecruitIdData;
|
||||
return byRecruitIdData.setMessageId(byId.getId()).setIsOperation(byId.getIsOperation());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -125,12 +125,13 @@ public class WgzUserServiceImpl extends ServicePlusImpl<WgzUserMapper, WgzUser>
|
||||
//1、查询手机号是否存在
|
||||
Integer count = baseMapper.selectCount(
|
||||
new LambdaQueryWrapper<WgzUser>().
|
||||
eq(WgzUser::getPhone, wgzUser.getPhone())
|
||||
eq(WgzUser::getPhone, bo.getPhone())
|
||||
);
|
||||
if (count>0){
|
||||
throw new RuntimeException("当前手机号已存在!");
|
||||
}
|
||||
//2、组装数据 BeanUtils.copyProperties(bo,wgzUser);
|
||||
wgzUser.setUsername(bo.getPhone());
|
||||
wgzUser.setPhone(bo.getPhone());
|
||||
wgzUser.setUserId(SnowflakeIdUtil.generateId());
|
||||
wgzUser.setCreateBy("admin").
|
||||
|
Reference in New Issue
Block a user