Ver código fonte

酒厂小程序查询子账号详情添加啤酒厂id的返回

v_HuilingDeng 3 anos atrás
pai
commit
065f186f94

+ 1 - 1
abi-cloud-qr-platform-server/src/main/resources/dao/mapper/UserInfoMapper.xml

@@ -128,7 +128,7 @@
         bpl.production_line_name
         from user_info ui
         inner JOIN user_role_detail urd ON ui.role_code = urd.role_code
-        LEFT JOIN brewery_production_line bpl ON ui.id = bpl.user_id
+        LEFT JOIN brewery_production_line bpl ON ui.id = bpl.user_id and bpl.is_delete = 0
         WHERE  ui.id = #{userId}
     </select>
 </mapper>