修复人员闸机查询不访问数据库的问题
parent
9d6442585d
commit
f865ecb980
|
@ -294,7 +294,13 @@ public class MapController extends BaseController {
|
||||||
String[] gateIdsByGateAreaId = mapService.getGateIdsByGateAreaId(pd);
|
String[] gateIdsByGateAreaId = mapService.getGateIdsByGateAreaId(pd);
|
||||||
Map<String, Object> doorComeAndOutInfo = new HashMap<>();
|
Map<String, Object> doorComeAndOutInfo = new HashMap<>();
|
||||||
if (pd.getString("TYPE").equals("PERSON_MACHINE")){
|
if (pd.getString("TYPE").equals("PERSON_MACHINE")){
|
||||||
doorComeAndOutInfo = HKUtil.getDoorComeAndOutInfo(gateIdsByGateAreaId, pd.getString("pageNo"), pd.getString("pageSize"),fstartDate,fendDate);
|
List<PageData> infoByArea = gateMachineInfoService.findInfoByArea(pd);
|
||||||
|
Map<String,Object> data = new HashMap<>();
|
||||||
|
data.put("list", infoByArea);
|
||||||
|
doorComeAndOutInfo.put("data", data);
|
||||||
|
doorComeAndOutInfo.put("code", 0);
|
||||||
|
doorComeAndOutInfo.put("msg", "success");
|
||||||
|
// doorComeAndOutInfo = HKUtil.getDoorComeAndOutInfo(gateIdsByGateAreaId, pd.getString("pageNo"), pd.getString("pageSize"),fstartDate,fendDate);
|
||||||
}else {
|
}else {
|
||||||
List<PageData> infoByArea = gateCarMachineInfoService.findInfoByArea(pd);
|
List<PageData> infoByArea = gateCarMachineInfoService.findInfoByArea(pd);
|
||||||
Map<String,Object> data = new HashMap<>();
|
Map<String,Object> data = new HashMap<>();
|
||||||
|
|
|
@ -19,4 +19,6 @@ public interface GateMachineInfoMapper {
|
||||||
List<PageData> findByIds(PageData pd);
|
List<PageData> findByIds(PageData pd);
|
||||||
|
|
||||||
PageData perpleCount(PageData pd);
|
PageData perpleCount(PageData pd);
|
||||||
|
|
||||||
|
List<PageData> findInfoByArea(PageData pd);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,4 +17,6 @@ public interface GateMachineInfoService {
|
||||||
public List<PageData> findByIds(PageData pd);
|
public List<PageData> findByIds(PageData pd);
|
||||||
|
|
||||||
PageData peopleCount(PageData pd);
|
PageData peopleCount(PageData pd);
|
||||||
|
|
||||||
|
List<PageData> findInfoByArea(PageData pd);
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,4 +37,9 @@ public class GateMachineInfoServiceImpl implements GateMachineInfoService {
|
||||||
public PageData peopleCount(PageData pd) {
|
public PageData peopleCount(PageData pd) {
|
||||||
return gateMachineInfoMapper.perpleCount(pd);
|
return gateMachineInfoMapper.perpleCount(pd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<PageData> findInfoByArea(PageData pd) {
|
||||||
|
return gateMachineInfoMapper.findInfoByArea(pd);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,6 +81,8 @@
|
||||||
mk_gate_car_machine_info f
|
mk_gate_car_machine_info f
|
||||||
WHERE
|
WHERE
|
||||||
f.ENTRANCESYSCODE = #{GATE_AREA_ID}
|
f.ENTRANCESYSCODE = #{GATE_AREA_ID}
|
||||||
|
AND
|
||||||
|
f.`CROSSTIME` >= CONCAT_WS("", date_format(now(),'%Y-%m'), '-01 00:00:00')
|
||||||
GROUP BY
|
GROUP BY
|
||||||
f.CAR_MACHINE_INFO_ID
|
f.CAR_MACHINE_INFO_ID
|
||||||
ORDER BY
|
ORDER BY
|
||||||
|
|
|
@ -74,4 +74,20 @@
|
||||||
and f.eventTime >= #{eventTime}
|
and f.eventTime >= #{eventTime}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="findInfoByArea" resultType="com.zcloud.entity.PageData">
|
||||||
|
SELECT
|
||||||
|
*
|
||||||
|
FROM
|
||||||
|
mk_gate_person_machine_info f
|
||||||
|
LEFT JOIN mk_gate_machine mgm ON mgm.EQUIPMENTID = f.doorIndexCode
|
||||||
|
WHERE
|
||||||
|
mgm.GATE_AREA_ID = #{GATE_AREA_ID}
|
||||||
|
AND
|
||||||
|
f.`eventTime` >= CONCAT_WS("", date_format(now(),'%Y-%m'), '-01 00:00:00')
|
||||||
|
GROUP BY
|
||||||
|
f.MACHINE_INFO_ID
|
||||||
|
ORDER BY
|
||||||
|
f.eventTime DESC;
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -160,7 +160,7 @@
|
||||||
pv.INDEXCODE
|
pv.INDEXCODE
|
||||||
from
|
from
|
||||||
<include refid="tableName"></include> f
|
<include refid="tableName"></include> f
|
||||||
left join `qa-gwj-regulatory`.bus_platformvideomanagement pv on pv.PLATFORMVIDEOMANAGEMENT_ID = f.PLATFORMVIDEOMANAGEMENT_ID
|
left join `qa-cmt-regulatory`.bus_platformvideomanagement pv on pv.PLATFORMVIDEOMANAGEMENT_ID = f.PLATFORMVIDEOMANAGEMENT_ID
|
||||||
where f.ISDELETE = '0'
|
where f.ISDELETE = '0'
|
||||||
<if test="pd.GATE_AREA_ID != null and pd.GATE_AREA_ID != ''"><!-- 关键词检索 -->
|
<if test="pd.GATE_AREA_ID != null and pd.GATE_AREA_ID != ''"><!-- 关键词检索 -->
|
||||||
and f.GATE_AREA_ID=#{pd.GATE_AREA_ID}
|
and f.GATE_AREA_ID=#{pd.GATE_AREA_ID}
|
||||||
|
@ -199,7 +199,7 @@
|
||||||
pv.INDEXCODE
|
pv.INDEXCODE
|
||||||
from
|
from
|
||||||
<include refid="tableName"></include> f
|
<include refid="tableName"></include> f
|
||||||
left join `qa-gwj-regulatory`.bus_platformvideomanagement pv on pv.PLATFORMVIDEOMANAGEMENT_ID = f.PLATFORMVIDEOMANAGEMENT_ID
|
left join `qa-cmt-regulatory`.bus_platformvideomanagement pv on pv.PLATFORMVIDEOMANAGEMENT_ID = f.PLATFORMVIDEOMANAGEMENT_ID
|
||||||
where f.ISDELETE = '0'
|
where f.ISDELETE = '0'
|
||||||
<if test="CORPINFO_ID != null and CORPINFO_ID != ''"><!-- 关键词检索 -->
|
<if test="CORPINFO_ID != null and CORPINFO_ID != ''"><!-- 关键词检索 -->
|
||||||
and f.CORPINFO_ID=#{CORPINFO_ID}
|
and f.CORPINFO_ID=#{CORPINFO_ID}
|
||||||
|
|
Loading…
Reference in New Issue