微调
This commit is contained in:
parent
47d93598c7
commit
8ba93b74ac
|
@ -120,6 +120,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
||||||
"/appCodeLogin",
|
"/appCodeLogin",
|
||||||
"/app/**",
|
"/app/**",
|
||||||
"/appVerify/**",
|
"/appVerify/**",
|
||||||
|
"/getToken",
|
||||||
"/common/upload",
|
"/common/upload",
|
||||||
"/common/receive",
|
"/common/receive",
|
||||||
"/payment/callback/**",
|
"/payment/callback/**",
|
||||||
|
|
|
@ -102,6 +102,9 @@ public class IndexVo {
|
||||||
/** 已离线 */
|
/** 已离线 */
|
||||||
private Integer offlineNum;
|
private Integer offlineNum;
|
||||||
|
|
||||||
|
/** 全部离线设备 */
|
||||||
|
private Integer allOfflineNum;
|
||||||
|
|
||||||
/** 正常待租 */
|
/** 正常待租 */
|
||||||
private Integer normalNum;
|
private Integer normalNum;
|
||||||
|
|
||||||
|
|
|
@ -810,7 +810,7 @@ public class AsDeviceServiceImpl extends ServiceImpl<AsDeviceMapper, AsDevice> i
|
||||||
wrapperForOffline.eq("area_id",areaId);
|
wrapperForOffline.eq("area_id",areaId);
|
||||||
}
|
}
|
||||||
Integer allOfflineNum = asDeviceMapper.selectCount(wrapperForOffline);
|
Integer allOfflineNum = asDeviceMapper.selectCount(wrapperForOffline);
|
||||||
deviceNumVo.setOfflineNum(allOfflineNum);//全部离线数
|
deviceNumVo.setAllOfflineNum(allOfflineNum);//全部离线数
|
||||||
|
|
||||||
wrapperForOffline.ne("status","0");
|
wrapperForOffline.ne("status","0");
|
||||||
|
|
||||||
|
|
|
@ -950,6 +950,12 @@ public class EtOrderServiceImpl implements IEtOrderService
|
||||||
String endDateStr = formattedDate + " " + Constants.DATE_FORMAT_END_PEREND;
|
String endDateStr = formattedDate + " " + Constants.DATE_FORMAT_END_PEREND;
|
||||||
IndexVo.OrderFeeStatisticsVo todayOrderInfo = getOrderFeeStatistics(startDateStr, endDateStr, areaId);
|
IndexVo.OrderFeeStatisticsVo todayOrderInfo = getOrderFeeStatistics(startDateStr, endDateStr, areaId);
|
||||||
log.info("【首页统计】营收统计----------todayOrderInfo: {}" , JSON.toJSON(todayOrderInfo));
|
log.info("【首页统计】营收统计----------todayOrderInfo: {}" , JSON.toJSON(todayOrderInfo));
|
||||||
|
|
||||||
|
// 如果 orderNum 或 income 为 0,跳过当前循环
|
||||||
|
if (todayOrderInfo.getOrderCount() == 0 && todayOrderInfo.getIncomeFee().compareTo(BigDecimal.ZERO) == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
IndexVo.IncomeVo incomeVo = new IndexVo.IncomeVo();
|
IndexVo.IncomeVo incomeVo = new IndexVo.IncomeVo();
|
||||||
incomeVo.setDay(formattedDate);
|
incomeVo.setDay(formattedDate);
|
||||||
incomeVo.setOrderNum(todayOrderInfo.getOrderCount());
|
incomeVo.setOrderNum(todayOrderInfo.getOrderCount());
|
||||||
|
@ -2361,6 +2367,11 @@ public class EtOrderServiceImpl implements IEtOrderService
|
||||||
IndexVo.OrderFeeStatisticsVo todayOrderInfo = getOrderFeeStatisticsByDeptId(startDateStr, endDateStr, areaIds);
|
IndexVo.OrderFeeStatisticsVo todayOrderInfo = getOrderFeeStatisticsByDeptId(startDateStr, endDateStr, areaIds);
|
||||||
log.info("【获取营收统计】营收统计----------todayOrderInfo: {}" , JSON.toJSON(todayOrderInfo));
|
log.info("【获取营收统计】营收统计----------todayOrderInfo: {}" , JSON.toJSON(todayOrderInfo));
|
||||||
|
|
||||||
|
// 如果 orderNum 或 income 为 0,跳过当前循环
|
||||||
|
if (todayOrderInfo.getOrderCount() == 0 && todayOrderInfo.getIncomeFee().compareTo(BigDecimal.ZERO) == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// 构建收入统计对象
|
// 构建收入统计对象
|
||||||
IndexVo.IncomeVo incomeVo = new IndexVo.IncomeVo();
|
IndexVo.IncomeVo incomeVo = new IndexVo.IncomeVo();
|
||||||
incomeVo.setDay(formattedDate);
|
incomeVo.setDay(formattedDate);
|
||||||
|
|
|
@ -43,7 +43,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<sql id="selectAsDeviceVo">
|
<sql id="selectAsDeviceVo">
|
||||||
select device_id, picture, device_name, mac, sn, model_id, hardware_version_id, vehicle_num, area_id, activation_time,
|
select device_id, picture, device_name, mac, sn, model_id, hardware_version_id, vehicle_num, area_id, activation_time,
|
||||||
online_status, create_by, create_time, update_by, update_time, last_time, last_location_time, gps, remark, status,
|
online_status, create_by, create_time, update_by, update_time, last_time, last_location_time, gps, remark, status,
|
||||||
lock_status, location, remaining_power, voltage, qrcode, longitude, latitude, is_area_out_outage, is_admin_unlocking,signal_strength, satellites, quality, appid, app_name, dept_id from et_device
|
lock_status, location, remaining_power, voltage, qrcode, longitude, latitude, is_area_out_outage, is_admin_unlocking,
|
||||||
|
signal_strength, satellites, quality, appid, app_name, dept_id from et_device
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectAsDeviceList" parameterType="AsDevice" resultMap="AsDeviceResult">
|
<select id="selectAsDeviceList" parameterType="AsDevice" resultMap="AsDeviceResult">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user