<?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>
|