yl
2023-08-31 f3779c3cbca0d737c7ef7eaf47c1330b355c2f00
VueWebApi/Tools/LabCodeStatusMessage.cs
@@ -28,7 +28,21 @@
            mes.code = "200";
            try
            {
                //0.判断条码是否为当前功能扫描条码
                sql = @"select rightcode,hbilltype  from T_BarCodeBill where hbarcode=@hbarcode";
                dynamicParams.Add("@hbarcode", hbarcode);
                dt = DapperHelper.selectdata(sql, dynamicParams);
                if (dt.Rows.Count>0)
                {
                    if (dt.Rows[0]["rightcode"].ToString() != rightcode && dt.Rows[0]["hbilltype"].ToString() != hbilltype)
                    {
                        mes.code = "300";
                        mes.count = 0;
                        mes.Message = "当前条码状态不满足此功能!";
                        mes.data = null;
                        return mes;
                    }
                }
                //1.判断当前功能条码是否为系统生成有效条码
                sql = @"select *   from T_BarCodeBill where hbarcode=@hbarcode";
                dynamicParams.Add("@hbarcode", hbarcode);