From 050ff0dfc04d4ca2a33ac0e97c98f042b9f95df6 Mon Sep 17 00:00:00 2001 From: li-guang <153605324@qq.com> Date: Wed, 07 Apr 2021 11:56:06 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/score_shop' into score_shop --- zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml | 26 ++++++++++++++++++-------- 1 files changed, 18 insertions(+), 8 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml index c99b814..0540354 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml @@ -18,6 +18,7 @@ <result property="freeConsume" column="free_consume" /> <result property="hisConsume" column="his_consume" /> <result property="goodsCash" column="goods_cash" /> + <result property="cardCash" column="card_cash" /> <result property="projNum" column="proj_num" /> <result property="numberOfPeople" column="number_of_people" /> <result property="shopName" column="shop_name" /> @@ -44,12 +45,12 @@ <result property="guwen" column="guwen" /> <result property="meiliao" column="meiliao" /> <result property="zkTotal" column="zk_total" /> - + <result property="payMethod" column="pay_method" /> <result property="arriveCnt" column="arrive_cnt" /> <result property="goodsNo" column="goodsNo" /> <result property="goodsName" column="goodsName" /> - <result property="payMethod" column="pay_method" /> + <result property="cateName" column="cateName" /> </resultMap> @@ -66,7 +67,6 @@ c.vip_name, e.name as pro_name, b.ZK_TOTAL as zk_total, - a.goods_cash, a.his_consume, a.free_consume, f.su_name meiliao, @@ -79,6 +79,8 @@ h.shop_short_name shop_name, a.order_type, a.achieveType, + case when a.pay_method = '现金' then goods_cash end goods_cash, + case when a.pay_method = '划扣' then goods_cash end card_cash, j.pay_method from achieve_new a @@ -287,7 +289,7 @@ <result property="remark" column="remark" /> <result property="orderType" column="order_type" /> <result property="projPercentage" column="proj_percentage" /> - + <result property="payMethod" column="pay_method" /> <result property="t1" column="t1" /> <result property="t2" column="t2" /> <result property="achieveType" column="achieveType" /> @@ -330,7 +332,8 @@ t6, t8, t9, - company_id + company_id, +pay_method </sql> <!-- 属性sql --> @@ -364,7 +367,8 @@ #{item.t6}, #{item.t8}, #{item.t9}, - #{item.companyId} + #{item.companyId}, + #{item.payMethod} </sql> <!-- where sql --> @@ -612,6 +616,9 @@ <if test="_parameter.containsKey('t9')"> t9 = #{t9}, </if> + <if test="_parameter.containsKey('payMethod')"> + pay_method = #{payMethod}, + </if> </set> WHERE id=#{id} </update> @@ -724,6 +731,9 @@ </if> <if test="record.t9 != null and record.t9 != '' "> t9 = #{record.t9}, + </if> + <if test="record.payMethod != null and record.payMethod != '' "> + pay_method = #{record.payMethod}, </if> </set> WHERE id=#{record.id} @@ -969,6 +979,7 @@ select b.su_name name, b.su_id id, + b.SHOP_IMAG photo, sum(IFNULL(a.free_consume,0) + IFNULL(a.his_consume, 0) ) amount, c.shop_short_name shopName from achieve_new a @@ -1002,8 +1013,7 @@ b.code goodsNo, b.name goodsName, c.su_name meiliao, - d.count*d.zk_price zk_total, - d.pay_method + d.count*d.zk_price zk_total from achieve_new a left join shopping_goods b on a.shopping_goods_id=b.id left join sys_users c on a.beault_id=c.su_id -- Gitblit v1.9.1