From c9480a5c0dfe20bfab87c026879cd917e778d51b Mon Sep 17 00:00:00 2001 From: maqiao <625215135@qq.com> Date: Wed, 12 Mar 2025 09:40:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A4=E6=8E=A5=E7=8F=AD=E6=8A=A5=E8=A1=A8?= =?UTF-8?q?=E4=B8=AD=E6=A8=A1=E6=9D=BF=E4=B8=AD=E5=8D=95=E4=BD=8D=E6=94=B9?= =?UTF-8?q?=E4=B8=BAsmall=5Funit=20as=20PackdUnit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DM_Weight/ViewModels/ChangeShiftsDialogViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DM_Weight/ViewModels/ChangeShiftsDialogViewModel.cs b/DM_Weight/ViewModels/ChangeShiftsDialogViewModel.cs index 75d93f9..ab963bf 100644 --- a/DM_Weight/ViewModels/ChangeShiftsDialogViewModel.cs +++ b/DM_Weight/ViewModels/ChangeShiftsDialogViewModel.cs @@ -228,7 +228,7 @@ namespace DM_Weight.ViewModels //交接班表里只显示值班柜(row_no:1,2)的不显示周转柜 - string strSql = @"SELECT di.drug_name as DrugName,di.drug_spec as DrugSpec,di.small_unit,sum(if(cs.drawer_type=1,cs.quantity,0)) stockQuantity, + string strSql = @"SELECT di.drug_name as DrugName,di.drug_spec as DrugSpec,di.small_unit as PackdUnit,sum(if(cs.drawer_type=1,cs.quantity,0)) stockQuantity, sum(if(cs.drawer_type=2,cs.quantity,0)) EmptyQuantity FROM channel_stock cs inner join drug_info di on cs.drug_id=di.drug_id WHERE (row_no<=8 or drawer_type=2) and machine_id =@machineId GROUP BY cs.drug_id ORDER BY cs.Drug_ID"; List shiftsReports = SqlSugarHelper.Db.SqlQueryable(strSql)