Commit a93e566a by 杨林龙

优化假性离线查询

1 parent ed460b1e
......@@ -186,14 +186,14 @@ public class FakeOfflineService extends AbstractCommonService {
}
singleDeviceOfficeVinList.forEach(vin -> reasonMap.put(vin, FakeOfficeReasonEnum.SINGLE_OFFLINE.getCode()));
log.info("假性离线多设备单离线车架号 size:" + singleDeviceOfficeVinList.size());
// log.info("假性离线多设备单离线车架号:" + JSONUtil.toJsonStr(singleDeviceOfficeVinList));
log.info("假性离线多设备单离线车架号:" + JSONUtil.toJsonStr(singleDeviceOfficeVinList));
vinList.addAll(singleDeviceOfficeVinList);
// 二 获取设备都离线 最后定位点在家庭围栏或者工作地围栏 获取车架通过权限控制
List<String> fakeOfflineVinByFenceList = fakeOfflineVinMapper.getFakeOfflineVinByFence();
fakeOfflineVinByFenceList.forEach(vin -> reasonMap.put(vin, FakeOfficeReasonEnum.RESIDENCE.getCode()));
log.info("假性触碰工作围栏或者家庭围栏离线车架号 size:" + fakeOfflineVinByFenceList.size());
// log.info("假性离线多设备单离线车架号:" + JSONUtil.toJsonStr(fakeOfflineVinByFenceList));
log.info("假性离线多设备单离线车架号:" + JSONUtil.toJsonStr(fakeOfflineVinByFenceList));
vinList.addAll(fakeOfflineVinByFenceList);
// 三 获取本部门以及下级部门
......
......@@ -50,7 +50,9 @@
</select>
<select id="searchFakeOfficeList" resultType="cn.com.glsx.admin.modules.model.export.FakeOfficeExport">
select tw.partner_order_no bizOrderNo,
select temp.bizOrderNo, temp.ownerName, temp.sns, temp.vin
from
(select tw.partner_order_no bizOrderNo,
tv.owner_name ownerName,
group_concat(tvd.sn) sns,
tv.vin as vin
......@@ -74,15 +76,16 @@
<if test="checkedUserIdsStr != null and checkedUserIdsStr !=''">
and find_in_set(tv.created_by,#{checkedUserIdsStr})
</if>
group by tv.vin) temp
where 1 = 1
<if test="keywords != null and keywords !=''">
and(
tw.partner_order_no like '%${keywords}%'
or tv.vin like '%${keywords}%'
or tv.owner_name like '%${keywords}%'
or tvd.sn like '%${keywords}%'
temp.bizOrderNo like '%${keywords}%'
or temp.vin like '%${keywords}%'
or temp.ownerName like '%${keywords}%'
or temp.sns like '%${keywords}%'
)
</if>
group by tv.vin
</select>
<select id="getAddrByVin" resultMap="BaseMap">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!