|
|
|
@ -24,6 +24,18 @@ |
|
|
|
|
INSERT INTO occupationlab.ol_student(`account_id`, `class_id`, `school_id`, `create_time`, `update_time`) |
|
|
|
|
VALUES (#{accountId}, #{classId}, #{schoolId}, now(), now()); |
|
|
|
|
</insert> |
|
|
|
|
<update id="deleteOrganization"> |
|
|
|
|
UPDATE k_platform_team_account ta |
|
|
|
|
INNER JOIN k_platform_team pt ON ta.manage_id = pt.manage_id |
|
|
|
|
INNER JOIN k_platform_team_classification tc ON tc.id = pt.classification_id |
|
|
|
|
set ta.is_del = 1,tc.is_del=1 where ta.account_id = #{accountId} |
|
|
|
|
</update> |
|
|
|
|
<update id="deleteTeam"> |
|
|
|
|
UPDATE k_platform_team_account ta |
|
|
|
|
INNER JOIN k_platform_team pt ON ta.manage_id = pt.manage_id |
|
|
|
|
INNER JOIN k_platform_team_classification tc ON tc.id = pt.classification_id |
|
|
|
|
set ta.is_del = 1,tc.is_del=1 where tc.id = #{teamId} |
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
<!-- 通用查询映射结果 --> |
|
|
|
|
<!--<resultMap id="getDataUserListMap" type="com.huoran.users.entity.res.DataUserInfoResp"> |
|
|
|
@ -873,17 +885,16 @@ |
|
|
|
|
<if test='userInfoReq.platformId !=null and userInfoReq.platformId !=""'> |
|
|
|
|
AND FIND_IN_SET(a.platform_id,#{userInfoReq.platformId}) |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
<if test='userInfoReq.provinceId !=null and userInfoReq.provinceId !=""'> |
|
|
|
|
AND u.province_id = #{userInfoReq.provinceId} |
|
|
|
|
</if> |
|
|
|
|
<if test='userInfoReq.cityId !=null and userInfoReq.cityId !=""'> |
|
|
|
|
and u.city_id =#{userInfoReq.cityId} |
|
|
|
|
</if> |
|
|
|
|
<if test='userInfoReq.searchContent !=null and userInfoReq.searchContent !=""'> |
|
|
|
|
AND ( a.phone LIKE CONCAT('%',#{userInfoReq.searchContent},'%') |
|
|
|
|
OR u.user_name LIKE CONCAT('%',#{userInfoReq.searchContent},'%')) |
|
|
|
|
</if> |
|
|
|
|
<if test='userInfoReq.registration !=null'> |
|
|
|
|
and ta.invitation_account IS NULL |
|
|
|
|
</if> |
|
|
|
|
<if test='userInfoReq.invite !=null'> |
|
|
|
|
AND ta.invitation_account IS NOT NULL |
|
|
|
|
</if> |
|
|
|
|
GROUP BY a.app_open_id |
|
|
|
|
ORDER BY |
|
|
|
|
create_time DESC |
|
|
|
@ -1097,7 +1108,7 @@ |
|
|
|
|
AND a.account_id = #{id} |
|
|
|
|
AND c.is_del = 0 |
|
|
|
|
</select> |
|
|
|
|
<select id="selectOrganizationInfo" resultType="com.huoran.users.entity.res.OrganizationInfo"> |
|
|
|
|
<select id="selectOrganizationInfo" resultType="com.huoran.common.entity.OrganizationInfo"> |
|
|
|
|
SELECT |
|
|
|
|
CASE |
|
|
|
|
WHEN he_parent.audit_status = 2 THEN |
|
|
|
@ -1110,7 +1121,7 @@ |
|
|
|
|
tc.classification_name |
|
|
|
|
END |
|
|
|
|
END AS organizationName, |
|
|
|
|
ec.platform_source AS platform_id, |
|
|
|
|
ta.platform_id AS platform_id, |
|
|
|
|
|
|
|
|
|
CASE |
|
|
|
|
WHEN tc.is_team = 0 THEN |
|
|
|
@ -1122,13 +1133,17 @@ |
|
|
|
|
CASE |
|
|
|
|
WHEN tc.is_team = 0 THEN |
|
|
|
|
CASE |
|
|
|
|
WHEN he_parent.audit_status = 2 THEN |
|
|
|
|
'已认证' ELSE '未认证或审核中' |
|
|
|
|
WHEN he_parent.audit_status = 2 THEN '已认证' |
|
|
|
|
WHEN he_parent.audit_status = 0 THEN '未提交' |
|
|
|
|
WHEN he_parent.audit_status = 1 THEN '待审核' |
|
|
|
|
ELSE '已驳回' |
|
|
|
|
END |
|
|
|
|
ELSE |
|
|
|
|
CASE |
|
|
|
|
WHEN ec.audit_status = 2 THEN |
|
|
|
|
'已认证' ELSE '未认证或审核中' |
|
|
|
|
WHEN ec.audit_status = 2 THEN '已认证' |
|
|
|
|
WHEN ec.audit_status = 0 THEN '未提交' |
|
|
|
|
WHEN ec.audit_status = 1 THEN '待审核' |
|
|
|
|
ELSE '已驳回' |
|
|
|
|
END |
|
|
|
|
END |
|
|
|
|
AS authentication, |
|
|
|
@ -1150,7 +1165,7 @@ |
|
|
|
|
INNER JOIN k_platform_team pt ON ta.manage_id = pt.manage_id |
|
|
|
|
INNER JOIN k_platform_team_classification tc ON tc.id = pt.classification_id |
|
|
|
|
AND tc.is_del = 0 |
|
|
|
|
LEFT JOIN k_platform_team_classification tc_parent ON tc.parent_id = tc_parent.id |
|
|
|
|
LEFT JOIN k_platform_team_classification tc_parent ON tc.parent_id = tc_parent.id AND tc_parent.is_del = 0 |
|
|
|
|
LEFT JOIN hr_enterprise_certification he_parent ON hu.app_open_id = he_parent.open_id AND tc_parent.id = pt.classification_id |
|
|
|
|
WHERE |
|
|
|
|
hu.app_open_id = #{openId} |
|
|
|
@ -1169,6 +1184,27 @@ |
|
|
|
|
AND a.is_del = 0 |
|
|
|
|
AND a.platform_id !=7 |
|
|
|
|
</select> |
|
|
|
|
<select id="selectTeamId" resultType="java.lang.Integer"> |
|
|
|
|
SELECT |
|
|
|
|
DATA.id |
|
|
|
|
FROM |
|
|
|
|
( |
|
|
|
|
SELECT |
|
|
|
|
@ids AS _ids, |
|
|
|
|
( SELECT @ids := GROUP_CONCAT( id ) FROM k_platform_team_classification WHERE FIND_IN_SET( parent_id, @ids ) ) AS cids, |
|
|
|
|
@l := @l + 1 AS LEVEL |
|
|
|
|
FROM |
|
|
|
|
k_platform_team_classification, |
|
|
|
|
( SELECT @ids := #{teamId}, @l := 0 ) b |
|
|
|
|
WHERE |
|
|
|
|
@ids IS NOT NULL |
|
|
|
|
) ID, |
|
|
|
|
k_platform_team_classification DATA |
|
|
|
|
WHERE |
|
|
|
|
FIND_IN_SET( DATA.id, ID._ids ) |
|
|
|
|
ORDER BY |
|
|
|
|
id DESC |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<update id="unbindMobilePhone" parameterType="java.lang.Integer"> |
|
|
|
|
UPDATE hr_user_account |
|
|
|
|