This commit is contained in:
linfso 2024-04-22 23:43:30 +08:00
parent 01aa14f069
commit 27ed44cd95

View File

@ -77,7 +77,7 @@
<if test="quoteId != null "> and quote_id = #{quoteId}</if>
<if test="quoteName != null and quoteName != ''"> and quote_name like concat('%', #{quoteName}, '%')</if>
<if test="quoteCode != null and quoteCode != ''"> and quote_code like concat('%', #{quoteCode}, '%')</if>
<if test="useSiteCode != null and useSiteCode != ''"> and use_site_code like concat('%', #{useSiteCode}, '%')</if>
<if test="useSiteCode != null and useSiteCode != ''"> and use_site_code=#{useSiteCode}</if>
<if test="useSite != null and useSite != ''"> and use_site like concat('%', #{useSite}, '%')</if>
<if test="transLineCode != null and transLineCode != ''"> and trans_line_code like concat('%', #{transLineCode}, '%')</if>
<if test="transLine != null and transLine != ''"> and trans_line like concat('%', #{transLine}, '%')</if>
@ -98,7 +98,7 @@
<if test="sendAreaId != null "> and send_area_id like concat('%', #{sendAreaId}, '%')</if>
<if test="sendAreaName != null and sendAreaName != ''"> and send_area_name like concat('%', #{sendAreaName}, '%')</if>
<if test="sendAreaSite != null and sendAreaSite != ''"> and send_area_site like concat('%', #{sendAreaSite}, '%')</if>
<if test="sendAreaSiteCode != null and sendAreaSiteCode != ''"> and send_area_site_code like concat('%', #{sendAreaSiteCode}, '%')</if>
<if test="sendAreaSiteCode != null and sendAreaSiteCode != ''"> and find_in_set(#{sendAreaSiteCode},send_area_site_code)</if>
<if test="sendAreaSiteId != null and sendAreaSiteId != ''"> and send_area_site_id like concat('%', #{sendAreaSiteId}, '%')</if>
<if test="carriesNumber != null and carriesNumber != ''"> and carries_number like concat('%', #{carriesNumber}, '%')</if>
<if test="discardsNumber != null and discardsNumber != ''"> and discards_number like concat('%', #{discardsNumber}, '%')</if>
@ -116,6 +116,20 @@
<if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
<if test="params.quoteStatus != null and params.quoteStatus==1">
and status=1
</if>
<if test="params.quoteStatus != null and params.quoteStatus==2">
and status=0
</if>
<if test="params.quoteStatus != null and params.quoteStatus==3">
and endDate <![CDATA[ < ]]> now()
</if>
<if test="params.quoteStatus != null and params.quoteStatus==4">
start_date <![CDATA[ <= ]]> now() and endDate <![CDATA[ > ]]> now() and status=1
</if>
</where>
order by create_time desc
</select>