| | |
| | | from area where id=1 |
| | | </select> |
| | | |
| | | <select id="selectCashRefund" resultType="java.util.TreeMap"> |
| | | select |
| | | <foreach collection="list" index="index" item="item" separator="," > |
| | | ( |
| | | select IFNULL(sum(cash_Pay), 0) |
| | | from sys_order |
| | | where STATU in ('退款') |
| | | and <![CDATA[order_time > #{item.beginTime} and order_time < #{item.endTime} ]]> |
| | | <if test="companyId != null and companyId != 0"> |
| | | and company_id=#{companyId} |
| | | </if> |
| | | <if test="shopId !=null and shopId !=0 " > |
| | | and SHOP_ID = #{shopId} |
| | | </if> |
| | | ) as t${index} |
| | | |
| | | </foreach> |
| | | from area where id=1 |
| | | </select> |
| | | |
| | | |
| | | <select id="selectCardRefund" resultType="java.util.TreeMap"> |
| | | select |
| | | <foreach collection="list" index="index" item="item" separator="," > |
| | | ( |
| | | select IFNULL(sum(card_Pay), 0) |
| | | from sys_order |
| | | where STATU in ('退款') |
| | | and <![CDATA[order_time > #{item.beginTime} and order_time < #{item.endTime} ]]> |
| | | <if test="companyId != null and companyId != 0"> |
| | | and company_id=#{companyId} |
| | | </if> |
| | | <if test="shopId !=null and shopId !=0 " > |
| | | and SHOP_ID = #{shopId} |
| | | </if> |
| | | ) as t${index} |
| | | |
| | | </foreach> |
| | | from area where id=1 |
| | | </select> |
| | | </mapper> |
| | | |