This commit is contained in:
linfso 2025-02-23 21:32:38 +08:00
parent 65f2a550a2
commit 9878b4f1d4
3 changed files with 24 additions and 1 deletions

View File

@ -37,6 +37,11 @@ public interface EmisTmsCostFeeSplitMapper extends BaseMapper<EmisTmsCostFeeSpli
public List<EmisTmsCostFeeSplit> selectEmisTmsCostFeeSplitList(EmisTmsCostFeeSplit emisTmsCostFeeSplit); public List<EmisTmsCostFeeSplit> selectEmisTmsCostFeeSplitList(EmisTmsCostFeeSplit emisTmsCostFeeSplit);
public List<EmisTmsCostFeeSplit> selectListByBillCode(String billCode);
public List<EmisTmsCostFeeSplit> selectListByCostNo(String costNo);
/** /**
* 检查是否重复 * 检查是否重复
* *

View File

@ -11,6 +11,8 @@
package com.xdadan.erp.emis.service.impl; package com.xdadan.erp.emis.service.impl;
import java.util.List; import java.util.List;
import com.xdadan.erp.emis.mapper.EmisTmsCostFeeSplitMapper;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.xdadan.erp.emis.domain.EmisTmsCostProfit; import com.xdadan.erp.emis.domain.EmisTmsCostProfit;
@ -29,6 +31,9 @@ public class EmisTmsCostProfitServiceImpl implements IEmisTmsCostProfitService
@Autowired @Autowired
private EmisTmsCostProfitMapper emisTmsCostProfitMapper; private EmisTmsCostProfitMapper emisTmsCostProfitMapper;
@Autowired
private EmisTmsCostFeeSplitMapper emisTmsCostFeeSplitMapper;
/** /**
* 查询运输运单利润统计表 * 查询运输运单利润统计表
* *
@ -39,7 +44,8 @@ public class EmisTmsCostProfitServiceImpl implements IEmisTmsCostProfitService
public EmisTmsCostProfit selectEmisTmsCostProfitById(Long id) public EmisTmsCostProfit selectEmisTmsCostProfitById(Long id)
{ {
EmisTmsCostProfit costProfit=emisTmsCostProfitMapper.selectEmisTmsCostProfitById(id); EmisTmsCostProfit costProfit=emisTmsCostProfitMapper.selectEmisTmsCostProfitById(id);
// costProfit.setCostFeeSplitList(); // 获取费用列表
costProfit.setCostFeeSplitList(emisTmsCostFeeSplitMapper.selectListByBillCode(costProfit.getBillCode()));
return costProfit; return costProfit;
} }

View File

@ -35,6 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select id, cost_no, fee_item_id, bill_code, fee_type, split_type, cost_fee, total_volume, bill_weight, calc_remark, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_tms_cost_fee_split select id, cost_no, fee_item_id, bill_code, fee_type, split_type, cost_fee, total_volume, bill_weight, calc_remark, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_tms_cost_fee_split
</sql> </sql>
<select id="selectEmisTmsCostFeeSplitList" parameterType="EmisTmsCostFeeSplit" resultMap="EmisTmsCostFeeSplitResult"> <select id="selectEmisTmsCostFeeSplitList" parameterType="EmisTmsCostFeeSplit" resultMap="EmisTmsCostFeeSplitResult">
<include refid="selectEmisTmsCostFeeSplitVo"/> <include refid="selectEmisTmsCostFeeSplitVo"/>
<where> <where>
@ -85,6 +86,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
limit 1 limit 1
</select> </select>
<select id="selectListByBillCode" parameterType="String" resultMap="EmisTmsCostFeeSplitResult">
select id, cost_no, fee_item_id, bill_code, fee_type, split_type, cost_fee, total_volume, bill_weight, calc_remark, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
from emis_tms_cost_fee_split a
where a.del_flag='0' and a.bill_code = #{billCode}
</select>
<select id="selectListByCostNo" parameterType="String" resultMap="EmisTmsCostFeeSplitResult">
select id, cost_no, fee_item_id, bill_code, fee_type, split_type, cost_fee, total_volume, bill_weight, calc_remark, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
from emis_tms_cost_fee_split a
where a.del_flag='0' and a.cost_no = #{costNo}
</select>
<select id="selectEmisTmsCostFeeSplitById" parameterType="Long" resultMap="EmisTmsCostFeeSplitResult"> <select id="selectEmisTmsCostFeeSplitById" parameterType="Long" resultMap="EmisTmsCostFeeSplitResult">
select id, cost_no, fee_item_id, bill_code, fee_type, split_type, cost_fee, total_volume, bill_weight, calc_remark, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site select id, cost_no, fee_item_id, bill_code, fee_type, split_type, cost_fee, total_volume, bill_weight, calc_remark, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site