租赁单价从类型树中获取

This commit is contained in:
liang.chao 2024-12-03 15:01:05 +08:00
parent f35e16dd70
commit 3d62104bc7
3 changed files with 6 additions and 3 deletions

View File

@ -38,6 +38,9 @@ public class TreeNode {
/** 原值 */ /** 原值 */
@ApiModelProperty(value = "原值") @ApiModelProperty(value = "原值")
private BigDecimal buyPrice; private BigDecimal buyPrice;
/** 租赁单价 */
@ApiModelProperty(value = "租赁单价")
private BigDecimal leasePrice;
/** 实时库存 */ /** 实时库存 */
@ApiModelProperty(value = "实时库存") @ApiModelProperty(value = "实时库存")

View File

@ -72,7 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<select id="getMaTypeInfoList" resultType="com.bonus.common.biz.domain.TreeNode"> <select id="getMaTypeInfoList" resultType="com.bonus.common.biz.domain.TreeNode">
select type_id as id, parent_id as parentId, type_name as name, `level` as level, manage_type as manageType, select type_id as id, parent_id as parentId, type_name as name, `level` as level, manage_type as manageType,lease_price as leasePrice,
unit_name as unitName unit_name as unitName
from ma_type from ma_type
where del_flag = '0' where del_flag = '0'

View File

@ -161,7 +161,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join ma_type mt ON mdi.type_id = mt.type_id left join ma_type mt ON mdi.type_id = mt.type_id
AND bfi.file_type = 0 AND bfi.file_type = 0
WHERE WHERE
hh.id = #{id} limit 1 hh.id = #{id} and bfi.task_type = 17 limit 1
</select> </select>
<select id="getOrderDetailsById" resultType="com.bonus.material.order.domain.OrderInfoDto"> <select id="getOrderDetailsById" resultType="com.bonus.material.order.domain.OrderInfoDto">
SELECT SELECT
@ -230,7 +230,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN ma_type mt ON mdi.type_id = mt.type_id LEFT JOIN ma_type mt ON mdi.type_id = mt.type_id
AND bfi.file_type = 0 AND bfi.file_type = 0
WHERE WHERE
moi.order_id = #{orderId} moi.order_id = #{orderId} and bfi.task_type = 17
GROUP BY hh.ma_id GROUP BY hh.ma_id
</select> </select>
</mapper> </mapper>