From 59e91a4e9ddaf23cebb12993c774aa899ab22d16 Mon Sep 17 00:00:00 2001
From: 郑永安 <zyazyz250@sina.com>
Date: Mon, 19 Jun 2023 14:22:45 +0800
Subject: [PATCH] 描述
---
src/main/java/com/gk/firework/Service/ServiceImpl/ProductPriceServiceImpl.java | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/gk/firework/Service/ServiceImpl/ProductPriceServiceImpl.java b/src/main/java/com/gk/firework/Service/ServiceImpl/ProductPriceServiceImpl.java
new file mode 100644
index 0000000..8ab56c9
--- /dev/null
+++ b/src/main/java/com/gk/firework/Service/ServiceImpl/ProductPriceServiceImpl.java
@@ -0,0 +1,32 @@
+package com.gk.firework.Service.ServiceImpl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.gk.firework.Domain.Exception.BusinessException;
+import com.gk.firework.Domain.ProductPriceInfo;
+import com.gk.firework.Domain.Utils.StringUtils;
+import com.gk.firework.Mapper.ProductPriceInfoMapper;
+import com.gk.firework.Service.ProductPriceService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service("ProductPriceService")
+public class ProductPriceServiceImpl extends ServiceImpl<ProductPriceInfoMapper, ProductPriceInfo> implements ProductPriceService {
+ @Autowired
+ ProductPriceInfoMapper productPriceInfoMapper;
+
+
+ @Override
+ public ProductPriceInfo selectByCode(String companynumber, String directionCode) {
+ return productPriceInfoMapper.selectByCode(companynumber,directionCode);
+ }
+
+ @Override
+ public List<ProductPriceInfo> selectByCodes(String companynumber, List<String> direction10CodesList) {
+ if (StringUtils.isBlank(companynumber) || direction10CodesList == null || direction10CodesList.size() == 0) {
+ throw new BusinessException("系统入参为空");
+ }
+ return productPriceInfoMapper.selectByCodes(companynumber, direction10CodesList);
+ }
+}
--
Gitblit v1.9.2