md
This commit is contained in:
parent
aab011a47f
commit
af28359a3f
@ -65,6 +65,9 @@ public class EmisQuotePriceController extends BaseController
|
||||
public TableDataInfo list(EmisQuotePrice emisQuotePrice)
|
||||
{
|
||||
startPage();
|
||||
|
||||
emisQuotePrice.setUseSiteCode(getLoginUser().getUser().getOwnerSiteCode());
|
||||
|
||||
List<EmisQuotePrice> list = emisQuotePriceService.selectEmisQuotePriceList(emisQuotePrice);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@ -104,7 +104,6 @@
|
||||
<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=#{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>
|
||||
@ -147,6 +146,16 @@
|
||||
<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="useSiteCode != null and useSiteCode != ''">
|
||||
<!-- 包含子网点 -->
|
||||
AND use_site_code in (
|
||||
SELECT t1.site_code FROM (
|
||||
SELECT site_code FROM emis_site WHERE parent_site_code IS NOT NULL ) t1,( SELECT @pid :=
|
||||
#{useSiteCode} ) pd
|
||||
WHERE FIND_IN_SET( parent_site_code, @pid ) > 0 AND @pid := concat(@pid,',',site_code)
|
||||
)
|
||||
</if>
|
||||
|
||||
|
||||
<if test="params.quoteStatus != null and params.quoteStatus==1">
|
||||
and status=1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user