12345678910111213141516171819202122232425262728293031323334353637 |
- <?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.PolicyCMapper">
- <select id="list" resultType="com.gree.mall.manager.bean.policy.PolicyVo">
- SELECT
- ${ex.selected}
- FROM policy a
- ${ex.query}
- <if test="adminCompanyIds != null and adminCompanyIds.size > 0">
- AND a.company_wechat_id IN
- <foreach item="item" index="index" collection="adminCompanyIds" 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="listAgreement" resultType="com.gree.mall.manager.bean.policy.AgreementVo">
- SELECT
- ${ex.selected}
- FROM agreement a
- ${ex.query}
- <if test="adminCompanyIds != null and adminCompanyIds.size > 0">
- AND a.company_wechat_id IN
- <foreach item="item" index="index" collection="adminCompanyIds" open="(" separator="," close=")">
- #{item}
- </foreach>
- </if>
- <if test="ex.orderBy == null or ex.orderBy ==''">
- ORDER BY a.create_time DESC
- </if>
- ${ex.orderBy}
- </select>
- </mapper>
|