当手术计费弹窗中点击"签发"耗材时,因耗材的locationId(发放库房)为空导致后端异常。 在DoctorStationAdviceAppServiceImpl.handDevice方法中,当locationId为null时,使用登录用户的科室ID作为默认值, 与NurseBillingAppService中的处理方式保持一致。
16 lines
543 B
SQL
Executable File
16 lines
543 B
SQL
Executable File
ALTER TABLE "adm_device_definition"
|
|
ADD COLUMN "item_min_quantity" numeric(20,6) NOT NULL DEFAULT 0,
|
|
ADD COLUMN "item_max_quantity" numeric(20,6) NOT NULL DEFAULT 0;
|
|
|
|
COMMENT ON COLUMN "adm_device_definition"."item_min_quantity" IS '最小库存警戒数量(常规单位)';
|
|
|
|
COMMENT ON COLUMN "adm_device_definition"."item_max_quantity" IS '最大库存警戒数量(常规单位)';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- 向迁移历史表插入记录
|
|
INSERT INTO __MigrationsHistory (MigrationId, ProductVersion)
|
|
VALUES ('202508011554 adm_device_definition', '1.0.0'); |