| | |
| | | package com.ycl.platform.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.platform.domain.entity.CalculateMoneyRule; |
| | | import com.ycl.platform.domain.entity.TContract; |
| | | import com.ycl.platform.domain.query.ContractQuery; |
| | | import com.ycl.system.AjaxResult; |
| | | import com.ycl.system.Result; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 【请填写功能名称】Service接口 |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-03-12 |
| | | */ |
| | | public interface ITContractService |
| | | { |
| | | /** |
| | | * 查询【请填写功能名称】 |
| | | * |
| | | * @param id 【请填写功能名称】主键 |
| | | * @return 【请填写功能名称】 |
| | | */ |
| | | public TContract selectTContractById(Long id); |
| | | public interface ITContractService extends IService<TContract> { |
| | | |
| | | /** |
| | | * 查询【请填写功能名称】列表 |
| | | * |
| | | * @param tContract 【请填写功能名称】 |
| | | * @return 【请填写功能名称】集合 |
| | | * 导入合同模板 |
| | | * @param response 结果 |
| | | */ |
| | | public List<TContract> selectTContractList(TContract tContract); |
| | | void importTemplate(HttpServletResponse response); |
| | | |
| | | /** |
| | | * 新增【请填写功能名称】 |
| | | * |
| | | * @param tContract 【请填写功能名称】 |
| | | * @return 结果 |
| | | * 导入合同数据 |
| | | * @param file 文件 |
| | | * @param tContract 合同信息 |
| | | * @return 导入结果 |
| | | */ |
| | | public int insertTContract(TContract tContract); |
| | | AjaxResult importData(MultipartFile file, TContract tContract); |
| | | |
| | | /** |
| | | * 修改【请填写功能名称】 |
| | | * |
| | | * @param tContract 【请填写功能名称】 |
| | | * @return 结果 |
| | | * 分页查询 |
| | | * |
| | | * @param query |
| | | * @return |
| | | */ |
| | | public int updateTContract(TContract tContract); |
| | | Result selectAll(ContractQuery query); |
| | | |
| | | /** |
| | | * 批量删除【请填写功能名称】 |
| | | * |
| | | * @param ids 需要删除的【请填写功能名称】主键集合 |
| | | * @return 结果 |
| | | * 根据合同id查询钱核算规则 |
| | | * @param contractId 合同id |
| | | * @return 规则 |
| | | */ |
| | | public int deleteTContractByIds(Long[] ids); |
| | | List<CalculateMoneyRule> selectMoneyRules(Integer contractId); |
| | | |
| | | /** |
| | | * 删除【请填写功能名称】信息 |
| | | * |
| | | * @param id 【请填写功能名称】主键 |
| | | * @return 结果 |
| | | * 查询所有正在使用的合同 |
| | | * @return 数据 |
| | | */ |
| | | public int deleteTContractById(Long id); |
| | | List<TContract> selectUsingContract(); |
| | | |
| | | /** |
| | | * 获取运维单位的合同时间范围 |
| | | * |
| | | * @param unitId |
| | | * @return |
| | | */ |
| | | Result timeRange(Integer unitId); |
| | | } |