screen-manage
根据型号id获取因子添加code字段
| | |
| | | vo.setUpper(sensor.getUpper()); |
| | | vo.setLower(sensor.getLower()); |
| | | vo.setUnitKey(sensor.getUnitKey()); |
| | | vo.setCode(sensor.getCode()); |
| | | return vo; |
| | | } |
| | | } |
| | |
| | | <id property="id" column="sid"></id> |
| | | <result property="name" column="sname"></result> |
| | | <result property="unitKey" column="dataKey"></result> |
| | | <result property="code" column="code"></result> |
| | | <result property="unit" column="dataValue"></result> |
| | | <result property="upper" column="vupper"></result> |
| | | <result property="lower" column="vlower"></result> |
| | |
| | | |
| | | <select id="queryVersionsAndSensorUnitByIds" resultMap="VersionSensorUnitMap"> |
| | | SELECT |
| | | v.`id`,v.`name`,v.`desc`,v.`create_time`,v.`update_time`,s.`id` AS sid,s.`name` AS sname ,u.dataKey,u.dataValue,vsu.`upper` AS vupper ,vsu.`lower` AS vlower |
| | | v.`id`,v.`name`,v.`desc`,v.`create_time`,v.`update_time`,s.`id` AS sid,s.`name` AS sname ,s.`code`,u.dataKey,u.dataValue,vsu.`upper` AS vupper ,vsu.`lower` AS vlower |
| | | FROM |
| | | `version` v |
| | | LEFT JOIN |