| | |
| | | <mapper namespace="com.sandu.ximon.dao.mapper.MonitorMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.sandu.ximon.dao.domain.Monitor"> |
| | | <id property="id" column="id" jdbcType="BIGINT"/> |
| | | <result property="userId" column="user_id" jdbcType="VARCHAR"/> |
| | | <result property="serialNumber" column="serial_number" jdbcType="VARCHAR"/> |
| | | <result property="belongTo" column="belong_to" jdbcType="VARCHAR"/> |
| | | <result property="address" column="address" jdbcType="VARCHAR"/> |
| | | <result property="equipmentState" column="equipment_state" jdbcType="INTEGER"/> |
| | | <result property="workState" column="work_state" jdbcType="INTEGER"/> |
| | | <result property="bindingState" column="binding_state" jdbcType="INTEGER"/> |
| | | <result property="note" column="note" jdbcType="VARCHAR"/> |
| | | <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> |
| | | <id property="id" column="id" jdbcType="BIGINT"/> |
| | | <result property="deviceSerial" column="device_serial" jdbcType="VARCHAR"/> |
| | | <result property="devicesCode" column="devices_code" jdbcType="VARCHAR"/> |
| | | <result property="deviceName" column="device_name" jdbcType="VARCHAR"/> |
| | | <result property="deviceType" column="device_type" jdbcType="VARCHAR"/> |
| | | <result property="equipmentStatus" column="equipment_status" jdbcType="INTEGER"/> |
| | | <result property="isEncrypt" column="is_encrypt" jdbcType="INTEGER"/> |
| | | <result property="workState" column="work_state" jdbcType="INTEGER"/> |
| | | <result property="bindingState" column="binding_state" jdbcType="INTEGER"/> |
| | | <result property="note" column="note" jdbcType="VARCHAR"/> |
| | | <result property="addTime" column="add_time" jdbcType="TIMESTAMP"/> |
| | | <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> |
| | | <result property="netAddress" column="net_address" jdbcType="VARCHAR"/> |
| | | </resultMap> |
| | | <select id="listMonitorByKeyword" resultType="com.sandu.ximon.dao.domain.Monitor"> |
| | | SELECT * FROM (SELECT * FROM (SELECT * FROM monitor AS table1 |
| | |
| | | WHERE binding_state = #{bindingState1} OR binding_state = #{bindingState2}; |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
| | | </mapper> |