|
|
|
@@ -86,15 +86,21 @@ public class TeTenantController extends BaseController<TeTenantQuery, TeTenantDt |
|
|
|
@GetMapping("/one") |
|
|
|
R<TeTenantPo> tenant(@RequestParam("phone") String phone) { |
|
|
|
log.info("tenant one方法,手机号查询SysEnterpriseStaff:{}", phone); |
|
|
|
TeTenantPo po = enterpriseStaffMapper.selectByPhone(phone); |
|
|
|
TeTenantPo po = enterpriseStaffMapper.selectTenantByPhone(phone); |
|
|
|
return R.ok(po); |
|
|
|
} |
|
|
|
|
|
|
|
@InnerAuth |
|
|
|
@GetMapping("/query-tenant-by-staff-phone") |
|
|
|
R<TeTenantPo> queryTenantByStaffPhone(@RequestParam("phone") String phone) { |
|
|
|
TeTenantPo po = staffMapper.selectTenantByPhone(phone); |
|
|
|
return R.ok(po); |
|
|
|
} |
|
|
|
|
|
|
|
@InnerAuth |
|
|
|
@GetMapping("/staff") |
|
|
|
R<TeTenantPo> staff(@RequestParam("phone") String phone) { |
|
|
|
TeTenantPo po = staffMapper.selectByPhone(phone); |
|
|
|
@GetMapping("/query-staff-by-phone") |
|
|
|
R<SysEnterpriseStaff> queryStaff(@RequestParam("phone") String phone) { |
|
|
|
SysEnterpriseStaff po = staffMapper.selectStaffByPhone(phone); |
|
|
|
return R.ok(po); |
|
|
|
} |
|
|
|
|
|
|
|
|