| | |
| | | DataDictionaryEnum.BUY_TIMES.getType(), DataDictionaryEnum.BUY_TIMES.getCode()); |
| | | Integer buyTimes = Integer.parseInt(buyTimesDic.getValue()); |
| | | |
| | | DateTime date = DateUtil.date(); |
| | | DateTime date = DateUtil.offsetHour(DateUtil.date(), -1); |
| | | // DateTime date = DateUtil.date(); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
| | | String yyyyMMdd = sdf.format(date); |
| | | Integer times = this.baseMapper.selectCountByCreateTimeAndMemberId(yyyyMMdd,member.getId()); |
| | |
| | | throw new FebsException("今日任务完成,明天再来"); |
| | | } |
| | | |
| | | DataDictionaryCustom allBuyTimesDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.ALL_BUY_TIMES.getType(), DataDictionaryEnum.ALL_BUY_TIMES.getCode()); |
| | | Integer allBuyTimes = Integer.parseInt(allBuyTimesDic.getValue()); |
| | | |
| | | Integer allBuyTimesNow = this.baseMapper.selectCountByCreateTime(yyyyMMdd); |
| | | if(allBuyTimes <= allBuyTimesNow){ |
| | | throw new FebsException("今日任务完成,明天再来"); |
| | | } |
| | | |
| | | String orderNo = MallUtils.getOrderNum(); |
| | | MallOrderInfo orderInfo = new MallOrderInfo(); |
| | | orderInfo.setOrderNo(orderNo); |