refactor(gear-mat): 重构配料价格历史模块命名

- 将 MatMatPriceHistory 重命名为 MatPriceHistory
- 将 MatMatPriceHistoryBo 重命名为 MatPriceHistoryBo
- 将 MatMatPriceHistoryVo 重命名为 MatPriceHistoryVo
- 将 IMatMatPriceHistoryService 重命名为 IMatPriceHistoryService
- 将 MatMatPriceHistoryController 重命名为 MatPriceHistoryController
- 将 MatMatPriceHistoryMapper 重命名为 MatPriceHistoryMapper
- 更新所有相关的导入包路径和类引用
- 移除不必要的导入和字段声明
- 简化代码结构并优化查询方法实现
This commit is contained in:
2026-01-30 15:53:20 +08:00
parent 4a94600825
commit 9f2cca7ddd
8 changed files with 60 additions and 75 deletions

View File

@@ -0,0 +1,44 @@
<?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.mat.mapper.MatPriceHistoryMapper">
<resultMap type="com.gear.mat.domain.MatPriceHistory" id="MatMatPriceHistoryResult">
<result property="historyId" column="history_id"/>
<result property="materialId" column="material_id"/>
<result property="price" column="price"/>
<result property="avgPrice" column="avg_price"/>
<result property="quantity" column="quantity"/>
<result property="delFlag" column="del_flag"/>
<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="remark" column="remark"/>
</resultMap>
<select id="selectVoPagePlus" resultType="com.gear.mat.domain.vo.MatPriceHistoryVo">
SELECT
t.history_id AS historyId,
t.material_id AS materialId,
t.price AS price,
t.avg_price AS avgPrice,
t.quantity AS quantity,
t.create_time AS createTime,
t.create_by AS createBy,
t.update_time AS updateTime,
t.update_by AS updateBy,
t.remark AS remark,
mm.material_name AS materialName,
mm.spec AS spec,
mm.model AS model,
mm.factory AS factory,
mm.unit AS unit,
mm.current_stock AS currentStock
FROM mat_mat_price_history t
LEFT JOIN mat_material mm ON t.material_id = mm.material_id AND mm.del_flag = 0
${ew.customSqlSegment}
</select>
</mapper>