From cddcf22a61489ee9c2dfee169d817ccd66f95430 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 03 九月 2021 02:23:43 +0800
Subject: [PATCH] 优化代码

---
 java110-db/src/main/resources/mapper/goods/ProductServiceDaoImplMapper.xml |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/goods/ProductServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/goods/ProductServiceDaoImplMapper.xml
old mode 100644
new mode 100755
index be497b4..d56bfbc
--- a/java110-db/src/main/resources/mapper/goods/ProductServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/goods/ProductServiceDaoImplMapper.xml
@@ -20,10 +20,12 @@
         select t.product_id,t.product_id productId,t.unit_name,t.unit_name unitName,t.is_postage,t.is_postage
         isPostage,t.status_cd,t.status_cd statusCd,t.sort,t.store_id,t.store_id storeId,t.bar_code,t.bar_code
         barCode,t.postage,t.prod_name,t.prod_name prodName,t.state,t.keyword,t.prod_desc,t.prod_desc
-        prodDesc,t.category_id,t.category_id categoryId,pc.category_name categoryName,td.name stateName
+        prodDesc,t.category_id,t.category_id categoryId,pc.category_name categoryName,td.name stateName,
+        psv.cost_price costPrice,psv.ot_price otPrice,psv.price,psv.sales,psv.stock,psv.vip_price vipPrice
         from product t
         left join product_category pc on pc.category_id = t.category_id and pc.store_id = t.store_id and pc.status_cd = '0'
         left join t_dict td on t.state = td.status_cd and td.table_name= 'product' and td.table_columns = 'state'
+        left join product_spec_value psv on psv.product_id = t.product_id and psv.store_id = t.store_id and psv.is_default = 'T'
         where 1 =1
         <if test="productId !=null and productId != ''">
             and t.product_id= #{productId}

--
Gitblit v1.8.0