|
|
@ -2,6 +2,7 @@ package com.qs.serve.modules.tbs.service.impl; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.qs.serve.common.model.consts.BudgetLogOptFlag; |
|
|
|
import com.qs.serve.common.model.consts.BudgetLogRollbackFlag; |
|
|
|
import com.qs.serve.common.model.dto.R; |
|
|
|
import com.qs.serve.common.util.*; |
|
|
@ -137,10 +138,10 @@ public class TbsCostApplyServiceImpl extends ServiceImpl<TbsCostApplyMapper,TbsC |
|
|
|
budgetLog.setUpdateTime(null); |
|
|
|
budgetLog.setId(null); |
|
|
|
budgetLog.setAmount(budgetLog.getAmount().negate()); |
|
|
|
budgetLog.setOptType(5); |
|
|
|
budgetLog.setOptType(BudgetLogOptFlag.State_5); |
|
|
|
} |
|
|
|
budgetLogService.saveBatch(oldLogList); |
|
|
|
budgetLogList.forEach(a->a.setOptType(6)); |
|
|
|
budgetLogList.forEach(a->a.setOptType(BudgetLogOptFlag.State_6)); |
|
|
|
budgetLogService.saveBatch(budgetLogList); |
|
|
|
} |
|
|
|
//创建流程后回调
|
|
|
@ -179,7 +180,7 @@ public class TbsCostApplyServiceImpl extends ServiceImpl<TbsCostApplyMapper,TbsC |
|
|
|
currActivity = activity; |
|
|
|
} |
|
|
|
} |
|
|
|
TbsBudgetLog budgetLog = budgetLogService.buildTbsBudgetLog(1,sysUser, costApply, item, budget,item.getCenterGoodsAmount().negate(),currActivity); |
|
|
|
TbsBudgetLog budgetLog = budgetLogService.buildTbsBudgetLog(BudgetLogOptFlag.State_1,sysUser, costApply, item, budget,item.getCenterGoodsAmount().negate(),currActivity); |
|
|
|
budgetLogList.add(budgetLog); |
|
|
|
} |
|
|
|
return budgetLogList; |
|
|
|