|
@@ -13,14 +13,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="deviceType" column="device_type" />
|
|
<result property="deviceType" column="device_type" />
|
|
<result property="deviceSerialNum" column="device_serial_num" />
|
|
<result property="deviceSerialNum" column="device_serial_num" />
|
|
<result property="gunNo" column="gun_no" />
|
|
<result property="gunNo" column="gun_no" />
|
|
- <result property="deviceStatus" column="device_status" />
|
|
|
|
<result property="deviceFactory" column="device_factory" />
|
|
<result property="deviceFactory" column="device_factory" />
|
|
<result property="posFanoutExchange" column="pos_fanout_exchange" />
|
|
<result property="posFanoutExchange" column="pos_fanout_exchange" />
|
|
<result property="posQueue" column="pos_queue" />
|
|
<result property="posQueue" column="pos_queue" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectStationDeviceManageVo">
|
|
<sql id="selectStationDeviceManageVo">
|
|
- select device_id, device_no, device_name, station_id, station_name, device_type, device_serial_num, gun_no,pos_fanout_exchange, pos_queue,device_status, device_factory from station_device_manage
|
|
|
|
|
|
+ select device_id, device_no, device_name, station_id, station_name, device_type, device_serial_num, gun_no,
|
|
|
|
+ pos_fanout_exchange, pos_queue, device_factory
|
|
|
|
+ from station_device_manage m join sys_dept d on m.
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectStationDeviceManageList" parameterType="StationDeviceManage" resultMap="StationDeviceManageResult">
|
|
<select id="selectStationDeviceManageList" parameterType="StationDeviceManage" resultMap="StationDeviceManageResult">
|
|
@@ -33,7 +34,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="deviceType != null and deviceType != ''"> and device_type = #{deviceType}</if>
|
|
<if test="deviceType != null and deviceType != ''"> and device_type = #{deviceType}</if>
|
|
<if test="deviceSerialNum != null and deviceSerialNum != ''"> and device_serial_num = #{deviceSerialNum}</if>
|
|
<if test="deviceSerialNum != null and deviceSerialNum != ''"> and device_serial_num = #{deviceSerialNum}</if>
|
|
<if test="gunNo != null and gunNo != ''"> and gun_no = #{gunNo}</if>
|
|
<if test="gunNo != null and gunNo != ''"> and gun_no = #{gunNo}</if>
|
|
- <if test="deviceStatus != null and deviceStatus != ''"> and device_status = #{deviceStatus}</if>
|
|
|
|
<if test="deviceFactory != null and deviceFactory != ''"> and device_factory = #{deviceFactory}</if>
|
|
<if test="deviceFactory != null and deviceFactory != ''"> and device_factory = #{deviceFactory}</if>
|
|
<if test="posFanoutExchange != null and posFanoutExchange != ''"> and pos_fanout_exchange = #{posFanoutExchange}</if>
|
|
<if test="posFanoutExchange != null and posFanoutExchange != ''"> and pos_fanout_exchange = #{posFanoutExchange}</if>
|
|
<if test="posQueue != null and posQueue != ''"> and pos_queue = #{posQueue}</if>
|
|
<if test="posQueue != null and posQueue != ''"> and pos_queue = #{posQueue}</if>
|
|
@@ -59,11 +59,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="deviceNo != null">device_no,</if>
|
|
<if test="deviceNo != null">device_no,</if>
|
|
<if test="deviceName != null">device_name,</if>
|
|
<if test="deviceName != null">device_name,</if>
|
|
<if test="stationId != null">station_id,</if>
|
|
<if test="stationId != null">station_id,</if>
|
|
- <if test="stationName != null">station_name,</if>
|
|
|
|
<if test="deviceType != null">device_type,</if>
|
|
<if test="deviceType != null">device_type,</if>
|
|
<if test="deviceSerialNum != null">device_serial_num,</if>
|
|
<if test="deviceSerialNum != null">device_serial_num,</if>
|
|
<if test="gunNo != null">gun_no,</if>
|
|
<if test="gunNo != null">gun_no,</if>
|
|
- <if test="deviceStatus != null">device_status,</if>
|
|
|
|
<if test="deviceFactory != null">device_factory,</if>
|
|
<if test="deviceFactory != null">device_factory,</if>
|
|
<if test="posFanoutExchange != null">pos_fanout_exchange,</if>
|
|
<if test="posFanoutExchange != null">pos_fanout_exchange,</if>
|
|
<if test="posQueue != null">pos_queue,</if>
|
|
<if test="posQueue != null">pos_queue,</if>
|
|
@@ -72,11 +70,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="deviceNo != null">#{deviceNo},</if>
|
|
<if test="deviceNo != null">#{deviceNo},</if>
|
|
<if test="deviceName != null">#{deviceName},</if>
|
|
<if test="deviceName != null">#{deviceName},</if>
|
|
<if test="stationId != null">#{stationId},</if>
|
|
<if test="stationId != null">#{stationId},</if>
|
|
- <if test="stationName != null">#{stationName},</if>
|
|
|
|
<if test="deviceType != null">#{deviceType},</if>
|
|
<if test="deviceType != null">#{deviceType},</if>
|
|
<if test="deviceSerialNum != null">#{deviceSerialNum},</if>
|
|
<if test="deviceSerialNum != null">#{deviceSerialNum},</if>
|
|
<if test="gunNo != null">#{gunNo},</if>
|
|
<if test="gunNo != null">#{gunNo},</if>
|
|
- <if test="deviceStatus != null">#{deviceStatus},</if>
|
|
|
|
<if test="deviceFactory != null">#{deviceFactory},</if>
|
|
<if test="deviceFactory != null">#{deviceFactory},</if>
|
|
<if test="posFanoutExchange != null">#{posFanoutExchange},</if>
|
|
<if test="posFanoutExchange != null">#{posFanoutExchange},</if>
|
|
<if test="posQueue != null">#{posQueue},</if>
|
|
<if test="posQueue != null">#{posQueue},</if>
|
|
@@ -89,11 +85,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="deviceNo != null">device_no = #{deviceNo},</if>
|
|
<if test="deviceNo != null">device_no = #{deviceNo},</if>
|
|
<if test="deviceName != null">device_name = #{deviceName},</if>
|
|
<if test="deviceName != null">device_name = #{deviceName},</if>
|
|
<if test="stationId != null">station_id = #{stationId},</if>
|
|
<if test="stationId != null">station_id = #{stationId},</if>
|
|
- <if test="stationName != null">station_name = #{stationName},</if>
|
|
|
|
<if test="deviceType != null">device_type = #{deviceType},</if>
|
|
<if test="deviceType != null">device_type = #{deviceType},</if>
|
|
<if test="deviceSerialNum != null">device_serial_num = #{deviceSerialNum},</if>
|
|
<if test="deviceSerialNum != null">device_serial_num = #{deviceSerialNum},</if>
|
|
<if test="gunNo != null">gun_no = #{gunNo},</if>
|
|
<if test="gunNo != null">gun_no = #{gunNo},</if>
|
|
- <if test="deviceStatus != null">device_status = #{deviceStatus},</if>
|
|
|
|
<if test="deviceFactory != null">device_factory = #{deviceFactory},</if>
|
|
<if test="deviceFactory != null">device_factory = #{deviceFactory},</if>
|
|
<if test="posFanoutExchange != null">pos_fanout_exchange= #{posFanoutExchange},</if>
|
|
<if test="posFanoutExchange != null">pos_fanout_exchange= #{posFanoutExchange},</if>
|
|
<if test="posQueue != null">pos_queue=#{posQueue},</if>
|
|
<if test="posQueue != null">pos_queue=#{posQueue},</if>
|