From 549ecbf13b14a4deb74e42828abcd46ccb68a7c0 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期二, 09 五月 2023 17:18:07 +0800 Subject: [PATCH] 前端代码提交 --- Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeTemplatePhaseMapper.java | 158 ++++++++++------------------------------------------ 1 files changed, 30 insertions(+), 128 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeTemplatePhaseMapper.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeTemplatePhaseMapper.java index d622317..af90fb6 100644 --- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeTemplatePhaseMapper.java +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeTemplatePhaseMapper.java @@ -1,142 +1,44 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 搴勯獮 (smallchill@163.com) + */ package com.vci.ubcs.code.mapper; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.vci.ubcs.code.entity.CodeTempphaseEntity; +import com.vci.ubcs.code.vo.pagemodel.CodeTemplatePhaseEntityVO; -import com.vci.starter.web.pagemodel.PageHelper; -import com.vci.starter.web.wrapper.VciQueryWrapperForDO; -import com.vci.ubcs.code.entity.CodeTemplatePhaseDO; -import com.vci.web.pageModel.BatchCBO; - -import java.util.Collection; import java.util.List; -import java.util.Map; /** - * 妯℃澘闃舵鏁版嵁鎿嶄綔灞� + * 缂栫爜搴撳畾涔�-妯℃澘闃舵 Mapper 鎺ュ彛 * - * @author weidy - * @date 2022-01-24 + * @author yuxc + * @since 2023-04-20 */ -public interface CodeTemplatePhaseMapper { +public interface CodeTemplatePhaseMapper extends BaseMapper<CodeTempphaseEntity> { /** - * 浣跨敤涓婚敭鍒犻櫎 - * @param oid 鏁版嵁涓婚敭 - * @return 鎵ц缁撴灉 - */ - BatchCBO deleteByPrimaryKey(String oid); - - /** - * 娣诲姞鏁版嵁 - * @param record 妯℃澘闃舵鏁版嵁瀵硅薄 - * @return 鎵ц缁撴灉 - */ - BatchCBO insert(CodeTemplatePhaseDO record); - - /** - * 鎵归噺娣诲姞鏁版嵁 - * @param records 妯℃澘闃舵鏁版嵁瀵硅薄闆嗗悎 - * @return 鎵ц缁撴灉鏁� - */ - BatchCBO batchInsert(List<CodeTemplatePhaseDO> records); - - /** - * 鏍规嵁涓婚敭鏌ヨ - * @param oid 鏁版嵁涓婚敭 - * @return 鏁版嵁瀵硅薄 - */ - CodeTemplatePhaseDO selectByPrimaryKey(String oid); - - /** - * 鏍规嵁涓婚敭鎵归噺鑾峰彇瀵硅薄 - * @param oids 涓婚敭锛屽寘鍚崟寮曞彿,浣嗘槸涓嶈兘瓒呰繃1000 - * @return 鏁版嵁瀵硅薄鍒楄〃 - */ - List<CodeTemplatePhaseDO> selectByPrimaryKeys(String oids); - - /** - * 鏍规嵁涓婚敭鎵归噺鏌ヨ瀵硅薄 - * @param oids 瀵硅薄涓婚敭,浣跨敤閫楀彿鍒嗛殧锛屼絾鏄笉鑳借秴杩�1000 - * @return 涓氬姟瀵硅薄 - */ - List<CodeTemplatePhaseDO> selectByPrimaryKeyCollection(Collection<String> oids); - - /** - * 鏌ヨ鎵�鏈夊垎绫� - * @return 鏌ヨ缁撴灉 - */ - List<CodeTemplatePhaseDO> selectAll(); - - /** - * 鏇存柊瀵硅薄 - * @param record 妯℃澘闃舵鏁版嵁瀵硅薄 - * @return 鎵ц缁撴灉 - */ - BatchCBO updateByPrimaryKey(CodeTemplatePhaseDO record); - - /** - * 鎵归噺鏇存柊 - * @param records 妯℃澘闃舵鏁版嵁瀵硅薄闆嗗悎 - * @return 鎵ц缁撴灉琛屾暟 - */ - BatchCBO batchUpdate(List<CodeTemplatePhaseDO> records); - - /** - * 鏍规嵁鏌ヨ鏉′欢鏌ヨ鏁版嵁 - * @param conditionMap 鏌ヨ鏉′欢锛� - * @param pageHelper 鍖呮嫭鍒嗛〉锛屾帓搴� - * @return 鏁版嵁瀵硅薄鍒楄〃 - */ - List<CodeTemplatePhaseDO> selectByCondition(Map<String,String> conditionMap, PageHelper pageHelper); - - /** - * 鏍规嵁鏌ヨ鏉′欢鏉ユ煡璇㈡�绘暟 - * @param conditionMap 鏌ヨ鏉′欢 - * @return 鎬绘暟 - */ - Long countByCondition(Map<String,String> conditionMap); - - /** - * 浣跨敤鏌ヨ灏佽鍣ㄦ潵鏌ヨ - * @param queryWrapper 鏌ヨ灏佽鍣� - * @return 鏁版嵁瀵硅薄鍒楄〃 - */ - List<CodeTemplatePhaseDO> selectByWrapper(VciQueryWrapperForDO queryWrapper); - - /** - * 鏍规嵁鏌ヨ灏佽鍣ㄦ潵鏌ヨ鎬绘暟 - * @param queryWrapper 鏌ヨ灏佽鍣� - * @return 鎬绘暟 - */ - Long countByWrapper(VciQueryWrapperForDO queryWrapper); - - /** - * 鏍规嵁涓婚敭鑾峰彇鍚嶇О - * @param oid 涓婚敭 - * @return 涓枃鍚嶇О - */ - String selectNameByOid(String oid); - - - /** - * 鎵归噺淇敼鐢熷懡鍛ㄦ湡鐨勭姸鎬� - * @param oids 涓婚敭闆嗗悎锛屼笉鑳藉ぇ浜�1000 - * @param lcStatus 鐢熷懡鍛ㄦ湡鐨勫�� - * @return 鎵ц鐨勭粨鏋� + * 鑷畾涔夊垎椤� + * + * @param page + * @param CodeTempphase + * @return */ - long batchUpdateLcStatus(Collection<String> oids, String lcStatus); - /** - * 鏍规嵁涓婚敭鏇存柊鐘舵�� - * @param oid 涓婚敭 - * @param lcStatus 鐢熷懡鍛ㄦ湡鐘舵�� - * @return 鍙楀奖鍝嶇殑琛屾暟 - */ - int updateLcStatus( String oid, String lcStatus); + List<CodeTemplatePhaseEntityVO> selectCodeTempphasePage(IPage page, CodeTemplatePhaseEntityVO CodeTempphase); - /** - * 鎵归噺鍒犻櫎瀵硅薄 - * @param oids 瀵硅薄鐨勪富閿泦鍚� - * @return 鍙楀奖鍝嶇殑琛屾暟 - */ - BatchCBO batchDeleteByOids(Collection<String> oids); } -- Gitblit v1.9.3