pad端员工登录可以使用机构加盟时自动生成的管理员账号
This commit is contained in:
parent
05ff59bb49
commit
8da55ea63b
|
|
@ -14,7 +14,6 @@ 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);
|
||||
int updateByOpenAndOrgCode(@Param("dto") EmployeesStatusMQDto dto);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,17 +9,24 @@
|
|||
</update>
|
||||
|
||||
<select id="getEmployeesOrgListByEmpId" resultType="com.nu.modules.employees.entity.EmployeesOrg">
|
||||
SELECT 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} or a.tel = #{employeesId})
|
||||
SELECT
|
||||
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_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>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import java.util.List;
|
|||
* @Version: V1.0
|
||||
*/
|
||||
public interface IEmployeesOrgService extends IService<EmployeesOrg> {
|
||||
List<EmployeesOrg> getEmployeesOrgListByEmpId(String employeesId);
|
||||
List<EmployeesOrg> getEmployeesOrgListByEmpId(String tel);
|
||||
|
||||
void updateByOpenAndOrgCode(EmployeesStatusMQDto dto);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue