This commit is contained in:
linfso 2024-12-12 13:15:55 +08:00
parent c0751a2df5
commit 5eb8517413
5 changed files with 27 additions and 0 deletions

View File

@ -384,6 +384,16 @@ public class Oms2cWaybillController extends BaseController
return AjaxResult.success("成功",emisWaybillService.selectLatestMonthCreateOrderMapList(getLoginUser().getUser().getCustomerCode()));
}
/**
* 获取运单费用统计
* @return
*/
@GetMapping("/getOmsBillFeeStatInfo")
public AjaxResult getOmsBillFeeStatInfo()
{
return AjaxResult.success("成功",emisWaybillService.selectOmsBillFeeStatInfo(getLoginUser().getUser().getCustomerCode()));
}
/**
* 绑定月结卡号
* @param monthPayCode

View File

@ -47,6 +47,8 @@ public interface EmisWaybillMapper extends BaseMapper<EmisWaybill>
*/
public List<Map> selectLatestMonthCreateOrderMapList(@Param("customerCode") String customerCode);
public Map selectOmsBillFeeStatInfo(@Param("customerCode") String customerCode);
/**
* 获取寄件订单数量
* @param customerCode

View File

@ -41,6 +41,8 @@ public interface IEmisWaybillService
public OmsOrderStatInfo getOmsOrderStatInfo(String customerCode);
public Map selectOmsBillFeeStatInfo(String customerCode);
public List<Map> selectUserBindSalesmenList(Salesmen salesmen);

View File

@ -94,6 +94,13 @@ public class EmisWaybillServiceImpl implements IEmisWaybillService
return emisWaybillMapper.selectLatestMonthCreateOrderMapList(customerCode);
}
@Override
public Map selectOmsBillFeeStatInfo(String customerCode)
{
return emisWaybillMapper.selectOmsBillFeeStatInfo(customerCode);
}
/**
* 查询业务员
*

View File

@ -255,6 +255,12 @@
</select>
<select id="selectOmsBillFeeStatInfo" parameterType="String" resultType="map">
select ROUND(sum(rec_money),2) totalRecMoney,ROUND(sum(reced_money),2) totalRecedMoney,ROUND(sum(rec_money-reced_money),2) waitPayMoney
from emis_settle_bill
where del_flag='0' and customer_code=#{customerCode}
</select>
<select id="selectLatestMonthCreateOrderMapList" parameterType="String" resultType="map">
SELECT
DATE_FORMAT( create_time, '%Y-%m-%d' ) AS createDay,