|
|
|
@ -154,4 +154,37 @@ public class EmployeeRelationController {
|
|
|
|
|
return actionMap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询是否有扫码待入职人员
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@WeaPermission(publicPermission = true)
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
|
@GetMapping("/queryIsNotHaveScanTheCodeInfo")
|
|
|
|
|
public Map<String, Object> queryIsNotHaveScanTheCodeInfo(
|
|
|
|
|
@RequestParam("mobile") String mobile,
|
|
|
|
|
@RequestParam("email") String email,
|
|
|
|
|
@RequestParam("identity") String identity){
|
|
|
|
|
log.error("queryIsNotHaveScanTheCodeInfo.mobile:{},email:{},identity:{}"+mobile,email,identity);
|
|
|
|
|
Map<String, Object> actionMap = new HashMap<>();
|
|
|
|
|
try {
|
|
|
|
|
//查询判断
|
|
|
|
|
boolean flag = employeeRelationService.queryIsNotHaveScanTheCodeInfo(mobile,email,identity);
|
|
|
|
|
log.error("queryIsNotHaveScanTheCodeInfo.flag:{}", flag);
|
|
|
|
|
if(flag){
|
|
|
|
|
actionMap.put("code","200");
|
|
|
|
|
actionMap.put("msg","您是待入职员工,请正常录入本人信息!");
|
|
|
|
|
}else {
|
|
|
|
|
actionMap.put("code","400");
|
|
|
|
|
actionMap.put("msg","您还不是待入职员工,请联系对应hr!");
|
|
|
|
|
}
|
|
|
|
|
}catch(Exception e){
|
|
|
|
|
log.error("接口调用失败-e:{}",e);
|
|
|
|
|
actionMap.put("code","201");
|
|
|
|
|
actionMap.put("msg","接口调用失败!");
|
|
|
|
|
}
|
|
|
|
|
return actionMap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|