yuanliang пре 1 година
родитељ
комит
9991d45fdf

+ 2 - 2
cooleshow-user/user-biz/src/main/resources/config/mybatis/UserTenantBindRecordMapper.xml

@@ -22,7 +22,7 @@
         ,su.gender_ gender
 <!--        ,su.lock_flag_ lockFlag-->
         <if test="param.userType == 'TEACHER'">
-            ,tc.lock_flag_ lockFlag
+            ,if(su.lock_flag_ = 0 and tc.lock_flag_= 0,0,1) as lockFlag
             ,tc.settlement_from_ settlementFrom
             ,group_concat(tg.name_) tenantGroupName
             ,group_concat(tg.id_) tenantGroupId
@@ -31,7 +31,7 @@
             ,tg.name_ tenantGroupName
             ,tg.id_ tenantGroupId
             ,st.subject_id_ subjectId
-            ,st.lock_flag_ lockFlag
+            ,if(su.lock_flag_ = 0 and st.lock_flag_= 0,0,1) as lockFlag
         </if>
         FROM user_tenant_bind_record t
         LEFT JOIN sys_user su ON t.user_id_ = su.id_