md
This commit is contained in:
parent
5e89650007
commit
bd972aec66
@ -181,6 +181,9 @@ public interface EmisWaybillMapper extends BaseMapper<EmisWaybill>
|
||||
// 打提成标识
|
||||
public int updateHasDoProfit(String billCode);
|
||||
|
||||
// 打成本标识
|
||||
public int updateHasDoCostFee(String billCode);
|
||||
|
||||
// 取消出账标识
|
||||
public int cancelHasDoProfit(String billCode);
|
||||
|
||||
|
||||
@ -490,16 +490,13 @@ public class EmisTmsCostFeeServiceImpl implements IEmisTmsCostFeeService
|
||||
mutiOrderList.get(i),
|
||||
latch,
|
||||
"MultiDoBillThread==>"+i);
|
||||
Thread doThread = new Thread(doRunnable, "Calc Cost Fee MultiDoBillThread-"+i);
|
||||
Thread doThread = new Thread(doRunnable, "Calc CostFee MultiDoBillThread-"+i);
|
||||
doThread.start();
|
||||
}
|
||||
|
||||
try {
|
||||
latch.await(300, TimeUnit.SECONDS);
|
||||
|
||||
// 线程结束后计算所有员工提成
|
||||
// reCalcEmpProfitSumMoney(null,null);
|
||||
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}finally {
|
||||
@ -533,6 +530,8 @@ public class EmisTmsCostFeeServiceImpl implements IEmisTmsCostFeeService
|
||||
for (EmisWaybill waybill : dataList) {
|
||||
try {
|
||||
reCalcCostFeeByBillCode(waybill.getBillCode());
|
||||
// 运单打上已计算
|
||||
emisWaybillMapper.updateHasDoCostFee(waybill.getBillCode());
|
||||
}catch (Exception ex){
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
@ -2714,9 +2714,10 @@
|
||||
</select>
|
||||
|
||||
<!-- 查询待计算成本运单 -->
|
||||
<select id="selectWaitDoCostList" parameterType="EmisWaybill" resultMap="EmisWaybillResult">
|
||||
<select id="selectWaitDoCostList" parameterType="EmisWaybill" resultType="EmisWaybill">
|
||||
SELECT
|
||||
bill_code
|
||||
id,
|
||||
bill_code as billCode
|
||||
FROM
|
||||
emis_waybill a
|
||||
WHERE
|
||||
@ -3592,6 +3593,13 @@
|
||||
where bill_code=#{billCode}
|
||||
</update>
|
||||
|
||||
<!-- 打成本计算标识 -->
|
||||
<update id="updateHasDoCostFee" parameterType="String">
|
||||
update emis_waybill set
|
||||
bl_calc_cost = '1'
|
||||
where bill_code=#{billCode}
|
||||
</update>
|
||||
|
||||
<!-- 取消提成标识 -->
|
||||
<update id="cancelHasDoProfit" parameterType="String">
|
||||
update emis_waybill set
|
||||
|
||||
Loading…
Reference in New Issue
Block a user