pad端员工登录可以使用机构加盟时自动生成的管理员账号
This commit is contained in:
parent
25d3c4c216
commit
33b3931e87
|
|
@ -13,5 +13,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||
* @Version: V1.0
|
||||
*/
|
||||
public interface EmployeesOrgMapper extends BaseMapper<EmployeesOrg> {
|
||||
List<EmployeesOrg> getEmployeesOrgListByEmpId(@Param("employeesId") String employeesId);
|
||||
List<EmployeesOrg> getEmployeesOrgListByEmpId(@Param("tel") String tel);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,13 +7,20 @@
|
|||
a.org_code as orgCode,
|
||||
concat(CASE WHEN RIGHT(b.url, 1) = '/' THEN LEFT(b.url, LENGTH(b.url)) ELSE b.url END, b.context_path ) AS serverUrl,
|
||||
b.depart_name
|
||||
FROM nu_biz_employees_org a
|
||||
LEFT JOIN sys_depart b
|
||||
ON a.org_code = b.org_code
|
||||
WHERE a.employees_id = #{employeesId}
|
||||
FROM nu_biz_employees_advisory_info e
|
||||
INNER JOIN nu_biz_employees_org a ON a.employees_id = e.id
|
||||
LEFT JOIN sys_depart b ON a.org_code = b.org_code
|
||||
WHERE e.tel = #{tel}
|
||||
AND a.iz_freeze = 'N'
|
||||
AND a.iz_history = 'N'
|
||||
AND b.status = '1'
|
||||
UNION
|
||||
SELECT
|
||||
b.org_code as orgCode,
|
||||
concat(CASE WHEN RIGHT(b.url, 1) = '/' THEN LEFT(b.url, LENGTH(b.url)) ELSE b.url END, b.context_path ) AS serverUrl,
|
||||
b.depart_name
|
||||
FROM sys_depart b
|
||||
WHERE b.account_no = #{tel}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -59,13 +59,9 @@
|
|||
</select>
|
||||
|
||||
<select id="getEmployeeInfoByTel" resultType="com.nu.modules.employees.entity.NuEmployeesAdvisoryInfo">
|
||||
SELECT
|
||||
adinfo.*,
|
||||
concat(CASE WHEN RIGHT(sd.url, 1) = '/' THEN LEFT(sd.url, LENGTH(sd.url) - 1) ELSE sd.url END, sd.context_path ) AS serverUrl
|
||||
FROM nu_biz_employees_advisory_info adinfo
|
||||
LEFT JOIN sys_depart sd
|
||||
ON adinfo.last_login_org = sd.org_code
|
||||
WHERE adinfo.tel = #{tel}
|
||||
SELECT adinfo.tel FROM nu_biz_employees_advisory_info adinfo WHERE adinfo.tel = #{tel}
|
||||
UNION
|
||||
SELECT sd.account_no as tel FROM sys_depart sd WHERE sd.account_no = #{tel}
|
||||
</select>
|
||||
|
||||
<select id="queryEmployeeInfoById" resultType="com.nu.modules.employees.entity.NuEmployeesAdvisoryInfo">
|
||||
|
|
|
|||
|
|
@ -12,5 +12,5 @@ import java.util.List;
|
|||
* @Version: V1.0
|
||||
*/
|
||||
public interface IEmployeesOrgService extends IService<EmployeesOrg> {
|
||||
List<EmployeesOrg> getEmployeesOrgListByEmpId(String employeesId);
|
||||
List<EmployeesOrg> getEmployeesOrgListByEmpId(String tel);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ public class EmployeesOrgServiceImpl extends ServiceImpl<EmployeesOrgMapper, Emp
|
|||
}
|
||||
|
||||
@Override
|
||||
public List<EmployeesOrg> getEmployeesOrgListByEmpId(String employeesId){
|
||||
return baseMapper.getEmployeesOrgListByEmpId(employeesId);
|
||||
public List<EmployeesOrg> getEmployeesOrgListByEmpId(String tel){
|
||||
return baseMapper.getEmployeesOrgListByEmpId(tel);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ public class NuEmployeesAdvisoryInfoServiceImpl extends ServiceImpl<NuEmployeesA
|
|||
NuEmployeesAdvisoryInfo entity = baseMapper.getEmployeeInfoByTel(tel);
|
||||
if (entity != null) {
|
||||
resultData.set("data", entity);
|
||||
List<EmployeesOrg> list = employeesOrgService.getEmployeesOrgListByEmpId(entity.getId());
|
||||
List<EmployeesOrg> list = employeesOrgService.getEmployeesOrgListByEmpId(entity.getTel());
|
||||
resultData.set("orgList", list);
|
||||
} else {
|
||||
resultData.set("code", "1");
|
||||
|
|
|
|||
Loading…
Reference in New Issue