123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.gree.mall.manager.commonmapper.WebsitSalesRetCMapper">
- <select id="pageV2" resultType="com.gree.mall.manager.bean.websit.WebsitSalesRetVO">
- select
- ${ex.selected}
- from
- websit_sales_ret a LEFT JOIN storage b ON a.storage_id = b.storage_id
- ${ex.query}
- <if test="companyWechatIds != null and companyWechatIds.size > 0">
- AND a.company_wechat_id IN
- <foreach item="item" index="index" collection="companyWechatIds" open="(" separator="," close=")">
- #{item}
- </foreach>
- </if>
- <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
- AND (
- a.websit_id IN
- <foreach item="item" index="index" collection="ex.adminWebsitIds" open="(" separator="," close=")">
- #{item}
- </foreach>
- )
- </if>
- <if test="ex.orderBy == null or ex.orderBy ==''">
- order by a.create_time desc
- </if>
- ${ex.orderBy}
- </select>
- <select id="pagePartsRetV2" resultType="com.gree.mall.manager.bean.websit.WebsitPartsRetVO">
- select
- ${ex.selected}
- from
- websit_parts_ret a LEFT JOIN storage b ON a.storage_id = b.storage_id
- ${ex.query}
- <if test="companyWechatIds != null and companyWechatIds.size > 0">
- AND a.company_wechat_id IN
- <foreach item="item" index="index" collection="companyWechatIds" open="(" separator="," close=")">
- #{item}
- </foreach>
- </if>
- <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
- AND (
- a.websit_id IN
- <foreach item="item" index="index" collection="ex.adminWebsitIds" open="(" separator="," close=")">
- #{item}
- </foreach>
- )
- </if>
- <if test="ex.orderBy == null or ex.orderBy ==''">
- order by a.create_time desc
- </if>
- ${ex.orderBy}
- </select>
- <select id="pageSettletV2" resultType="com.gree.mall.manager.bean.websit.SettlementOrderLogicVO">
- select
- ${ex.selected}
- from
- settlement_order a
- ${ex.query}
- <if test="companyWechatIds != null and companyWechatIds.size > 0">
- AND a.company_wechat_id IN
- <foreach item="item" index="index" collection="companyWechatIds" open="(" separator="," close=")">
- #{item}
- </foreach>
- </if>
- <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
- AND a.websit_id IN
- <foreach item="item" index="index" collection="ex.adminWebsitIds" open="(" separator="," close=")">
- #{item}
- </foreach>
- </if>
- <if test="ex.orderBy == null or ex.orderBy ==''">
- order by a.create_time desc
- </if>
- ${ex.orderBy}
- </select>
- <select id="pageWithdrawalV2" resultType="com.gree.mall.manager.bean.websit.WithdrawalOrderVO">
- select
- ${ex.selected}
- from
- withdrawal_order a
- ${ex.query}
- <if test="companyWechatIds != null and companyWechatIds.size > 0">
- AND a.company_wechat_id IN
- <foreach item="item" index="index" collection="companyWechatIds" open="(" separator="," close=")">
- #{item}
- </foreach>
- </if>
- <if test="ex.orderBy == null or ex.orderBy ==''">
- order by a.create_time desc
- </if>
- ${ex.orderBy}
- </select>
- <select id="workerSettlementPageV2" resultType="com.gree.mall.manager.bean.websit.WorkerSettlementVO">
- SELECT
- ${ex.selected}
- FROM worker_settlement a
- ${ex.query}
- and a.type = 'OTHER'
- and a.pay_type = 'WECHAT'
- <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
- AND (
- a.websit_id IN
- <foreach item="item" index="index" collection="ex.adminWebsitIds" open="(" separator="," close=")">
- #{item}
- </foreach>
- )
- </if>
- <if test="ex.orderBy == null or ex.orderBy ==''">
- ORDER BY a.create_time DESC
- </if>
- ${ex.orderBy}
- </select>
- <select id="pageLineSettlementV2" resultType="com.gree.mall.manager.bean.websit.WorkerSettlementLineVO">
- SELECT
- ${ex.selected}
- FROM worker_settlement a
- ${ex.query}
- and a.type = 'OTHER'
- and a.pay_type = 'LINE'
- <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
- AND (
- a.websit_id IN
- <foreach item="item" index="index" collection="ex.adminWebsitIds" open="(" separator="," close=")">
- #{item}
- </foreach>
- )
- </if>
- <if test="ex.orderBy == null or ex.orderBy ==''">
- ORDER BY a.create_time DESC
- </if>
- ${ex.orderBy}
- </select>
- <select id="pagePartsFactoryRetV2" resultType="com.gree.mall.manager.bean.websit.WebsitPartsFactoryRetVO">
- select
- ${ex.selected}
- from
- websit_parts_ret a LEFT JOIN storage b ON a.storage_id = b.storage_id
- ${ex.query}
- and a.type = 'FACTORY'
- <if test="companyWechatIds != null and companyWechatIds.size > 0">
- AND a.company_wechat_id IN
- <foreach item="item" index="index" collection="companyWechatIds" open="(" separator="," close=")">
- #{item}
- </foreach>
- </if>
- <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
- AND a.websit_id IN
- <foreach item="item" index="index" collection="ex.adminWebsitIds" open="(" separator="," close=")">
- #{item}
- </foreach>
- </if>
- <if test="ex.orderBy == null or ex.orderBy ==''">
- order by a.create_time desc
- </if>
- ${ex.orderBy}
- </select>
- <select id="pgOrderList" resultType="com.gree.mall.manager.bean.worker.SettlementPgOrderVO">
- </select>
- </mapper>
|