6 次代码提交 cb6f94ab81 ... bfbabc7b36

作者 SHA1 备注 提交日期
  刘俊驰 bfbabc7b36 Merge branch 'online' into test 3 月之前
  刘俊驰 30b0c306bf fix 3 月之前
  刘俊驰 9afce6d3a8 Merge branch 'online' of http://git.dayaedu.com/yonge/cooleshow into online 3 月之前
  刘俊驰 a28a8b13ad fix 3 月之前
  zouxuan a621bcd0b0 Merge branch 'online' of http://git.dayaedu.com/yonge/cooleshow into zx_online_0213_contract 3 月之前
  刘俊驰 afa69aca58 Merge branch 'online' of http://git.dayaedu.com/yonge/cooleshow into online 3 月之前

+ 1 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/execl/analysis/EntitlementsImportAnalysis.java

@@ -145,6 +145,7 @@ public class EntitlementsImportAnalysis extends DataAnalysis<EntitlementsImportA
                                 ret += "机构专辑名称重复;";
                             } else {
                                 item.setTenantAlbumId(collect.get(0).getId());
+                                item.setTenantId(smallStudent.getTenantId());
                             }
                         }
                     }

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

@@ -50,6 +50,7 @@
             </if>
         </if>
         <where>
+            su.del_flag_ = 0
             <if test="param.keyword != null and param.keyword.trim() != ''">
                 AND (t.user_id_ like concat('%',#{param.keyword},'%')
                 or su.username_ like concat('%',#{param.keyword},'%')
@@ -77,7 +78,12 @@
                 AND t.bind_status_ = #{param.bindStatus}
             </if>
             <if test="param.lockFlag != null">
-                AND su.lock_flag_ = #{param.lockFlag}
+                <if test="param.userType == 'TEACHER'">
+                    AND tc.lock_flag_ =#{param.lockFlag}
+                </if>
+                <if test="param.userType == 'STUDENT'">
+                    AND st.lock_flag_ =#{param.lockFlag}
+                </if>
             </if>
             <if test="param.bindStartTime != null">
                 AND t.bind_time_ >= #{param.bindStartTime}