demand: TMS系统 - 提成管理 - 提成统计 - 设置现金提成、月结提成的提成金额小数点保留2位数且四舍五入 tms-提成管理-运单利润统计-剔除问题件类型为进口/返货虚拟单的运单
This commit is contained in:
parent
dd0cf10ca3
commit
b95dddfb05
@ -198,6 +198,17 @@ public class EmisCommissionProfitController extends BaseController
|
||||
{
|
||||
startPage();
|
||||
List<EmisCommissionProfit> list = emisCommissionProfitService.selectEmisCommissionProfitList(emisCommissionProfit);
|
||||
// 金额类字段统一四舍五入保留两位小数
|
||||
if (list != null && !list.isEmpty()) {
|
||||
for (EmisCommissionProfit item : list) {
|
||||
if (item.getMoney() != null) {
|
||||
item.setMoney(item.getMoney().setScale(2, BigDecimal.ROUND_HALF_UP));
|
||||
}
|
||||
if (item.getMonthMoney() != null) {
|
||||
item.setMonthMoney(item.getMonthMoney().setScale(2, BigDecimal.ROUND_HALF_UP));
|
||||
}
|
||||
}
|
||||
}
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
@ -57,7 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<where>
|
||||
a.bill_code=b.bill_code and a.del_flag='0' and b.del_flag='0'
|
||||
and not EXISTS (
|
||||
select 1 from emis_waybill_problem_info ewpi where a.bill_code=ewpi.bill_code and ewpi.del_flag='0' and ewpi.`problem_type` in(151)
|
||||
select 1 from emis_waybill_problem_info ewpi where a.bill_code=ewpi.bill_code and ewpi.del_flag='0' and ewpi.`problem_type` in(151,170,173)
|
||||
)
|
||||
<if test="id != null "> and b.id = #{id}</if>
|
||||
<if test="billCode != null and billCode != ''">and ( FIND_IN_SET(b.`bill_code`,#{billCode}) )</if>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user