大屏定位信息代码提交

This commit is contained in:
liang.chao 2024-08-19 17:59:40 +08:00
parent 90210e0ac4
commit 8638358fa1
2 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,14 @@ public class IotMaCodeMachine {
* 机具编码 * 机具编码
*/ */
private String maCode; private String maCode;
/**
* 类型型号
*/
private String typeName;
/**
* 规格型号
*/
private String typeModelName;
/** /**
* 机具状态 * 机具状态
*/ */

View File

@ -888,6 +888,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="getIotMaCodeMachine" resultType="com.bonus.sgzb.largeScreen.domain.IotMaCodeMachine"> <select id="getIotMaCodeMachine" resultType="com.bonus.sgzb.largeScreen.domain.IotMaCodeMachine">
SELECT SELECT
im.iot_code as iotCode, im.iot_code as iotCode,
mt.type_name as typeModelName,
mt1.type_name as typeName,
bpl.lot_id as projectId, bpl.lot_id as projectId,
bpl.lot_name as projectName, bpl.lot_name as projectName,
sd.name as maStatus, sd.name as maStatus,
@ -898,6 +900,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
iot_machine im iot_machine im
LEFT JOIN iot_machine_bind imb ON imb.iot_id = im.id LEFT JOIN iot_machine_bind imb ON imb.iot_id = im.id
LEFT JOIN ma_machine mm ON imb.ma_code = mm.ma_code LEFT JOIN ma_machine mm ON imb.ma_code = mm.ma_code
left join ma_type mt on mm.type_id = mt.type_id
left join ma_type mt1 on mt1.type_id = mt.parent_id
LEFT JOIN sys_dic sd on mm.ma_status = sd.id LEFT JOIN sys_dic sd on mm.ma_status = sd.id
LEFT JOIN slt_agreement_info sai ON mm.type_id = sai.type_id LEFT JOIN slt_agreement_info sai ON mm.type_id = sai.type_id
AND mm.ma_id = sai.ma_id AND mm.ma_id = sai.ma_id