소스 검색

解决子账号产线删除数据没排除的问题

v_HuilingDeng 3 년 전
부모
커밋
7f34e4159e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      abi-cloud-qr-platform-server/src/main/resources/dao/mapper/UserInfoMapper.xml

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

@@ -108,7 +108,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.factory_id = #{factoryId}
         and ui.is_enable = 1 and ui.is_delete = 0
         and urd.is_activate_mini_app_main_account = 0