|
|
@@ -3,6 +3,7 @@ package com.zhongzheng.modules.order.service.impl;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
+import com.zhongzheng.modules.bank.mapper.QuestionMapper;
|
|
|
import com.zhongzheng.modules.order.bo.OrderGoodsAddBo;
|
|
|
import com.zhongzheng.modules.order.bo.OrderGoodsEditBo;
|
|
|
import com.zhongzheng.modules.order.bo.OrderGoodsQueryBo;
|
|
|
@@ -10,6 +11,7 @@ import com.zhongzheng.modules.order.domain.OrderGoods;
|
|
|
import com.zhongzheng.modules.order.mapper.OrderGoodsMapper;
|
|
|
import com.zhongzheng.modules.order.service.IOrderGoodsService;
|
|
|
import com.zhongzheng.modules.order.vo.OrderGoodsVo;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
@@ -30,12 +32,20 @@ import java.util.stream.Collectors;
|
|
|
@Service
|
|
|
public class OrderGoodsServiceImpl extends ServiceImpl<OrderGoodsMapper, OrderGoods> implements IOrderGoodsService {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private OrderGoodsMapper orderGoodsMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public OrderGoodsVo queryById(String orderSn){
|
|
|
OrderGoods db = this.baseMapper.selectById(orderSn);
|
|
|
return BeanUtil.toBean(db, OrderGoodsVo.class);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<OrderGoodsVo> selectList(OrderGoodsQueryBo bo) {
|
|
|
+ return orderGoodsMapper.selectList(bo);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public List<OrderGoodsVo> queryList(OrderGoodsQueryBo bo) {
|
|
|
LambdaQueryWrapper<OrderGoods> lqw = Wrappers.lambdaQuery();
|