1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| <?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="purchaseReturnRecordServiceDaoImpl">
| <insert id="insertPurchaseReturnRecord" parameterType="Map">
| INSERT INTO purchase_return_record (
| id, return_no, return_date, return_quantity, return_person,
| approver, warehousing_order_no, order_id, create_time, update_time
| ) VALUES (
| #{id}, #{returnNo}, #{returnDate}, #{returnQuantity}, #{returnPerson},
| #{approver}, #{warehousingOrderNo}, #{orderId}, #{createTime}, #{updateTime}
| )
| </insert>
|
| <!-- 根据订单ID查询退库记录 -->
| <select id="listByOrderId" parameterType="Map" resultType="Map">
| SELECT
| id, return_no, return_date, return_quantity, return_person,
| approver, warehousing_order_no, order_id, create_time, update_time
| FROM purchase_return_record
| WHERE order_id = #{orderId}
| </select>
| </mapper>
|
|