dl_admin/ruoyi-admin/src/main/resources/mapper/busi/BusiNoticeMapper.xml

72 lines
5.0 KiB
XML
Raw Normal View History

<?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">
<resultMap type="BusiNotice" id="BusiNoticeResult">
<result property="id" column="id" />
<result property="userId" column="user_id" />
<result property="title" column="title" />
<result property="platformCode" column="platform_code" />
<result property="platformName" column="platform_name" />
<result property="country" column="country" />
<result property="feeDown" column="fee_down" />
<result property="feeUp" column="fee_up" />
<result property="isSelfPrice" column="is_self_price" />
<result property="giftDetail" column="gift_detail" />
<result property="giftPrice" column="gift_price" />
<result property="endDate" column="end_date" />
<result property="brand" column="brand" />
<result property="isShowBrand" column="is_show_brand" />
<result property="needNum" column="need_num" />
<result property="fansDown" column="fans_down" />
<result property="fansUp" column="fans_up" />
<result property="isEligible" column="is_eligible" />
<result property="pic" column="pic" />
<result property="collect" column="collect" />
<result property="detail" column="detail" />
<result property="images" column="images" />
<result property="bloggerTypes" column="blogger_types" />
<result property="isShowTel" column="is_show_tel" />
<result property="wechat" column="wechat" />
<result property="tel" column="tel" />
<result property="groupImage" column="group_image" />
<result property="isUseCoupon" column="is_use_coupon" />
<result property="approvalStatus" column="approval_status" />
<result property="approvalUserId" column="approval_user_id" />
<result property="approvalTime" column="approval_time" />
<result property="approvalRemark" column="approval_remark" />
<result property="creator" column="creator" />
<result property="createTime" column="create_time" />
<result property="updater" column="updater" />
<result property="updateTime" column="update_time" />
<result property="delFlag" column="del_flag" />
</resultMap>
<sql id="selectBusiNoticeVo">
select id, user_id, title, platform_code, platform_name, country, fee_down, fee_up, is_self_price, gift_detail, gift_price, end_date, brand, is_show_brand, need_num, fans_down, fans_up, is_eligible, pic, collect, detail, images, blogger_types, is_show_tel, wechat, tel, group_image, is_use_coupon, approval_status, approval_user_id, approval_time, approval_remark, creator, create_time, updater, update_time, del_flag from dl_busi_notice
</sql>
<select id="queryListPage" parameterType="BusiNotice" resultMap="BusiNoticeResult">
<include refid="selectBusiNoticeVo"/>
<where>
<if test="entity.userId != null "> and user_id like concat('%', #{entity.userId}, '%')</if>
<if test="entity.title != null and entity.title != ''"> and title like concat('%', #{entity.title}, '%')</if>
<if test="entity.platformName != null and entity.platformName != ''"> and platform_name like concat('%', #{entity.platformName}, '%')</if>
<if test="entity.country != null and entity.country != ''"> and country = #{entity.country}</if>
<if test="entity.feeDown != null "> and fee_down = #{entity.feeDown}</if>
<if test="entity.feeUp != null "> and fee_up = #{entity.feeUp}</if>
<if test="entity.isSelfPrice != null "> and is_self_price = #{entity.isSelfPrice}</if>
<if test="entity.brand != null and entity.brand != ''"> and brand = #{entity.brand}</if>
<if test="entity.isShowBrand != null "> and is_show_brand = #{entity.isShowBrand}</if>
<if test="entity.needNum != null "> and need_num = #{entity.needNum}</if>
<if test="entity.fansDown != null "> and fans_down = #{entity.fansDown}</if>
<if test="entity.fansUp != null "> and fans_up = #{entity.fansUp}</if>
<if test="entity.isEligible != null "> and is_eligible = #{entity.isEligible}</if>
<if test="entity.pic != null and entity.pic != ''"> and pic = #{entity.pic}</if>
<if test="entity.collect != null and entity.collect != ''"> and collect = #{entity.collect}</if>
<if test="entity.detail != null and entity.detail != ''"> and detail = #{entity.detail}</if>
</where>
</select>
</mapper>