chenhj
2 天以前 9dcd90dc8e329900e6058ac0a3aa44a9e7e04599
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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.ruoyi.business.mapper.PendingInventoryMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ruoyi.business.entity.PendingInventory">
        <id column="id" property="id"/>
        <result column="deleted" property="deleted"/>
        <result column="create_by" property="createBy"/>
        <result column="create_time" property="createTime"/>
        <result column="update_by" property="updateBy"/>
        <result column="update_time" property="updateTime"/>
        <result column="supplier_name" property="supplierName"/>
        <result column="coal" property="coal"/>
        <result column="unit" property="unit"/>
        <result column="inventory_quantity" property="inventoryQuantity"/>
        <result column="price_including_tax" property="priceIncludingTax"/>
        <result column="total_price_including_tax" property="totalPriceIncludingTax"/>
        <result column="registrant_id" property="registrantId"/>
        <result column="registration_date" property="registrationDate"/>
    </resultMap>
 
        <!-- 通用查询结果列 -->
        <sql id="Base_Column_List">
                deleted,
                create_by,
                create_time,
                update_by,
                update_time,
            id, supplier_name, coal, unit, inventory_quantity, price_including_tax, total_price_including_tax, registrant, registration_time
        </sql>
 
    <select id="getPendingInventoryForUpdateById" resultType="com.ruoyi.business.entity.PendingInventory">
        select *
        from pending_inventory
        where id = #{id} for update
    </select>
 
</mapper>