111
This commit is contained in:
parent
6c1257e605
commit
397108077b
@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|||||||
import com.fuint.business.marketingActivity.cardFule.mapper.CardFuelDieselMapper;
|
import com.fuint.business.marketingActivity.cardFule.mapper.CardFuelDieselMapper;
|
||||||
import com.fuint.business.marketingActivity.cardFule.entity.CardFuelDiesel;
|
import com.fuint.business.marketingActivity.cardFule.entity.CardFuelDiesel;
|
||||||
import com.fuint.business.marketingActivity.cardFule.service.CardFuelDieselService;
|
import com.fuint.business.marketingActivity.cardFule.service.CardFuelDieselService;
|
||||||
|
import com.fuint.business.petrolStationManagement.entity.OilName;
|
||||||
import com.fuint.business.petrolStationManagement.service.OilNameService;
|
import com.fuint.business.petrolStationManagement.service.OilNameService;
|
||||||
import com.fuint.common.dto.AccountInfo;
|
import com.fuint.common.dto.AccountInfo;
|
||||||
import com.fuint.common.util.TokenUtil;
|
import com.fuint.common.util.TokenUtil;
|
||||||
@ -110,6 +111,8 @@ public class CardFuelDieselServiceImpl extends ServiceImpl<CardFuelDieselMapper,
|
|||||||
List<CardFuelDiesel> records = page1.getRecords();
|
List<CardFuelDiesel> records = page1.getRecords();
|
||||||
ArrayList<CardFuelDiesel> cardFuelDiesels = new ArrayList<>();
|
ArrayList<CardFuelDiesel> cardFuelDiesels = new ArrayList<>();
|
||||||
for (CardFuelDiesel record : records) {
|
for (CardFuelDiesel record : records) {
|
||||||
|
OilName oilName = oilNameService.selectOilNameById(Integer.parseInt(record.getOilType()));
|
||||||
|
record.setOilType(oilName.getOilName());
|
||||||
Date startTime = record.getStartTime();
|
Date startTime = record.getStartTime();
|
||||||
Date endTime = record.getEndTime();
|
Date endTime = record.getEndTime();
|
||||||
Date date = new Date();
|
Date date = new Date();
|
||||||
|
@ -371,8 +371,8 @@
|
|||||||
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
|
||||||
|
HAVING IFNULL(sum(adr.id),0) <![CDATA[ < ]]> limitAcount
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectActiveFule" resultType="com.fuint.business.marketingActivity.activeDiscount.vo.ActiveDiscountPayVO">
|
<select id="selectActiveFule" resultType="com.fuint.business.marketingActivity.activeDiscount.vo.ActiveDiscountPayVO">
|
||||||
@ -396,8 +396,8 @@
|
|||||||
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
|
||||||
|
HAVING IFNULL(sum(afr.id),0) <![CDATA[ < ]]> limitAcount
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectActiveConsumption" resultType="com.fuint.business.marketingActivity.activeDiscount.vo.ActiveConsumptionVO">
|
<select id="selectActiveConsumption" resultType="com.fuint.business.marketingActivity.activeDiscount.vo.ActiveConsumptionVO">
|
||||||
|
Loading…
Reference in New Issue
Block a user