xiaoyong931011
2023-02-09 ae99a4a7654a6a3d8fd8343c22c415930f0a18cb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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="cc.mrbird.febs.mall.mapper.MallCarriageRuleInfoMapper">
 
<!--    <select id="selectByMemberIdAndState" resultType="cc.mrbird.febs.mall.entity.MallAgentRecord">-->
<!--        select a.* from mall_agent_record a-->
<!--        where a.member_id = #{memberId}-->
<!--            and a.state = #{state}-->
<!--        limit 1-->
<!--    </select>-->
 
    <select id="selectMallCarriageRuleInfoByRuleIdAndAreaAddress" resultType="cc.mrbird.febs.mall.entity.MallCarriageRuleInfo">
        SELECT
            a.*
        FROM mall_carriage_rule_info a
        <where>
            a.rule_id = #{ruleId}
            <if test="areaAddress != null and areaAddress != ''">
                and a.area_address like concat('%',  #{areaAddress},'%')
            </if>
        </where>
        GROUP BY a.id order by a.CREATED_TIME desc
    </select>
 
</mapper>