| | |
| | | @Override |
| | | public R getFundsStat(Long userId) { |
| | | ComShopFundsVO comShopFundsVO = comShopOrderDAO.queryStatis(userId); |
| | | if(comShopFundsVO==null){ |
| | | comShopFundsVO = new ComShopFundsVO(); |
| | | comShopFundsVO.setMonthTotal(new BigDecimal(0)); |
| | | comShopFundsVO.setTodayTotal(new BigDecimal(0)); |
| | | comShopFundsVO.setWeekTotal(new BigDecimal(0)); |
| | | } |
| | | return R.ok(comShopFundsVO); |
| | | } |
| | | |
| | |
| | | shopOrderDO.setStatus(ComShopOrderDO.status.dfh); |
| | | shopOrderDO.setPayType(ComShopOrderDO.payType.wx); |
| | | shopOrderDO.setPayStatus(ComShopOrderDO.payStatus.yes); |
| | | shopOrderDO.setPayAmount(BigDecimal.valueOf(Integer.parseInt(wxPayNotifyOrderDTO.getCashFee()) * 100)); |
| | | shopOrderDO.setPayAmount(BigDecimal.valueOf(Integer.parseInt(wxPayNotifyOrderDTO.getCashFee()) / 100)); |
| | | shopOrderDO.setWxTardeNo(wxPayNotifyOrderDTO.getWxTradeNo()); |
| | | shopOrderDO.setPayTime(new Date(Long.parseLong(wxPayNotifyOrderDTO.getPayTime()))); |
| | | shopOrderDO.setPayTime(new Date(Long.parseLong(wxPayNotifyOrderDTO.getPayTime() + "000"))); |
| | | this.baseMapper.updateById(shopOrderDO); |
| | | |
| | | //查询订单商品 |
| | |
| | | comShopStoreDAO.updateById(storeDO); |
| | | } |
| | | } |
| | | |
| | | |
| | | //添加订单操作记录 |
| | | ComShopOrderOperateDO orderOperateDO = new ComShopOrderOperateDO(); |