瀏覽代碼

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

v_HuilingDeng 3 年之前
父節點
當前提交
0b120eb14d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      abi-cloud-qr-platform-server/src/main/resources/dao/mapper/UserInfoMapper.xml

+ 2 - 2
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_name
+        LEFT JOIN brewery_production_line bpl ON ui.id = bpl.user_id
         WHERE  ui.factory_id = #{factoryId}
         and ui.is_enable = 1 and ui.is_delete = 0
         and urd.is_activate_mini_app_main_account = 0
@@ -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_name
+        LEFT JOIN brewery_production_line bpl ON ui.id = bpl.user_id
         WHERE  ui.id = #{userId}
     </select>
 </mapper>