| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- package cn.com.lzt.budget.control.service;
- import cn.com.lzt.budget.control.entity.BudgetControlEntity;
- import cn.com.lzt.budget.control.entity.BudgetControlDetailEntity;
- import java.math.BigDecimal;
- import java.util.List;
- import cn.com.lzt.budget.data.util.BudgetConstant;
- import org.jeecgframework.core.common.service.CommonService;
- import java.io.Serializable;
- public interface BudgetControlServiceI extends CommonService{
-
- public <T> void delete(T entity);
- /**
- * 添加一对多
- *
- */
- public void addMain(BudgetControlEntity budgetControl,
- List<BudgetControlDetailEntity> budgetControlDetailList) ;
- /**
- * 修改一对多
- *
- */
- public void updateMain(BudgetControlEntity budgetControl,
- List<BudgetControlDetailEntity> budgetControlDetailList);
- public void delMain(BudgetControlEntity budgetControl);
-
- /**
- * 默认按钮-sql增强-新增操作
- * @param id
- * @return
- */
- public boolean doAddSql(BudgetControlEntity t);
- /**
- * 默认按钮-sql增强-更新操作
- * @param id
- * @return
- */
- public boolean doUpdateSql(BudgetControlEntity t);
- /**
- * 默认按钮-sql增强-删除操作
- * @param id
- * @return
- */
- public boolean doDelSql(BudgetControlEntity t);
- /**
- * 检测业务是否超过预算
- * @param increaseValue 增加值
- * @param busType
- * @param configItem
- * @param yearMonth
- * @param departId
- * @param includeTax
- * @param expect
- * @return
- */
- public boolean checkOverByBusType(BigDecimal increaseValue,String busType,String configItem,String yearMonth, String departId, Integer includeTax, Integer expect);
- /**
- * 检测是否超预算
- * @return
- */
- public boolean checkOver(BigDecimal increaseValue,String periodDetailId, String entityId, String measureId, Integer includeTax, Integer expect);
- /**
- * 获得实际控制实体
- * @return
- */
- public BudgetControlDetailEntity getBudgetControl(String entityId, String measureId);
- }
|