Commit b04a7094 authored by KeYong's avatar KeYong

Merge remote-tracking branch 'origin/develop_dl_plan6' into develop_dl_plan6

parents d12c59ed e282fc25
...@@ -1121,7 +1121,7 @@ LEFT JOIN ( ...@@ -1121,7 +1121,7 @@ LEFT JOIN (
( CASE WHEN cfp.post_qualification IS NULL THEN 0 ELSE 1 END ) AS is_certificate, ( CASE WHEN cfp.post_qualification IS NULL THEN 0 ELSE 1 END ) AS is_certificate,
IF IF
( (
( SELECT field_value FROM cb_dynamic_form_instance dfi WHERE dfi.field_code = 'peopleType' AND dfi.instance_id = u.sequence_nbr ) = 2, ( SELECT field_value FROM cb_dynamic_form_instance dfi WHERE dfi.field_code = 'peopleType' AND dfi.instance_id = u.sequence_nbr ) = 1601,
1, 1,
0 0
) AS is_firefighters, ) AS is_firefighters,
......
...@@ -330,7 +330,7 @@ public class SupervisionConfigureController extends AbstractBaseController { ...@@ -330,7 +330,7 @@ public class SupervisionConfigureController extends AbstractBaseController {
long nowDateTime = new Date().getTime();//当前时间戳 long nowDateTime = new Date().getTime();//当前时间戳
Map<String, String> stateMap = fireFightingSystemMapper.queryPressureNowStateBySpecificId((Long) item.get("id")); Map<String, String> stateMap = fireFightingSystemMapper.queryPressureNowStateBySpecificId((Long) item.get("id"));
ids.add((Long) item.get("id")); ids.add((Long) item.get("id"));
boolean time = false; boolean time = true;
if (!ObjectUtils.isEmpty(stateMap) && stateMap.containsKey("update_date") && stateMap.containsKey("equipment_index_name")) { if (!ObjectUtils.isEmpty(stateMap) && stateMap.containsKey("update_date") && stateMap.containsKey("equipment_index_name")) {
item.put("update_time", String.valueOf(stateMap.get("update_date")).replaceAll("T", " ")); item.put("update_time", String.valueOf(stateMap.get("update_date")).replaceAll("T", " "));
if (!ObjectUtils.isEmpty(stateMap.get("value"))) { if (!ObjectUtils.isEmpty(stateMap.get("value"))) {
...@@ -347,13 +347,13 @@ public class SupervisionConfigureController extends AbstractBaseController { ...@@ -347,13 +347,13 @@ public class SupervisionConfigureController extends AbstractBaseController {
} }
long res = nowDateTime - update_time; long res = nowDateTime - update_time;
long diffMinute = res / 1000 / 60; long diffMinute = res / 1000 / 60;
if (diffMinute <= 5) { if (diffMinute > 5) {
time = true; time = false;
} }
item.put("upTime", diffMinute); item.put("upTime", diffMinute);
} }
} }
item.put("stateDesc", Integer.parseInt(String.valueOf(item.get("isAlarm"))) == 0 || time ? "正常" : "异常"); item.put("stateDesc", Integer.parseInt(String.valueOf(item.get("isAlarm"))) == 0 && time ? "正常" : "异常");
return item; return item;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
List<Map<String, Object>> stateMap = fireFightingSystemMapper.queryStartAndStopBySpecificId(ids); List<Map<String, Object>> stateMap = fireFightingSystemMapper.queryStartAndStopBySpecificId(ids);
......
...@@ -4885,7 +4885,7 @@ ...@@ -4885,7 +4885,7 @@
</if> </if>
GROUP BY GROUP BY
es.id es.id
) a ) a ORDER BY FIELD(status,'压力低','正常','--')
</select> </select>
<select id="getInfluentFlowBySuper" resultType="java.util.Map"> <select id="getInfluentFlowBySuper" resultType="java.util.Map">
......
...@@ -28,7 +28,7 @@ public class KafkaConsumerService { ...@@ -28,7 +28,7 @@ public class KafkaConsumerService {
* 消费单条消息,topics 可以监听多个topic,如:topics = {"topic1", "topic2"} * 消费单条消息,topics 可以监听多个topic,如:topics = {"topic1", "topic2"}
* @param message 消息 * @param message 消息
*/ */
@KafkaListener(id = "consumerSingle", topics = "#{'${kafka.topics}'.split(',')}", errorHandler = "consumerAwareListenerErrorHandler") @KafkaListener(id = "consumerSingle", topics = "#{'${kafka.topics}'.split(',')}", concurrency = "2")
public void consumerSingle(String message,Acknowledgment ack) { public void consumerSingle(String message,Acknowledgment ack) {
JSONObject messageObj = JSONObject.fromObject(message); JSONObject messageObj = JSONObject.fromObject(message);
String topic = messageObj.getString("topic"); String topic = messageObj.getString("topic");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment