解决报表管理-》院内库房情况查询报表-》库存商品明细查询报表bug

This commit is contained in:
2025-11-07 09:56:50 +08:00
parent f7de87860b
commit 945182c6f8
3 changed files with 24 additions and 9 deletions

View File

@@ -38,4 +38,10 @@ public class InventoryProductReportSearchParam {
/** 供应商 */
private Long supplierId;
/** 厂家/产地(供应商名称) */
private String manufacturerText;
/** 仓库ID药房ID */
private Long purposeLocationId;
}

View File

@@ -4,7 +4,9 @@
<select id="selectProductReportPage"
resultType="com.openhis.web.reportmanage.dto.InventoryProductReportPageDto">
SELECT T8.id, --ID
SELECT *
FROM (
SELECT T8.id, --ID
T8.bus_no, --药品编码
T8.name, --药品名称
T8.lot_number, --批次号
@@ -23,9 +25,11 @@
T8.purpose_type_enum, --仓库类型
T8.location_name, --仓库名称
T8.location_store_name, --货位名称
T8.purpose_location_id, --仓库ID
T8.expiration_date, --有效期
T8.yb_no, --医保编码
T8.tenant_id -- 租户ID
T8.tenant_id, -- 租户ID
CAST(T8.item_table AS INTEGER) AS category_type -- 项目类型(按分类编码,整型)
FROM (SELECT T1.id, --ID
T2.bus_no, --药品编码
T2.name, --药品名称
@@ -46,6 +50,7 @@
T6.form_enum AS purpose_type_enum, --仓库类型
T6.name AS location_name, --仓库名称
T7.name AS location_store_name, --货位名称
T1.location_id AS purpose_location_id, --仓库ID
T1.expiration_date, --有效期
T2.yb_no, --医保编码
T1.tenant_id -- 租户ID
@@ -86,9 +91,11 @@
T10.purpose_type_enum, --仓库类型
T10.location_name, --仓库名称
T10.location_store_name, --货位名称
T10.purpose_location_id, --仓库ID
T10.expiration_date, --有效期
T10.yb_no, --医保编码
T10.tenant_id -- 租户ID
T10.tenant_id, -- 租户ID
CAST(T10.item_table AS INTEGER) AS category_type -- 项目类型(按分类编码,整型)
FROM (SELECT T1.id, --ID
T9.bus_no, --药品编码
T9.name, --药品名称
@@ -109,6 +116,7 @@
T6.form_enum AS purpose_type_enum, --仓库类型
T6.name AS location_name, --仓库名称
T7.name AS location_store_name, --货位名称
T1.location_id AS purpose_location_id, --仓库ID
T1.expiration_date, --有效期
T9.yb_no, --医保编码
T1.tenant_id -- 租户ID
@@ -128,7 +136,8 @@
LEFT JOIN adm_location T7
ON T1.location_store_id = T7.id
AND T7.delete_flag = '0'
WHERE T1.delete_flag = '0') AS T10
WHERE T1.delete_flag = '0') AS T10
) AS T
${ew.customSqlSegment}
</select>
</mapper>