Parcourir la source

服务码调整

昱硕 冯 il y a 1 an
Parent
commit
e1c8dbf26a

+ 10 - 10
DK.Service/BarcodePrintService/BarcodePrintLogic.cs

@@ -730,9 +730,9 @@ namespace Dongke.IBOSS.PRD.Service.BarcodePrintService
                                 };
                     itemstyle = oracleTrConn.GetSqlResultToStr(sqlString, paras1);
                 }
-				if (itemstyle != "6")
+				if (itemstyle == "6")
                 {
-                    printData.Rows[0]["OUTONLYCODE"] = printData.Rows[0]["OUTONLYCODE"].ToString().Substring(45);
+                    printData.Rows[0]["OUTONLYCODE2"] = "https://hap.hegii.com/jump?state=productInfo-" + printData.Rows[0]["OUTONLYCODE2"].ToString();
                 }
                 //if (bytes != null)
                 //{
@@ -988,9 +988,9 @@ namespace Dongke.IBOSS.PRD.Service.BarcodePrintService
                                 };
                             itemstyle = oracleTrConn.GetSqlResultToStr(sqlString, paras1);
                         }
-                        if (itemstyle != "6")
+                        if (itemstyle == "6")
                         {
-                            printData.Rows[0]["OUTONLYCODE"] = printData.Rows[0]["OUTONLYCODE"].ToString().Substring(45);
+                            printData.Rows[0]["OUTONLYCODE2"] = "https://hap.hegii.com/jump?state=productInfo-" + printData.Rows[0]["OUTONLYCODE2"].ToString();
                         }
                         try
                         {
@@ -1053,9 +1053,9 @@ namespace Dongke.IBOSS.PRD.Service.BarcodePrintService
                                 };
                             itemstyle = oracleTrConn.GetSqlResultToStr(sqlString, paras1);
                         }
-                        if (itemstyle != "6")
+                        if (itemstyle == "6")
                         {
-                            printData.Rows[0]["OUTONLYCODE"] = printData.Rows[0]["OUTONLYCODE"].ToString().Substring(45);
+                            printData.Rows[0]["OUTONLYCODE2"] = "https://hap.hegii.com/jump?state=productInfo-" + printData.Rows[0]["OUTONLYCODE2"].ToString();
                         }
 
                         try
@@ -1302,9 +1302,9 @@ namespace Dongke.IBOSS.PRD.Service.BarcodePrintService
                                 };
                                 itemstyle = oracleTrConn.GetSqlResultToStr(sqlString, paras1);
                             }
-                            if (itemstyle != "6")
+                            if (itemstyle == "6")
                             {
-                                printData.Rows[0]["OUTONLYCODE"] = printData.Rows[0]["OUTONLYCODE"].ToString().Substring(45);
+                                printData.Rows[0]["OUTONLYCODE2"] = "https://hap.hegii.com/jump?state=productInfo-" + printData.Rows[0]["OUTONLYCODE2"].ToString();
                             }
 
                             //生成电子票据;
@@ -1335,9 +1335,9 @@ namespace Dongke.IBOSS.PRD.Service.BarcodePrintService
                                 };
                                 itemstyle = oracleTrConn.GetSqlResultToStr(sqlString, paras1);
                             }
-                            if (itemstyle != "6")
+                            if (itemstyle == "6")
                             {
-                                printData.Rows[0]["OUTONLYCODE"] = printData.Rows[0]["OUTONLYCODE"].ToString().Substring(45);
+                                printData.Rows[0]["OUTONLYCODE2"] = "https://hap.hegii.com/jump?state=productInfo-" + printData.Rows[0]["OUTONLYCODE2"].ToString();
                             }
 
                             //生成电子票据;

+ 5 - 5
DK.Service/PMModuleLogic/PMModuleLogicDAL.cs

@@ -11395,7 +11395,7 @@ namespace Dongke.IBOSS.PRD.Service.PMModuleLogic
                             string itemstyle = string.Empty;
                             if (layoutID > 0)
                             {
-                                string sqlString = @"SELECT
+                                string sqlString1 = @"SELECT
 	                                                        B.ITEMSTYLE
                                                         FROM
 	                                                        TP_MST_BARCODEPRINTLAYOUT P
@@ -11404,14 +11404,14 @@ namespace Dongke.IBOSS.PRD.Service.PMModuleLogic
 	                                                        AND B.ITEMCODE = 'OUTONLYCODE2'
                                                         WHERE
 	                                                        P.LAYOUTID = :LAYOUTID";
-                                OracleParameter[] paras1 = new OracleParameter[]{
+                                OracleParameter[] paras2 = new OracleParameter[]{
                                     new OracleParameter(":LAYOUTID",OracleDbType.Int16, layoutID,ParameterDirection.Input)
                                 };
-                                itemstyle = oracleTrConn.GetSqlResultToStr(sqlString, paras1);
+                                itemstyle = oracleTrConn.GetSqlResultToStr(sqlString1, paras2);
                             }
-                            if (itemstyle != "6")
+                            if (itemstyle == "6")
                             {
-                                printData.Rows[0]["OUTONLYCODE"] = printData.Rows[0]["OUTONLYCODE"].ToString().Substring(45);
+                                printData.Rows[0]["OUTONLYCODE2"] = "https://hap.hegii.com/jump?state=productInfo-" + printData.Rows[0]["OUTONLYCODE2"].ToString();
                             }
 
                             //生成电子票据