|
@@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectSettledMerchantsList" parameterType="SettledMerchants" resultMap="SettledMerchantsResult">
|
|
|
<include refid="selectSettledMerchantsVo"/>
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="businessName != null and businessName != ''"> and business_name like concat('%', #{businessName}, '%')</if>
|
|
|
<if test="businessPhone != null and businessPhone != ''"> and business_phone = #{businessPhone}</if>
|
|
|
</where>
|
|
@@ -44,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectSettledMerchantsByMenuId" parameterType="Long" resultMap="SettledMerchantsResult">
|
|
|
<include refid="selectSettledMerchantsVo"/>
|
|
|
- where policy_id = #{menuId}
|
|
|
+ where policy_id = #{menuId} and status = '0' and visible = '0' order by order_num
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertSettledMerchants" parameterType="SettledMerchants" useGeneratedKeys="true" keyProperty="businessId">
|