From 6f9bc05e8ac7952d8043832cb99f8a7928114193 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期一, 28 十一月 2022 15:00:49 +0800
Subject: [PATCH] 优化紧急采购时 入库没有写 times bug
---
java110-db/src/main/resources/mapper/store/ResourceStoreServiceDaoImplMapper.xml | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/store/ResourceStoreServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/ResourceStoreServiceDaoImplMapper.xml
index 492905b..58a850f 100755
--- a/java110-db/src/main/resources/mapper/store/ResourceStoreServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/ResourceStoreServiceDaoImplMapper.xml
@@ -503,7 +503,8 @@
<!-- 鏌ヨ璧勬簮淇℃伅 add by wuxw 2018-07-03 -->
<select id="queryResourceStoresTotalPrice" parameterType="Map" resultType="Map">
select IFNULL(sum(total_price),0) as totalPrice from(
- select rsts.res_code ,sum(rsts.stock*rsts.price) total_price from resource_store t
+ select rsts.times_id,rsts.res_code,rsts.stock,rsts.price,rsts.stock*rsts.price total_price
+ from resource_store t
inner join resource_store_times rsts on t.res_code = rsts.res_code and rsts.status_cd = '0'
left join resource_store_type rst on t.rst_id = rst.rst_id and rst.status_cd = '0'
left join resource_store_type rst1 on t.parent_rst_id = rst1.rst_id and rst1.status_cd = '0'
@@ -609,7 +610,7 @@
<if test="resOrderType == '20000'">
and t.stock > 0
</if>
- group by rsts.res_code
+ group by rsts.times_id,rsts.res_code,rsts.stock,rsts.price
<if test="page != -1 and page != null ">
limit #{page}, #{row}
</if>
--
Gitblit v1.8.0