| | |
| | | mallProductBuy.setMateState(ProductEnum.PRODUCT_BUY_MATE_STATE_FAIL.getValue()); |
| | | mallProductBuy.setNftTotal(mallProductNft.getPriceNft()); |
| | | mallProductBuy.setNftAva(mallProductNft.getPriceNft()); |
| | | mallProductBuy.setCycle(mallProductBuy.getCycle()); |
| | | mallProductBuy.setCycle(mallProductNft.getCycle()); |
| | | mallProductBuy.setProfit(mallProductNft.getProfit()); |
| | | // mallProductBuy.setNftAva(BigDecimal.ZERO); |
| | | mallProductBuyMapper.insert(mallProductBuy); |
| | |
| | | DataDictionaryCustom fcmPriceDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.FCM_PRICE.getType(), |
| | | DataDictionaryEnum.FCM_PRICE.getCode()); |
| | | BigDecimal fcmPrice = ObjectUtil.isEmpty(fcmPriceDic) ? new BigDecimal(2) : new BigDecimal(fcmPriceDic.getValue()); |
| | | BigDecimal fcmPrice = ObjectUtil.isEmpty(fcmPriceDic) ? new BigDecimal(8) : new BigDecimal(fcmPriceDic.getValue()); |
| | | //手续费 |
| | | DataDictionaryCustom outFcmFeeDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.OUT_FCM_FEE.getType(), |
| | |
| | | |
| | | iMallMoneyFlowService.addMoneyFlow( |
| | | memberId, |
| | | mallProductBuyRecord.getPickNftCnt(), |
| | | gsdIn, |
| | | MoneyFlowTypeNewEnum.NFT_TRANS_GFD.getValue(), |
| | | null, |
| | | mallMember.getId(), |
| | |
| | | List<ApiOrderRecordListVo> objects = new ArrayList<>(); |
| | | apiOrderListDto.setMemberId(memberId); |
| | | DateTime nowTime = DateUtil.parseTime(DateUtil.formatTime(DateUtil.date())); |
| | | if(memberId == 2374L){ |
| | | log.info("当前系统时间1"+nowTime); |
| | | } |
| | | DataDictionaryCustom startTimeDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.YU_YUE_START_TIME.getType(), |
| | | DataDictionaryEnum.YU_YUE_START_TIME.getCode() |
| | |
| | | ); |
| | | DateTime endTime = DateUtil.parseTime(endTimeDic.getValue()); |
| | | if(nowTime.compareTo(startTime) >= 0 && nowTime.compareTo(endTime) <= 0){ |
| | | if(memberId == 2374L){ |
| | | log.info("当前系统时间2"+nowTime); |
| | | } |
| | | IPage<ApiOrderRecordListVo> pageBuy = new Page<>(apiOrderListDto.getPageNum(), apiOrderListDto.getPageSize()); |
| | | IPage<ApiOrderRecordListVo> apiOrderListVoIPageBuy = mallProductBuyRecordMapper.selectListInPage(pageBuy, apiOrderListDto); |
| | | if(CollUtil.isNotEmpty(apiOrderListVoIPageBuy.getRecords())){ |
| | |
| | | IPage<ApiOrderRecordListVo> pageSell = new Page<>(apiOrderListDto.getPageNum(), apiOrderListDto.getPageSize()); |
| | | IPage<ApiOrderRecordListVo> apiOrderListVoIPageSell = mallProductSellRecordMapper.selectListInPage(pageSell, apiOrderListDto); |
| | | if(CollUtil.isNotEmpty(apiOrderListVoIPageSell.getRecords())){ |
| | | if(memberId == 2374L){ |
| | | log.info("当前系统时间3"+nowTime); |
| | | } |
| | | for(ApiOrderRecordListVo apiOrderListVo : apiOrderListVoIPageSell.getRecords()){ |
| | | objects.add(apiOrderListVo); |
| | | } |