lvzhikai 4 年之前
父節點
當前提交
cdfcb55382

+ 4 - 1
src/main/java/com/chinaitop/depot/agent/basic/mapper/BusinessAgentStorehouseMapper.xml

@@ -269,13 +269,15 @@
269 269
     bstore.storehouse_type storehouseType,
270 270
     bstore.design_capacity designCapacity,
271 271
     bstore.actual_capacity actualCapacity,
272
-    bstore.dutystoreman,
272
+    group_concat(keepers. NAME) dutystoreman,
273 273
     bstore.storehouse_state storehouseState,
274 274
     bstore.del_flag delFlag,
275 275
     bstore.usedate,
276 276
     '0' viewState
277 277
     FROM
278 278
     basic_storehouse bstore
279
+    LEFT JOIN basic_keeper_house keeper ON keeper.house_Id = bstore.storehouse_id
280
+    LEFT JOIN basic_keeper keepers ON keepers.id = keeper.keeper_Id
279 281
     WHERE
280 282
     bstore.library_type = 1 AND bstore.del_flag = 1
281 283
     AND bstore.depot_id != bstore.org_id
@@ -283,6 +285,7 @@
283 285
     <if test="agentDepotName != null">
284 286
       AND bstore.depot_name LIKE #{agentDepotName,jdbcType=VARCHAR}
285 287
     </if>
288
+    GROUP BY bstore.storehouse_id
286 289
     UNION ALL
287 290
     SELECT
288 291
     bstore.storehouse_id storehouseId,