修改接口逻辑
This commit is contained in:
@ -28,10 +28,11 @@
|
||||
<result property="replaceManufacturerName" column="replace_manufacturer_name" />
|
||||
<result property="deviceId" column="device_id" />
|
||||
<result property="status" column="status" />
|
||||
<result property="powersTime" column="powers_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDeviceReportInfoVo">
|
||||
select id, imei, iccid, mcu_id, bsp_type, lte_type, mcu_type, mcu_fw, lte_fw, lcd_manufacturer, voice_manufacturer, fram_model, replace_manufacturer, test_record, batch_number, serial_number, qr_code, name, lcd_manufacturer_name, voice_manufacturer_name, replace_manufacturer_name, device_id, status from iot_device_report_info
|
||||
select id, imei, iccid, mcu_id, bsp_type, lte_type, mcu_type, mcu_fw, lte_fw, lcd_manufacturer, voice_manufacturer, fram_model, replace_manufacturer, test_record, batch_number, serial_number, qr_code, name, lcd_manufacturer_name, voice_manufacturer_name, replace_manufacturer_name, device_id, status, powers_time from iot_device_report_info
|
||||
</sql>
|
||||
|
||||
<select id="selectDeviceReportInfoList" parameterType="DeviceReportInfo" resultMap="DeviceReportInfoResult">
|
||||
@ -59,6 +60,7 @@
|
||||
<if test="replaceManufacturerName != null and replaceManufacturerName != ''"> and replace_manufacturer_name like concat('%', #{replaceManufacturerName}, '%')</if>
|
||||
<if test="deviceId != null "> and device_id = #{deviceId}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="powersTime != null "> and powers_time = #{powersTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@ -92,6 +94,7 @@
|
||||
<if test="replaceManufacturerName != null">replace_manufacturer_name,</if>
|
||||
<if test="deviceId != null">device_id,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="powersTime != null">powers_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="imei != null and imei != ''">#{imei},</if>
|
||||
@ -116,6 +119,7 @@
|
||||
<if test="replaceManufacturerName != null">#{replaceManufacturerName},</if>
|
||||
<if test="deviceId != null">#{deviceId},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="powersTime != null">#{powersTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@ -144,6 +148,7 @@
|
||||
<if test="replaceManufacturerName != null">replace_manufacturer_name = #{replaceManufacturerName},</if>
|
||||
<if test="deviceId != null">device_id = #{deviceId},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="powersTime != null">powers_time = #{powersTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
Reference in New Issue
Block a user