Commit c4852fb9 authored by yangyang's avatar yangyang

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

parents 2fc8f54a acca8a3e
...@@ -102,7 +102,6 @@ public class IdxBizFanHealthIndexServiceImpl extends BaseService<IdxBizFanHealth ...@@ -102,7 +102,6 @@ public class IdxBizFanHealthIndexServiceImpl extends BaseService<IdxBizFanHealth
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC")); Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
//限制必须是区间时间段 //限制必须是区间时间段
if(startTime==null||endTime==null){ if(startTime==null||endTime==null){
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
count( 1 ) as value count( 1 ) as value
FROM FROM
sjgl_zsj_zsbtz a sjgl_zsj_zsbtz a
INNER JOIN privilege_company b on a.WERKS = b.COMPANY_CODE and b.IS_DELETED = false AND b.`LEVEL` = 'station' LEFT JOIN privilege_company b on a.WERKS = b.COMPANY_CODE and b.IS_DELETED = false AND b.`LEVEL` = 'station'
<where> <where>
<if test="parentCode != null and parentCode != ''"> <if test="parentCode != null and parentCode != ''">
b.ORG_CODE like concat(#{parentCode},'%') b.ORG_CODE like concat(#{parentCode},'%')
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
count(1) as value count(1) as value
FROM FROM
fdgl_job_main a fdgl_job_main a
INNER JOIN privilege_company b on a.WERKS = b.COMPANY_CODE and b.IS_DELETED = false AND b.`LEVEL` = 'station' LEFT JOIN privilege_company b on a.WERKS = b.COMPANY_CODE and b.IS_DELETED = false AND b.`LEVEL` = 'station'
<where> <where>
<if test="parentCode != null and parentCode != ''"> <if test="parentCode != null and parentCode != ''">
b.ORG_CODE like concat(#{parentCode},'%') b.ORG_CODE like concat(#{parentCode},'%')
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
else 3 end) as sort else 3 end) as sort
FROM FROM
sjgl_zsj_zsbtz a sjgl_zsj_zsbtz a
INNER JOIN privilege_company b ON a.WERKS = b.COMPANY_CODE and b.IS_DELETED = false AND b.`LEVEL` = 'station' LEFT JOIN privilege_company b ON a.WERKS = b.COMPANY_CODE and b.IS_DELETED = false AND b.`LEVEL` = 'station'
<where> <where>
<if test="parentCode != null and parentCode != ''"> <if test="parentCode != null and parentCode != ''">
AND b.ORG_CODE like concat(#{parentCode},'%') AND b.ORG_CODE like concat(#{parentCode},'%')
...@@ -122,9 +122,9 @@ ...@@ -122,9 +122,9 @@
AND a.QRCODE_COLOR = #{qrCodeColor} AND a.QRCODE_COLOR = #{qrCodeColor}
</if> </if>
<if test="ne != null and ne != ''"> <if test="ne != null and ne != ''">
AND a.QRCODE_COLOR != #{ne}
</if> </if>
</where> </where>
AND a.QRCODE_COLOR != #{ne}
ORDER BY sort asc, a.UPDATE_STAMP DESC ORDER BY sort asc, a.UPDATE_STAMP DESC
limit #{current},#{size} limit #{current},#{size}
</select> </select>
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
count(1) count(1)
FROM FROM
sjgl_zsj_zsbtz a sjgl_zsj_zsbtz a
INNER JOIN privilege_company b ON a.WERKS = b.COMPANY_CODE and b.IS_DELETED = false AND b.`LEVEL` = 'station' LEFT JOIN privilege_company b ON a.WERKS = b.COMPANY_CODE and b.IS_DELETED = false AND b.`LEVEL` = 'station'
<where> <where>
<if test="parentCode != null and parentCode != ''"> <if test="parentCode != null and parentCode != ''">
AND b.ORG_CODE like concat(#{parentCode},'%') AND b.ORG_CODE like concat(#{parentCode},'%')
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
else 3 end as sort else 3 end as sort
FROM FROM
fdgl_job_main a fdgl_job_main a
INNER JOIN privilege_company b ON a.WERKS = b.COMPANY_CODE and b.IS_DELETED = false AND b.`LEVEL` = 'station' LEFT JOIN privilege_company b ON a.WERKS = b.COMPANY_CODE and b.IS_DELETED = false AND b.`LEVEL` = 'station'
left join sjgl_zsj_zsbtz c on a.EQUIP_DBID = c.DBID left join sjgl_zsj_zsbtz c on a.EQUIP_DBID = c.DBID
<where> <where>
<if test="parentCode != null and parentCode != ''"> <if test="parentCode != null and parentCode != ''">
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
count(1) count(1)
FROM FROM
fdgl_job_main a fdgl_job_main a
INNER JOIN privilege_company b ON a.WERKS = b.COMPANY_CODE and b.IS_DELETED = false AND b.`LEVEL` = 'station' LEFT JOIN privilege_company b ON a.WERKS = b.COMPANY_CODE and b.IS_DELETED = false AND b.`LEVEL` = 'station'
<where> <where>
<if test="parentCode != null and parentCode != ''"> <if test="parentCode != null and parentCode != ''">
AND b.ORG_CODE like concat(#{parentCode},'%') AND b.ORG_CODE like concat(#{parentCode},'%')
......
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