feat[订单支付回调模块,排队模块]:订单查询素材列表,设备执行自动触发等
This commit is contained in:
@@ -6,6 +6,11 @@
|
||||
select * from order_files t
|
||||
</select>
|
||||
|
||||
<!-- 动态获取参数采用备参 -->
|
||||
<select id="findListByUser" resultType="com.central.order.model.OrderFile">
|
||||
select * from order_files t WHERE t.user_id = #{param2.userId}
|
||||
</select>
|
||||
|
||||
<insert id="insertOrderFile">
|
||||
INSERT INTO order_files (user_id, order_no, file_id,tourism_id,file_path)
|
||||
VALUES (#{userId}, #{order_no}, #{file_id}, #{tourism_id}, #{file_path})
|
||||
@@ -16,7 +21,7 @@
|
||||
</select>
|
||||
|
||||
<select id="getFileByFileId" resultType="com.central.order.model.OrderFile">
|
||||
SELECT * FROM order_files WHERE id = #{fileId}
|
||||
SELECT * FROM order_files WHERE file_id = #{fileId}
|
||||
</select>
|
||||
|
||||
<select id="getOrderFilesByUserId" resultType="com.central.order.model.OrderFile">
|
||||
|
||||
@@ -6,6 +6,11 @@
|
||||
select * from orders t
|
||||
</select>
|
||||
|
||||
<!-- 动态获取参数采用备参 -->
|
||||
<select id="findListByUser" resultType="com.central.order.model.Order">
|
||||
select id,order_no,tourism_id,device_sn,workspace_id,code_id,user_id,order_amount,order_status,create_time,update_time from orders t WHERE t.user_id = #{param2.userId}
|
||||
</select>
|
||||
|
||||
<!-- 根据订单状态查询订单列表 -->
|
||||
<select id="getOrdersByStatus" resultMap="OrderResultMap">
|
||||
SELECT * FROM orders WHERE order_status = #{status}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.central.order.mapper.QrCodeMapper">
|
||||
|
||||
<select id="findList" resultType="com.central.order.model.QrCode">
|
||||
select * from qrcodes t
|
||||
</select>
|
||||
|
||||
<resultMap id="QrCodeResultMap" type="com.central.order.model.QrCode">
|
||||
</resultMap>
|
||||
<select id="getByCodeId" resultMap="QrCodeResultMap">
|
||||
SELECT * FROM qrcodes WHERE code_id = #{codeId}
|
||||
</select>
|
||||
|
||||
<insert id="insertQrCode">
|
||||
INSERT INTO qrcodes (code_id, tourism_id, device_sn)
|
||||
VALUES (#{codeId}, #{tourismId}, #{deviceSn})
|
||||
</insert>
|
||||
</mapper>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.central.order.mapper.TourismMapper">
|
||||
|
||||
<select id="findList" resultType="com.central.order.model.Tourism">
|
||||
select * from tourisms t
|
||||
</select>
|
||||
|
||||
<resultMap id="TourismResultMap" type="com.central.order.model.Tourism">
|
||||
</resultMap>
|
||||
<select id="getTourismById" resultMap="TourismResultMap">
|
||||
SELECT * FROM tourisms WHERE id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertTourism">
|
||||
INSERT INTO tourisms (tourism_no, tourism_name, tourism_address,tourism_phone)
|
||||
VALUES (#{tourismNo}, #{tourismName}, #{tourismAddress},#{tourismPhone})
|
||||
</insert>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user