From 23003e5ece97193921dacc7a7dc98926449b64d6 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期二, 09 四月 2024 11:55:46 +0800 Subject: [PATCH] 新增工单 --- ycl-server/src/main/java/com/ycl/platform/service/impl/DefaultResultServiceImpl.java | 96 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 96 insertions(+), 0 deletions(-) diff --git a/ycl-server/src/main/java/com/ycl/platform/service/impl/DefaultResultServiceImpl.java b/ycl-server/src/main/java/com/ycl/platform/service/impl/DefaultResultServiceImpl.java new file mode 100644 index 0000000..a2f16a5 --- /dev/null +++ b/ycl-server/src/main/java/com/ycl/platform/service/impl/DefaultResultServiceImpl.java @@ -0,0 +1,96 @@ +package com.ycl.platform.service.impl; + +import com.ycl.platform.domain.entity.DefaultResult; +import com.ycl.platform.mapper.DefaultResultMapper; +import com.ycl.platform.service.IDefaultResultService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import utils.DateUtils; + +import java.util.List; + +/** + * 鍚堝悓鑰冩牳缁撴灉Service涓氬姟灞傚鐞� + * + * @author ruoyi + * @date 2024-04-01 + */ +@Service +public class DefaultResultServiceImpl implements IDefaultResultService +{ + @Autowired + private DefaultResultMapper defaultResultMapper; + + /** + * 鏌ヨ鍚堝悓鑰冩牳缁撴灉 + * + * @param id 鍚堝悓鑰冩牳缁撴灉涓婚敭 + * @return 鍚堝悓鑰冩牳缁撴灉 + */ + @Override + public DefaultResult selectDefaultResultById(Long id) + { + return defaultResultMapper.selectDefaultResultById(id); + } + + /** + * 鏌ヨ鍚堝悓鑰冩牳缁撴灉鍒楄〃 + * + * @param defaultResult 鍚堝悓鑰冩牳缁撴灉 + * @return 鍚堝悓鑰冩牳缁撴灉 + */ + @Override + public List<DefaultResult> selectDefaultResultList(DefaultResult defaultResult) + { + return defaultResultMapper.selectDefaultResultList(defaultResult); + } + + /** + * 鏂板鍚堝悓鑰冩牳缁撴灉 + * + * @param defaultResult 鍚堝悓鑰冩牳缁撴灉 + * @return 缁撴灉 + */ + @Override + public int insertDefaultResult(DefaultResult defaultResult) + { + return defaultResultMapper.insertDefaultResult(defaultResult); + } + + /** + * 淇敼鍚堝悓鑰冩牳缁撴灉 + * + * @param defaultResult 鍚堝悓鑰冩牳缁撴灉 + * @return 缁撴灉 + */ + @Override + public int updateDefaultResult(DefaultResult defaultResult) + { + defaultResult.setUpdateTime(DateUtils.getNowDate()); + return defaultResultMapper.updateDefaultResult(defaultResult); + } + + /** + * 鎵归噺鍒犻櫎鍚堝悓鑰冩牳缁撴灉 + * + * @param ids 闇�瑕佸垹闄ょ殑鍚堝悓鑰冩牳缁撴灉涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteDefaultResultByIds(Long[] ids) + { + return defaultResultMapper.deleteDefaultResultByIds(ids); + } + + /** + * 鍒犻櫎鍚堝悓鑰冩牳缁撴灉淇℃伅 + * + * @param id 鍚堝悓鑰冩牳缁撴灉涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteDefaultResultById(Long id) + { + return defaultResultMapper.deleteDefaultResultById(id); + } +} -- Gitblit v1.8.0