ソースを参照

缴费后更新购买时间

yanliming 2 年 前
コミット
4fc5f9448e

+ 3 - 1
web/src/main/java/com/jpsoft/education/modules/base/controller/BuyLogController.java

@@ -220,9 +220,11 @@ public class BuyLogController {
         MessageResult<BuyLog> msgResult = new MessageResult<>();
 
         try {
+            Date now = new Date();
             buyLog.setModifyBy(subject);
-            buyLog.setModifyTime(new Date());
+            buyLog.setModifyTime(now);
             buyLog.setStatus("1");
+            buyLog.setBuyTime(now);
 
             int affectCount = buyLogService.update(buyLog);