|
|
@@ -17,6 +17,7 @@ import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
|
import com.zhongzheng.modules.goods.vo.GoodsBusinessVo;
|
|
|
import com.zhongzheng.modules.order.bo.OrderBusinessConfigAddBo;
|
|
|
import com.zhongzheng.modules.order.bo.OrderBusinessConfigEditBo;
|
|
|
+import com.zhongzheng.modules.order.bo.OrderBusinessConfigGoodsQueryBo;
|
|
|
import com.zhongzheng.modules.order.bo.OrderBusinessConfigQueryBo;
|
|
|
import com.zhongzheng.modules.order.domain.OrderBusinessConfig;
|
|
|
import com.zhongzheng.modules.order.domain.OrderBusinessConfigGoods;
|
|
|
@@ -24,6 +25,7 @@ import com.zhongzheng.modules.order.mapper.OrderBusinessConfigMapper;
|
|
|
import com.zhongzheng.modules.order.service.IOrderBusinessConfigGoodsService;
|
|
|
import com.zhongzheng.modules.order.service.IOrderBusinessConfigService;
|
|
|
import com.zhongzheng.modules.order.service.IOrderGoodsService;
|
|
|
+import com.zhongzheng.modules.order.vo.OrderBusinessConfigGoodsVo;
|
|
|
import com.zhongzheng.modules.order.vo.OrderBusinessConfigVo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -187,6 +189,13 @@ public class OrderBusinessConfigServiceImpl extends ServiceImpl<OrderBusinessCon
|
|
|
return configVos;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<OrderBusinessConfigGoodsVo> getBusinessConfigDetail(Long configId) {
|
|
|
+ OrderBusinessConfigGoodsQueryBo queryBo = new OrderBusinessConfigGoodsQueryBo();
|
|
|
+ queryBo.setConfigId(configId);
|
|
|
+ return iOrderBusinessConfigGoodsService.selectListVo(queryBo);
|
|
|
+ }
|
|
|
+
|
|
|
private boolean checkNameUnique(OrderBusinessConfig entity) {
|
|
|
OrderBusinessConfig info = getOne(new LambdaQueryWrapper<OrderBusinessConfig>()
|
|
|
.eq(OrderBusinessConfig::getConfigName,entity.getConfigName()).eq(OrderBusinessConfig::getBusinessId,entity.getBusinessId()).ne(OrderBusinessConfig::getStatus,-1).last("limit 1"));
|