|  |  |  | 
|---|
|  |  |  | <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"> | 
|---|
|  |  |  | 
|---|
|  |  |  | 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> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|