|
@@ -23,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectNoticeDemandVo">
|
|
|
- select id, member_id, purchase_title,purchase_title_en, summary_of_needs,summary_of_needs_en, demand_details,demand_details_en, contacts,contacts_en, contact_number,contact_number_en, release_time,release_time_en, status, create_by, create_time, update_by, update_time, del_flag, remark from notice_demand
|
|
|
+ select id, member_id, purchase_title,purchase_title_en, summary_of_needs,summary_of_needs_en, demand_details,demand_details_en, contacts,contacts_en, contact_number, release_time,release_time_en, status, create_by, create_time, update_by, update_time, del_flag, remark from notice_demand
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectNoticeDemandList" parameterType="NoticeDemand" resultMap="NoticeDemandResult">
|
|
@@ -34,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="summaryOfNeeds != null and summaryOfNeeds != ''"> and (summary_of_needs like concat('%', #{summaryOfNeeds}, '%') or summary_of_needs_en like concat('%', #{summaryOfNeeds}, '%'))</if>
|
|
|
<if test="demandDetails != null and demandDetails != ''"> and (demand_details = #{demandDetails} or demand_details_en = #{demandDetails})</if>
|
|
|
<if test="contacts != null and contacts != ''"> and (contacts like concat('%', #{contacts}, '%') or contacts_en like concat('%', #{contacts}, '%'))</if>
|
|
|
- <if test="contactNumber != null and contactNumber != ''"> and (contact_number like concat('%', #{contactNumber}, '%') or contact_number_en like concat('%', #{contactNumber}, '%'))</if>
|
|
|
+ <if test="contactNumber != null and contactNumber != ''"> and (contact_number like concat('%', #{contactNumber}, '%'))</if>
|
|
|
<if test="params.beginReleaseTime != null and params.beginReleaseTime != ''"><!-- 发布开始时间检索 -->
|
|
|
AND date_format(release_time,'%y%m%d') >= date_format(#{params.beginReleaseTime},'%y%m%d')
|
|
|
</if>
|
|
@@ -63,7 +63,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="contacts != null and contacts != ''">contacts,</if>
|
|
|
<if test="contactsEn != null and contactsEn != ''">contacts_en,</if>
|
|
|
<if test="contactNumber != null and contactNumber != ''">contact_number,</if>
|
|
|
- <if test="contactNumberEn != null and contactNumberEn != ''">contact_number_en,</if>
|
|
|
<if test="releaseTime != null ">release_time,</if>
|
|
|
<if test="releaseTimeEn != null ">release_time_en,</if>
|
|
|
<if test="status != null and status != ''">status,</if>
|
|
@@ -85,7 +84,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="contacts != null and contacts != ''">#{contacts},</if>
|
|
|
<if test="contactsEn != null and contactsEn != ''">#{contactsEn},</if>
|
|
|
<if test="contactNumber != null and contactNumber != ''">#{contactNumber},</if>
|
|
|
- <if test="contactNumberEn != null and contactNumberEn != ''">#{contactNumberEn},</if>
|
|
|
<if test="releaseTime != null ">#{releaseTime},</if>
|
|
|
<if test="releaseTimeEn != null ">#{releaseTimeEn},</if>
|
|
|
<if test="status != null and status != ''">#{status},</if>
|
|
@@ -111,7 +109,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="contacts != null and contacts != ''">contacts = #{contacts},</if>
|
|
|
<if test="contactsEn != null and contactsEn != ''">contacts_en = #{contactsEn},</if>
|
|
|
<if test="contactNumber != null and contactNumber != ''">contact_number = #{contactNumber},</if>
|
|
|
- <if test="contactNumberEn != null and contactNumberEn != ''">contact_number_en = #{contactNumberEn},</if>
|
|
|
<if test="releaseTime != null ">release_time = #{releaseTime},</if>
|
|
|
<if test="releaseTimeEn != null ">release_time_en = #{releaseTimeEn},</if>
|
|
|
<if test="status != null and status != ''">status = #{status},</if>
|