cnas-server/src/main/resources/mapper/DeviceMapper.xml
@@ -60,17 +60,13 @@ </select> <select id="authorizedPerson" resultType="com.yuanchu.mom.pojo.Device"> select id, authorized_person, status authorized_person from device </select> <select id="search" resultType="com.yuanchu.mom.pojo.Device"> select * from device <where> <if test="status!=null"> and status = #{status} </if> <if test="deviceName!=null and deviceName!=''"> and device_name like concat('%',#{deviceName},'%') </if>