| | |
| | | <!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> |
| | | <!-- 通用查询映射结果 --> |
| | | <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"> |
| | |
| | | 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> |