组装充值配置详情添加自定义充值详情
This commit is contained in:
@@ -477,8 +477,13 @@ public class BuyOrderServiceImpl extends ServiceImpl<BuyOrderDao, BuyOrder> impl
|
|||||||
b.setProductList(buyOrderProducts);
|
b.setProductList(buyOrderProducts);
|
||||||
b.setTimestamp(b.getCreateTime().getTime()/1000);
|
b.setTimestamp(b.getCreateTime().getTime()/1000);
|
||||||
//充值订单填充充值商品信息
|
//充值订单填充充值商品信息
|
||||||
if(b.getProductId()!=null&&Integer.valueOf(b.getProductId())>0){
|
if(b.getProductId()!=null&&Integer.valueOf(b.getProductId())>=0){
|
||||||
b.setBookBuyConfigEntity(bookBuyConfigDao.selectById(Integer.valueOf(b.getProductId())));
|
BookBuyConfigEntity bookBuyConfigEntity = bookBuyConfigDao.selectById(b.getProductId());
|
||||||
|
if ("0".equals(b.getProductId())){
|
||||||
|
bookBuyConfigEntity.setRealMoney(b.getRealMoney());
|
||||||
|
bookBuyConfigEntity.setMoney(b.getRealMoney());
|
||||||
|
}
|
||||||
|
b.setBookBuyConfigEntity(bookBuyConfigEntity);
|
||||||
}
|
}
|
||||||
//获取包裹信息
|
//获取包裹信息
|
||||||
List<Integer> collect = buyOrderProductService.list(new LambdaQueryWrapper<BuyOrderProduct>().eq(BuyOrderProduct::getOrderId, b.getOrderId()).gt(BuyOrderProduct::getExpressOrderId, 0))
|
List<Integer> collect = buyOrderProductService.list(new LambdaQueryWrapper<BuyOrderProduct>().eq(BuyOrderProduct::getOrderId, b.getOrderId()).gt(BuyOrderProduct::getExpressOrderId, 0))
|
||||||
|
|||||||
@@ -87,7 +87,12 @@ public class BuyOrderServiceImpl extends ServiceImpl<BuyOrderDao, BuyOrder> impl
|
|||||||
b.setUser(userDao.selectById(b.getUserId()));
|
b.setUser(userDao.selectById(b.getUserId()));
|
||||||
//组装充值配置详情
|
//组装充值配置详情
|
||||||
if (b.getProductId()!=null){
|
if (b.getProductId()!=null){
|
||||||
b.setBookBuyConfigEntity(bookBuyConfigDao.selectById(b.getProductId()));
|
BookBuyConfigEntity bookBuyConfigEntity = bookBuyConfigDao.selectById(b.getProductId());
|
||||||
|
if ("0".equals(b.getProductId())){
|
||||||
|
bookBuyConfigEntity.setRealMoney(b.getRealMoney());
|
||||||
|
bookBuyConfigEntity.setMoney(b.getRealMoney());
|
||||||
|
}
|
||||||
|
b.setBookBuyConfigEntity(bookBuyConfigEntity);
|
||||||
}
|
}
|
||||||
if (b.getVipBuyConfigId()!=0){
|
if (b.getVipBuyConfigId()!=0){
|
||||||
b.setVipBuyConfigEntity(vipBuyConfigDao.selectById(b.getVipBuyConfigId()));
|
b.setVipBuyConfigEntity(vipBuyConfigDao.selectById(b.getVipBuyConfigId()));
|
||||||
|
|||||||
Reference in New Issue
Block a user