|
|
@ -10,8 +10,8 @@ |
|
|
|
<select id="selectBasicdataPricePage" resultType="com.logpm.basicdata.vo.BasicdataPricePageVO"> |
|
|
|
<select id="selectBasicdataPricePage" resultType="com.logpm.basicdata.vo.BasicdataPricePageVO"> |
|
|
|
select t.id, |
|
|
|
select t.id, |
|
|
|
cli.client_name, |
|
|
|
cli.client_name, |
|
|
|
t.brand_id, |
|
|
|
lbsb.brand_id, |
|
|
|
t.client_id, |
|
|
|
lbsb.client_id, |
|
|
|
t.template_id, |
|
|
|
t.template_id, |
|
|
|
ldb.brand_name, |
|
|
|
ldb.brand_name, |
|
|
|
lbpt.service_type, |
|
|
|
lbpt.service_type, |
|
|
@ -26,8 +26,8 @@ |
|
|
|
from logpm_basicdata_store_brand lbsb |
|
|
|
from logpm_basicdata_store_brand lbsb |
|
|
|
left join logpm_basicdata_client cli on cli.id = lbsb.client_id |
|
|
|
left join logpm_basicdata_client cli on cli.id = lbsb.client_id |
|
|
|
left join logpm_basicdata_price t on lbsb.client_id = t.client_id |
|
|
|
left join logpm_basicdata_price t on lbsb.client_id = t.client_id |
|
|
|
and lbsb.brand_id = t.brand_id and t.effective_time <![CDATA[ <= ]]> now() and t.expiry_time >= now() |
|
|
|
and lbsb.brand_id = t.brand_id and t.effective_time <![CDATA[ <= ]]> now() and t.expiry_time >= now() |
|
|
|
left join logpm_basicdata_brand ldb on ldb.id = t.brand_id |
|
|
|
left join logpm_basicdata_brand ldb on ldb.id = lbsb.brand_id |
|
|
|
left join logpm_basicdata_price_template lbpt on t.template_id = lbpt.id |
|
|
|
left join logpm_basicdata_price_template lbpt on t.template_id = lbpt.id |
|
|
|
where lbsb.is_deleted = 0 |
|
|
|
where lbsb.is_deleted = 0 |
|
|
|
<if test="basicdataPrice.clientName != null and basicdataPrice.clientName != ''"> |
|
|
|
<if test="basicdataPrice.clientName != null and basicdataPrice.clientName != ''"> |
|
|
|