From e41f7a8cb42d189d7af204499e64f12a9ac553b7 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期二, 30 四月 2024 17:12:27 +0800 Subject: [PATCH] 改为连表查询 --- ycl-server/src/main/java/com/ycl/platform/service/ITContractService.java | 62 ++++++++++++------------------- 1 files changed, 24 insertions(+), 38 deletions(-) diff --git a/ycl-server/src/main/java/com/ycl/platform/service/ITContractService.java b/ycl-server/src/main/java/com/ycl/platform/service/ITContractService.java index dae7f78..15d8e8c 100644 --- a/ycl-server/src/main/java/com/ycl/platform/service/ITContractService.java +++ b/ycl-server/src/main/java/com/ycl/platform/service/ITContractService.java @@ -1,62 +1,48 @@ 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.system.AjaxResult; +import jakarta.servlet.http.HttpServletResponse; +import org.springframework.web.multipart.MultipartFile; import java.util.List; /** * 銆愯濉啓鍔熻兘鍚嶇О銆慡ervice鎺ュ彛 - * + * * @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); + + List<TContract> selectAll(); /** - * 淇敼銆愯濉啓鍔熻兘鍚嶇О銆� - * - * @param tContract 銆愯濉啓鍔熻兘鍚嶇О銆� - * @return 缁撴灉 + * 鏍规嵁鍚堝悓id鏌ヨ閽辨牳绠楄鍒� + * @param contractId 鍚堝悓id + * @return 瑙勫垯 */ - public int updateTContract(TContract tContract); + List<CalculateMoneyRule> selectMoneyRules(Integer contractId); /** - * 鎵归噺鍒犻櫎銆愯濉啓鍔熻兘鍚嶇О銆� - * - * @param ids 闇�瑕佸垹闄ょ殑銆愯濉啓鍔熻兘鍚嶇О銆戜富閿泦鍚� - * @return 缁撴灉 + * 鏌ヨ鎵�鏈夋鍦ㄤ娇鐢ㄧ殑鍚堝悓 + * @return 鏁版嵁 */ - public int deleteTContractByIds(Long[] ids); - - /** - * 鍒犻櫎銆愯濉啓鍔熻兘鍚嶇О銆戜俊鎭� - * - * @param id 銆愯濉啓鍔熻兘鍚嶇О銆戜富閿� - * @return 缁撴灉 - */ - public int deleteTContractById(Long id); + List<TContract> selectUsingContract(); } -- Gitblit v1.8.0