Explorar o código

查询条件BUG

章政 %!s(int64=8) %!d(string=hai) anos
pai
achega
a7a610ae91
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      UAS-MES/FunctionCode/Query/Query_OnlineTraceBack.cs

+ 1 - 1
UAS-MES/FunctionCode/Query/Query_OnlineTraceBack.cs

@@ -89,7 +89,7 @@ namespace UAS_MES.Query
                 sql.Append("from makesnruledetail where msd_makecode='" + ma_code.Text + "') union (select msl_sncode sncode,msl_makecode ");
                 sql.Append("makecode,msl_type type from makesnlist where msl_makecode='" + ma_code.Text + "') union (");
                 sql.Append("select ms_sncode,ms_makecode,'' type from  makeserial where ms_makecode='" + ma_code.Text + "'))");
-                sql.Append("A left join makeserial on ms_code=sncode and ms_makecode=makecode ");
+                sql.Append("A left join makeserial on ms_sncode=sncode and ms_makecode=makecode ");
                 sql.Append(condition);
                 if (statuscode == "null")
                 {