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