From ae5807029edabde0b1e1488c090bd830fccf75a7 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期一, 18 九月 2023 16:13:07 +0800 Subject: [PATCH] 代码提交 --- Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeButtonMapper.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/CodeButtonMapper.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeButtonMapper.java index 3630455..3b51c7e 100644 --- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeButtonMapper.java +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeButtonMapper.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.CodeButton; +import com.vci.ubcs.code.vo.pagemodel.CodeButtonVO; -import com.vci.starter.web.pagemodel.PageHelper; -import com.vci.starter.web.wrapper.VciQueryWrapperForDO; -import com.vci.ubcs.code.entity.CodeButtonDO; -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-03-29 */ -public interface CodeButtonMapper { +public interface CodeButtonMapper extends BaseMapper<CodeButton> { /** - * 浣跨敤涓婚敭鍒犻櫎 - * @param oid 鏁版嵁涓婚敭 - * @return 鎵ц缁撴灉 - */ - BatchCBO deleteByPrimaryKey(String oid); - - /** - * 娣诲姞鏁版嵁 - * @param record 涓绘暟鎹腑鐨勬寜閽墿灞曟暟鎹璞� - * @return 鎵ц缁撴灉 - */ - BatchCBO insert(CodeButtonDO record); - - /** - * 鎵归噺娣诲姞鏁版嵁 - * @param records 涓绘暟鎹腑鐨勬寜閽墿灞曟暟鎹璞¢泦鍚� - * @return 鎵ц缁撴灉鏁� - */ - BatchCBO batchInsert(List<CodeButtonDO> records); - - /** - * 鏍规嵁涓婚敭鏌ヨ - * @param oid 鏁版嵁涓婚敭 - * @return 鏁版嵁瀵硅薄 - */ - CodeButtonDO selectByPrimaryKey(String oid); - - /** - * 鏍规嵁涓婚敭鎵归噺鑾峰彇瀵硅薄 - * @param oids 涓婚敭锛屽寘鍚崟寮曞彿,浣嗘槸涓嶈兘瓒呰繃1000 - * @return 鏁版嵁瀵硅薄鍒楄〃 - */ - List<CodeButtonDO> selectByPrimaryKeys(String oids); - - /** - * 鏍规嵁涓婚敭鎵归噺鏌ヨ瀵硅薄 - * @param oids 瀵硅薄涓婚敭,浣跨敤閫楀彿鍒嗛殧锛屼絾鏄笉鑳借秴杩�1000 - * @return 涓氬姟瀵硅薄 - */ - List<CodeButtonDO> selectByPrimaryKeyCollection(Collection<String> oids); - - /** - * 鏌ヨ鎵�鏈夊垎绫� - * @return 鏌ヨ缁撴灉 - */ - List<CodeButtonDO> selectAll(); - - /** - * 鏇存柊瀵硅薄 - * @param record 涓绘暟鎹腑鐨勬寜閽墿灞曟暟鎹璞� - * @return 鎵ц缁撴灉 - */ - BatchCBO updateByPrimaryKey(CodeButtonDO record); - - /** - * 鎵归噺鏇存柊 - * @param records 涓绘暟鎹腑鐨勬寜閽墿灞曟暟鎹璞¢泦鍚� - * @return 鎵ц缁撴灉琛屾暟 - */ - BatchCBO batchUpdate(List<CodeButtonDO> records); - - /** - * 鏍规嵁鏌ヨ鏉′欢鏌ヨ鏁版嵁 - * @param conditionMap 鏌ヨ鏉′欢锛� - * @param pageHelper 鍖呮嫭鍒嗛〉锛屾帓搴� - * @return 鏁版嵁瀵硅薄鍒楄〃 - */ - List<CodeButtonDO> selectByCondition(Map<String,String> conditionMap, PageHelper pageHelper); - - /** - * 鏍规嵁鏌ヨ鏉′欢鏉ユ煡璇㈡�绘暟 - * @param conditionMap 鏌ヨ鏉′欢 - * @return 鎬绘暟 - */ - Long countByCondition(Map<String,String> conditionMap); - - /** - * 浣跨敤鏌ヨ灏佽鍣ㄦ潵鏌ヨ - * @param queryWrapper 鏌ヨ灏佽鍣� - * @return 鏁版嵁瀵硅薄鍒楄〃 - */ - List<CodeButtonDO> 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 codebutton + * @return */ - long batchUpdateLcStatus(Collection<String> oids, String lcStatus); - /** - * 鏍规嵁涓婚敭鏇存柊鐘舵�� - * @param oid 涓婚敭 - * @param lcStatus 鐢熷懡鍛ㄦ湡鐘舵�� - * @return 鍙楀奖鍝嶇殑琛屾暟 - */ - int updateLcStatus( String oid, String lcStatus); + List<CodeButtonVO> selectcodebuttonPage(IPage page, CodeButtonVO codebutton); - /** - * 鎵归噺鍒犻櫎瀵硅薄 - * @param oids 瀵硅薄鐨勪富閿泦鍚� - * @return 鍙楀奖鍝嶇殑琛屾暟 - */ - BatchCBO batchDeleteByOids(Collection<String> oids); } -- Gitblit v1.9.3