This commit is contained in:
2025-03-04 20:06:54 +08:00
parent 485e86c6e4
commit f3544d674c
7 changed files with 34 additions and 18 deletions

View File

@ -405,13 +405,12 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl<BgtProjec
@Override @Override
@Transactional @Transactional
public Boolean userCancelRegistration(Long recruitApplyId) { public Boolean userCancelRegistration(Long recruitApplyId) {
BgtProjectRecruitApply by = baseMapper.selectById(recruitApplyId);
BgtProjectRecruitApply bgtProjectRecruitApply = new BgtProjectRecruitApply(); BgtProjectRecruitApply bgtProjectRecruitApply = new BgtProjectRecruitApply();
bgtProjectRecruitApply.setId(recruitApplyId); bgtProjectRecruitApply.setId(recruitApplyId);
// bgtProjectRecruitApply.setStatus("7"); // bgtProjectRecruitApply.setStatus("7");
if (baseMapper.deleteById(bgtProjectRecruitApply) > 0) { if (baseMapper.deleteById(bgtProjectRecruitApply) > 0) {
Long appUserId = SecurityUtils.getAppUserId(); Long appUserId = SecurityUtils.getAppUserId();
// BgtProjectRecruitApply by = selectByUserIdProjectRecruitApplyId(appUserId);
BgtProjectRecruitApply by = baseMapper.selectById(recruitApplyId);
BgtProjectRecruit appById = iBgtProjectRecruitService.getAppById(by.getRecruitId()); BgtProjectRecruit appById = iBgtProjectRecruitService.getAppById(by.getRecruitId());
Map<String, String> mp = new HashMap<>(); Map<String, String> mp = new HashMap<>();
mp.put("projectName", appById.getRecruitName()); mp.put("projectName", appById.getRecruitName());
@ -465,7 +464,7 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl<BgtProjec
mp.put("projectName", recruit.getRecruitName()); mp.put("projectName", recruit.getRecruitName());
mp.put("userName", byUserId.getUsername()); mp.put("userName", byUserId.getUsername());
mp.put("post", typeOfWork.getDictLabel()); mp.put("post", typeOfWork.getDictLabel());
if (req.getStatus().equals("3")) { if (req.getStatus().equals("4")) {
WgzMessage wgzMessage = new WgzMessage(). WgzMessage wgzMessage = new WgzMessage().
setSenderType(USERTYPE_SYSTEM). setSenderType(USERTYPE_SYSTEM).
setRecipientType(USERTYPE_WGZ). setRecipientType(USERTYPE_WGZ).
@ -495,7 +494,7 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl<BgtProjec
return true; return true;
} }
//系统同意消息 //系统同意消息
if (req.getStatus().equals("4")) { if (req.getStatus().equals("3")) {
WgzMessage wgzMessage = new WgzMessage(). WgzMessage wgzMessage = new WgzMessage().
setSenderType(USERTYPE_SYSTEM). setSenderType(USERTYPE_SYSTEM).
setRecipientType(USERTYPE_WGZ). setRecipientType(USERTYPE_WGZ).

View File

@ -57,6 +57,9 @@ public class WgzAppCancelRegistrationProjectDetailsRes implements Serializable {
@ApiModelProperty("招工开始时间") @ApiModelProperty("招工开始时间")
private String recruitBeginTime; private String recruitBeginTime;
@ApiModelProperty("开工日期")
private String recruitWorkBeginTime;
@ApiModelProperty("联系人") @ApiModelProperty("联系人")
private String recruitContactPerson; private String recruitContactPerson;

View File

@ -8,6 +8,7 @@ import lombok.NoArgsConstructor;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.io.Serializable; import java.io.Serializable;
import java.time.LocalDate;
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@ -31,7 +32,7 @@ public class WgzAppPersonalBasicInformationRes implements Serializable {
private String nation; private String nation;
@ApiModelProperty("出生日期") @ApiModelProperty("出生日期")
private String birthdate; private LocalDate birthdate;
@ApiModelProperty("年龄") @ApiModelProperty("年龄")
private Integer age; private Integer age;

View File

@ -59,6 +59,9 @@ public class WgzAppProjectDetailsRes implements Serializable {
@ApiModelProperty("招工开始时间") @ApiModelProperty("招工开始时间")
private String recruitBeginTime; private String recruitBeginTime;
@ApiModelProperty("开工日期")
private String recruitWorkBeginTime;
@ApiModelProperty("联系人") @ApiModelProperty("联系人")
private String recruitContactPerson; private String recruitContactPerson;

View File

@ -54,6 +54,10 @@ public class WgzApplyForPayrollSettlementAddRes implements Serializable {
@ApiModelProperty("招工开始时间") @ApiModelProperty("招工开始时间")
private String recruitBeginTime; private String recruitBeginTime;
@ApiModelProperty("开工日期")
private String recruitWorkBeginTime;
@ApiModelProperty("联系人") @ApiModelProperty("联系人")
private String recruitContactPerson; private String recruitContactPerson;

View File

@ -9,6 +9,7 @@ import lombok.NoArgsConstructor;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.io.Serializable; import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime; import java.time.LocalDateTime;
/** /**
@ -54,7 +55,7 @@ public class WgzUser implements Serializable {
/** 出生日期 */ /** 出生日期 */
@Excel(name = "出生日期") @Excel(name = "出生日期")
@ApiModelProperty("出生日期") @ApiModelProperty("出生日期")
private String birthdate; private LocalDate birthdate;
/** 身份证号码 */ /** 身份证号码 */
@Excel(name = "身份证号码") @Excel(name = "身份证号码")

View File

@ -174,10 +174,12 @@ public class WgzUserServiceImpl extends ServicePlusImpl<WgzUserMapper, WgzUser>
//2、copy数据返回 //2、copy数据返回
WgzAppPersonalBasicInformationRes wgzAppPersonalBasicInformationRes = new WgzAppPersonalBasicInformationRes(); WgzAppPersonalBasicInformationRes wgzAppPersonalBasicInformationRes = new WgzAppPersonalBasicInformationRes();
BeanUtils.copyProperties(wgzUser,wgzAppPersonalBasicInformationRes); BeanUtils.copyProperties(wgzUser,wgzAppPersonalBasicInformationRes);
wgzAppPersonalBasicInformationRes.setAge(DataUtil.calculateAge(wgzAppPersonalBasicInformationRes.getBirthdate())); if (wgzAppPersonalBasicInformationRes.getBirthdate() != null){
wgzAppPersonalBasicInformationRes.setAge(DataUtil.calculateAge(String.valueOf(wgzAppPersonalBasicInformationRes.getBirthdate())));
}
if (wgzAppPersonalBasicInformationRes.getTypeOfWork() != null){
//3、字典类型转换 //3、字典类型转换
List<SysDictData> typeOfWork = dictTypeService.selectDictDataByType("type_of_work"); List<SysDictData> typeOfWork = dictTypeService.selectDictDataByType("type_of_work");
System.out.println("?? "+typeOfWork.toString());
String[] split = wgzAppPersonalBasicInformationRes.getTypeOfWork().split(","); String[] split = wgzAppPersonalBasicInformationRes.getTypeOfWork().split(",");
StringBuilder typeOfWorkName = new StringBuilder(); StringBuilder typeOfWorkName = new StringBuilder();
for (SysDictData sysDictData : typeOfWork) { for (SysDictData sysDictData : typeOfWork) {
@ -189,6 +191,7 @@ public class WgzUserServiceImpl extends ServicePlusImpl<WgzUserMapper, WgzUser>
} }
typeOfWorkName.deleteCharAt(typeOfWorkName.length() - 1); typeOfWorkName.deleteCharAt(typeOfWorkName.length() - 1);
wgzAppPersonalBasicInformationRes.setTypeOfWorkName(typeOfWorkName.toString()); wgzAppPersonalBasicInformationRes.setTypeOfWorkName(typeOfWorkName.toString());
}
return wgzAppPersonalBasicInformationRes; return wgzAppPersonalBasicInformationRes;
} }
@ -199,6 +202,8 @@ public class WgzUserServiceImpl extends ServicePlusImpl<WgzUserMapper, WgzUser>
//1、对指定用户进行实名认证 //1、对指定用户进行实名认证
WgzUser user = new WgzUser(); WgzUser user = new WgzUser();
BeanUtils.copyProperties(req, user); BeanUtils.copyProperties(req, user);
System.out.println("1?????????? "+req.getTypeOfWork());
System.out.println("2?????????? "+user.getTypeOfWork());
int update = baseMapper.update(user, new LambdaQueryWrapper<WgzUser>().eq(WgzUser::getUserId, req.getUserId())); int update = baseMapper.update(user, new LambdaQueryWrapper<WgzUser>().eq(WgzUser::getUserId, req.getUserId()));
if (update == 0){ if (update == 0){
throw new RuntimeException("当前用户不存在!"); throw new RuntimeException("当前用户不存在!");