Commit de7feb91 authored by KeYong's avatar KeYong

Merge branch 'dev_upgrade' of 172.16.10.76:station/YeeAmosFireAutoSysRoot into CSFAS_V3.0.1.5

parents c21a77b1 ecf226d7
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<parent> <parent>
<groupId>com.yeejoin.amos</groupId> <groupId>com.yeejoin.amos</groupId>
<artifactId>YeeAmosFireAutoSysRoot</artifactId> <artifactId>YeeAmosFireAutoSysRoot</artifactId>
<version>3.0.1.5</version> <version>3.0.1.7</version>
</parent> </parent>
<!-- <dependencies> <!-- <dependencies>
......
...@@ -14,14 +14,14 @@ ...@@ -14,14 +14,14 @@
<parent> <parent>
<groupId>com.yeejoin.amos</groupId> <groupId>com.yeejoin.amos</groupId>
<artifactId>YeeAmosFireAutoSysRoot</artifactId> <artifactId>YeeAmosFireAutoSysRoot</artifactId>
<version>3.0.1.5</version> <version>3.0.1.7</version>
</parent> </parent>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.yeejoin.amos</groupId> <groupId>com.yeejoin.amos</groupId>
<artifactId>YeeAmosFireAutoSysCommon</artifactId> <artifactId>YeeAmosFireAutoSysCommon</artifactId>
<version>3.0.1.5</version> <version>3.0.1.7</version>
</dependency> </dependency>
<dependency> <dependency>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<parent> <parent>
<groupId>com.yeejoin.amos</groupId> <groupId>com.yeejoin.amos</groupId>
<artifactId>YeeAmosFireAutoSysRoot</artifactId> <artifactId>YeeAmosFireAutoSysRoot</artifactId>
<version>3.0.1.5</version> <version>3.0.1.7</version>
</parent> </parent>
<dependencies> <dependencies>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<dependency> <dependency>
<groupId>com.yeejoin.amos</groupId> <groupId>com.yeejoin.amos</groupId>
<artifactId>YeeAmosFireAutoSysService</artifactId> <artifactId>YeeAmosFireAutoSysService</artifactId>
<version>3.0.1.5</version> <version>3.0.1.7</version>
</dependency> </dependency>
</dependencies> </dependencies>
......
...@@ -166,25 +166,37 @@ ...@@ -166,25 +166,37 @@
</if> </if>
</select> </select>
<select id="getAssoEquips" resultType="com.yeejoin.amos.fas.business.vo.AssoEquipsVo"> <select id="getAssoEquips" resultType="com.yeejoin.amos.fas.business.vo.AssoEquipsVo">
select DISTINCT SELECT
sto.id as equipmentId, sto.id AS equipmentId,
spe.code as equipmentCode, spe.code AS equipmentCode,
det.name as equipmentName , det.name AS equipmentName,
fqe.name as importantEquipName , fqe.name AS importantEquipName,
group_concat( concat( speind.equipment_index_name, '##', poin.state ) ) AS equipmentPointNames, GROUP_CONCAT( speind.equipment_index_name, '##', poin.state ) AS equipmentPointNames,
poin.important_equipment_id as importantEquipId, poin.important_equipment_id AS importantEquipId,
fmea_id as fmeaId fmea_id AS fmeaId
from FROM
f_fmea_equipment_point as poin f_fmea_equipment_point poin
left join f_equipment as fqe on poin.important_equipment_id = fqe.id LEFT JOIN f_equipment AS fqe ON poin.important_equipment_id = fqe.id
left join wl_equipment_specific_index as speind on poin.equipment_point_id = speind.id LEFT JOIN wl_equipment_specific_index AS speind ON poin.equipment_point_id = speind.id
left join wl_equipment_specific as spe on speind.equipment_specific_id = spe.id LEFT JOIN wl_equipment_specific AS spe ON speind.equipment_specific_id = spe.id
left join wl_stock_detail as sto on sto.qr_code = spe.qr_code LEFT JOIN wl_stock_detail AS sto ON sto.qr_code = spe.qr_code
left join wl_equipment_detail as det on spe.equipment_detail_id = det.id LEFT JOIN wl_equipment_detail AS det ON spe.equipment_detail_id = det.id
left join wl_equipment as equip on det.equipment_id = equip.id LEFT JOIN wl_equipment_index ei ON ei.id = speind.equipment_index_id
<where>
ei.type_code = 'BREAKDOWN'
<if test="fmeaId != null "> <if test="fmeaId != null ">
where fmea_id = #{fmeaId} AND fmea_id = #{fmeaId}
</if>
<if test="indexIds.size > 0">
AND ei.id IN
<foreach collection="indexIds" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</if> </if>
</where>
GROUP BY
poin.important_equipment_id,
fmeaId
limit #{pageNumber},#{pageSize} limit #{pageNumber},#{pageSize}
</select> </select>
......
...@@ -327,9 +327,9 @@ ...@@ -327,9 +327,9 @@
FROM ( FROM (
SELECT @s :=@s + 1 as `index`, DATE(DATE_SUB(CURRENT_DATE, INTERVAL @s DAY)) AS date SELECT @s :=@s + 1 as `index`, DATE(DATE_SUB(CURRENT_DATE, INTERVAL @s DAY)) AS date
FROM mysql.help_topic,(SELECT @s := 0) temp FROM mysql.help_topic,(SELECT @s := 0) temp
WHERE @s < 7
) temp1 ) temp1
left join f_safety_index_change_log S on s.collect_date = temp1.date AND (S.org_code = #{orgCode} OR S.org_code like CONCAT(#{orgCode},'-%')) left join f_safety_index_change_log S on S.collect_date = temp1.date
where temp1.index < 8
ORDER BY temp1.date ORDER BY temp1.date
]]> ]]>
</select> </select>
...@@ -1360,7 +1360,7 @@ ...@@ -1360,7 +1360,7 @@
left join wl_stock_detail as sto on sto.qr_code = spe.qr_code left join wl_stock_detail as sto on sto.qr_code = spe.qr_code
left join wl_warehouse_structure as str on sto.warehouse_structure_id = str.source_id left join wl_warehouse_structure as str on sto.warehouse_structure_id = str.source_id
left join f_risk_source as risk on str.source_id = risk.source_id left join f_risk_source as risk on str.source_id = risk.source_id
where substr(cat.code ,1,4) = 8501 and risk.source_id is not null where substr(cat.code ,1,4) = '9204' and risk.source_id is not null
<if test="protectObjName != null and protectObjName != ''"> <if test="protectObjName != null and protectObjName != ''">
AND f.name = #{protectObjName} AND f.name = #{protectObjName}
</if> </if>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.yeejoin.amos</groupId> <groupId>com.yeejoin.amos</groupId>
<artifactId>YeeAmosFireAutoSysRoot</artifactId> <artifactId>YeeAmosFireAutoSysRoot</artifactId>
<version>3.0.1.5</version> <version>3.0.1.7</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>YeeAmosFireAutoSysRoot</name> <name>YeeAmosFireAutoSysRoot</name>
......
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