pad端员工登录可以使用机构加盟时自动生成的管理员账号

This commit is contained in:
曹磊 2026-03-31 15:53:19 +08:00
parent 05ff59bb49
commit 8da55ea63b
3 changed files with 17 additions and 11 deletions

View File

@ -14,7 +14,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* @Version: V1.0 * @Version: V1.0
*/ */
public interface EmployeesOrgMapper extends BaseMapper<EmployeesOrg> { 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); int updateByOpenAndOrgCode(@Param("dto") EmployeesStatusMQDto dto);
} }

View File

@ -9,17 +9,24 @@
</update> </update>
<select id="getEmployeesOrgListByEmpId" resultType="com.nu.modules.employees.entity.EmployeesOrg"> <select id="getEmployeesOrgListByEmpId" resultType="com.nu.modules.employees.entity.EmployeesOrg">
SELECT a.org_code as orgCode, SELECT
concat(CASE WHEN RIGHT (b.url, 1) = '/' THEN LEFT (b.url, LENGTH (b.url)) ELSE b.url END, a.org_code as orgCode,
b.context_path) AS serverUrl, 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 b.depart_name
FROM nu_biz_employees_org a FROM nu_biz_employees_advisory_info e
LEFT JOIN sys_depart b INNER JOIN nu_biz_employees_org a ON a.employees_id = e.id
ON a.org_code = b.org_code LEFT JOIN sys_depart b ON a.org_code = b.org_code
WHERE (a.employees_id = #{employeesId} or a.tel = #{employeesId}) WHERE e.tel = #{tel}
AND a.iz_freeze = 'N' AND a.iz_freeze = 'N'
AND a.iz_history = 'N' AND a.iz_history = 'N'
AND b.status = '1' 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> </select>
</mapper> </mapper>

View File

@ -13,7 +13,7 @@ import java.util.List;
* @Version: V1.0 * @Version: V1.0
*/ */
public interface IEmployeesOrgService extends IService<EmployeesOrg> { public interface IEmployeesOrgService extends IService<EmployeesOrg> {
List<EmployeesOrg> getEmployeesOrgListByEmpId(String employeesId); List<EmployeesOrg> getEmployeesOrgListByEmpId(String tel);
void updateByOpenAndOrgCode(EmployeesStatusMQDto dto); void updateByOpenAndOrgCode(EmployeesStatusMQDto dto);
} }