|
|
@@ -8,6 +8,7 @@ import beilv.carinformation.service.ICarInformationService;
|
|
|
import beilv.common.core.domain.AjaxResult;
|
|
|
import beilv.common.core.text.Convert;
|
|
|
import beilv.common.utils.DateUtils;
|
|
|
+import beilv.common.utils.DictUtils;
|
|
|
import beilv.common.utils.StringUtils;
|
|
|
import beilv.common.utils.uuid.IdUtils;
|
|
|
import beilv.competition.domain.Competition;
|
|
|
@@ -22,6 +23,7 @@ import beilv.vipCardAmountLog.mapper.VipCardAmountLogMapper;
|
|
|
import beilv.vipCardLog.domain.VipCardLog;
|
|
|
import beilv.vipCardLog.mapper.VipCardLogMapper;
|
|
|
import beilv.vipCardLog.service.IVipCardLogService;
|
|
|
+import org.apache.commons.collections4.MapUtils;
|
|
|
import org.checkerframework.checker.units.qual.A;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.redis.core.StringRedisTemplate;
|
|
|
@@ -391,12 +393,42 @@ public class VipCardLogServiceImpl implements IVipCardLogService {
|
|
|
@Override
|
|
|
public List<Map<String, Object>> selectYueQiuList(VipCardLog vipCardLog) {
|
|
|
vipCardLog.setOrderType("yueqiu");
|
|
|
- return vipCardLogMapper.selectYueQiuList(vipCardLog);
|
|
|
+ Map<String, String> orderType = DictUtils.getDictCacheToMap("order_type");
|
|
|
+ Map<String, String> paymentStatus = DictUtils.getDictCacheToMap("payment_status");
|
|
|
+ Map<String, String> paymentType = DictUtils.getDictCacheToMap("payment_type");
|
|
|
+
|
|
|
+ List<Map<String, Object>> maps = vipCardLogMapper.selectYueQiuList(vipCardLog);
|
|
|
+
|
|
|
+ maps.forEach(map->{
|
|
|
+ map.put("orderTypeLabel", MapUtils.getString(orderType, MapUtils.getString(map,"orderType")));
|
|
|
+ map.put("paymentStatusLabel", MapUtils.getString(paymentStatus, MapUtils.getString(map,"paymentStatus")));
|
|
|
+ map.put("paymentTypeLabel", MapUtils.getString(paymentType, MapUtils.getString(map,"paymentType")));
|
|
|
+ map.put("createTime", MapUtils.getString(map, "createTime").replace("T", " "));
|
|
|
+ map.put("paymentTime", MapUtils.getString(map, "paymentTime").replace("T", " "));
|
|
|
+ });
|
|
|
+ return maps;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public List<Map<String, Object>> selectCanSaiList(VipCardLog vipCardLog) {
|
|
|
- return vipCardLogMapper.selectCanSaiList(vipCardLog);
|
|
|
+ List<Map<String, Object>> maps = vipCardLogMapper.selectCanSaiList(vipCardLog);
|
|
|
+ Map<String, String> orderType = DictUtils.getDictCacheToMap("order_type");
|
|
|
+ Map<String, String> paymentType = DictUtils.getDictCacheToMap("payment_type");
|
|
|
+ Map<String, String> competitionState = DictUtils.getDictCacheToMap("competition_state");
|
|
|
+ Map<String, String> paymentStatus = DictUtils.getDictCacheToMap("payment_status");
|
|
|
+
|
|
|
+ maps.forEach(map->{
|
|
|
+ map.put("orderTypeLabel", MapUtils.getString(orderType, MapUtils.getString(map,"orderType")));
|
|
|
+ map.put("paymentTypeLabel", MapUtils.getString(paymentType, MapUtils.getString(map,"paymentType")));
|
|
|
+ map.put("competitionStateLabel", MapUtils.getString(competitionState, MapUtils.getString(map,"competitionState")));
|
|
|
+ map.put("paymentStatusLabel", MapUtils.getString(paymentStatus, MapUtils.getString(map,"paymentStatus")));
|
|
|
+ map.put("publishTime", MapUtils.getString(map, "publishTime").replace("T", " "));
|
|
|
+ map.put("applyEndTime", MapUtils.getString(map, "applyEndTime").replace("T", " "));
|
|
|
+ map.put("applyStartTime", MapUtils.getString(map, "applyStartTime").replace("T", " "));
|
|
|
+ map.put("createTime", MapUtils.getString(map, "createTime").replace("T", " "));
|
|
|
+ map.put("paymentTime", MapUtils.getString(map, "paymentTime").replace("T", " "));
|
|
|
+ });
|
|
|
+ return maps;
|
|
|
}
|
|
|
|
|
|
public void insertAmountLog(VipCardAmountLog vipCardAmountLog){
|