From 60e45197673d6e5a3eb2f61b45dc74f9f6d46424 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期一, 15 八月 2022 09:41:39 +0800
Subject: [PATCH] 1

---
 WebAPI/Controllers/Sc_MouldRepairInBillListController.cs |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs b/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs
index a6a6aad..be692fd 100644
--- a/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs
+++ b/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs
@@ -4,6 +4,7 @@
 using System.Collections.Generic;
 using System.Data;
 using System.Web.Http;
+using ViewAPI;
 using WebAPI.Models;
 namespace WebAPI.Controllers
 {
@@ -3803,7 +3804,7 @@
                 }
                 if (bResult)
                 {
-                    string sql = $"exec h_p_Sc_MouldChangeFileStatus  'in','{oBill.omodel.HInterID.ToString()}' ";
+                    string sql =string.Format($"exec h_p_Sc_MouldChangeFileStatus  'in','{oBill.omodel.HInterID.ToString()}' ");
                     oCn.RunProc(sql);
                     objJsonResult.code = "0";
                     objJsonResult.count = 1;
@@ -4213,7 +4214,7 @@
                 }
                 if (bResult)
                 {
-                    string sql = $"exec h_p_Sc_MouldChangeFileStatus  'out','{oBill.omodel.HInterID.ToString()}' ";
+                    string sql =string.Format($"exec h_p_Sc_MouldChangeFileStatus  'out','{oBill.omodel.HInterID.ToString()}' ");
                     oCn.RunProc(sql);
                     objJsonResult.code = "0";
                     objJsonResult.count = 1;
@@ -4790,9 +4791,9 @@
                 }
                 if (bResult)
                 {
-                    string sql = $"exec h_p_Sc_MouldProdBackBillList '{oBill.omodel.HBillNo}' ";
+                    string sql =string.Format($"exec h_p_Sc_MouldProdBackBillList '{oBill.omodel.HBillNo}' ") ;
                     oCn.RunProc(sql);
-                    string sql1 = $"exec h_p_Sc_MouldChangeFileStatus  'in','{oBill.omodel.HInterID.ToString()}' ";
+                    string sql1 =string.Format($"exec h_p_Sc_MouldChangeFileStatus  'in','{oBill.omodel.HInterID.ToString()}' ");
                     oCn.RunProc(sql1);
                     objJsonResult.code = "0";
                     objJsonResult.count = 1;
@@ -5028,6 +5029,7 @@
             string sql1 = string.Format(@"select * from h_v_Sc_MouldProdOutHouseBillList where 搴撳瓨缁勭粐='" + Organization + "'");
             if (sWhere == null || sWhere.Equals(""))
             {
+                Log.LogInfo(sql1);
                 return new SQLHelper.ClsCN().RunProcReturn(sql1 + "order by hmainid desc", "h_v_Sc_MouldProdOutHouseBillList");
             }
             else
@@ -5228,7 +5230,7 @@
                 }
                 if (bResult)
                 {
-                    string sql = $"exec h_p_Sc_MouldChangeFileStatus  'out','{oBill.omodel.HInterID.ToString()}' ";
+                    string sql =string.Format($"exec h_p_Sc_MouldChangeFileStatus  'out','{oBill.omodel.HInterID.ToString()}' ");
                     oCn.RunProc(sql);
                     objJsonResult.code = "0";
                     objJsonResult.count = 1;

--
Gitblit v1.9.1