From 29fbb07e30eab4b8092a7600a0ef0e39db1de1f2 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期三, 25 九月 2024 14:35:00 +0800 Subject: [PATCH] 工单号生成修改 --- ycl-server/src/main/java/com/ycl/platform/service/IContractResultService.java | 77 ++++++++++++++++++++++++-------------- 1 files changed, 48 insertions(+), 29 deletions(-) diff --git a/ycl-server/src/main/java/com/ycl/platform/service/IContractResultService.java b/ycl-server/src/main/java/com/ycl/platform/service/IContractResultService.java index d5cf9f1..3c4fde3 100644 --- a/ycl-server/src/main/java/com/ycl/platform/service/IContractResultService.java +++ b/ycl-server/src/main/java/com/ycl/platform/service/IContractResultService.java @@ -1,62 +1,81 @@ package com.ycl.platform.service; +import com.baomidou.mybatisplus.extension.service.IService; import com.ycl.platform.domain.entity.ContractResult; +import com.ycl.platform.domain.entity.ContractResultRecord; +import com.ycl.platform.domain.vo.ContractResultVO; import java.util.List; /** - * 鍚堝悓鑰冩牳缁撴灉Service鎺ュ彛 - * + * 鑰冩牳缁撴灉Service鎺ュ彛 + * * @author ruoyi * @date 2024-04-01 */ -public interface IContractResultService +public interface IContractResultService extends IService<ContractResult> { /** - * 鏌ヨ鍚堝悓鑰冩牳缁撴灉 - * - * @param id 鍚堝悓鑰冩牳缁撴灉涓婚敭 - * @return 鍚堝悓鑰冩牳缁撴灉 + * 鏌ヨ鑰冩牳缁撴灉 + * + * @param id 鑰冩牳缁撴灉涓婚敭 + * @return 鑰冩牳缁撴灉 */ - public ContractResult selectDefaultResultById(Long id); + public ContractResult selectCheckResultById(Long id); /** - * 鏌ヨ鍚堝悓鑰冩牳缁撴灉鍒楄〃 - * - * @param contractResult 鍚堝悓鑰冩牳缁撴灉 - * @return 鍚堝悓鑰冩牳缁撴灉闆嗗悎 + * 鏌ヨ鑰冩牳缁撴灉鍒楄〃 + * + * @param checkResult 鑰冩牳缁撴灉 + * @return 鑰冩牳缁撴灉闆嗗悎 */ - public List<ContractResult> selectDefaultResultList(ContractResult contractResult); + public List<ContractResultVO> selectCheckResultList(ContractResultVO checkResult); /** - * 鏂板鍚堝悓鑰冩牳缁撴灉 - * - * @param contractResult 鍚堝悓鑰冩牳缁撴灉 + * 鏂板鑰冩牳缁撴灉 + * + * @param checkResult 鑰冩牳缁撴灉 * @return 缁撴灉 */ - public int insertDefaultResult(ContractResult contractResult); + public int insertCheckResult(ContractResult checkResult); /** - * 淇敼鍚堝悓鑰冩牳缁撴灉 - * - * @param contractResult 鍚堝悓鑰冩牳缁撴灉 + * 淇敼鑰冩牳缁撴灉 + * + * @param checkResult 鑰冩牳缁撴灉 * @return 缁撴灉 */ - public int updateDefaultResult(ContractResult contractResult); + public int updateCheckResult(ContractResult checkResult); /** - * 鎵归噺鍒犻櫎鍚堝悓鑰冩牳缁撴灉 - * - * @param ids 闇�瑕佸垹闄ょ殑鍚堝悓鑰冩牳缁撴灉涓婚敭闆嗗悎 + * 鎵归噺鍒犻櫎鑰冩牳缁撴灉 + * + * @param ids 闇�瑕佸垹闄ょ殑鑰冩牳缁撴灉涓婚敭闆嗗悎 * @return 缁撴灉 */ - public int deleteDefaultResultByIds(Long[] ids); + public int deleteCheckResultByIds(Long[] ids); /** - * 鍒犻櫎鍚堝悓鑰冩牳缁撴灉淇℃伅 - * - * @param id 鍚堝悓鑰冩牳缁撴灉涓婚敭 + * 鍒犻櫎鑰冩牳缁撴灉淇℃伅 + * + * @param id 鑰冩牳缁撴灉涓婚敭 * @return 缁撴灉 */ - public int deleteDefaultResultById(Long id); + public int deleteCheckResultById(Long id); + + /** + * 鎵归噺淇濆瓨鑰冩牳缁撴灉 + * @param contractResultRecord 闆嗗悎 + */ + void saveBatchRecord(List<ContractResultRecord> contractResultRecord); + + /** + * 鏍规嵁鑰冩牳缁撴灉鏌ヨ璁板綍 + * @param resultId 鑰冩牳缁撴灉id + * @param contractId 鍚堝悓id + * @return 鑰冩牳缁撴灉璁板綍 + */ + List<ContractResultRecord> selectCheckResultRecordList(Long resultId, Long contractId); + + Boolean publish(Long id); } -- Gitblit v1.8.0