|
@@ -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));
|
|
|
}
|
|
|
+
|
|
|
}
|