|  |  |  | 
|---|
|  |  |  | <result column="is_delete" property="isDelete"/> | 
|---|
|  |  |  | <result column="extend" property="extend"/> | 
|---|
|  |  |  | <result column="town_code" property="townCode"/> | 
|---|
|  |  |  | <result column="dev_num" property="devNum"/> | 
|---|
|  |  |  | </resultMap> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <resultMap id="resultMap" type="com.moral.api.pojo.vo.device.DeviceVO" extends="BaseResultMap"> | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!--乡镇街道--> | 
|---|
|  |  |  | <association property="town" javaType="java.util.HashMap"> | 
|---|
|  |  |  | <result column="town_code" property="areaCode"/> | 
|---|
|  |  |  | <result column="town_name" property="name"/> | 
|---|
|  |  |  | <result column="town_code" property="townCode"/> | 
|---|
|  |  |  | <result column="town_name" property="townName"/> | 
|---|
|  |  |  | </association> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!--设备维护人--> | 
|---|
|  |  |  | 
|---|
|  |  |  | on | 
|---|
|  |  |  | d.`device_version_id` = oua.`version_id`   and d.`organization_id` = oua.`organization_id` and oua.`is_delete` = 0 | 
|---|
|  |  |  | where | 
|---|
|  |  |  | d.`is_delete` = 0; | 
|---|
|  |  |  | d.`is_delete` = 0 | 
|---|
|  |  |  | <if test="mac != null and mac != '' "> | 
|---|
|  |  |  | and d.mac = #{mac} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|