|
|
@ -40,6 +40,7 @@ public interface TbsScheduleItemBudgetMapper extends BaseMapper<TbsScheduleItemB |
|
|
|
* @param applyId |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@InterceptorIgnore(tenantLine = "true") |
|
|
|
List<TbsScheduleItemBudgetAmount> totalApplyAmountList(@Param("sibIdList")List<Long> scheduleItemBudgetIds, |
|
|
|
@Param("applyId")Long applyId); |
|
|
|
|
|
|
@ -65,6 +66,7 @@ public interface TbsScheduleItemBudgetMapper extends BaseMapper<TbsScheduleItemB |
|
|
|
* @param policyId |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@InterceptorIgnore(tenantLine = "true") |
|
|
|
List<TbsScheduleItemBudgetAmount> totalPolicyAmountList(@Param("sibIdList")List<Long> scheduleItemBudgetIds, |
|
|
|
@Param("policyId")Long policyId); |
|
|
|
|
|
|
@ -105,6 +107,7 @@ public interface TbsScheduleItemBudgetMapper extends BaseMapper<TbsScheduleItemB |
|
|
|
* @return |
|
|
|
* 用于替代 totalCostAmountByApplyId() |
|
|
|
*/ |
|
|
|
@InterceptorIgnore(tenantLine = "true") |
|
|
|
List<TbsBudgetLogPreAmount> listLogCostAmount(@Param("budgetIds") List<Long> budgetIds, |
|
|
|
@Param("scheduleItemIds") List<Long> scheduleItemIds, |
|
|
|
@Param("applyId") Long applyId); |
|
|
@ -118,6 +121,7 @@ public interface TbsScheduleItemBudgetMapper extends BaseMapper<TbsScheduleItemB |
|
|
|
* @return |
|
|
|
* 用于替代 totalCostAmountByApplyId() |
|
|
|
*/ |
|
|
|
@InterceptorIgnore(tenantLine = "true") |
|
|
|
List<TbsBudgetLogPreAmount> listLogCostAmountWithPolicy(@Param("budgetIds") List<Long> budgetIds, |
|
|
|
@Param("scheduleItemIds") List<Long> scheduleItemIds, |
|
|
|
@Param("policyId") Long policyId); |
|
|
@ -130,6 +134,7 @@ public interface TbsScheduleItemBudgetMapper extends BaseMapper<TbsScheduleItemB |
|
|
|
* @param policyId 政策申请id(防止驳回后提交重复扣除) |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@InterceptorIgnore(tenantLine = "true") |
|
|
|
@Select("SELECT sum( amount ) FROM `tbs_budget_log` " + |
|
|
|
" LEFT JOIN `tzc_policy` " + |
|
|
|
" ON `tbs_budget_log`.policy_id = tzc_policy.id " + |
|
|
@ -143,7 +148,7 @@ public interface TbsScheduleItemBudgetMapper extends BaseMapper<TbsScheduleItemB |
|
|
|
@Param("policyId") Long policyId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@InterceptorIgnore(tenantLine = "true") |
|
|
|
Long findUnMatchScheduleItemBySourceBudgetIdAndTargetBudgetId(@Param("sourceId")Long sourceId, @Param("targetId")Long targetId); |
|
|
|
|
|
|
|
/** |
|
|
@ -152,6 +157,7 @@ public interface TbsScheduleItemBudgetMapper extends BaseMapper<TbsScheduleItemB |
|
|
|
* @param optNumbers 包含 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@InterceptorIgnore(tenantLine = "true") |
|
|
|
List<TbsBudgetLogWithAmount> getSumAmtInList(@Param("selectIds") List<Long> ids,@Param("optNumbers")List<Integer> optNumbers); |
|
|
|
|
|
|
|
|
|
|
@ -161,6 +167,7 @@ public interface TbsScheduleItemBudgetMapper extends BaseMapper<TbsScheduleItemB |
|
|
|
* @param optNumbers 不包含 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@InterceptorIgnore(tenantLine = "true") |
|
|
|
List<TbsBudgetLogWithAmount> getSumAmtNotInList(@Param("selectIds") List<Long> ids,@Param("optNumbers")List<Integer> optNumbers); |
|
|
|
|
|
|
|
/** |
|
|
@ -169,6 +176,7 @@ public interface TbsScheduleItemBudgetMapper extends BaseMapper<TbsScheduleItemB |
|
|
|
* @param optNumbers |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@InterceptorIgnore(tenantLine = "true") |
|
|
|
List<TbsBudgetLogWithAmount> getCostCheckingList(@Param("selectIds") List<Long> ids,@Param("optNumbers")List<Integer> optNumbers); |
|
|
|
|
|
|
|
/** |
|
|
@ -177,6 +185,7 @@ public interface TbsScheduleItemBudgetMapper extends BaseMapper<TbsScheduleItemB |
|
|
|
* @param optNumbers |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@InterceptorIgnore(tenantLine = "true") |
|
|
|
List<TbsBudgetLogWithAmount> getPolicyCheckingList(@Param("selectIds") List<Long> ids,@Param("optNumbers")List<Integer> optNumbers); |
|
|
|
|
|
|
|
@InterceptorIgnore(tenantLine = "true") |
|
|
|