接口修改

dev_202412
cheney 4 months ago
parent 10ad8e6a02
commit b756ba17e8
  1. 5
      nakadai/src/main/java/com/huoran/nakadai/controller/HrStaffController.java
  2. 2
      nakadai/src/main/java/com/huoran/nakadai/mapper/HrStaffMapper.java
  3. 2
      nakadai/src/main/java/com/huoran/nakadai/service/HrStaffService.java
  4. 2
      nakadai/src/main/java/com/huoran/nakadai/service/impl/HrStaffServiceImpl.java

@ -69,8 +69,9 @@ public class HrStaffController {
@GetMapping("/searchForExpertByPhone") @GetMapping("/searchForExpertByPhone")
@ApiOperation(value = "根据手机号查询专家详情", response = StaffResp.class) @ApiOperation(value = "根据手机号查询专家详情", response = StaffResp.class)
public R searchForExpertByPhone( public R searchForExpertByPhone(
@ApiParam(name = "phone", value = "手机号") @RequestParam Integer phone, @ApiParam(name = "phone", value = "手机号") @RequestParam String phone,
@ApiParam(name = "accountId", value = "专家账号id",required = false) @RequestParam(required = false) String accountId) { @ApiParam(name = "accountId", value = "专家账号id",required = false)
@RequestParam(required = false) String accountId) {
return staffService.searchForExpertByPhone(phone, accountId); return staffService.searchForExpertByPhone(phone, accountId);
} }

@ -30,7 +30,7 @@ public interface HrStaffMapper extends BaseMapper<HrStaff> {
StaffResp staffDetail(Integer accountId); StaffResp staffDetail(Integer accountId);
StaffResp searchForExpertByPhone(@Param("phone")Integer phone,@Param("accountId")String accountId); StaffResp searchForExpertByPhone(@Param("phone")String phone,@Param("accountId")String accountId);
Integer getUserId(Integer accountId); Integer getUserId(Integer accountId);

@ -45,5 +45,5 @@ public interface HrStaffService extends IService<HrStaff> {
void expertResetPassword(Integer accountId); void expertResetPassword(Integer accountId);
R searchForExpertByPhone(Integer phone,String accountId); R searchForExpertByPhone(String phone,String accountId);
} }

@ -197,7 +197,7 @@ public class HrStaffServiceImpl extends ServiceImpl<HrStaffMapper, HrStaff> impl
} }
@Override @Override
public R searchForExpertByPhone(Integer phone,String accountId) { public R searchForExpertByPhone(String phone,String accountId) {
StaffResp resp = baseMapper.searchForExpertByPhone(phone, accountId); StaffResp resp = baseMapper.searchForExpertByPhone(phone, accountId);
return R.ok().put("data", resp); return R.ok().put("data", resp);
} }

Loading…
Cancel
Save