mdf:播报字段修改3
This commit is contained in:
@@ -541,7 +541,7 @@ public class DeviceBigScreenServiceImpl implements DeviceBigScreenService {
|
||||
for(int i=0;i<resultJSONArray.size();i++){
|
||||
JSONObject jo = resultJSONArray.getJSONObject(i);
|
||||
String repair_code = jo.getString("repair_code");
|
||||
jo.put("needcast","0");
|
||||
jo.put("needCast","0");
|
||||
if(repair_code.contains("BXD")){
|
||||
String id = jo.getString("id");
|
||||
JSONObject jonow = EM_BI_DeviceRepairRequest.query("request_id='"+id+"'").uniqueResult(0);
|
||||
@@ -550,7 +550,7 @@ public class DeviceBigScreenServiceImpl implements DeviceBigScreenService {
|
||||
String warn_time = jonow.getString("warn_time");
|
||||
if(StrUtil.isEmpty(process_id)){
|
||||
if(StrUtil.isEmpty(warn_time)){
|
||||
jo.put("needcast","1");
|
||||
jo.put("needCast","1");
|
||||
}else{
|
||||
Date warn_date = DateUtil.parse(warn_time);
|
||||
//毫秒数 = 当前时间-上次播报时间
|
||||
@@ -558,7 +558,7 @@ public class DeviceBigScreenServiceImpl implements DeviceBigScreenService {
|
||||
// 10*60*1000 10分钟
|
||||
long min_10 = 10*60*1000;
|
||||
if(ms >= min_10){
|
||||
jo.put("needcast","1");
|
||||
jo.put("needCast","1");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -261,7 +261,6 @@
|
||||
QUERY
|
||||
SELECT
|
||||
mst.repair_id as id,
|
||||
false as needcast,
|
||||
mst.input_time AS input_time,
|
||||
mst.repair_code AS repair_code,
|
||||
(
|
||||
@@ -315,7 +314,6 @@
|
||||
|
||||
SELECT
|
||||
st.request_id AS id,
|
||||
false AS needcast,
|
||||
st.create_time AS input_time,
|
||||
st.request_code AS repair_code,
|
||||
class.class_name AS maintenancecycle,
|
||||
@@ -378,7 +376,6 @@
|
||||
|
||||
SELECT
|
||||
mst.maint_id as id,
|
||||
false as needcast,
|
||||
mst.input_time AS input_time,
|
||||
mst.maint_code AS repair_code,
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user