This commit is contained in:
1378012178@qq.com 2025-08-26 09:39:00 +08:00
commit 762b45407b
4 changed files with 14 additions and 14 deletions

View File

@ -11,7 +11,7 @@ public interface IEmployessAdvisioryInfoApi {
int updateById(EmployeesAdvisoryInfoEntity eployeesAdvisoryInfoEntity);
List<EmployeesAdvisoryInfoEntity> queryAuditInfo(String tel);
List<EmployeesAdvisoryInfoEntity> queryAuditInfo(String openId);
int updateByTel(EmployeesAdvisoryInfoEntity employeesAdvisoryInfoEntity);
}

View File

@ -60,8 +60,8 @@ public class EmployeesAdvisoryInfoEntity implements Serializable {
/**民族*/
private String national;
/**出生日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy.MM.dd")
@DateTimeFormat(pattern="yyyy.MM.dd")
private Date birthDate;
/**住址(身份证上)*/
private String idCardAddress;
@ -70,12 +70,12 @@ public class EmployeesAdvisoryInfoEntity implements Serializable {
/**签发机关*/
private String issuingAuthority;
/**有效开始日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy.MM.dd")
@DateTimeFormat(pattern="yyyy.MM.dd")
private Date startTime;
/**有效结束日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy.MM.dd")
@DateTimeFormat(pattern="yyyy.MM.dd")
private Date endTime;
/**身份证正面*/
private String cardZmPath;

View File

@ -43,9 +43,9 @@ public class NuEmployeesAdvisoryInfoServiceImpl extends ServiceImpl<NuEmployeesA
}
@Override
public List<EmployeesAdvisoryInfoEntity> queryAuditInfo(String tel) {
public List<EmployeesAdvisoryInfoEntity> queryAuditInfo(String openId) {
QueryWrapper<NuEmployeesAdvisoryInfo> qw = new QueryWrapper<>();
qw.eq("tel",tel);
qw.eq("open_id",openId);
// qw.in("status",new String[]{"1","3"});//审核状态为审核中驳回的
qw.orderByDesc("create_time");
List<NuEmployeesAdvisoryInfo> list = baseMapper.selectList(qw);

View File

@ -34,16 +34,16 @@ public class EmployessInfoApi {
}
/**
* 根据手机号获取工入驻申请信息
* 根据openId获取工入驻申请信息
*
* @param tel
* @param openId
* @return
*/
@GetMapping("/queryApiEmployessInfo")
public Result<List<EmployeesAdvisoryInfoEntity>> queryApiEmployessInfo(@RequestParam("tel") String tel){
if(StringUtils.isBlank(tel)){
public Result<List<EmployeesAdvisoryInfoEntity>> queryApiEmployessInfo(@RequestParam("openId") String openId){
if(StringUtils.isBlank(openId)){
return Result.error("手机号码错误");
}
return Result.ok(employessAdvisioryInfoApi.queryAuditInfo(tel));
return Result.ok(employessAdvisioryInfoApi.queryAuditInfo(openId));
}
}