Parcourir la source

手动开奖记录时间按期号来记录

dos il y a 2 mois
Parent
commit
ff60fcb0c2

+ 4 - 1
game-business/src/main/java/com/game/business/controller/AppGameLotteryController.java

@@ -1,5 +1,6 @@
 package com.game.business.controller;
 
+import cn.hutool.core.date.DateUtil;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import com.game.business.domain.AppGame;
@@ -203,7 +204,8 @@ public class AppGameLotteryController extends BaseController{
         }
 
         appGameLottery.setIsLottery(1);
-        appGameLottery.setGameRecordDate(new Date());
+        String time = DateUtil.format(new Date(),"yyyy-").concat(appGameLottery.getGameDate());
+        appGameLottery.setGameRecordDate(DateUtil.parse(time,"yyyy-MM-dd HH:mm"));
         boolean flg = false;
         if(dbAppGameLottery == null){
             flg = appGameLotteryService.save(appGameLottery);
@@ -294,4 +296,5 @@ public class AppGameLotteryController extends BaseController{
     {
         return R.ok(appGameLotteryService.deleteAppGameLotteryByIds(ids));
     }
+
 }