111
This commit is contained in:
parent
dd2eb971a3
commit
6c1257e605
@ -167,9 +167,9 @@
|
|||||||
<el-select v-model="ruleForm.oilType" placeholder="请选择" >
|
<el-select v-model="ruleForm.oilType" placeholder="请选择" >
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in oilList"
|
v-for="dict in oilList"
|
||||||
:key="dict.id"
|
:key="dict.id.toString()"
|
||||||
:label="dict.oilName"
|
:label="dict.oilName"
|
||||||
:value="dict.id">
|
:value="dict.id.toString()">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
|
||||||
|
@ -362,6 +362,7 @@
|
|||||||
FROM
|
FROM
|
||||||
active_discount ad
|
active_discount ad
|
||||||
LEFT JOIN active_discount_child adc ON ad.id = adc.active_discount_id
|
LEFT JOIN active_discount_child adc ON ad.id = adc.active_discount_id
|
||||||
|
left join active_discount_records adr on adr.active_discount_id = ad.id
|
||||||
WHERE
|
WHERE
|
||||||
ad.store_id = #{storeId}
|
ad.store_id = #{storeId}
|
||||||
AND adc.amount <![CDATA[ <= ]]> #{amount}
|
AND adc.amount <![CDATA[ <= ]]> #{amount}
|
||||||
@ -370,6 +371,7 @@
|
|||||||
AND ad.STATUS = 0
|
AND ad.STATUS = 0
|
||||||
AND concat(',',ad.adapt_oil,',') like concat('%',#{oilId},'%')
|
AND concat(',',ad.adapt_oil,',') like concat('%',#{oilId},'%')
|
||||||
AND concat(',',ad.diesel_user_level,',') like concat('%',#{levelId},'%')
|
AND concat(',',ad.diesel_user_level,',') like concat('%',#{levelId},'%')
|
||||||
|
HAVING sum(adr.id) <![CDATA[ < ]]> limitAcount
|
||||||
GROUP BY ad.id
|
GROUP BY ad.id
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@ -385,6 +387,7 @@
|
|||||||
FROM
|
FROM
|
||||||
active_fullminus af
|
active_fullminus af
|
||||||
LEFT JOIN active_discount_child adc ON af.id = adc.active_fullminus_id
|
LEFT JOIN active_discount_child adc ON af.id = adc.active_fullminus_id
|
||||||
|
left join active_fullminus_records afr on afr.active_fullminus_id = ad.id
|
||||||
WHERE
|
WHERE
|
||||||
af.store_id = #{storeId}
|
af.store_id = #{storeId}
|
||||||
AND adc.amount <![CDATA[ <= ]]> #{amount}
|
AND adc.amount <![CDATA[ <= ]]> #{amount}
|
||||||
@ -393,6 +396,7 @@
|
|||||||
AND af.STATUS = 0
|
AND af.STATUS = 0
|
||||||
AND concat(',',af.adapt_oil,',') like concat('%',#{oilId},'%')
|
AND concat(',',af.adapt_oil,',') like concat('%',#{oilId},'%')
|
||||||
AND concat(',',af.diesel_user_level,',') like concat('%',#{levelId},'%')
|
AND concat(',',af.diesel_user_level,',') like concat('%',#{levelId},'%')
|
||||||
|
HAVING sum(afr.id) <![CDATA[ < ]]> limitAcount
|
||||||
GROUP BY af.id
|
GROUP BY af.id
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user