feat(oa): 添加库存管理相关实体和接口
- 新增 GearStock、GearStockBo、GearStockIo、GearStockIoBo、GearStockIoDetail、GearStockIoDetailBo 等实体类 - 新增 GearStockController、GearStockIoController、GearStockIoDetailController 等控制器 - 新增 GearStockIoDetailMapper 及其 XML 文件 - 优化 GearAttendanceSummaryServiceImpl 中的代码格式
This commit is contained in:
33
gear-oa/src/main/resources/mapper/oa/GearStockLogMapper.xml
Normal file
33
gear-oa/src/main/resources/mapper/oa/GearStockLogMapper.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user