34 lines
1.4 KiB
XML
34 lines
1.4 KiB
XML
|
|
<?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.gear.oa.mapper.GearStockLogMapper">
|
||
|
|
|
||
|
|
<resultMap type="com.gear.oa.domain.GearStockLog" id="GearStockLogResult">
|
||
|
|
<result property="id" column="id"/>
|
||
|
|
<result property="warehouseId" column="warehouse_id"/>
|
||
|
|
<result property="itemId" column="item_id"/>
|
||
|
|
<result property="itemType" column="item_type"/>
|
||
|
|
<result property="changeQty" column="change_qty"/>
|
||
|
|
<result property="afterQty" column="after_qty"/>
|
||
|
|
<result property="changeType" column="change_type"/>
|
||
|
|
<result property="changeTime" column="change_time"/>
|
||
|
|
<result property="batchNo" column="batch_no"/>
|
||
|
|
<result property="remark" column="remark"/>
|
||
|
|
<result property="createTime" column="create_time"/>
|
||
|
|
<result property="createBy" column="create_by"/>
|
||
|
|
<result property="updateTime" column="update_time"/>
|
||
|
|
<result property="updateBy" column="update_by"/>
|
||
|
|
<result property="delFlag" column="del_flag"/>
|
||
|
|
</resultMap>
|
||
|
|
|
||
|
|
<select id="selectVoPagePlus" resultType="com.gear.oa.domain.vo.GearStockLogVo">
|
||
|
|
select sl.*, w.warehouse_name
|
||
|
|
from gear_stock_log sl
|
||
|
|
left join gear_warehouse w on sl.warehouse_id = w.warehouse_id and w.del_flag = 0
|
||
|
|
${ew.customSqlSegment}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
|
||
|
|
</mapper>
|