From be1b426b7d765a546f4a26b60e80aa49a57079b9 Mon Sep 17 00:00:00 2001
From: xiaogang <905166056@qq.com>
Date: 星期六, 13 一月 2024 16:25:11 +0800
Subject: [PATCH] 1、优化采购模块数量不能为小数点问题2、新增客服巡查巡楼记录功能模块3、新增页面导出功能4、优化记录查询条件新增时间段查询条件5、其他界面性调整
---
java110-db/src/main/resources/mapper/store/ResourceStoreTimesV1ServiceDaoImplMapper.xml | 27 +++++++--------------------
1 files changed, 7 insertions(+), 20 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/store/ResourceStoreTimesV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/ResourceStoreTimesV1ServiceDaoImplMapper.xml
index 582deb8..9f1b069 100644
--- a/java110-db/src/main/resources/mapper/store/ResourceStoreTimesV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/ResourceStoreTimesV1ServiceDaoImplMapper.xml
@@ -1,27 +1,23 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="resourceStoreTimesV1ServiceDaoImpl">
-
<!-- 淇濆瓨鐗╁搧娆℃暟淇℃伅 add by wuxw 2018-07-03 -->
<insert id="saveResourceStoreTimesInfo" parameterType="Map">
- insert into resource_store_times(
- price,apply_order_id,store_id,stock,res_code,times_id,sh_id,community_id
- ) values (
- #{price},#{applyOrderId},#{storeId},#{stock},#{resCode},#{timesId},#{shId},#{communityId}
- )
+ insert into resource_store_times(price, apply_order_id, store_id, stock, res_code, times_id, sh_id,
+ community_id)
+ values (#{price}, #{applyOrderId}, #{storeId}, #{stock}, #{resCode}, #{timesId}, #{shId}, #{communityId})
</insert>
-
<!-- 鏌ヨ鐗╁搧娆℃暟淇℃伅 add by wuxw 2018-07-03 -->
<select id="getResourceStoreTimesInfo" parameterType="Map" resultType="Map">
select t.price,t.apply_order_id,t.apply_order_id applyOrderId,t.status_cd,t.status_cd
statusCd,t.store_id,t.store_id storeId,t.stock,t.res_code,t.res_code resCode,t.times_id,
- t.times_id timesId,t.create_time createTime,(t.price * t.stock) totalPrice,
+ t.times_id timesId,t.create_time createTime,ROUND(t.price * t.stock,2) totalPrice,
rs.res_name,rs.res_name resName,rs.description,rs.store_id,rs.store_id storeId,
- rs.stock,rs.warning_stock,rs.warning_stock warningStock,rs.res_id,rs.res_id resId,rs.out_low_price,rs.rss_id,rs.rss_id rssId,
+ rs.stock,rs.warning_stock,rs.warning_stock warningStock,rs.res_id,rs.res_id
+ resId,rs.out_low_price,rs.rss_id,rs.rss_id rssId,
rs.out_low_price outLowPrice,rs.out_high_price,rs.out_high_price outHighPrice,
rs.unit_code,rs.unit_code unitCode,rs.remark,rs.show_mobile,rs.show_mobile showMobile,
rs.sh_id,rs.sh_id shId,sh.sh_name shName,rs.average_price,rs.average_price
@@ -98,9 +94,7 @@
<if test="page != -1 and page != null ">
limit #{page}, #{row}
</if>
-
</select>
-
<!-- 淇敼鐗╁搧娆℃暟淇℃伅 add by wuxw 2018-07-03 -->
<update id="updateResourceStoreTimesInfo" parameterType="Map">
@@ -114,7 +108,6 @@
<if test="applyOrderId !=null and applyOrderId != ''">
, t.apply_order_id= #{applyOrderId}
</if>
-
<if test="stock !=null and stock != ''">
, t.stock= #{stock}
</if>
@@ -131,7 +124,6 @@
<if test="communityId !=null and communityId != ''">
and t.community_id= #{communityId}
</if>
-
</update>
<!-- 鏌ヨ鐗╁搧娆℃暟鏁伴噺 add by wuxw 2018-07-03 -->
@@ -201,8 +193,6 @@
<if test="shId !=null and shId != ''">
and t.sh_id= #{shId}
</if>
-
-
</select>
<!-- 鏌ヨ鐗╁搧娆℃暟鏁伴噺 add by wuxw 2018-07-03 -->
@@ -246,8 +236,5 @@
<if test="shId !=null and shId != ''">
and t.sh_id= #{shId}
</if>
-
-
</select>
-
</mapper>
--
Gitblit v1.8.0