45 changed files with 987 additions and 958 deletions
-
2.idea/compiler.xml
-
2.idea/modules.xml
-
5cl_query_data_job/pom.xml
-
4cl_search_api/cl_search_api.iml
-
9cl_search_api/pom.xml
-
250cl_search_api/src/main/java/com/bfd/mf/common/service/cache/TopicQueryService.java
-
4cl_search_api/src/main/java/com/bfd/mf/common/service/common/CrudService.java
-
4cl_search_api/src/main/java/com/bfd/mf/common/service/es/ClusterService.java
-
7cl_search_api/src/main/java/com/bfd/mf/common/service/es/EsCommonService.java
-
2cl_search_api/src/main/java/com/bfd/mf/common/service/es/EsQueryAuthorCountService.java
-
23cl_search_api/src/main/java/com/bfd/mf/common/service/es/EsQueryAuthorService.java
-
75cl_search_api/src/main/java/com/bfd/mf/common/service/es/EsQueryServiceForSQMini.java
-
2cl_search_api/src/main/java/com/bfd/mf/common/service/es/EsQueryServiceForSQNormal.java
-
12cl_search_api/src/main/java/com/bfd/mf/common/service/es/GetQueryBuilder.java
-
2cl_search_api/src/main/java/com/bfd/mf/common/service/es/ParseSearchScopeService.java
-
5cl_search_api/src/main/java/com/bfd/mf/common/service/es/SubjectQueryDataService.java
-
2cl_search_api/src/main/java/com/bfd/mf/common/service/text/TextService.java
-
4cl_search_api/src/main/java/com/bfd/mf/common/util/analysis/DataAnalysisUtils.java
-
1cl_search_api/src/main/java/com/bfd/mf/common/util/cache/ResponseParseUtils.java
-
13cl_search_api/src/main/java/com/bfd/mf/common/util/constants/ESConstant.java
-
261cl_search_api/src/main/java/com/bfd/mf/common/util/es/EsUtils.java
-
2cl_search_api/src/main/java/com/bfd/mf/common/util/es/EsUtils2.java
-
3cl_search_api/src/main/java/com/bfd/mf/common/util/es/MonitorUtils.java
-
10cl_search_api/src/main/java/com/bfd/mf/common/util/slice/SliceScrollUtil.java
-
2cl_search_api/src/main/java/com/bfd/mf/common/util/utility/DateUtil.java
-
46cl_search_api/src/main/java/com/bfd/mf/common/web/entity/mysql/cache/Cluster.java
-
1cl_search_api/src/main/java/com/bfd/mf/common/web/entity/mysql/topic/ParseExcelTask.java
-
469cl_search_api/src/main/java/com/bfd/mf/common/web/repository/mysql/UserRepository.java
-
1cl_search_api/src/main/java/com/bfd/mf/common/web/repository/mysql/topic/ParseExcelTaskRepository.java
-
2cl_search_api/src/main/java/com/bfd/mf/common/web/vo/params/QueryRequest.java
-
88cl_search_api/src/main/java/com/bfd/mf/common/web/vo/view/analysis/DataLineCount.java
-
145cl_search_api/src/main/java/com/bfd/mf/common/web/vo/view/monitor/ESMonitorBaseEntity.java
-
2cl_search_api/src/main/java/com/bfd/mf/common/web/vo/view/monitor/ESMonitorEntity.java
-
9cl_search_api/src/main/java/com/bfd/mf/controller/SearchAnalysisController.java
-
3cl_search_api/src/main/java/com/bfd/mf/controller/SearchAuthorController.java
-
127cl_search_api/src/main/java/com/bfd/mf/controller/SearchDataController.java
-
8cl_search_api/src/main/java/com/bfd/mf/controller/UploadExcelController.java
-
9cl_search_api/src/main/java/com/bfd/mf/service/SearchAnalysisService.java
-
5cl_search_api/src/main/java/com/bfd/mf/service/SearchAuthorService.java
-
271cl_search_api/src/main/java/com/bfd/mf/service/SearchDataService.java
-
18cl_search_api/src/main/java/com/bfd/mf/service/SearchKeywordsCouldService.java
-
8cl_search_api/src/main/java/com/bfd/mf/service/UpdateService.java
-
11cl_search_api/src/main/java/com/bfd/mf/service/UploadExcelService.java
-
12cl_stream_3.1.2.iml
-
4pom.xml
@ -1,469 +0,0 @@ |
|||
///* |
|||
// * Copyright (C) 2016 Baifendian Corporation |
|||
// * <p> |
|||
// * Licensed under the Apache License, Version 2.0 (the "License"); |
|||
// * you may not use this file except in compliance with the License. |
|||
// * You may obtain a copy of the License at |
|||
// * <p> |
|||
// * http://www.apache.org/licenses/LICENSE-2.0 |
|||
// * <p> |
|||
// * Unless required by applicable law or agreed to in writing, software |
|||
// * distributed under the License is distributed on an "AS IS" BASIS, |
|||
// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|||
// * See the License for the specific language governing permissions and |
|||
// * limitations under the License. |
|||
// */ |
|||
// |
|||
//package com.bfd.mf.common.web.repository.mysql; |
|||
// |
|||
//import com.bfd.mf.common.web.entity.mysql.User; |
|||
//import org.springframework.data.jpa.repository.Query; |
|||
//import org.springframework.data.repository.PagingAndSortingRepository; |
|||
//import org.springframework.data.repository.query.Param; |
|||
//import org.springframework.stereotype.Repository; |
|||
// |
|||
//@Repository |
|||
//public interface UserRepository extends PagingAndSortingRepository<User, Long> { |
|||
// |
|||
//// User findByUserNameAndDel(String userName, Boolean del); |
|||
//// |
|||
//// List<User> findByAccountAndDel(String account, Boolean del); |
|||
//// |
|||
//// |
|||
//// @Query(value = "SELECT * FROM cl_user WHERE del = FALSE AND status = 1 AND account = ?1 ", nativeQuery = true) |
|||
//// User findAvailableByAccount(String account); |
|||
//// |
|||
//// @Query(value = "SELECT * FROM cl_user WHERE del = FALSE AND account = ?1 ", nativeQuery = true) |
|||
//// User findUserByAccount(String account); |
|||
//// |
|||
//// User findByUserNameAndPasswordAndDel(String userName, String pwd, Boolean del); |
|||
//// |
|||
//// User findByAccountAndPasswordAndDel(String account, String pwd, Boolean del); |
|||
//// |
|||
//// User findByCompanyIdAndUserNameAndDel(Long companyId, String userName, Boolean del); |
|||
//// |
|||
//// User findByCompanyIdAndAccountAndDel(Long companyId, String account, Boolean del); |
|||
// |
|||
// User findByTokenAndDel(String token, Boolean del); |
|||
// |
|||
//// @Query(value = "SELECT * FROM cl_user WHERE token = ?1 AND status = ?2", nativeQuery = true) |
|||
//// User findByTokenAndStatus(String token, int status); |
|||
//// |
|||
//// User findByTokenAndStatusAndDel(String token, int status, Boolean del); |
|||
// |
|||
// @Query(value = "SELECT company_id FROM cl_user WHERE token = :token AND del = :del", nativeQuery = true) |
|||
// Long getCompanyIdByTokenAndDel(@Param("token") String token, @Param("del") Boolean del); |
|||
// |
|||
// |
|||
//// @Query("select u from User u where u.roleId =?1 or u.roleId like '?1,%' or u.roleId like '%,?1' or u.roleId like " + |
|||
//// "'%,?1,%' and del = false") |
|||
//// List<User> findByRoleId(String rid); |
|||
//// |
|||
//// List<User> findByStatusAndCompanyIdAndDel(Integer status, Long companyId, Boolean del); |
|||
//// |
|||
//// List<User> findByCompanyIdAndDel(Long companyId, Boolean del); |
|||
//// |
|||
//// |
|||
//// /** |
|||
//// * Get all users with role and creator information |
|||
//// * |
|||
//// * @param companyId |
|||
//// * @return |
|||
//// */ |
|||
//// @Query(value = "SELECT " + |
|||
//// "a.id , " + |
|||
//// "a.token , " + |
|||
//// "a.account , " + |
|||
//// "a.userName , " + |
|||
//// "r.id AS roleId , " + |
|||
//// "r.name as roleName, " + |
|||
//// "b.userName AS creator, " + |
|||
//// "a.status, " + |
|||
//// "a.email, " + |
|||
//// "a.wechat, " + |
|||
//// "a.wechatId, " + |
|||
//// "a.mobile, " + |
|||
//// "a.wechatVerified, " + |
|||
//// "a.wechatOpenId " + |
|||
//// "FROM " + |
|||
//// "User a , " + |
|||
//// "User b , " + |
|||
//// "Role r " + |
|||
//// "WHERE a.companyId = b.companyId " + |
|||
//// "AND a.companyId = :cid " + |
|||
//// "AND a.parentId = b.id " + |
|||
//// "AND a.roleId = r.id " + |
|||
//// "AND a.userName like :name " + |
|||
//// "AND (a.del IS NULL OR a.del = false)" + |
|||
//// "AND a.wechat IS NOT NULL " + |
|||
//// "AND a.wechatId is NOT NULL " + |
|||
//// "AND a.wechat <> '' " + |
|||
//// "AND a.wechatId <> '' " + |
|||
//// "AND a.wechatVerified in (:scope) " + |
|||
//// "order by a.createdTime desc") |
|||
//// Page<Object> findClientUserWeixinList(@Param("cid") Long companyId, @Param("name") String filterName, Pageable |
|||
//// pageable, @Param("scope") List<String> scope); |
|||
//// |
|||
//// |
|||
//// /** |
|||
//// * Get all users with role and creator information |
|||
//// * |
|||
//// * @param companyId |
|||
//// * @return |
|||
//// */ |
|||
//// @Query(value = "SELECT " + |
|||
//// "a.id , " + |
|||
//// "a.token , " + |
|||
//// "a.account , " + |
|||
//// "a.userName , " + |
|||
//// "r.id AS roleId , " + |
|||
//// "r.name as roleName, " + |
|||
//// "b.userName AS creator, " + |
|||
//// "a.status, " + |
|||
//// "a.email, " + |
|||
//// "a.wechat, " + |
|||
//// "a.wechatId, " + |
|||
//// "a.mobile " + |
|||
//// "FROM " + |
|||
//// "User a , " + |
|||
//// "User b , " + |
|||
//// "Role r " + |
|||
//// "WHERE a.companyId = b.companyId " + |
|||
//// "AND a.companyId = :cid " + |
|||
//// "AND a.parentId = b.id " + |
|||
//// "AND a.roleId = r.id " + |
|||
//// "AND a.userName like :name " + |
|||
//// "AND (a.del IS NULL OR a.del = false)" + |
|||
//// "AND a.email IS NOT NULL " + |
|||
//// "AND a.email <> '' " + |
|||
//// "order by a.createdTime desc") |
|||
//// Page<Object> findClientUserEmailList(@Param("cid") Long companyId, @Param("name") String filterName, Pageable |
|||
//// pageable); |
|||
//// |
|||
//// @Modifying |
|||
//// @Query("update User set status = ?2, updatedTime = ?3 where id = ?1") |
|||
//// int switchUserStatus(Long userId, Integer status, Long updateTime); |
|||
//// |
|||
//// @Modifying |
|||
//// @Query("update User set del = ?2, updatedTime = ?3 where id = ?1") |
|||
//// int deleteUser(Long userId, Boolean isDel, Long updateTime); |
|||
//// |
|||
//// |
|||
////// @Query("SELECT " + |
|||
////// "a.id ," + |
|||
////// "a.account , " + |
|||
////// "a.userName, " + |
|||
////// "a.email, " + |
|||
////// "a.wechat, " + |
|||
////// "a.wechatId, " + |
|||
////// "a.mobile, " + |
|||
////// "r.id AS userGroupId , " + |
|||
////// "r.name as userGroupName, " + |
|||
////// "a.status, " + |
|||
////// "a.createdTime " + |
|||
////// "FROM " + |
|||
////// "User a , " + |
|||
////// "UserGroup r " + |
|||
////// "WHERE a.id = :uid " + |
|||
////// "AND a.userGroupId = r.id " + |
|||
////// "AND (a.del = :isDel ) " + |
|||
////// "order by a.createdTime desc") |
|||
////// List<Object[]> fetchUser(@Param("uid") Long userId, @Param("isDel") Boolean isDel); |
|||
//// |
|||
//// |
|||
//// /** |
|||
//// * Check if reach user create limitation, return Y if avaliable |
|||
//// * <p> |
|||
//// * Return NULL if not available |
|||
//// * |
|||
//// * @param token |
|||
//// * @return |
|||
//// */ |
|||
//// @Query(value = "SELECT \"Y\" AS VALID " + |
|||
//// "FROM " + |
|||
//// " (SELECT company_user_count AS u_limit " + |
|||
//// " FROM cl_company " + |
|||
//// " WHERE status = 1 " + |
|||
//// " AND id = " + |
|||
//// " (SELECT company_id " + |
|||
//// " FROM cl_user " + |
|||
//// " WHERE token = ?1)) a, " + |
|||
//// " (SELECT count(1) AS u_count " + |
|||
//// " FROM cl_user " + |
|||
//// " WHERE company_id = " + |
|||
//// " (SELECT company_id " + |
|||
//// " FROM cl_user " + |
|||
//// " WHERE token = ?1) " + |
|||
//// " AND del = FALSE) b " + |
|||
//// "WHERE a.u_limit >= b.u_count", nativeQuery = true) |
|||
//// List checkIfUserLimitReached(String token); |
|||
//// |
|||
//// /** |
|||
//// * Check if user over dead date and open status, return true if available |
|||
//// * <p> |
|||
//// * Return false if not available |
|||
//// * |
|||
//// * @param token |
|||
//// * @return |
|||
//// */ |
|||
//// @Query(value = |
|||
//// " SELECT \"Y\" AS flag " + |
|||
//// " FROM cl_company " + |
|||
//// " WHERE status = 1 " + |
|||
//// " AND deadline_time < UNIX_TIMESTAMP() " + |
|||
//// " AND id = " + |
|||
//// " (SELECT company_id " + |
|||
//// " FROM cl_user " + |
|||
//// " WHERE token = ?1 and del = false and status = 1)", nativeQuery = true) |
|||
//// List checkIfUserOverDeadDate(String token); |
|||
//// |
|||
//// /** |
|||
//// * 返回话题上限数 |
|||
//// * <p> |
|||
//// * SELECT company_topic_count FROM cl_company |
|||
//// * WHERE id=(SELECT company_id FROM cl_user WHERE token = '8FB24E550815BCBA') |
|||
//// * |
|||
//// * @param token |
|||
//// * @return |
|||
//// */ |
|||
//// @Query(value = |
|||
//// " SELECT company_topic_count " + |
|||
//// " FROM cl_company " + |
|||
//// " WHERE id = " + |
|||
//// " (SELECT company_id" + |
|||
//// " FROM cl_user " + |
|||
//// " WHERE token = ?1)", nativeQuery = true) |
|||
//// int getCompanyTopicCount(String token); |
|||
//// |
|||
//// /** |
|||
//// * 返回创建话题的ids |
|||
//// * |
|||
//// * @param token |
|||
//// * @return |
|||
//// */ |
|||
//// @Query(value = |
|||
//// " SELECT topic_ids" + |
|||
//// " FROM cl_role " + |
|||
//// " WHERE company_id = " + |
|||
//// " (SELECT company_id" + |
|||
//// " FROM cl_user " + |
|||
//// " WHERE token = ?1) ", nativeQuery = true) |
|||
//// List<String> getSujectIds(String token); |
|||
//// |
|||
//// /** |
|||
//// * 返回客户创建的话题总数的结果 |
|||
//// * <p> |
|||
//// * SELECT COUNT(DISTINCT(label_id)) FROM mf_subject |
|||
//// * WHERE label_id IN( |
|||
//// * SELECT topic_ids FROM mf_role |
|||
//// * WHERE company_id ='14') |
|||
//// * |
|||
//// * @param labelIds |
|||
//// * @return |
|||
//// */ |
|||
//// @Query(value = |
|||
//// " SELECT count(1) " + |
|||
//// " FROM cl_subject " + |
|||
//// " WHERE label_id IN " + |
|||
//// " (?1)", nativeQuery = true) |
|||
//// int getCompanyResult(Set<String> labelIds); |
|||
//// |
|||
//// @Query("select u from User u, Role r " + |
|||
//// "where u.roleId = r.id and u.companyId =:cid and " + |
|||
//// "r.isSystem >= (select r2.isSystem from Role r2 where r2.id = :rid) and u.del = false") |
|||
//// List<User> getUserListByCompanyAndRole(@Param("cid") Long companyId, @Param("rid") Long roleId); |
|||
//// |
|||
//// @Query("select " + |
|||
//// "u.account," + |
|||
//// "wu.openId," + |
|||
//// "wu.subscribe," + |
|||
//// "wu.nickName," + |
|||
//// "wu.sex," + |
|||
//// "wu.language," + |
|||
//// "wu.city," + |
|||
//// "wu.province," + |
|||
//// "wu.headimgUrl," + |
|||
//// "wu.subscribeTime," + |
|||
//// "wu.unionId," + |
|||
//// "wu.remark," + |
|||
//// "wu.grouId," + |
|||
//// "wu.tagIdList," + |
|||
//// "wu.mfRemark " + |
|||
//// "from User u, Role r, WechatBind wb, WechatUser wu " + |
|||
//// "where u.roleId = r.id and u.companyId =:cid and u.id = wb.userId and wb.openId = wu.openId and " + |
|||
//// "r.isSystem >= (select r2.isSystem from Role r2 where r2.id = :rid) and u.del = false") |
|||
//// List getUserInfoListByCompanyAndRole(@Param("cid") Long companyId, @Param("rid") Long roleId); |
|||
//// |
|||
//// @Query(value = "select * from cl_user where id =?1", nativeQuery = true) |
|||
//// User getUserById(long creator); |
|||
//// |
|||
//// /** |
|||
//// * 返回客户ID |
|||
//// * |
|||
//// * @param token |
|||
//// * @return |
|||
//// */ |
|||
//// @Query(value = "select company_id from cl_user where token =?1", nativeQuery = true) |
|||
//// Integer findCompanyIdByToken(String token); |
|||
//// |
|||
//// /** |
|||
//// * 返回有效客户 |
|||
//// * |
|||
//// * @param id |
|||
//// * @param flag |
|||
//// * @return |
|||
//// */ |
|||
//// @Query(value = "SELECT token FROM cl_user WHERE company_id=?1 AND del=?2", nativeQuery = true) |
|||
//// List<String> findTokenByCompanyId(Long id, boolean flag); |
|||
//// |
|||
//// @Query(value = "SELECT token FROM cl_user WHERE company_id =?1 AND del=?2 AND STATUS=?3 limit 1", nativeQuery = true) |
|||
//// String findEffectTokenByCompanyIdAndDel(Long companyId, boolean del, int status); |
|||
//// |
|||
//// @Query(value = |
|||
//// "select company_id " + |
|||
//// "from cl_user " + |
|||
//// "where token = ?1 and del=?2", nativeQuery = true) |
|||
//// Long findCompanyIdByTokenAndDel(String token, boolean del); |
|||
//// |
|||
//// @Query(value = "SELECT account FROM cl_user WHERE email=?1 AND status=?2", nativeQuery = true) |
|||
//// String fetchUserOfAccountByReceiverAndStatus(String receiver, int status); |
|||
//// |
|||
//// @Query(value = |
|||
//// " SELECT company_keyword_count " + |
|||
//// " FROM cl_company " + |
|||
//// " WHERE id = " + |
|||
//// " (SELECT company_id" + |
|||
//// " FROM cl_user " + |
|||
//// " WHERE token = ?1)", nativeQuery = true) |
|||
//// int getCompanyKeywordCount(String token); |
|||
//// |
|||
//// @Query(value = "SELECT company_exclude_count FROM cl_company WHERE id = (SELECT company_id FROM cl_user WHERE token = ?1)", nativeQuery = true) |
|||
//// int getCompanyExcludeCount(String token); |
|||
//// |
|||
//// @Query(value = "SELECT role_id FROM cl_user WHERE token = :token AND del = :del", nativeQuery = true) |
|||
//// String getRoleIdByTokenAndDel(@Param("token") String token, @Param("del") Boolean del); |
|||
//// |
|||
//// /** |
|||
//// * Get all users with role and creator information |
|||
//// * |
|||
//// * @param companyId |
|||
//// * @return |
|||
//// */ |
|||
//// @Query(value = "SELECT " + |
|||
//// "a.id , " + |
|||
//// "a.account , " + |
|||
//// "a.userName , " + |
|||
//// "r.id AS userGroupId , " + |
|||
//// "r.name as userGroupName, " + |
|||
//// //"b.userName AS creator, " + |
|||
//// " (case when a.parentId = 0 then '系统' when m.roleType = 1 then '管理员' else b.account end ) AS creator , " + |
|||
//// "a.status, " + |
|||
//// "a.email, " + |
|||
//// "a.wechat, " + |
|||
//// "a.wechatId, " + |
|||
//// "a.mobile, " + |
|||
//// "a.createdTime, "+ |
|||
//// "r.roleType "+ |
|||
//// "FROM " + |
|||
//// "User a , " + |
|||
//// "User b , " + |
|||
//// "UserGroup m , " + |
|||
//// "UserGroup r " + |
|||
//// "WHERE " + |
|||
//// //"a.companyId = b.companyId " + |
|||
//// " a.companyId = :cid " + |
|||
//// "AND a.userGroupId = r.id " + |
|||
//// "AND a.userGroupId = :ugid " + |
|||
//// "AND b.userGroupId = m.id " + |
|||
//// "AND a.parentId = b.id " + |
|||
//// "AND a.isShadow <> :isShadow " + |
|||
//// //"AND a.roleId = r.id " + |
|||
//// "AND (a.userName like :name or a.account like :name) " + |
|||
//// "AND (a.del = :isDel) " + |
|||
//// "order by a.createdTime desc" ) |
|||
//// Page<Object> findClientUserListByGroupId(@Param("cid") Long companyId, @Param("name") String filterName, Pageable pageable, @Param("ugid") Long userGroupId, @Param("isDel") Boolean isDel, @Param("isShadow") Integer isShadow); |
|||
//// |
|||
//// @Query(value = "SELECT * FROM cl_user WHERE account = ?1", nativeQuery = true) |
|||
//// User findByAccount(String account); |
|||
//// |
|||
//// @Query(value = "SELECT * FROM cl_user WHERE user_group_id = ?1 and del = ?2", nativeQuery = true) |
|||
//// List<User> findByUserGroupId(String userGroupId, Boolean del); |
|||
//// |
|||
//// @Query(value = "SELECT token FROM cl_user WHERE id IN (?1)", nativeQuery = true) |
|||
//// List<String> getTokenListByIdList(List<Long> idList); |
|||
//// |
|||
//// @Query(value = "SELECT id FROM cl_user WHERE token IN (?1)", nativeQuery = true) |
|||
//// List<Integer> getIdListByTokenList(List<String> tokenList); |
|||
//// |
|||
//// @Query(value = "SELECT " + |
|||
//// "a.id , " + |
|||
//// "a.account , " + |
|||
//// "a.userName , " + |
|||
//// "r.id AS userGroupId , " + |
|||
//// "r.name as userGroupName, " + |
|||
//// // "b.userName AS creator, " + |
|||
//// " (case when a.parentId = 0 then '系统' when m.roleType = 1 then '管理员' else b.account end ) AS creator , " + |
|||
//// "a.status, " + |
|||
//// "a.email, " + |
|||
//// "a.wechat, " + |
|||
//// "a.wechatId, " + |
|||
//// "a.mobile, " + |
|||
//// "a.createdTime, " + |
|||
//// "r.roleType " + |
|||
//// "FROM " + |
|||
//// "User a , " + |
|||
//// "User b , " + |
|||
//// "UserGroup m , " + |
|||
//// "UserGroup r " + |
|||
//// "WHERE " + |
|||
//// //"a.companyId = b.companyId " + |
|||
//// "a.companyId = :cid " + |
|||
//// "AND a.parentId = b.id " + |
|||
//// "AND a.userGroupId = r.id " + |
|||
//// "AND b.userGroupId = m.id " + |
|||
//// "AND a.isShadow <> :isShadow " + |
|||
//// "AND r.roleType not in :ugrt " + |
|||
//// "AND (a.userName like :name or a.account like :name) " + |
|||
//// "AND (a.del = :isDel ) " + |
|||
//// "order by a.createdTime desc") |
|||
//// Page<Object> findClientUserListFilterByRole(@Param("cid") Long companyId, |
|||
//// @Param("name") String filterName, |
|||
//// Pageable pageable, |
|||
//// @Param("isDel") Boolean isDel, |
|||
//// @Param("ugrt") List<Integer> userGroupRoleType, |
|||
//// @Param("isShadow") Integer isShadow); |
|||
// |
|||
//// @Query(value = "SELECT id,account,user_group_id FROM cl_user WHERE company_id = ?1 and del = ?2 ORDER BY created_time DESC ", nativeQuery = true) |
|||
//// List<Object[]> findAllByCompanyId(Long companyId, boolean del); |
|||
//// |
|||
//// @Query(value = "SELECT * FROM cl_user WHERE id = ?1 AND status = ?2 AND del = ?3", nativeQuery = true) |
|||
//// User findByIdAndStatusAndDel(Long userId, Integer userNormal, Boolean userNotDelete); |
|||
//// |
|||
//// @Query(value = "SELECT * FROM cl_user WHERE token = ?1 ", nativeQuery = true) |
|||
//// User findBytoken(String creator); |
|||
// |
|||
//// @Query("SELECT " + |
|||
//// "a.id ," + |
|||
//// "a.account , " + |
|||
//// "a.userName, " + |
|||
//// "a.email, " + |
|||
//// "a.wechat, " + |
|||
//// "a.wechatId, " + |
|||
//// "a.mobile, " + |
|||
//// "r.id AS userGroupId , " + |
|||
//// "r.name as userGroupName, " + |
|||
//// "a.status, " + |
|||
//// "a.createdTime, " + |
|||
//// "a.password " + |
|||
//// "FROM " + |
|||
//// "User a , " + |
|||
//// "UserGroup r " + |
|||
//// "WHERE a.token = :token " + |
|||
//// "AND a.userGroupId = r.id " + |
|||
//// "AND (a.del = :isDel ) " + |
|||
//// "order by a.createdTime desc") |
|||
//// List<Object[]> fetchUserByTokenAndDel(@Param("token") String token, @Param("isDel") Boolean userNotDelete); |
|||
// |
|||
//// @Query(value = "select g.channel_ids from cl_user u, cl_user_group g where u.token = ?1 AND g.id = u.user_group_id ", nativeQuery = true) |
|||
//// String getChannelIdsByToken(String token); |
|||
//} |
@ -1,88 +0,0 @@ |
|||
///* |
|||
// * Copyright (C) 2016 Baifendian Corporation |
|||
// * <p> |
|||
// * Licensed under the Apache License, Version 2.0 (the "License"); |
|||
// * you may not use this file except in compliance with the License. |
|||
// * You may obtain a copy of the License at |
|||
// * <p> |
|||
// * http://www.apache.org/licenses/LICENSE-2.0 |
|||
// * <p> |
|||
// * Unless required by applicable law or agreed to in writing, software |
|||
// * distributed under the License is distributed on an "AS IS" BASIS, |
|||
// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|||
// * See the License for the specific language governing permissions and |
|||
// * limitations under the License. |
|||
// */ |
|||
// |
|||
//package com.bfd.mf.common.web.vo.view.analysis; |
|||
// |
|||
///** |
|||
// * 折线图统计 |
|||
// * |
|||
// * @author quanyou.chang |
|||
// * @create 2016-09-22 10:43 |
|||
// **/ |
|||
//public class DataLineCount extends DataCountBase implements Comparable<DataLineCount> { |
|||
// /** |
|||
// * 时间戳 |
|||
// */ |
|||
// private Long timestamp; |
|||
// /** |
|||
// * 值 |
|||
// */ |
|||
// private Long data; |
|||
// |
|||
// public Long getTimestamp() { |
|||
// return timestamp; |
|||
// } |
|||
// |
|||
// public void setTimestamp(Long timestamp) { |
|||
// this.timestamp = timestamp; |
|||
// } |
|||
// |
|||
// |
|||
// public String getName() { |
|||
// return name; |
|||
// } |
|||
// |
|||
// public void setName(String name) { |
|||
// this.name = name; |
|||
// } |
|||
// |
|||
// /** |
|||
// * 坐标 |
|||
// */ |
|||
// private String name; |
|||
// |
|||
// |
|||
// public Long getData() { |
|||
// return data; |
|||
// } |
|||
// |
|||
// public void setData(Long data) { |
|||
// this.data = data; |
|||
// } |
|||
// |
|||
// @Override |
|||
// public int compareTo(DataLineCount o) { |
|||
// return this.getTimestamp().compareTo(o.getTimestamp()); |
|||
// } |
|||
// @Override |
|||
// public boolean equals(Object o) { |
|||
// if (this == o) return true; |
|||
// if (o == null || getClass() != o.getClass()) return false; |
|||
// |
|||
// DataLineCount that = (DataLineCount) o; |
|||
// |
|||
// if (timestamp != null ? !timestamp.equals(that.timestamp) : that.timestamp != null) return false; |
|||
// return name != null ? name.equals(that.name) : that.name == null; |
|||
// |
|||
// } |
|||
// |
|||
// @Override |
|||
// public int hashCode() { |
|||
// int result = timestamp != null ? timestamp.hashCode() : 0; |
|||
// result = 31 * result + (name != null ? name.hashCode() : 0); |
|||
// return result; |
|||
// } |
|||
//} |
@ -1,12 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> |
|||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8"> |
|||
<output url="file://$MODULE_DIR$/target/classes" /> |
|||
<output-test url="file://$MODULE_DIR$/target/test-classes" /> |
|||
<content url="file://$MODULE_DIR$"> |
|||
<excludeFolder url="file://$MODULE_DIR$/target" /> |
|||
</content> |
|||
<orderEntry type="inheritedJdk" /> |
|||
<orderEntry type="sourceFolder" forTests="false" /> |
|||
</component> |
|||
</module> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue