Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
738177bd
Commit
738177bd
authored
Jun 30, 2025
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化接收iot数据逻辑处理
parent
d2d857a9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
100 additions
and
31 deletions
+100
-31
IdxFeign.java
...src/main/java/com/yeejoin/equipmanage/fegin/IdxFeign.java
+1
-1
EquipmentSpecificIndexMapper.java
...join/equipmanage/mapper/EquipmentSpecificIndexMapper.java
+8
-0
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+40
-30
EquipmentSpecificIndexMapper.xml
...rc/main/resources/mapper/EquipmentSpecificIndexMapper.xml
+51
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/fegin/IdxFeign.java
View file @
738177bd
...
@@ -31,7 +31,7 @@ public interface IdxFeign {
...
@@ -31,7 +31,7 @@ public interface IdxFeign {
ResponseModel
<
JSONObject
>
queryDefectByBatchId
(
@PathVariable
(
value
=
"alarmLogId"
)
String
alarmLogId
);
ResponseModel
<
JSONObject
>
queryDefectByBatchId
(
@PathVariable
(
value
=
"alarmLogId"
)
String
alarmLogId
);
@RequestMapping
(
value
=
"/defect/check/list"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/defect/check/list"
,
method
=
RequestMethod
.
POST
)
JSONObject
queryDefectByCodes
(
@RequestBody
(
required
=
false
)
List
<
String
>
codes
,
@RequestParam
String
checkId
);
JSONObject
queryDefectByCodes
(
@RequestBody
(
required
=
false
)
List
<
String
>
codes
,
@RequestParam
(
"checkId"
)
String
checkId
);
@RequestMapping
(
value
=
"/qrcode/scrap/expired/put"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/qrcode/scrap/expired/put"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
JSONObject
>
handleEquipNotScrapWhenExpired
(
@RequestParam
(
"equipId"
)
String
equipId
,
ResponseModel
<
JSONObject
>
handleEquipNotScrapWhenExpired
(
@RequestParam
(
"equipId"
)
String
equipId
,
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificIndexMapper.java
View file @
738177bd
...
@@ -33,6 +33,14 @@ public interface EquipmentSpecificIndexMapper extends BaseMapper<EquipmentSpecif
...
@@ -33,6 +33,14 @@ public interface EquipmentSpecificIndexMapper extends BaseMapper<EquipmentSpecif
* @Date 2020/11/3 17:58
* @Date 2020/11/3 17:58
*/
*/
List
<
EquipmentSpecificIndex
>
getEquipmentSpeIndexBySpeIotCode
(
String
iotCode
);
List
<
EquipmentSpecificIndex
>
getEquipmentSpeIndexBySpeIotCode
(
String
iotCode
);
/**
*
* @param iotCode
* @param indexKey
* @return
*/
List
<
EquipmentSpecificIndex
>
getEquipmentSpeIndexBySpeIotCodeAndIndexKey
(
@Param
(
"iotCode"
)
String
iotCode
,
@Param
(
"indexKey"
)
String
indexKey
);
/**
/**
* <pre>
* <pre>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
738177bd
This diff is collapsed.
Click to expand it.
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificIndexMapper.xml
View file @
738177bd
...
@@ -81,6 +81,57 @@
...
@@ -81,6 +81,57 @@
wes.iot_code = #{iotCode}
wes.iot_code = #{iotCode}
and wei.is_iot = true
and wei.is_iot = true
</select>
</select>
<select
id=
"getEquipmentSpeIndexBySpeIotCodeAndIndexKey"
resultType=
"com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex"
>
SELECT wesi.id AS id,
wei.name_key AS nameKey,
wesi.value AS value,
wesi.equipment_specific_id AS equipmentSpecificId,
wesi.equipment_index_id AS equipmentIndexId,
wesi.equipment_index_name AS equipmentIndexName,
wesi.equipment_index_key AS equipmentIndexKey,
wesi.value_label AS valueLabel,
wei.type_code AS typeCode,
wei.type_name AS typeName,
wei.name AS indexName,
wei.unit AS indexUnitName,
wes.org_code AS orgCode,
wes.name AS equipmentSpecificName,
ed.equipment_name AS equipmentName,
wes.iot_code AS iotCode,
wes.code AS specificCode,
wei.`name` AS equipmentSpecificIndexName,
wei.`value_enum` AS valueEnum,
wei.is_trend AS isTrend,
wes.qr_code AS qrCode,
wesi.update_date AS updateDate,
ed.code AS equipmentCode,
ed.equipment_id AS equipmentId,
ed.id AS equipmentDetailId,
wes.code as equipmentSpecificCode,
wes.system_id as systemId,
wesi.is_alarm as isAlarm,
wesi.emergency_level_color as emergencyLevelColor,
wesi.emergency_level as emergencyLevel,
wesi.emergency_level_describe as emergencyLevelDescribe,
TRIM(CONCAT_WS(' ',wes.position,sd.description)) AS location,
sd.warehouse_structure_id AS buildId,
wes.biz_org_name AS bizOrgName,
wes.biz_org_code AS bizOrgCode,
wesi.alarm_rule AS alarmRule,
wesi.formula
FROM
wl_equipment_specific_index AS wesi
LEFT JOIN wl_equipment_specific AS wes
ON wes.id = wesi.equipment_specific_id
LEFT JOIN wl_equipment_detail ed ON ed.id = wes.equipment_detail_id
LEFT JOIN wl_equipment_index AS wei ON wei.id = wesi.equipment_index_id
LEFT JOIN wl_stock_detail sd ON sd.equipment_specific_id = wes.id
WHERE
wes.iot_code = #{iotCode}
AND wesi.equipment_index_key = #{indexKey}
</select>
<select
id=
"getEquipmentSpeIndexByIotCode"
<select
id=
"getEquipmentSpeIndexByIotCode"
resultType=
"com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex"
>
resultType=
"com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment