From 8f45af9d6cdae97f4f265d2f2a123d990cf1bb1d Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期一, 06 五月 2019 17:57:07 +0800
Subject: [PATCH] 设备未读消息处理,分类BUG修改
---
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/GoodsClassMapper.java | 50 ++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 44 insertions(+), 6 deletions(-)
diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/GoodsClassMapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/GoodsClassMapper.java
index f03d5bd..e86b39b 100644
--- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/GoodsClassMapper.java
+++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/GoodsClassMapper.java
@@ -4,18 +4,33 @@
import org.apache.ibatis.annotations.Param;
+import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.bus.clazz.GoodsClass;
-public interface GoodsClassMapper {
+public interface GoodsClassMapper extends BaseMapper<GoodsClass>{
- String getKwById(Long id);
+ /**
+ * 鏌ヨ鎼滅储鍏抽敭璇�
+ * @param id
+ * @return
+ */
+ String getKeysById(Long id);
- GoodsClass selectByPrimaryKey(Long id);
- // 鏌ヨ鎵�鏈�
- List<GoodsClass> queryAll();
+ /**
+ * 鏍规嵁鍚嶇О妯$硦鎼滅储
+ * @param id
+ * @return
+ */
+ List<GoodsClass> listByName(@Param("start") long start, @Param("count") int count, @Param("name")String name);
- int updateByPrimaryKeySelective(GoodsClass record);
+
+ /**
+ * 鏍规嵁鍚嶇О妯$硦鎼滅储
+ * @param id
+ * @return
+ */
+ int countByName(@Param("name")String name, @Param("systemId")Long systemId);
/**
* 鏍规嵁绯荤粺id鏌ヨ鍒嗙被
@@ -23,4 +38,27 @@
* @return
*/
List<GoodsClass> listGoodsClassBySystemId(@Param("systemId") Long systemId);
+
+ /**
+ * 鏍规嵁鎺掑簭鏌ヨ
+ * @param orderby
+ * @return
+ */
+ GoodsClass getByAdjoinOrder(@Param("order") Integer order, @Param("type") Integer type);
+
+
+ List<GoodsClass> getGoodsClassAll();
+
+ /**
+ * 鑾峰彇鏈�澶ф帓搴忓��
+ * @return
+ */
+ int getMaxOrder();
+
+ /**
+ * 鑾峰彇鏈夋晥鍒嗙被
+ * @return
+ */
+ List<GoodsClass> getEffectiveClass();
+
}
--
Gitblit v1.8.0