Browse Source

优化维修上传

yhluo 2 months ago
parent
commit
d124ed6c56
1 changed files with 2 additions and 2 deletions
  1. 2 2
      UAS_MES_BG/FunctionCode/Make/Make_Repair.cs

+ 2 - 2
UAS_MES_BG/FunctionCode/Make/Make_Repair.cs

@@ -581,9 +581,9 @@ namespace UAS_MES_NEW.Make
                            if (UploadFileToFtp(path, ms_sncode.Text.Trim()))
                            {
                                 dh.ExecuteSql($@"INSERT INTO steptestdetail( std_id, std_makecode, std_sn, std_class, 
-                                                std_testresult, std_value1) 
+                                                std_testresult,STD_RESCODE) 
                                                 VALUES( steptestdetail_seq.NEXTVAL, '{ms_makecode.Text}', '{ms_sncode.Text.Trim()}', '维修图片', 
-                                                'http://192.168.1.92:8088/ftp/mes/Picture/{ms_sncode.Text.Trim()}/{Path.GetFileName(path)}', nvl(std_value1, 0) + 1)", "insert");
+                                                'http://192.168.1.92:8088/ftp/mes/Picture/{ms_sncode.Text.Trim()}/{Path.GetFileName(path)}',{User.CurrentStepCode})", "insert");
                            }
                         }
                     }