fix(bonus-material): 新增字段 newTypeId 和 typeId,以区分新旧类型 ID

This commit is contained in:
syruan 2025-07-26 12:33:21 +08:00
parent 547968052c
commit bb90f2eda0
1 changed files with 2 additions and 1 deletions

View File

@ -461,7 +461,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
mt1.type_name AS maTypeName,
mt.type_name AS typeName,
mt.unit_name AS unitName,
lpd.new_type AS typeId,
lpd.new_type AS newTypeId,
lpd.type_id AS typeId,
IFNULL( lpd.num, 0 ) AS preNum,
IFNULL( lpd.num, 0 ) - IFNULL( SUM( lod.out_num ), 0 ) AS outNum,
IFNULL( SUM( lod.out_num ), 0 ) AS alNum,