优化
This commit is contained in:
@ -405,13 +405,12 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl<BgtProjec
|
||||
@Override
|
||||
@Transactional
|
||||
public Boolean userCancelRegistration(Long recruitApplyId) {
|
||||
BgtProjectRecruitApply by = baseMapper.selectById(recruitApplyId);
|
||||
BgtProjectRecruitApply bgtProjectRecruitApply = new BgtProjectRecruitApply();
|
||||
bgtProjectRecruitApply.setId(recruitApplyId);
|
||||
// bgtProjectRecruitApply.setStatus("7");
|
||||
if (baseMapper.deleteById(bgtProjectRecruitApply) > 0) {
|
||||
Long appUserId = SecurityUtils.getAppUserId();
|
||||
// BgtProjectRecruitApply by = selectByUserIdProjectRecruitApplyId(appUserId);
|
||||
BgtProjectRecruitApply by = baseMapper.selectById(recruitApplyId);
|
||||
BgtProjectRecruit appById = iBgtProjectRecruitService.getAppById(by.getRecruitId());
|
||||
Map<String, String> mp = new HashMap<>();
|
||||
mp.put("projectName", appById.getRecruitName());
|
||||
@ -465,7 +464,7 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl<BgtProjec
|
||||
mp.put("projectName", recruit.getRecruitName());
|
||||
mp.put("userName", byUserId.getUsername());
|
||||
mp.put("post", typeOfWork.getDictLabel());
|
||||
if (req.getStatus().equals("3")) {
|
||||
if (req.getStatus().equals("4")) {
|
||||
WgzMessage wgzMessage = new WgzMessage().
|
||||
setSenderType(USERTYPE_SYSTEM).
|
||||
setRecipientType(USERTYPE_WGZ).
|
||||
@ -495,7 +494,7 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl<BgtProjec
|
||||
return true;
|
||||
}
|
||||
//系统同意消息
|
||||
if (req.getStatus().equals("4")) {
|
||||
if (req.getStatus().equals("3")) {
|
||||
WgzMessage wgzMessage = new WgzMessage().
|
||||
setSenderType(USERTYPE_SYSTEM).
|
||||
setRecipientType(USERTYPE_WGZ).
|
||||
|
@ -57,6 +57,9 @@ public class WgzAppCancelRegistrationProjectDetailsRes implements Serializable {
|
||||
@ApiModelProperty("招工开始时间")
|
||||
private String recruitBeginTime;
|
||||
|
||||
@ApiModelProperty("开工日期")
|
||||
private String recruitWorkBeginTime;
|
||||
|
||||
@ApiModelProperty("联系人")
|
||||
private String recruitContactPerson;
|
||||
|
||||
|
@ -8,6 +8,7 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@ -31,7 +32,7 @@ public class WgzAppPersonalBasicInformationRes implements Serializable {
|
||||
private String nation;
|
||||
|
||||
@ApiModelProperty("出生日期")
|
||||
private String birthdate;
|
||||
private LocalDate birthdate;
|
||||
|
||||
@ApiModelProperty("年龄")
|
||||
private Integer age;
|
||||
|
@ -59,6 +59,9 @@ public class WgzAppProjectDetailsRes implements Serializable {
|
||||
@ApiModelProperty("招工开始时间")
|
||||
private String recruitBeginTime;
|
||||
|
||||
@ApiModelProperty("开工日期")
|
||||
private String recruitWorkBeginTime;
|
||||
|
||||
@ApiModelProperty("联系人")
|
||||
private String recruitContactPerson;
|
||||
|
||||
|
@ -54,6 +54,10 @@ public class WgzApplyForPayrollSettlementAddRes implements Serializable {
|
||||
@ApiModelProperty("招工开始时间")
|
||||
private String recruitBeginTime;
|
||||
|
||||
@ApiModelProperty("开工日期")
|
||||
private String recruitWorkBeginTime;
|
||||
|
||||
|
||||
@ApiModelProperty("联系人")
|
||||
private String recruitContactPerson;
|
||||
|
||||
|
@ -9,6 +9,7 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
@ -54,7 +55,7 @@ public class WgzUser implements Serializable {
|
||||
/** 出生日期 */
|
||||
@Excel(name = "出生日期")
|
||||
@ApiModelProperty("出生日期")
|
||||
private String birthdate;
|
||||
private LocalDate birthdate;
|
||||
|
||||
/** 身份证号码 */
|
||||
@Excel(name = "身份证号码")
|
||||
|
@ -174,10 +174,12 @@ public class WgzUserServiceImpl extends ServicePlusImpl<WgzUserMapper, WgzUser>
|
||||
//2、copy数据返回
|
||||
WgzAppPersonalBasicInformationRes wgzAppPersonalBasicInformationRes = new 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、字典类型转换
|
||||
List<SysDictData> typeOfWork = dictTypeService.selectDictDataByType("type_of_work");
|
||||
System.out.println("?? "+typeOfWork.toString());
|
||||
String[] split = wgzAppPersonalBasicInformationRes.getTypeOfWork().split(",");
|
||||
StringBuilder typeOfWorkName = new StringBuilder();
|
||||
for (SysDictData sysDictData : typeOfWork) {
|
||||
@ -189,6 +191,7 @@ public class WgzUserServiceImpl extends ServicePlusImpl<WgzUserMapper, WgzUser>
|
||||
}
|
||||
typeOfWorkName.deleteCharAt(typeOfWorkName.length() - 1);
|
||||
wgzAppPersonalBasicInformationRes.setTypeOfWorkName(typeOfWorkName.toString());
|
||||
}
|
||||
return wgzAppPersonalBasicInformationRes;
|
||||
}
|
||||
|
||||
@ -199,6 +202,8 @@ public class WgzUserServiceImpl extends ServicePlusImpl<WgzUserMapper, WgzUser>
|
||||
//1、对指定用户进行实名认证
|
||||
WgzUser user = new WgzUser();
|
||||
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()));
|
||||
if (update == 0){
|
||||
throw new RuntimeException("当前用户不存在!");
|
||||
|
Reference in New Issue
Block a user