md
This commit is contained in:
parent
65f2a550a2
commit
9878b4f1d4
@ -37,6 +37,11 @@ public interface EmisTmsCostFeeSplitMapper extends BaseMapper<EmisTmsCostFeeSpli
|
||||
public List<EmisTmsCostFeeSplit> selectEmisTmsCostFeeSplitList(EmisTmsCostFeeSplit emisTmsCostFeeSplit);
|
||||
|
||||
|
||||
public List<EmisTmsCostFeeSplit> selectListByBillCode(String billCode);
|
||||
|
||||
public List<EmisTmsCostFeeSplit> selectListByCostNo(String costNo);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
|
||||
@ -11,6 +11,8 @@
|
||||
package com.xdadan.erp.emis.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xdadan.erp.emis.mapper.EmisTmsCostFeeSplitMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xdadan.erp.emis.domain.EmisTmsCostProfit;
|
||||
@ -29,6 +31,9 @@ public class EmisTmsCostProfitServiceImpl implements IEmisTmsCostProfitService
|
||||
@Autowired
|
||||
private EmisTmsCostProfitMapper emisTmsCostProfitMapper;
|
||||
|
||||
@Autowired
|
||||
private EmisTmsCostFeeSplitMapper emisTmsCostFeeSplitMapper;
|
||||
|
||||
/**
|
||||
* 查询运输运单利润统计表
|
||||
*
|
||||
@ -39,7 +44,8 @@ public class EmisTmsCostProfitServiceImpl implements IEmisTmsCostProfitService
|
||||
public EmisTmsCostProfit selectEmisTmsCostProfitById(Long id)
|
||||
{
|
||||
EmisTmsCostProfit costProfit=emisTmsCostProfitMapper.selectEmisTmsCostProfitById(id);
|
||||
// costProfit.setCostFeeSplitList();
|
||||
// 获取费用列表
|
||||
costProfit.setCostFeeSplitList(emisTmsCostFeeSplitMapper.selectListByBillCode(costProfit.getBillCode()));
|
||||
return costProfit;
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
</sql>
|
||||
|
||||
|
||||
<select id="selectEmisTmsCostFeeSplitList" parameterType="EmisTmsCostFeeSplit" resultMap="EmisTmsCostFeeSplitResult">
|
||||
<include refid="selectEmisTmsCostFeeSplitVo"/>
|
||||
<where>
|
||||
@ -85,6 +86,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
limit 1
|
||||
</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, 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user