Browse Source

查询条件BUG

章政 8 years ago
parent
commit
a7a610ae91
1 changed files with 1 additions and 1 deletions
  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")
                 {