From 9e6b77bfbcec378c1419dde64c9c04094de3c24c Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期二, 10 九月 2019 17:55:27 +0800
Subject: [PATCH] 用户金币使用情况统计
---
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/LabelMapper.java | 234 ++++++++++++++++++++++++++++++---------------------------
1 files changed, 123 insertions(+), 111 deletions(-)
diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/LabelMapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/LabelMapper.java
index a0dc307..c21020f 100644
--- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/LabelMapper.java
+++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/LabelMapper.java
@@ -1,112 +1,124 @@
-package com.yeshi.fanli.dao.mybatis.lable;
-
-import java.util.List;
-import java.util.Map;
-
-import org.apache.ibatis.annotations.Param;
-
-import com.yeshi.fanli.entity.bus.lable.Label;
-import com.yeshi.fanli.entity.bus.lable.LabelGoods;
-import com.yeshi.fanli.exception.LabelException;
-
-public interface LabelMapper {
-
- int insert(Label record);
-
- int insertSelective(Label record);
-
- int updateByPrimaryKey(Label record);
-
- int updateByPrimaryKeySelective(Label record);
-
- int deleteByPrimaryKey(Long id);
-
- Label selectByPrimaryKey(Long id);
-
- List<Label> selectByTitle(@Param("title") String title);
-
- /**
- * 缁熻鏍囩鎬绘暟
- * @return
- */
- long getCount();
-
- /**
- * 缁熻浠婃棩鏂瑰紡 褰曞叆鎬绘暟
- * @return
- */
- long getCountToday();
-
-
- Map<String, Object> getCountByEntryMode();
-
- /**
- * 鎵归噺鍒犻櫎
- * @param ids
- * @return
- */
- int deleteBatchByPrimaryKey(long[] ids);
-
- /**
- * 鏍规嵁鏉′欢鏌ヨ鏍囩
- * @param start
- * @param count
- * @param title
- * @param startTime
- * @param endTime
- * @return
- */
- List<Label> query(@Param("start") long start, @Param("count") int count, @Param("key") String title,
- @Param("startTime") String startTime, @Param("endTime") String endTime, @Param("orderMode") String orderMode);
-
- int getQueryCount(@Param("key") String title, @Param("startTime") String startTime,
- @Param("endTime") String endTime);
-
-
- /**
- * 鍟嗗搧鏍囩娣诲姞鍊欓�夐」锛堝凡鎺掗櫎瀛樺湪鏍囩锛�
- * @param goodsId
- * @return
- * @throws LabelException
- */
- List<Label> queryGoodsCandidate(@Param("start") int start, @Param("count") int count,
- @Param("key") String key, @Param("goodsId") Long goodsId);
- int getCountQueryGoodsCandidate(@Param("key") String key, @Param("goodsId") Long goodsId);
-
- /**
- * 鏌ヨ涓�绾у垎绫� 鏍囩鍊欓�夐」
- * @param classId
- * @return
- */
- List<Label> queryClassCandidate(@Param("start") int start, @Param("count") int count,
- @Param("key") String key, @Param("classId") Long classId);
- int getCountQueryClassCandidate(@Param("key") String key, @Param("classId") Long classId);
-
-
- /**
- * 鏌ヨ瀛愮骇鍒嗙被 鏍囩鍊欓�夐」
- * @param subClassId
- * @return
- */
- List<Label> querySubClassCandidate(@Param("start") int start, @Param("count") int count,
- @Param("key") String key, @Param("subClassId") Long subClassId);
- int getCountQuerySubClassCandidate(@Param("key") String key, @Param("subClassId") Long subClassId);
-
-
-
- /**
- * 鏌ヨ浜岀骇浠ヤ笅鍒嗙被 鏍囩鍒楄〃
- * @param subClassId
- * @return
- */
- List<Label> getSecondClassLables(@Param("subClassId") Long subClassId);
-
-
- /**
- * 鏌ヨ鍟嗗搧瀵瑰簲鏍囩
- * @param goodsId
- * @return
- */
- List<LabelGoods> getByGoodsId(@Param("goodsId") Long goodsId);
-
+package com.yeshi.fanli.dao.mybatis.lable;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.ibatis.annotations.Param;
+
+import com.yeshi.fanli.entity.bus.lable.Label;
+import com.yeshi.fanli.entity.bus.lable.LabelGoods;
+import com.yeshi.fanli.exception.goods.quality.LabelException;
+
+public interface LabelMapper {
+
+ int insert(Label record);
+
+ int insertSelective(Label record);
+
+ int updateByPrimaryKey(Label record);
+
+ int updateByPrimaryKeySelective(Label record);
+
+ int deleteByPrimaryKey(Long id);
+
+ Label selectByPrimaryKey(Long id);
+
+ List<Label> selectByTitle(@Param("title") String title);
+
+
+ Label getByTitle(@Param("title") String title);
+
+
+ /**
+ * 澶氫釜鏍囩鏌ヨ
+ * @param list
+ * @return
+ */
+ List<Label> listByTitles(List<String> list);
+
+
+ /**
+ * 缁熻鏍囩鎬绘暟
+ * @return
+ */
+ long getCount();
+
+ /**
+ * 缁熻浠婃棩鏂瑰紡 褰曞叆鎬绘暟
+ * @return
+ */
+ long getCountToday();
+
+
+ Map<String, Object> getCountByEntryMode();
+
+ /**
+ * 鎵归噺鍒犻櫎
+ * @param ids
+ * @return
+ */
+ int deleteBatchByPrimaryKey(long[] ids);
+
+ /**
+ * 鏍规嵁鏉′欢鏌ヨ鏍囩
+ * @param start
+ * @param count
+ * @param title
+ * @param startTime
+ * @param endTime
+ * @return
+ */
+ List<Label> query(@Param("start") long start, @Param("count") int count, @Param("key") String title,
+ @Param("startTime") String startTime, @Param("endTime") String endTime, @Param("orderMode") String orderMode);
+
+ int getQueryCount(@Param("key") String title, @Param("startTime") String startTime,
+ @Param("endTime") String endTime);
+
+
+ /**
+ * 鍟嗗搧鏍囩娣诲姞鍊欓�夐」锛堝凡鎺掗櫎瀛樺湪鏍囩锛�
+ * @param goodsId
+ * @return
+ * @throws LabelException
+ */
+ List<Label> queryGoodsCandidate(@Param("start") int start, @Param("count") int count,
+ @Param("key") String key, @Param("goodsId") Long goodsId);
+ int getCountQueryGoodsCandidate(@Param("key") String key, @Param("goodsId") Long goodsId);
+
+ /**
+ * 鏌ヨ涓�绾у垎绫� 鏍囩鍊欓�夐」
+ * @param classId
+ * @return
+ */
+ List<Label> queryClassCandidate(@Param("start") int start, @Param("count") int count,
+ @Param("key") String key, @Param("classId") Long classId);
+ int getCountQueryClassCandidate(@Param("key") String key, @Param("classId") Long classId);
+
+
+ /**
+ * 鏌ヨ瀛愮骇鍒嗙被 鏍囩鍊欓�夐」
+ * @param subClassId
+ * @return
+ */
+ List<Label> querySubClassCandidate(@Param("start") int start, @Param("count") int count,
+ @Param("key") String key, @Param("subClassId") Long subClassId);
+ int getCountQuerySubClassCandidate(@Param("key") String key, @Param("subClassId") Long subClassId);
+
+
+
+ /**
+ * 鏌ヨ浜岀骇浠ヤ笅鍒嗙被 鏍囩鍒楄〃
+ * @param subClassId
+ * @return
+ */
+ List<Label> getSecondClassLables(@Param("subClassId") Long subClassId);
+
+
+ /**
+ * 鏌ヨ鍟嗗搧瀵瑰簲鏍囩
+ * @param goodsId
+ * @return
+ */
+ List<LabelGoods> getByGoodsId(@Param("goodsId") Long goodsId);
+
}
\ No newline at end of file
--
Gitblit v1.8.0