50 lines
3.6 KiB
XML
50 lines
3.6 KiB
XML
<?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.ruoyi.busi.mapper.BusiNoticeMapper">
|
|
|
|
|
|
<select id="queryListPage" parameterType="BusiNotice" resultType="com.ruoyi.busi.vo.BusiNoticeVo">
|
|
select main.id, main.user_id, main.title, main.platform_code, main.province, main.city, main.fee_down, main.fee_up, main.is_self_price, main.gift_detail,
|
|
main.gift_price, main.end_date, main.brand, main.is_show_brand, main.need_num, main.fans_down, main.fans_up, main.is_eligible, main.pic, main.collect, main.detail, main.images,
|
|
main.blogger_types, main.is_show_tel, main.wechat, main.tel, main.group_image, main.is_use_coupon, main.approval_status, main.approval_user_id, main.approval_time,
|
|
main.approval_remark, main.creator, main.create_time, main.updater, main.update_time, main.del_flag,
|
|
uTable.nick_name as userNickName,
|
|
bTable.title as platformName
|
|
from dl_busi_notice main
|
|
left join sys_user uTable on main.user_id = uTable.user_id
|
|
left join dl_base_category bTable on main.platform_code = bTable.code
|
|
<where>
|
|
main.del_flag = '0'
|
|
<if test="entity.userNickName != null "> and uTable.nick_name like concat('%', #{entity.userNickName}, '%')</if>
|
|
<if test="entity.province != null "> and main.province = #{entity.province}</if>
|
|
<if test="entity.city != null "> and main.city = #{entity.city}</if>
|
|
<if test="entity.title != null and entity.title != ''"> and main.title like concat('%', #{entity.title}, '%')</if>
|
|
<if test="entity.platformCode != null and entity.platformCode != ''"> and main.platform_code = #{entity.platformCode}</if>
|
|
|
|
<if test="entity.params.beginFeeDown != null and entity.params.beginFeeDown != ''">
|
|
and main.fee_down <![CDATA[>= ]]> #{entity.params.beginFeeDown}
|
|
</if>
|
|
<if test=" entity.params.endFeeDown != null and entity.params.endFeeDown != ''">
|
|
and main.fee_down <![CDATA[<= ]]> #{entity.params.endFeeDown}
|
|
</if>
|
|
|
|
<if test="entity.params.beginFansDown != null and entity.params.beginFansDown != ''">
|
|
and main.fans_down <![CDATA[>= ]]> #{entity.params.beginFansDown}
|
|
</if>
|
|
<if test=" entity.params.endFansDown != null and entity.params.endFansDown != ''">
|
|
and main.fans_down <![CDATA[<= ]]> #{entity.params.endFansDown}
|
|
</if>
|
|
<if test="entity.brand != null and entity.brand != ''"> and main.brand like concat('%', #{entity.brand}, '%')</if>
|
|
<if test="entity.pic != null and entity.pic != ''"> and main.pic = #{entity.pic}</if>
|
|
<if test="entity.collect != null and entity.collect != ''"> and main.collect = #{entity.collect}</if>
|
|
<if test="entity.bloggerTypes != null and entity.bloggerTypes != ''"> and main.blogger_types = #{entity.bloggerTypes}</if>
|
|
<if test="entity.isUseCoupon != null "> and main.is_use_coupon = #{entity.isUseCoupon}</if>
|
|
<if test="entity.approvalStatus != null and entity.approvalStatus != ''"> and main.approval_status = #{entity.approvalStatus}</if>
|
|
<if test="entity.params.beginCreateTime != null and entity.params.beginCreateTime != '' and entity.params.endCreateTime != null and entity.params.endCreateTime != ''"> and main.create_time between #{entity.params.beginCreateTime} and #{entity.params.endCreateTime}</if>
|
|
</where>
|
|
</select>
|
|
|
|
</mapper>
|