@ -62,5 +62,7 @@ public class StStockInoutRecordVO extends StStockInoutRecord {
private String userName;
@Schema(description = "操作员")
private String operatorName;
@Schema(description = "领用人班组")
private String teamSetName;
}
@ -76,6 +76,10 @@
u.name AS userName,
op.name AS operatorName,
-- 其他需要的字段(可根据VO调整别名)
(SELECT LISTAGG(ts.ts_name, ',') WITHIN GROUP (ORDER BY ts.id)
FROM BS_TEAM_SET ts
WHERE instr(',' || sir.picker_team_set || ',', ',' || ts.id || ',') > 0
AND ts.is_deleted = 0) AS teamSetName,
sir.memo
FROM ST_STOCK_INOUT_RECORD sir
-- 左关联物料表:保证无物料ID时也能查询出出入库记录