fix(优惠券中心):携程全链路调试完成,调试对接逻辑优化,新增设备一键起飞的指令接口,二维码新增类型字段来区分二维码中航线的的用途等逻辑

This commit is contained in:
2025-08-24 11:32:07 +08:00
parent 4b850d35ea
commit 6d9d9f2124
17 changed files with 386 additions and 39 deletions
@@ -30,6 +30,9 @@
<if test="p.deviceSn != null and p.deviceSn != ''">
AND q.device_sn = #{p.deviceSn}
</if>
<if test="p.qrcodeType != null">
AND q.qrcode_type = #{p.qrcodeType}
</if>
</where>
ORDER BY q.create_time DESC
</select>
@@ -44,4 +47,13 @@
INSERT INTO qrcodes (code_id, tourism_id, device_sn)
VALUES (#{codeId}, #{tourismId}, #{deviceSn})
</insert>
<select id="getByDeviceIdAndType" resultMap="QrCodeResultMap">
SELECT * FROM qrcodes
WHERE device_sn = #{deviceId}
AND qrcode_type = #{qrcodeType}
AND is_del = 0
ORDER BY create_time DESC
LIMIT 1
</select>
</mapper>