BudgetControlServiceI.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package cn.com.lzt.budget.control.service;
  2. import cn.com.lzt.budget.control.entity.BudgetControlEntity;
  3. import cn.com.lzt.budget.control.entity.BudgetControlDetailEntity;
  4. import java.math.BigDecimal;
  5. import java.util.List;
  6. import cn.com.lzt.budget.data.util.BudgetConstant;
  7. import org.jeecgframework.core.common.service.CommonService;
  8. import java.io.Serializable;
  9. public interface BudgetControlServiceI extends CommonService{
  10. public <T> void delete(T entity);
  11. /**
  12. * 添加一对多
  13. *
  14. */
  15. public void addMain(BudgetControlEntity budgetControl,
  16. List<BudgetControlDetailEntity> budgetControlDetailList) ;
  17. /**
  18. * 修改一对多
  19. *
  20. */
  21. public void updateMain(BudgetControlEntity budgetControl,
  22. List<BudgetControlDetailEntity> budgetControlDetailList);
  23. public void delMain(BudgetControlEntity budgetControl);
  24. /**
  25. * 默认按钮-sql增强-新增操作
  26. * @param id
  27. * @return
  28. */
  29. public boolean doAddSql(BudgetControlEntity t);
  30. /**
  31. * 默认按钮-sql增强-更新操作
  32. * @param id
  33. * @return
  34. */
  35. public boolean doUpdateSql(BudgetControlEntity t);
  36. /**
  37. * 默认按钮-sql增强-删除操作
  38. * @param id
  39. * @return
  40. */
  41. public boolean doDelSql(BudgetControlEntity t);
  42. /**
  43. * 检测业务是否超过预算
  44. * @param increaseValue 增加值
  45. * @param busType
  46. * @param configItem
  47. * @param yearMonth
  48. * @param departId
  49. * @param includeTax
  50. * @param expect
  51. * @return
  52. */
  53. public boolean checkOverByBusType(BigDecimal increaseValue,String busType,String configItem,String yearMonth, String departId, Integer includeTax, Integer expect);
  54. /**
  55. * 检测是否超预算
  56. * @return
  57. */
  58. public boolean checkOver(BigDecimal increaseValue,String periodDetailId, String entityId, String measureId, Integer includeTax, Integer expect);
  59. /**
  60. * 获得实际控制实体
  61. * @return
  62. */
  63. public BudgetControlDetailEntity getBudgetControl(String entityId, String measureId);
  64. }