修改查询接口
This commit is contained in:
parent
5ad7a20675
commit
97d8949e6b
|
@ -11,7 +11,7 @@ public interface IEmployessAdvisioryInfoApi {
|
||||||
|
|
||||||
int updateById(EmployeesAdvisoryInfoEntity eployeesAdvisoryInfoEntity);
|
int updateById(EmployeesAdvisoryInfoEntity eployeesAdvisoryInfoEntity);
|
||||||
|
|
||||||
List<EmployeesAdvisoryInfoEntity> queryAuditInfo(String tel);
|
List<EmployeesAdvisoryInfoEntity> queryAuditInfo(String openId);
|
||||||
|
|
||||||
int updateByTel(EmployeesAdvisoryInfoEntity employeesAdvisoryInfoEntity);
|
int updateByTel(EmployeesAdvisoryInfoEntity employeesAdvisoryInfoEntity);
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,9 +43,9 @@ public class NuEmployeesAdvisoryInfoServiceImpl extends ServiceImpl<NuEmployeesA
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<EmployeesAdvisoryInfoEntity> queryAuditInfo(String tel) {
|
public List<EmployeesAdvisoryInfoEntity> queryAuditInfo(String openId) {
|
||||||
QueryWrapper<NuEmployeesAdvisoryInfo> qw = new QueryWrapper<>();
|
QueryWrapper<NuEmployeesAdvisoryInfo> qw = new QueryWrapper<>();
|
||||||
qw.eq("tel",tel);
|
qw.eq("open_id",openId);
|
||||||
// qw.in("status",new String[]{"1","3"});//审核状态为审核中、驳回的
|
// qw.in("status",new String[]{"1","3"});//审核状态为审核中、驳回的
|
||||||
qw.orderByDesc("create_time");
|
qw.orderByDesc("create_time");
|
||||||
List<NuEmployeesAdvisoryInfo> list = baseMapper.selectList(qw);
|
List<NuEmployeesAdvisoryInfo> list = baseMapper.selectList(qw);
|
||||||
|
|
|
@ -34,16 +34,16 @@ public class EmployessInfoApi {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据手机号获取工入驻申请信息
|
* 根据openId获取工入驻申请信息
|
||||||
*
|
*
|
||||||
* @param tel
|
* @param openId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("/queryApiEmployessInfo")
|
@GetMapping("/queryApiEmployessInfo")
|
||||||
public Result<List<EmployeesAdvisoryInfoEntity>> queryApiEmployessInfo(@RequestParam("tel") String tel){
|
public Result<List<EmployeesAdvisoryInfoEntity>> queryApiEmployessInfo(@RequestParam("openId") String openId){
|
||||||
if(StringUtils.isBlank(tel)){
|
if(StringUtils.isBlank(openId)){
|
||||||
return Result.error("手机号码错误");
|
return Result.error("手机号码错误");
|
||||||
}
|
}
|
||||||
return Result.ok(employessAdvisioryInfoApi.queryAuditInfo(tel));
|
return Result.ok(employessAdvisioryInfoApi.queryAuditInfo(openId));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue