zhuyiyi 6 mesi fa
parent
commit
f16523d785
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 1 0
      supplierBuildFile.aspx.cs
  2. 1 1
      uploadFile.aspx.cs

+ 1 - 0
supplierBuildFile.aspx.cs

@@ -226,6 +226,7 @@ public partial class supplierBuildFile : System.Web.UI.Page
                                     {
                                         upStatus = 2;
                                         updateSql += string.Format("insert into CE_ErpTradeLog(tid,orderstate,userid,operatetime,con) select ctid,{1},{2},getdate(),'{3}' from ce_erptradecell where ctid in ({0}) ;", string.Join(",", tids), (int)OrderState.下单完成, 0, "下载设计文件");
+                                        updateSql += string.Format("update ce_erptradecell set UpdateTime=getdate() where ctid in ({0}) ;", string.Join(",", tids));
                                     }
                                 }
 

+ 1 - 1
uploadFile.aspx.cs

@@ -310,7 +310,7 @@ public partial class uploadFile : System.Web.UI.Page
                     postFile.SaveAs(saveFile);
                     entity.FileMd5 = GetMD5HashFromFile(postFile);
                     //XLog.SaveLog(0, saveFile);
-
+                    entity.UpdateTime = DateTime.Now;
                     entity.Update();
                     //CeErpTradeCell.UpdateRelationOrder(entity);
                     CeErpTradeCell.UpdateRelationOrder(entity.ctid);