<?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.MallRefundMapper">
|
|
<select id="selectByItemIdAndOrderIdAndState" resultType="cc.mrbird.febs.mall.entity.MallRefundEntity">
|
|
select a.* from mall_refund a
|
where item_id=#{itemId} and order_id=#{orderId} and state=#{state}
|
<where>
|
<if test="itemId != null and itemId != ''">
|
and a.item_id = #{itemId}
|
</if>
|
<if test="orderId != null and orderId != ''">
|
and a.order_id = #{orderId}
|
</if>
|
<if test="state != null and state != ''">
|
and a.state = #{state}
|
</if>
|
</where>
|
|
</select>
|
|
|
</mapper>
|