Commit 811522ec by guojuxing

pmd规范

parent 4dd93911
......@@ -6,7 +6,13 @@ import org.apache.ibatis.annotations.Param;
import com.gic.cloud.dto.EnterprisePortraitRelDTO;
import com.gic.cloud.entity.TabGicEnterprisePortraitRel;
/**
* 会员画像
* @ClassName: EnterprisePortraitRelMapper

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:45 AM

*/
public interface EnterprisePortraitRelMapper {
/**
* 根据主键删除
......@@ -62,6 +68,8 @@ public interface EnterprisePortraitRelMapper {
* @Description:

* @author guojuxing
* @param enterpriseId

* @param dataType
* @param status
* @return java.util.List<com.gic.cloud.entity.TabGicEnterprisePortraitRel>


*/
List<TabGicEnterprisePortraitRel> listPortraitField(@Param("enterpriseId") Integer enterpriseId,
......@@ -78,11 +86,39 @@ public interface EnterprisePortraitRelMapper {

 */
void insertForeach(@Param("list") List<EnterprisePortraitRelDTO> list);
/**
* 获取会员画像字段
* @Title: getPortraitField

* @Description:

* @author guojuxing
* @param enterpriseId
* @param fieldCode
* @param dataType

* @return com.gic.cloud.entity.TabGicEnterprisePortraitRel


*/
TabGicEnterprisePortraitRel getPortraitField(@Param("enterpriseId") Integer enterpriseId,
@Param("fieldCode") String fieldCode,
@Param("dataType") Integer dataType);
/**
* 获取排序最大值
* @Title: getMaxSort

* @Description:

* @author guojuxing
* @param enterpriseId
* @param dataType

* @return int


*/
int getMaxSort(@Param("enterpriseId") Integer enterpriseId, @Param("dataType") Integer dataType);
/**
* 获取排序
* @Title: listByDataType

* @Description:

* @author guojuxing
* @param enterpriseId
* @param dataType

* @return java.util.List<com.gic.cloud.entity.TabGicEnterprisePortraitRel>


*/
List<TabGicEnterprisePortraitRel> listByDataType(@Param("enterpriseId") Integer enterpriseId, @Param("dataType") Integer dataType);
}
\ No newline at end of file
......@@ -5,7 +5,13 @@ import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 关注门店
* @ClassName: TabAttentionStoreMapper

* @Description: 

* @author boom

* @date 2020/9/7 10:41 AM

*/
public interface TabAttentionStoreMapper {
/**
* 根据主键删除
......@@ -55,8 +61,27 @@ public interface TabAttentionStoreMapper {
*/
int updateByPrimaryKey(TabAttentionStore record);
/**
* 分页查询关注门店
* @Title: pageStoreAttention

* @Description:

* @author boom
* @param userId
* @param enterpriseId

* @return com.github.pagehelper.Page<com.gic.cloud.entity.TabAttentionStore>


*/
Page<TabAttentionStore> pageStoreAttention(@Param("userId") Integer userId, @Param("enterpriseId") Integer enterpriseId);
/**
* 删除关注门店
* @Title: removeAttention

* @Description:

* @author boom
* @param userId
* @param enterpriseId
* @param storeIds

* @return int


*/
int removeAttention(@Param("userId") Integer userId,
@Param("enterpriseId") Integer enterpriseId,
@Param("storeIds")List<Integer> storeIds);
......
package com.gic.cloud.dao.mapper;
import com.gic.cloud.entity.TabDataExplain;
import com.gic.cloud.qo.DataExplainQO;
import com.gic.cloud.qo.DataExplainQo;
import com.github.pagehelper.Page;
/**
* 数据解读接口
* @ClassName: TabDataExplainMapper

* @Description: 

* @author zhiwj

* @date 2020/9/7 9:57 AM

*/
public interface TabDataExplainMapper {
/**
* 根据主键删除
......@@ -53,7 +59,23 @@ public interface TabDataExplainMapper {
*/
int updateByPrimaryKey(TabDataExplain record);
/**
* 实体参数查询数据解读
* @Title: getBySelective

* @Description:

* @author zhiwj
* @param tabDataExplain

* @return com.gic.cloud.entity.TabDataExplain


*/
TabDataExplain getBySelective(TabDataExplain tabDataExplain);
Page<TabDataExplain> listDataExplain(DataExplainQO dataExplainQO);
/**
* 查询数据解读列表数据
* @Title: listDataExplain

* @Description:

* @author zhiwj
* @param dataExplainQO

* @return com.github.pagehelper.Page<com.gic.cloud.entity.TabDataExplain>


*/
Page<TabDataExplain> listDataExplain(DataExplainQo dataExplainQO);
}
\ No newline at end of file
......@@ -4,7 +4,13 @@ import com.gic.cloud.entity.TabIndexDescEnterprise;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 指标
* @ClassName: TabIndexDescEnterpriseMapper

* @Description: 

* @author zhiwj

* @date 2020/9/7 10:45 AM

*/
public interface TabIndexDescEnterpriseMapper {
/**
* 根据主键删除
......@@ -54,7 +60,24 @@ public interface TabIndexDescEnterpriseMapper {
*/
int updateByPrimaryKey(TabIndexDescEnterprise record);
/**
* 更新指标顺序
* @Title: updateSort

* @Description:

* @author zhiwj
* @param enterpriseId
* @param sort

* @return void


*/
void updateSort(@Param("enterpriseId") Integer enterpriseId, @Param("sort") Integer sort);
/**
* 删除
* @Title: deleteList

* @Description:

* @author zhiwj
* @param deleteList

* @return void


*/
void deleteList(@Param("ids") List<Integer> deleteList);
}
\ No newline at end of file
......@@ -5,7 +5,13 @@ import com.gic.cloud.entity.TabIndexDesc;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 指标
* @ClassName: TabIndexDescMapper

* @Description: 

* @author zhiwj

* @date 2020/9/7 10:45 AM

*/
public interface TabIndexDescMapper {
/**
* 根据主键删除
......@@ -55,17 +61,72 @@ public interface TabIndexDescMapper {
*/
int updateByPrimaryKey(TabIndexDesc record);
/**
* 查询指标
* @Title: listByEnterpriseAndModule

* @Description:

* @author zhiwj
* @param enterpriseId
* @param moduleId
* @param indexGroupName

* @return java.util.List<com.gic.cloud.dto.IndexDescDTO>


*/
List<IndexDescDTO> listByEnterpriseAndModule(@Param("enterpriseId") Integer enterpriseId, @Param("moduleId") String moduleId, @Param("indexGroupName") String indexGroupName);
/**
* 查询指标
* @Title: listByEnterpriseAndModuleDetail

* @Description:

* @author zhiwj
* @param enterpriseId
* @param moduleId
* @param indexGroupName
* @param userId
* @param indexStatus

* @return java.util.List<com.gic.cloud.dto.IndexDescDTO>


*/
List<IndexDescDTO> listByEnterpriseAndModuleDetail(@Param("enterpriseId") Integer enterpriseId, @Param("moduleId") String moduleId, @Param("indexGroupName") String indexGroupName, @Param("userId") Integer userId, @Param("indexStatus") Integer indexStatus);
// List<IndexDescDTO> listRecycle(@Param("enterpriseId") Integer enterpriseId, @Param("moduleId") String moduleId, @Param("indexGroupName") String indexGroupName, @Param("userId") Integer userId);
/**
* 查询指标
* @Title: listAll

* @Description:

* @author zhiwj 

* @return java.util.List<com.gic.cloud.entity.TabIndexDesc>


*/
List<TabIndexDesc> listAll();
/**
* 查询指标
* @Title: listAllUnRel

* @Description:

* @author zhiwj
* @param relIndexDescIdList

* @return java.util.List<com.gic.cloud.entity.TabIndexDesc>


*/
List<TabIndexDesc> listAllUnRel(@Param("ids") List<Integer> relIndexDescIdList);
/**
* 查询指标
* @Title: listByIds

* @Description:

* @author zhiwj
* @param indexDescIdList

* @return java.util.List<com.gic.cloud.entity.TabIndexDesc>


*/
List<TabIndexDesc> listByIds(@Param("ids") List<Integer> indexDescIdList);
/**
* 查询指标
* @Title: getIndexDescByIndexCode

* @Description:

* @author zhiwj
* @param moduleId
* @param indexCode
* @param indexGroupName

* @return com.gic.cloud.entity.TabIndexDesc


*/
TabIndexDesc getIndexDescByIndexCode(@Param("moduleId") String moduleId, @Param("indexCode") String indexCode, @Param("indexGroupName") String indexGroupName);
}
\ No newline at end of file
......@@ -4,7 +4,13 @@ import com.gic.cloud.entity.TabIndexGroup;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 指标分组
* @ClassName: TabIndexGroupMapper

* @Description: 

* @author zhiwj

* @date 2020/9/7 10:30 AM

*/
public interface TabIndexGroupMapper {
/**
* 根据主键删除
......@@ -54,9 +60,33 @@ public interface TabIndexGroupMapper {
*/
int updateByPrimaryKey(TabIndexGroup record);
/**
* 根据实体参数查询指标分组
* @Title: getBySelective

* @Description:

* @author zhiwj
* @param indexGroup

* @return com.gic.cloud.entity.TabIndexGroup


*/
TabIndexGroup getBySelective(TabIndexGroup indexGroup);
/**
* 根据主键 list 查询指标列表数据
* @Title: listIndexGroup

* @Description:

* @author zhiwj
* @param indexGroupIdList

* @return java.util.List<com.gic.cloud.entity.TabIndexGroup>


*/
List<TabIndexGroup> listIndexGroup(@Param("ids") List<Integer> indexGroupIdList);
/**
* 根据指标分组主键查询子分组主键ID list
* @Title: listChildIndexGroup

* @Description:

* @author zhiwj
* @param indexGroupId

* @return java.util.List<java.lang.Integer>


*/
List<Integer> listChildIndexGroup(@Param("indexGroupId") Integer indexGroupId);
}
\ No newline at end of file
......@@ -4,7 +4,13 @@ import com.gic.cloud.entity.TabIndexLog;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 指标字典
* @ClassName: TabIndexLogMapper

* @Description: 

* @author zhiwj

* @date 2020/9/7 10:35 AM

*/
public interface TabIndexLogMapper {
/**
* 根据主键删除
......@@ -54,5 +60,14 @@ public interface TabIndexLogMapper {
*/
int updateByPrimaryKey(TabIndexLog record);
/**
* 查询指标字典列表数据
* @Title: listBusinessLog

* @Description:

* @author guojuxing
* @param businessId
* @param type

* @return java.util.List<com.gic.cloud.entity.TabIndexLog>


*/
List<TabIndexLog> listBusinessLog(@Param("businessId") Integer businessId, @Param("type") Integer type);
}
\ No newline at end of file
package com.gic.cloud.dao.mapper;
import com.gic.cloud.entity.TabIndex;
import com.gic.cloud.qo.IndexQO;
import com.gic.cloud.qo.IndexQo;
import com.github.pagehelper.Page;
/**
* 指标字典
* @ClassName: TabIndexMapper

* @Description: 

* @author zhiwj

* @date 2020/9/7 10:35 AM

*/
public interface TabIndexMapper {
/**
* 根据主键删除
......@@ -53,7 +59,23 @@ public interface TabIndexMapper {
*/
int updateByPrimaryKey(TabIndex record);
/**
* 指标字典
* @Title: getBySelective

* @Description:

* @author zhiwj
* @param tabIndex

* @return com.gic.cloud.entity.TabIndex


*/
TabIndex getBySelective(TabIndex tabIndex);
Page<TabIndex> listIndex(IndexQO indexQO);
/**
* 查询指标字典列表数据
* @Title: listIndex

* @Description:

* @author guojuxing
* @param indexQO

* @return com.github.pagehelper.Page<com.gic.cloud.entity.TabIndex>


*/
Page<TabIndex> listIndex(IndexQo indexQO);
}
\ No newline at end of file
......@@ -4,7 +4,13 @@ import com.gic.cloud.entity.TabIndexModuleRel;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 指标/数据解读关联
* @ClassName: TabIndexModuleRelMapper

* @Description: 

* @author zhiwj

* @date 2020/9/7 10:35 AM

*/
public interface TabIndexModuleRelMapper {
/**
* 根据主键删除
......@@ -54,17 +60,79 @@ public interface TabIndexModuleRelMapper {
*/
int updateByPrimaryKey(TabIndexModuleRel record);
/**
* 删除字典/数据解读关联
* @Title: delByBusinessId

* @Description:

* @author zhiwj
* @param businessId
* @param type

* @return void


*/
void delByBusinessId(@Param("businessId") Integer businessId, @Param("type") Integer type);
/**
* 新增字典/数据解读关联
* @Title: insertSelectiveByNotExist

* @Description:

* @author guojuxing
* @param rel

* @return void


*/
void insertSelectiveByNotExist(TabIndexModuleRel rel);
/**
* 编辑字典/数据解读关联
* @Title: updateStatusByBusinessIds

* @Description:

* @author guojuxing
* @param businessId
* @param moduleIdList
* @param type

* @return void


*/
void updateStatusByBusinessIds(@Param("businessId") Integer businessId, @Param("ids") List<String> moduleIdList, @Param("type") Integer type);
/**
* 查询字典/数据解读关联的模块ID
* @Title: listModuleIdByBusinessId

* @Description:

* @author guojuxing
* @param businessId
* @param type

* @return java.util.List<java.lang.String>


*/
List<String> listModuleIdByBusinessId(@Param("businessId") Integer businessId, @Param("type") Integer type);
/**
* 查询字典/数据解读的ID
* @Title: listBusinessIdByModuleId

* @Description:

* @author zhiwj
* @param moduleId
* @param type

* @return java.util.List<java.lang.Integer>


*/
List<Integer> listBusinessIdByModuleId(@Param("moduleId") String moduleId, @Param("type") Integer type);
/**
* 查询模块ID
* @Title: listBusinessIdByModuleIds

* @Description:

* @author zhiwj
* @param moduleIdList

* @return java.util.List<java.lang.Integer>


*/
List<Integer> listBusinessIdByModuleIds(@Param("ids") List<String> moduleIdList);
/**
* 查询字典/数据解读关联
* @Title: listModuleIdByBusinessIds

* @Description:

* @author zhiwj
* @param businessIdList
* @param type

* @return java.util.List<com.gic.cloud.entity.TabIndexModuleRel>


*/
List<TabIndexModuleRel> listModuleIdByBusinessIds(@Param("ids") List<Integer> businessIdList, @Param("type") Integer type);
}
\ No newline at end of file
......@@ -5,6 +5,13 @@ import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 账号分组
* @ClassName: TabSysAccountGroupMapper

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:31 AM

*/
public interface TabSysAccountGroupMapper {
/**
* 根据主键删除
......@@ -54,13 +61,47 @@ public interface TabSysAccountGroupMapper {
*/
int updateByPrimaryKey(TabSysAccountGroup record);
/**
* 根据账号分组ID和账号分组名称查询数量,为了判断是否账号名称重复
* @Title: countByAccountGroupName

* @Description:

* @author guojuxing
* @param enterpriseId
* @param accountGroupId
* @param accountGroupName

* @return int


*/
int countByAccountGroupName(@Param("enterpriseId") Integer enterpriseId,
@Param("accountGroupId") Integer accountGroupId,
@Param("accountGroupName") String accountGroupName);
/**
* 查询账号分组在商户下当前的最大排序值
* @Title: queryMaxSort

* @Description:

* @author guojuxing
* @param enterpriseId

* @return int


*/
int queryMaxSort(@Param("enterpriseId") Integer enterpriseId);
/**
* 查询商户下所有的账号分组列表
* @Title: listAccountGroupOrderBySort

* @Description:

* @author guojuxing
* @param enterpriseId

* @return java.util.List<com.gic.cloud.entity.TabSysAccountGroup>


*/
List<TabSysAccountGroup> listAccountGroupOrderBySort(@Param("enterpriseId") Integer enterpriseId);
/**
* 删除账号分组
* @Title: deleteAccountGroup

* @Description:

* @author guojuxing
* @param accountGroupId

* @return int


*/
int deleteAccountGroup(@Param("accountGroupId")Integer accountGroupId);
}
\ No newline at end of file
......@@ -4,7 +4,13 @@ import com.gic.cloud.entity.TabSysDataAuth;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 数据权限
* @ClassName: TabSysDataAuthMapper

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:34 AM

*/
public interface TabSysDataAuthMapper {
/**
* 根据主键删除
......@@ -54,12 +60,41 @@ public interface TabSysDataAuthMapper {
*/
int updateByPrimaryKey(TabSysDataAuth record);
/**
* 数据权限名称是否重复
* @Title: countByDataAuthName

* @Description:

* @author guojuxing
* @param enterpriseId
* @param dataAuthId
* @param dataAuthName

* @return int


*/
int countByDataAuthName(@Param("enterpriseId") Integer enterpriseId,
@Param("dataAuthId") Integer dataAuthId,
@Param("dataAuthName") String dataAuthName);
/**
* 删除数据权限
* @Title: deleteDataAuth

* @Description:

* @author guojuxing
* @param dataAuthId

* @return int


*/
int deleteDataAuth(@Param("dataAuthId") Integer dataAuthId);
/**
* 数据权限列表数据
* @Title: listDataAuth

* @Description:

* @author guojuxing
* @param enterpriseId
* @param dataAuthName

* @return java.util.List<com.gic.cloud.entity.TabSysDataAuth>


*/
List<TabSysDataAuth> listDataAuth(@Param("enterpriseId")Integer enterpriseId,
@Param("dataAuthName")String dataAuthName);
}
\ No newline at end of file
......@@ -4,7 +4,13 @@ import com.gic.cloud.entity.TabSysFunction;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 功能权限
* @ClassName: TabSysFunctionMapper

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:32 AM

*/
public interface TabSysFunctionMapper {
/**
* 根据主键删除
......@@ -54,11 +60,40 @@ public interface TabSysFunctionMapper {
*/
int updateByPrimaryKey(TabSysFunction record);
/**
* 功能权限名称是否重复
* @Title: countByRepeatFunctionName

* @Description:

* @author guojuxing
* @param enterpriseId
* @param functionId
* @param functionName

* @return int


*/
int countByRepeatFunctionName(@Param("enterpriseId") Integer enterpriseId,
@Param("functionId") Integer functionId,
@Param("functionName") String functionName);
/**
* 删除功能权限
* @Title: deleteFunction

* @Description:

* @author guojuxing
* @param functionId

* @return void


*/
void deleteFunction(@Param("functionId") Integer functionId);
/**
* 查询功能权限列表数据
* @Title: listFunction

* @Description:

* @author guojuxing
* @param enterpriseId
* @param functionName

* @return java.util.List<com.gic.cloud.entity.TabSysFunction>


*/
List<TabSysFunction> listFunction(@Param("enterpriseId")Integer enterpriseId, @Param("functionName") String functionName);
}
\ No newline at end of file
......@@ -4,7 +4,13 @@ import com.gic.cloud.entity.TabSysFunctionModule;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 功能权限
* @ClassName: TabSysFunctionModuleMapper

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:33 AM

*/
public interface TabSysFunctionModuleMapper {
/**
* 根据主键删除
......@@ -54,5 +60,13 @@ public interface TabSysFunctionModuleMapper {
*/
int updateByPrimaryKey(TabSysFunctionModule record);
/**
* 查询功能模块
* @Title: listFunctionModule

* @Description:

* @author guojuxing
* @param search

* @return java.util.List<com.gic.cloud.entity.TabSysFunctionModule>


*/
List<TabSysFunctionModule> listFunctionModule(@Param("search") String search);
}
\ No newline at end of file
......@@ -2,7 +2,13 @@ package com.gic.cloud.dao.mapper;
import com.gic.cloud.entity.TabSysTempStoreCondition;
import org.apache.ibatis.annotations.Param;
/**
* 门店暂存区
* @ClassName: TabSysTempStoreConditionMapper

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:34 AM

*/
public interface TabSysTempStoreConditionMapper {
/**
* 根据主键删除
......@@ -52,5 +58,13 @@ public interface TabSysTempStoreConditionMapper {
*/
int updateByPrimaryKey(TabSysTempStoreCondition record);
/**
* 获取暂存区信息
* @Title: getTempStoreCondition

* @Description:

* @author guojuxing
* @param enterpriseId

* @return com.gic.cloud.entity.TabSysTempStoreCondition


*/
TabSysTempStoreCondition getTempStoreCondition(@Param("enterpriseId") Integer enterpriseId);
}
\ No newline at end of file
......@@ -2,11 +2,17 @@ package com.gic.cloud.dao.mapper;
import com.gic.cloud.dto.UserDTO;
import com.gic.cloud.entity.TabSysUser;
import com.gic.cloud.qo.UserQO;
import com.gic.cloud.qo.UserQo;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 用户
* @ClassName: TabSysUserMapper

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:32 AM

*/
public interface TabSysUserMapper {
/**
* 根据主键删除
......@@ -56,26 +62,109 @@ public interface TabSysUserMapper {
*/
int updateByPrimaryKey(TabSysUser record);
/**
* 根据手机号查询用户个数,用于判断用户是否重复
* @Title: countByRepeatPhone

* @Description:

* @author guojuxing
* @param enterpriseId
* @param userId
* @param nationCode
* @param phone

* @return int


*/
int countByRepeatPhone(@Param("enterpriseId") Integer enterpriseId,
@Param("userId") Integer userId,
@Param("nationCode") String nationCode,
@Param("phone") String phone);
/**
* 删除用户
* @Title: deleteUser

* @Description:

* @author guojuxing
* @param userId

* @return void


*/
void deleteUser(@Param("userId") Integer userId);
/**
* 删除账号分组下的所有用户
* @Title: deleteUserByAccountGroupId

* @Description:

* @author guojuxing
* @param accountGroupId

* @return void


*/
void deleteUserByAccountGroupId(@Param("accountGroupId") Integer accountGroupId);
List<TabSysUser> pageUser(UserQO userQO);
/**
* 分页查询用户列表
* @Title: pageUser

* @Description:

* @author guojuxing
* @param userQo

* @return java.util.List<com.gic.cloud.entity.TabSysUser>


*/
List<TabSysUser> pageUser(UserQo userQo);
/**
* 批量转移账号分组
* @Title: bulkTransferAccountGroup

* @Description:

* @author guojuxing
* @param userIdList
* @param targetAccountGroupId

* @return void


*/
void bulkTransferAccountGroup(@Param("userIdList") List<Integer> userIdList, @Param("targetAccountGroupId") Integer targetAccountGroupId);
/**
* 查询账号下用户个数
* @Title: countGroupByAccountGroupId

* @Description:

* @author guojuxing
* @param enterpriseId

* @return java.util.List<com.gic.cloud.dto.UserDTO>


*/
List<UserDTO> countGroupByAccountGroupId(@Param("enterpriseId")Integer enterpriseId);
/**
* 手机号查询用户
* @Title: listUserByPhone

* @Description:

* @author guojuxing
* @param nationCode
* @param phone

* @return java.util.List<com.gic.cloud.entity.TabSysUser>


*/
List<TabSysUser> listUserByPhone(@Param("nationCode") String nationCode, @Param("phone") String phone);
/**
* 查询用户列表(功能权限授权个数)
* @Title: countGroupByFunctionAuthId

* @Description:

* @author guojuxing
* @param enterpriseId
* @param functionIdList

* @return java.util.List<com.gic.cloud.dto.UserDTO>


*/
List<UserDTO> countGroupByFunctionAuthId(@Param("enterpriseId") Integer enterpriseId,
@Param("functionIdList") List<Integer> functionIdList);
/**
* 查询用户列表(功能权限授权个数)
* @Title: countGroupByDataAuthId

* @Description:

* @author guojuxing
* @param enterpriseId
* @param dataAuthIdList

* @return java.util.List<com.gic.cloud.dto.UserDTO>


*/
List<UserDTO> countGroupByDataAuthId(@Param("enterpriseId") Integer enterpriseId,
@Param("dataAuthIdList") List<Integer> dataAuthIdList);
}
\ No newline at end of file
......@@ -4,7 +4,13 @@ import com.gic.cloud.entity.TabUpdateTips;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 小红点提示
* @ClassName: TabUpdateTipsMapper

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:35 AM

*/
public interface TabUpdateTipsMapper {
/**
* 根据主键删除
......@@ -54,7 +60,28 @@ public interface TabUpdateTipsMapper {
*/
int updateByPrimaryKey(TabUpdateTips record);
/**
* 更新小红点提示表状态
* @Title: updateStatus

* @Description:

* @author zhiwj
* @param businessId
* @param type
* @param userId
* @param showStatus

* @return void


*/
void updateStatus(@Param("businessId") Integer businessId, @Param("type") Integer type, @Param("userId") Integer userId, @Param("showStatus") Integer showStatus);
/**
* 查询小红点提示列表数据
* @Title: listByIndexIdAndUser

* @Description:

* @author zhiwj
* @param businessIdList
* @param type
* @param userId

* @return java.util.List<com.gic.cloud.entity.TabUpdateTips>


*/
List<TabUpdateTips> listByIndexIdAndUser(@Param("ids") List<Integer> businessIdList, @Param("type") int type, @Param("userId") Integer userId);
}
\ No newline at end of file
......@@ -3,7 +3,11 @@ package com.gic.cloud.entity;
import java.util.Date;
/**
* tab_attention_store
* 关注门店
* @ClassName: TabAttentionStore

* @Description: 

* @author boom

* @date 2020/9/7 10:44 AM

*/
public class TabAttentionStore {
/**
......
......@@ -3,7 +3,11 @@ package com.gic.cloud.entity;
import java.util.Date;
/**
* tab_data_explain
* 数据解读
* @ClassName: TabDataExplain

* @Description: 

* @author zhiwj

* @date 2020/9/7 10:36 AM

*/
public class TabDataExplain {
/**
......
......@@ -3,7 +3,11 @@ package com.gic.cloud.entity;
import java.util.Date;
/**
* tab_gic_enterprise_portrait_rel
* 会员画像
* @ClassName: TabGicEnterprisePortraitRel

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:45 AM

*/
public class TabGicEnterprisePortraitRel {
/**
......
......@@ -3,7 +3,11 @@ package com.gic.cloud.entity;
import java.util.Date;
/**
* tab_index
* 指标字典
* @ClassName: TabIndex

* @Description: 

* @author zhiwj

* @date 2020/9/7 10:41 AM

*/
public class TabIndex {
/**
......
......@@ -3,7 +3,11 @@ package com.gic.cloud.entity;
import java.util.Date;
/**
* tab_index_desc
* 指标
* @ClassName: TabIndexDesc

* @Description: 

* @author zhiwj

* @date 2020/9/7 10:44 AM

*/
public class TabIndexDesc {
/**
......
......@@ -3,7 +3,11 @@ package com.gic.cloud.entity;
import java.util.Date;
/**
* tab_index_desc_enterprise
* 指标
* @ClassName: TabIndexDescEnterprise

* @Description: 

* @author zhiwj

* @date 2020/9/7 10:44 AM

*/
public class TabIndexDescEnterprise {
/**
......
......@@ -3,7 +3,11 @@ package com.gic.cloud.entity;
import java.util.Date;
/**
* tab_index_group
* 指标分组
* @ClassName: TabIndexGroup

* @Description: 

* @author zhiwj

* @date 2020/9/7 10:30 AM

*/
public class TabIndexGroup {
/**
......
......@@ -3,7 +3,11 @@ package com.gic.cloud.entity;
import java.util.Date;
/**
* tab_index_log
* 指标字典
* @ClassName: TabIndexLog

* @Description: 

* @author zhiwj

* @date 2020/9/7 10:36 AM

*/
public class TabIndexLog {
/**
......
......@@ -3,7 +3,11 @@ package com.gic.cloud.entity;
import java.util.Date;
/**
* tab_index_module_rel
* 字典
* @ClassName: TabIndexModuleRel

* @Description: 

* @author zhiwj

* @date 2020/9/7 10:36 AM

*/
public class TabIndexModuleRel {
/**
......
......@@ -3,7 +3,11 @@ package com.gic.cloud.entity;
import java.util.Date;
/**
* tab_sys_account_group
* 账号分组
* @ClassName: TabSysAccountGroup

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:31 AM

*/
public class TabSysAccountGroup {
/**
......
......@@ -3,7 +3,11 @@ package com.gic.cloud.entity;
import java.util.Date;
/**
* tab_sys_data_auth
* 数据权限
* @ClassName: TabSysDataAuth

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:34 AM

*/
public class TabSysDataAuth {
/**
......
......@@ -3,7 +3,11 @@ package com.gic.cloud.entity;
import java.util.Date;
/**
* tab_sys_function
* 功能权限
* @ClassName: TabSysFunction

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:32 AM

*/
public class TabSysFunction {
/**
......
......@@ -3,7 +3,11 @@ package com.gic.cloud.entity;
import java.util.Date;
/**
* tab_sys_function_module
* 功能权限
* @ClassName: TabSysFunctionModule

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:33 AM

*/
public class TabSysFunctionModule {
/**
......
......@@ -3,7 +3,11 @@ package com.gic.cloud.entity;
import java.util.Date;
/**
* tab_sys_temp_store_condition
* 门店暂存区
* @ClassName: TabSysTempStoreCondition

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:34 AM

*/
public class TabSysTempStoreCondition {
/**
......
......@@ -3,7 +3,11 @@ package com.gic.cloud.entity;
import java.util.Date;
/**
* tab_sys_user
* 用户
* @ClassName: TabSysUser

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:31 AM

*/
public class TabSysUser {
/**
......
package com.gic.cloud.entity;
/**
* tab_update_tips
* 小红点提示
* @ClassName: TabUpdateTips

* @Description: 

* @author zhiwj

* @date 2020/9/7 10:41 AM

*/
public class TabUpdateTips {
/**
......
package com.gic.cloud.entity;
/**
* test
* @ClassName: TestEntity

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:31 AM

*/
public class TestEntity {
}
......@@ -6,11 +6,33 @@ import com.gic.cloud.dto.AccountGroupDTO;
import com.gic.cloud.entity.TabSysAccountGroup;
import java.util.List;
/**
* 账号分组
* @ClassName: AccountGroupService

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:31 AM

*/
public interface AccountGroupService {
/**
* 新增账号分组
* @Title: saveAccountGroup

* @Description:

* @author guojuxing
* @param dto

* @return java.lang.Integer


*/
Integer saveAccountGroup(AccountGroupDTO dto);
/**
* 编辑账号分组
* @Title: editAccountGroup

* @Description:

* @author guojuxing
* @param dto

* @return void


*/
void editAccountGroup(AccountGroupDTO dto);
/**
......@@ -42,9 +64,34 @@ public interface AccountGroupService {

*/
TabSysAccountGroup getAccountGroupById(Integer accountGroupId);
/**
* 排序账号分组
* @Title: sortAccountGroup

* @Description:

* @author guojuxing
* @param record
* @param targetSort

* @return void


*/
void sortAccountGroup(TabSysAccountGroup record, Integer targetSort);
/**
* 查询账号分组列表数据
* @Title: listAccountGroupOrderBySort

* @Description:

* @author guojuxing
* @param enterpriseId

* @return java.util.List<com.gic.cloud.entity.TabSysAccountGroup>


*/
List<TabSysAccountGroup> listAccountGroupOrderBySort(Integer enterpriseId);
/**
* 删除账号分组
* @Title: deleteAccountGroup

* @Description:

* @author guojuxing
* @param accountGroupId

* @return void


*/
void deleteAccountGroup(Integer accountGroupId);
}
......@@ -5,20 +5,89 @@ import com.gic.cloud.entity.TabSysDataAuth;
import com.github.pagehelper.Page;
import java.util.List;
/**
* 数据权限接口
* @ClassName: DataAuthService

* @Description: 

* @author guojuxing

* @date 2020/9/7 9:53 AM

*/
public interface DataAuthService {
/**
* 新增数据权限
* @Title: saveDataAuth

* @Description:

* @author guojuxing
* @param dto

* @return java.lang.Integer


*/
Integer saveDataAuth(DataAuthDTO dto);
/**
* 编辑数据权限
* @Title: editDataAuth

* @Description:

* @author guojuxing
* @param dto

* @return void


*/
void editDataAuth(DataAuthDTO dto);
/**
* 主键查询数据权限
* @Title: getDataAuth

* @Description:

* @author guojuxing
* @param dataAuthId

* @return com.gic.cloud.entity.TabSysDataAuth


*/
TabSysDataAuth getDataAuth(Integer dataAuthId);
/**
* 数据权限名称是否重复
* @Title: isRepeatDataAuthName

* @Description:

* @author guojuxing
* @param enterpriseId
* @param dataAuthId
* @param dataAuthName

* @return boolean


*/
boolean isRepeatDataAuthName(Integer enterpriseId, Integer dataAuthId, String dataAuthName);
/**
* 主键删除数据权限
* @Title: deleteDataAuth

* @Description:

* @author guojuxing
* @param dataAuthId

* @return int


*/
int deleteDataAuth(Integer dataAuthId);
/**
* 分页查询数据权限
* @Title: pageDataAuth

* @Description:

* @author guojuxing
* @param enterpriseId
* @param dataAuthName
* @param currentPage
* @param pageSize

* @return com.github.pagehelper.Page<com.gic.cloud.entity.TabSysDataAuth>


*/
Page<TabSysDataAuth> pageDataAuth(Integer enterpriseId, String dataAuthName, Integer currentPage, Integer pageSize);
/**
* 查询数据权限
* @Title: listDataAuth

* @Description:

* @author guojuxing
* @param enterpriseId
* @param dataAuthName

* @return java.util.List<com.gic.cloud.entity.TabSysDataAuth>


*/
List<TabSysDataAuth> listDataAuth(Integer enterpriseId, String dataAuthName);
}
......@@ -2,7 +2,7 @@ package com.gic.cloud.service;
import com.gic.cloud.dto.DataExplainDTO;
import com.gic.cloud.entity.TabDataExplain;
import com.gic.cloud.qo.DataExplainQO;
import com.gic.cloud.qo.DataExplainQo;
import com.github.pagehelper.Page;
import java.util.List;
......@@ -14,17 +14,74 @@ import java.util.List;
*/
public interface DataExplainService {
/**
* 数据解读名称是否重复
* @Title: isNameRepeat

* @Description:

* @author zhiwj
* @param dataName
* @param dataExplainId

* @return boolean


*/
boolean isNameRepeat(String dataName, Integer dataExplainId);
/**
* 新增数据解读
* @Title: save

* @Description:

* @author zhiwj
* @param dataExplainDTO

* @return java.lang.Integer


*/
Integer save(DataExplainDTO dataExplainDTO);
/**
* 更新数据解读
* @Title: update

* @Description:

* @author zhiwj
* @param dataExplainDTO

* @return void


*/
void update(DataExplainDTO dataExplainDTO);
/**
* 获取数据解读
* @Title: getByDataExplainId

* @Description:

* @author zhiwj
* @param dataExplainId

* @return com.gic.cloud.entity.TabDataExplain


*/
TabDataExplain getByDataExplainId(Integer dataExplainId);
Page<TabDataExplain> listDataExplain(DataExplainQO dataExplainQO);
/**
* 分页查询数据解读
* @Title: listDataExplain

* @Description:

* @author zhiwj
* @param dataExplainQO

* @return com.github.pagehelper.Page<com.gic.cloud.entity.TabDataExplain>


*/
Page<TabDataExplain> listDataExplain(DataExplainQo dataExplainQO);
List<TabDataExplain> listAllDataExplain(DataExplainQO dataExplainQO);
/**
* 查询数据解读列表数据
* @Title: listAllDataExplain

* @Description:

* @author zhiwj
* @param dataExplainQO

* @return java.util.List<com.gic.cloud.entity.TabDataExplain>


*/
List<TabDataExplain> listAllDataExplain(DataExplainQo dataExplainQO);
/**
* 删除数据解读
* @Title: deleteById

* @Description:

* @author zhiwj
* @param dataExplainId

* @return void


*/
void deleteById(Integer dataExplainId);
}
......@@ -4,13 +4,52 @@ import com.gic.cloud.dto.FunctionModuleDTO;
import com.gic.cloud.entity.TabSysFunctionModule;
import java.util.List;
/**
* 功能模块接口
* @ClassName: FunctionModuleService

* @Description: 

* @author guojuxing

* @date 2020/9/7 9:51 AM

*/
public interface FunctionModuleService {
/**
* 新增功能模块
* @Title: saveFunctionModule

* @Description:

* @author guojuxing
* @param dto

* @return java.lang.Integer


*/
Integer saveFunctionModule(FunctionModuleDTO dto);
/**
* 编辑功能模块
* @Title: editFunctionModule

* @Description:

* @author guojuxing
* @param dto

* @return void


*/
void editFunctionModule(FunctionModuleDTO dto);
/**
* 主键查询功能模块信息
* @Title: getFunctionModule

* @Description:

* @author guojuxing
* @param functionModuleId

* @return com.gic.cloud.entity.TabSysFunctionModule


*/
TabSysFunctionModule getFunctionModule(Integer functionModuleId);
/**
* 查询功能模块列表数据
* @Title: listFunctionModule

* @Description:

* @author guojuxing
* @param search

* @return java.util.List<com.gic.cloud.entity.TabSysFunctionModule>


*/
List<TabSysFunctionModule> listFunctionModule(String search);
}
......@@ -5,20 +5,89 @@ import com.gic.cloud.entity.TabSysFunction;
import com.github.pagehelper.Page;
import java.util.List;
/**
* 功能权限接口
* @ClassName: FunctionService

* @Description: 

* @author guojuxing

* @date 2020/9/7 9:50 AM

*/
public interface FunctionService {
/**
* 新增功能权限
* @Title: saveFunction

* @Description:

* @author guojuxing
* @param dto

* @return java.lang.Integer


*/
Integer saveFunction(FunctionDTO dto);
/**
* 编辑功能权限
* @Title: editFunction

* @Description:

* @author guojuxing
* @param dto

* @return void


*/
void editFunction(FunctionDTO dto);
/**
* 主键查询功能权限信息
* @Title: getFunction

* @Description:

* @author guojuxing
* @param functionId

* @return com.gic.cloud.entity.TabSysFunction


*/
TabSysFunction getFunction(Integer functionId);
/**
* 功能权限名称是否重复
* @Title: isRepeatFunctionName

* @Description:

* @author guojuxing
* @param enterpriseId
* @param functionId
* @param functionName

* @return boolean


*/
boolean isRepeatFunctionName(Integer enterpriseId, Integer functionId, String functionName);
/**
* 主键删除功能权限
* @Title: deleteFunction

* @Description:

* @author guojuxing
* @param functionId

* @return void


*/
void deleteFunction(Integer functionId);
/**
* 分页查询功能权限
* @Title: pageFunction

* @Description:

* @author guojuxing
* @param enterpriseId
* @param functionName
* @param currentPage
* @param pageSize

* @return com.github.pagehelper.Page<com.gic.cloud.entity.TabSysFunction>


*/
Page<TabSysFunction> pageFunction(Integer enterpriseId, String functionName,
Integer currentPage, Integer pageSize);
/**
* 查询功能权限
* @Title: listFunction

* @Description:

* @author guojuxing
* @param enterpriseId
* @param functionName

* @return java.util.List<com.gic.cloud.entity.TabSysFunction>


*/
List<TabSysFunction> listFunction(Integer enterpriseId, String functionName);
}
......@@ -11,15 +11,65 @@ import java.util.List;
* @date 2020-07-23 16:46
*/
public interface IndexDescEnterpriseService {
/**
* 更新排序值
* @Title: updateSort

* @Description:

* @author zhiwj
* @param enterpriseId
* @param indexDescEnterpriseId
* @param sort

* @return void


*/
void updateSort(Integer enterpriseId, Integer indexDescEnterpriseId, Integer sort);
/**
* 回收站
* @Title: moveToRecycle

* @Description:

* @author zhiwj
* @param indexDescEnterpriseId

* @return void


*/
void moveToRecycle(Integer indexDescEnterpriseId);
/**
* 批量更新
* @Title: batchUpdate

* @Description:

* @author zhiwj
* @param descList

* @return void


*/
void batchUpdate(List<IndexDescDTO> descList);
/**
* 批量更新
* @Title: batchUpdate

* @Description:

* @author zhiwj
* @param idsArr

* @return void


*/
void batchUpdate(String[] idsArr);
/**
* 删除
* @Title: deleteList

* @Description:

* @author zhiwj
* @param deleteList

* @return void


*/
void deleteList(List<Integer> deleteList);
/**
* 新增
* @Title: insert

* @Description:

* @author zhiwj
* @param indexDescEnterprise

* @return void


*/
void insert(TabIndexDescEnterprise indexDescEnterprise);
}
......@@ -13,21 +13,108 @@ import java.util.List;
*/
public interface IndexDescService {
/**
* 查询指标
* @Title: listByEnterpriseAndModule

* @Description:

* @author zhiwj
* @param enterpriseId
* @param moduleId
* @param indexGroupName

* @return java.util.List<com.gic.cloud.dto.IndexDescDTO>


*/
List<IndexDescDTO> listByEnterpriseAndModule(Integer enterpriseId, String moduleId, String indexGroupName);
/**
* 查询指标
* @Title: listByEnterpriseAndModuleDetail

* @Description:

* @author zhiwj
* @param enterpriseId
* @param moduleId
* @param indexGroupName
* @param userId

* @return java.util.List<com.gic.cloud.dto.IndexDescDTO>


*/
List<IndexDescDTO> listByEnterpriseAndModuleDetail(Integer enterpriseId, String moduleId, String indexGroupName, Integer userId);
/**
* 查询
* @Title: listRecycle

* @Description:

* @author zhiwj
* @param enterpriseId
* @param moduleId
* @param indexGroupName
* @param userId

* @return java.util.List<com.gic.cloud.dto.IndexDescDTO>


*/
List<IndexDescDTO> listRecycle(Integer enterpriseId, String moduleId, String indexGroupName, Integer userId);
/**
* 指标排序
* @Title: sort

* @Description:

* @author zhiwj
* @param enterpriseId
* @param moduleId
* @param indexGroupName
* @param indexDescEnterpriseId
* @param seq

* @return void


*/
void sort(Integer enterpriseId, String moduleId, String indexGroupName, Integer indexDescEnterpriseId, Integer seq);
/**
* 获取指标
* @Title: getIndexDesc

* @Description:

* @author zhiwj
* @param enterpriseId
* @param indexDescId

* @return com.gic.cloud.entity.TabIndexDesc


*/
TabIndexDesc getIndexDesc(Integer enterpriseId, Integer indexDescId);
/**
* 查询
* @Title: listAllUnRel

* @Description:

* @author zhiwj
* @param indexDescIdList

* @return java.util.List<com.gic.cloud.entity.TabIndexDesc>


*/
List<TabIndexDesc> listAllUnRel(List<Integer> indexDescIdList);
/**
* 查询
* @Title: listByIds

* @Description:

* @author zhiwj
* @param indexDescIdList

* @return java.util.List<com.gic.cloud.entity.TabIndexDesc>


*/
List<TabIndexDesc> listByIds(List<Integer> indexDescIdList);
/**
* 获取
* @Title: getIndexDesc

* @Description:

* @author zhiwj
* @param moduleId
* @param indexCode
* @param indexGroupName

* @return com.gic.cloud.entity.TabIndexDesc


*/
TabIndexDesc getIndexDesc(String moduleId, String indexCode, String indexGroupName);
/**
* 初始化指标
* @Title: init

* @Description:

* @author zhiwj
* @param enterpriseId

* @return void


*/
void init(Integer enterpriseId);
}
......@@ -11,19 +11,83 @@ import java.util.List;
* @date 2020-07-13 15:37
*/
public interface IndexGroupService {
/**
* 是否指标分组名称重复
* @Title: isNameRepeat

* @Description: 是否指标名称重复

* @author zhiwj
* @param indexGroupName
* @param indexGroupId

* @return boolean


*/
boolean isNameRepeat(String indexGroupName, Integer indexGroupId);
/**
* 新增指标分组
* @Title: save

* @Description:

* @author zhiwj
* @param indexGroupDTO

* @return java.lang.Integer


*/
Integer save(IndexGroupDTO indexGroupDTO);
/**
* 根据主键ID查询指标分组
* @Title: getById

* @Description:

* @author zhiwj
* @param indexGroupId

* @return com.gic.cloud.entity.TabIndexGroup


*/
TabIndexGroup getById(Integer indexGroupId);
/**
* 更新指标分组
* @Title: update

* @Description:

* @author zhiwj
* @param indexGroupDTO

* @return void


*/
void update(IndexGroupDTO indexGroupDTO);
/**
* 删除指标分组
* @Title: delete

* @Description:

* @author zhiwj
* @param indexGroupId

* @return void


*/
void delete(Integer indexGroupId);
/**
* 查询指标分组列表数据
* @Title: listIndexGroup

* @Description:

* @author zhiwj 

* @return java.util.List<com.gic.cloud.entity.TabIndexGroup>


*/
List<TabIndexGroup> listIndexGroup();
/**
* 根据主键ID list 查询指名称
* @Title: getNameByIds

* @Description:

* @author zhiwj
* @param indexGroupIdList

* @return java.lang.String


*/
String getNameByIds(List<Integer> indexGroupIdList);
/**
* 查询子分组
* @Title: listChildIndexGroup

* @Description:

* @author zhiwj
* @param indexGroupId

* @return java.util.List<java.lang.Integer>


*/
List<Integer> listChildIndexGroup(Integer indexGroupId);
}
......@@ -12,15 +12,65 @@ import java.util.List;
* @date 2020-07-08 10:22
*/
public interface IndexLogService {
/**
* 新增指标字典日志
* @Title: saveIndexInsertLog

* @Description:

* @author zhiwj
* @param indexDTO

* @return void


*/
void saveIndexInsertLog(IndexDTO indexDTO);
/**
* 指标字典更新日志
* @Title: saveIndexUpdateLog

* @Description:

* @author zhiwj
* @param indexDTO
* @param reason

* @return void


*/
void saveIndexUpdateLog(IndexDTO indexDTO, String reason);
/**
* 新增数据解读、插入日志
* @Title: saveDataExplainInsertLog

* @Description:

* @author zhiwj
* @param dataExplainDTO

* @return void


*/
void saveDataExplainInsertLog(DataExplainDTO dataExplainDTO);
/**
* 数据解读更新日志
* @Title: saveDataExplainUpdateLog

* @Description:

* @author zhiwj
* @param dataExplainDTO
* @param reason

* @return void


*/
void saveDataExplainUpdateLog(DataExplainDTO dataExplainDTO, String reason);
/**
* 查询指标日志
* @Title: listIndexLog

* @Description:

* @author zhiwj
* @param indexId

* @return java.util.List<com.gic.cloud.entity.TabIndexLog>


*/
List<TabIndexLog> listIndexLog(Integer indexId);
/**
* 查询数据解读日志
* @Title: listDataExplainLog

* @Description:

* @author zhiwj
* @param dataExplainId

* @return java.util.List<com.gic.cloud.entity.TabIndexLog>


*/
List<TabIndexLog> listDataExplainLog(Integer dataExplainId);
}
......@@ -9,17 +9,79 @@ import java.util.Map;
* @date 2020-07-08 10:22
*/
public interface IndexModuleRelService {
/**
* 新增字典/数据解读关联
* @Title: save

* @Description:

* @author zhiwj
* @param indexId
* @param moduleId
* @param type

* @return void


*/
void save(Integer indexId, List<String> moduleId, Integer type);
/**
* 查询指标模块ID
* @Title: listModuleIdByBusinessId

* @Description:

* @author zhiwj
* @param indexId
* @param type

* @return java.util.List<java.lang.String>


*/
List<String> listModuleIdByBusinessId(Integer indexId, Integer type);
/**
* 查询模块ID list
* @Title: listBusinessIdByModuleId

* @Description:

* @author zhiwj
* @param moduleId
* @param type

* @return java.util.List<java.lang.Integer>


*/
List<Integer> listBusinessIdByModuleId(String moduleId, Integer type);
/**
* 查询指标/数据解读 ID list
* @Title: listBusinessIdByModuleIds

* @Description:

* @author zhiwj
* @param moduleIdList

* @return java.util.List<java.lang.Integer>


*/
List<Integer> listBusinessIdByModuleIds(List<String> moduleIdList);
/**
* 删除
* @Title: deleteByBusinessId

* @Description:

* @author zhiwj
* @param businessId
* @param type

* @return void


*/
void deleteByBusinessId(Integer businessId, Integer type);
/**
* 分页查询
* @Title: groupModuleIdByBusinessIds

* @Description:

* @author zhiwj
* @param indexIdList
* @param type

* @return java.util.Map<java.lang.Integer,java.util.List<java.lang.String>>


*/
Map<Integer, List<String>> groupModuleIdByBusinessIds(List<Integer> indexIdList, Integer type);
/**
* 查询
* @Title: listRelModuleId

* @Description:

* @author zhiwj
* @param type

* @return java.util.List<java.lang.String>


*/
List<String> listRelModuleId(Integer type);
}
......@@ -2,7 +2,7 @@ package com.gic.cloud.service;
import com.gic.cloud.dto.IndexDTO;
import com.gic.cloud.entity.TabIndex;
import com.gic.cloud.qo.IndexQO;
import com.gic.cloud.qo.IndexQo;
import com.github.pagehelper.Page;
import java.util.List;
......@@ -14,21 +14,96 @@ import java.util.List;
*/
public interface IndexService {
/**
* 指标字典名称是否重复
* @Title: isNameRepeat

* @Description:

* @author zhiwj
* @param name
* @param indexId

* @return boolean


*/
boolean isNameRepeat(String name, Integer indexId);
/**
* 指标字典code是否重复
* @Title: isCodeRepeat

* @Description:

* @author zhiwj
* @param code
* @param indexId

* @return boolean


*/
boolean isCodeRepeat(String code, Integer indexId);
/**
* 新增指标字典
* @Title: save

* @Description:

* @author zhiwj
* @param indexDTO

* @return java.lang.Integer


*/
Integer save(IndexDTO indexDTO);
/**
* 更新指标字典
* @Title: update

* @Description:

* @author zhiwj
* @param indexDTO

* @return void


*/
void update(IndexDTO indexDTO);
/**
* 获取指标字典
* @Title: getByIndexId

* @Description:

* @author zhiwj
* @param indexId

* @return com.gic.cloud.entity.TabIndex


*/
TabIndex getByIndexId(Integer indexId);
Page<TabIndex> listIndex(IndexQO indexQO);
/**
* 分页查询指标字典
* @Title: listIndex

* @Description:

* @author zhiwj
* @param indexQO

* @return com.github.pagehelper.Page<com.gic.cloud.entity.TabIndex>


*/
Page<TabIndex> listIndex(IndexQo indexQO);
List<TabIndex> listAllIndex(IndexQO indexQO);
/**
* 查询指标字典
* @Title: listAllIndex

* @Description:

* @author zhiwj
* @param indexQO

* @return java.util.List<com.gic.cloud.entity.TabIndex>


*/
List<TabIndex> listAllIndex(IndexQo indexQO);
/**
* 删除指标字典
* @Title: deleteById

* @Description:

* @author zhiwj
* @param indexId

* @return void


*/
void deleteById(Integer indexId);
/**
* 获取指标字典
* @Title: getByIndexCode

* @Description:

* @author zhiwj
* @param moduleId
* @param indexCode

* @return com.gic.cloud.entity.TabIndex


*/
TabIndex getByIndexCode(String moduleId, String indexCode);
}
......@@ -2,11 +2,44 @@ package com.gic.cloud.service;
import com.gic.cloud.entity.TabAttentionStore;
import com.github.pagehelper.Page;
/**
* 关注门店接口
* @ClassName: StoreAttenttionService

* @Description: 

* @author boom

* @date 2020/9/7 10:21 AM

*/
public interface StoreAttenttionService {
/**
* 新增关注门店
* @Title: addStoreAttenttion

* @Description:

* @author boom
* @param tabAttentionStore

* @return int


*/
int addStoreAttenttion(TabAttentionStore tabAttentionStore);
/**
* 删除关注门店
* @Title: removeStoreAttenttion

* @Description:

* @author boom
* @param enterpriseId
* @param userId
* @param storeIds

* @return int


*/
int removeStoreAttenttion(Integer enterpriseId, Integer userId, String storeIds);
/**
* 分页查询关注门店
* @Title: pageStoreAttention

* @Description:

* @author boom
* @param userId
* @param enterpriseId

* @return com.github.pagehelper.Page<com.gic.cloud.entity.TabAttentionStore>


*/
Page<TabAttentionStore> pageStoreAttention(Integer userId, Integer enterpriseId);
}
......@@ -2,12 +2,42 @@ package com.gic.cloud.service;
import com.gic.cloud.dto.TempStoreConditionDTO;
import com.gic.cloud.entity.TabSysTempStoreCondition;
/**
* 门店暂存区接口
* @ClassName: TempStoreConditionService

* @Description: 

* @author guojuxing

* @date 2020/9/7 9:55 AM

*/
public interface TempStoreConditionService {
/**
* 新增门店暂存区
* @Title: saveTempStoreCondition

* @Description:

* @author guojuxing
* @param dto

* @return java.lang.Integer


*/
Integer saveTempStoreCondition(TempStoreConditionDTO dto);
/**
* 编辑门店暂存区
* @Title: editTempStoreCondition

* @Description:

* @author guojuxing
* @param dto

* @return void


*/
void editTempStoreCondition(TempStoreConditionDTO dto);
/**
* 获取门店暂存区
* @Title: getTempStoreCondition

* @Description:

* @author guojuxing
* @param enterpriseId

* @return com.gic.cloud.entity.TabSysTempStoreCondition


*/
TabSysTempStoreCondition getTempStoreCondition(Integer enterpriseId);
}
package com.gic.cloud.service;
/**
* test
* @ClassName: TestService

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:31 AM

*/
public class TestService {
}
......@@ -12,17 +12,59 @@ import java.util.Map;
*/
public interface UpdateTipService {
/**
* 新增小红点提示
* @Title: insertBySaveUser

* @Description:

* @author zhiwj
* @param userId

* @return void


*/
void insertBySaveUser(Integer userId);
/**
* 新增小红点提示
* @Title: insertBySaveBusiness

* @Description:

* @author zhiwj
* @param businessId
* @param type

* @return void


*/
void insertBySaveBusiness(Integer businessId, Integer type);
/**
* 发布 要更新小红点
*/
* 小红点提示发布
* @Title: publish

* @Description:

* @author zhiwj
* @param businessId 指标ID
* @param type
指标/数据解读
* @return void


*/
void publish(Integer businessId, Integer type);
/**
* 置灰小红点
* @Title: erase

* @Description:

* @author zhiwj
* @param userId
* @param updateTipsId
* @param type

* @return void


*/
void erase(Integer userId, Integer updateTipsId, Integer type);
/**
* 指标字典和用户的map
* @Title: mapByIndexIdAndUser

* @Description:

* @author zhiwj
* @param indexIdList
* @param type
* @param userId

* @return java.util.Map<java.lang.Integer,com.gic.cloud.entity.TabUpdateTips>


*/
Map<Integer, TabUpdateTips> mapByIndexIdAndUser(List<Integer> indexIdList, int type, Integer userId);
}
......@@ -2,21 +2,75 @@ package com.gic.cloud.service;
import com.gic.cloud.dto.UserDTO;
import com.gic.cloud.entity.TabSysUser;
import com.gic.cloud.qo.UserQO;
import com.gic.cloud.qo.UserQo;
import com.github.pagehelper.Page;
import java.util.List;
/**
* 用户
* @ClassName: UserService

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:32 AM

*/
public interface UserService {
/**
* 新增用户
* @Title: saveUser

* @Description:

* @author guojuxing
* @param dto

* @return java.lang.Integer


*/
Integer saveUser(UserDTO dto);
/**
* 编辑用户信息
* @Title: editUser

* @Description:

* @author guojuxing
* @param dto

* @return void


*/
void editUser(UserDTO dto);
/**
* 查询用户信息根据主键
* @Title: getUser

* @Description:

* @author guojuxing
* @param userId

* @return com.gic.cloud.entity.TabSysUser


*/
TabSysUser getUser(Integer userId);
/**
* 手机号是否重复
* @Title: isRepeatPhone

* @Description:

* @author guojuxing
* @param enterpriseId
* @param userId
* @param nationCode
* @param phone

* @return boolean


*/
boolean isRepeatPhone(Integer enterpriseId, Integer userId, String nationCode, String phone);
/**
* 删除用户根据主键
* @Title: deleteUser

* @Description:

* @author guojuxing
* @param userId

* @return void


*/
void deleteUser(Integer userId);
/**
......@@ -29,17 +83,84 @@ public interface UserService {

*/
void deleteUserByAccountGroupId(Integer accountGroupId);
Page<TabSysUser> pageUser(UserQO userQO);
List<TabSysUser> listUser(UserQO userQO);
/**
* 分页查询用户列表
* @Title: pageUser

* @Description:

* @author guojuxing
* @param userQo

* @return com.github.pagehelper.Page<com.gic.cloud.entity.TabSysUser>


*/
Page<TabSysUser> pageUser(UserQo userQo);
/**
* 查询用户列表
* @Title: listUser

* @Description:

* @author guojuxing
* @param userQo

* @return java.util.List<com.gic.cloud.entity.TabSysUser>


*/
List<TabSysUser> listUser(UserQo userQo);
/**
* 批量转移账号分组
* @Title: bulkTransferAccountGroup

* @Description:

* @author guojuxing
* @param userIdList
* @param targetAccountGroupId

* @return void


*/
void bulkTransferAccountGroup(List<Integer> userIdList, Integer targetAccountGroupId);
/**
* 账号列表(每个账号下用户个数)
* @Title: countGroupByAccountGroupId

* @Description:

* @author guojuxing
* @param enterpriseId

* @return java.util.List<com.gic.cloud.dto.UserDTO>


*/
List<UserDTO> countGroupByAccountGroupId(Integer enterpriseId);
/**
* 手机号查询用户
* @Title: listUserByPhone

* @Description:

* @author guojuxing
* @param nationCode
* @param phone

* @return java.util.List<com.gic.cloud.entity.TabSysUser>


*/
List<TabSysUser> listUserByPhone(String nationCode, String phone);
/**
* 用户列表(功能权限授权个数)
* @Title: countGroupByFunctionAuthId

* @Description:

* @author guojuxing
* @param enterpriseId
* @param functionIdList

* @return java.util.List<com.gic.cloud.dto.UserDTO>


*/
List<UserDTO> countGroupByFunctionAuthId(Integer enterpriseId, List<Integer> functionIdList);
/**
* 用户列(数据权限授权个数)
* @Title: countGroupByDataAuthId

* @Description:

* @author guojuxing
* @param enterpriseId
* @param dataAuthIdList

* @return java.util.List<com.gic.cloud.dto.UserDTO>


*/
List<UserDTO> countGroupByDataAuthId(Integer enterpriseId, List<Integer> dataAuthIdList);
}
......@@ -11,7 +11,13 @@ import com.gic.cloud.dto.AccountGroupDTO;
import com.gic.cloud.entity.TabSysAccountGroup;
import com.gic.cloud.service.AccountGroupService;
import com.gic.commons.util.EntityUtil;
/**
* 账号分组
* @ClassName: AccountGroupServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:31 AM

*/
@Service("accountGroupService")
public class AccountGroupServiceImpl implements AccountGroupService{
@Autowired
......
......@@ -12,7 +12,13 @@ import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
/**
* 数据权限
* @ClassName: DataAuthServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:34 AM

*/
@Service("dataAuthService")
public class DataAuthServiceImpl implements DataAuthService{
@Autowired
......
......@@ -3,7 +3,7 @@ package com.gic.cloud.service.impl;
import com.gic.cloud.dao.mapper.TabDataExplainMapper;
import com.gic.cloud.dto.DataExplainDTO;
import com.gic.cloud.entity.TabDataExplain;
import com.gic.cloud.qo.DataExplainQO;
import com.gic.cloud.qo.DataExplainQo;
import com.gic.cloud.service.DataExplainService;
import com.gic.commons.util.EntityUtil;
import com.github.pagehelper.Page;
......@@ -54,13 +54,13 @@ public class DataExplainServiceImpl implements DataExplainService {
}
@Override
public Page<TabDataExplain> listDataExplain(DataExplainQO dataExplainQO) {
public Page<TabDataExplain> listDataExplain(DataExplainQo dataExplainQO) {
PageHelper.startPage(dataExplainQO.getCurrentPage(), dataExplainQO.getPageSize());
return tabDataExplainMapper.listDataExplain(dataExplainQO);
}
@Override
public List<TabDataExplain> listAllDataExplain(DataExplainQO dataExplainQO) {
public List<TabDataExplain> listAllDataExplain(DataExplainQo dataExplainQO) {
return tabDataExplainMapper.listDataExplain(dataExplainQO);
}
......
......@@ -11,7 +11,13 @@ import com.gic.cloud.dto.FunctionModuleDTO;
import com.gic.cloud.entity.TabSysFunctionModule;
import com.gic.cloud.service.FunctionModuleService;
import com.gic.commons.util.EntityUtil;
/**
* 功能模块
* @ClassName: FunctionModuleServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:33 AM

*/
@Service("functionModuleService")
public class FunctionModuleServiceImpl implements FunctionModuleService{
@Autowired
......
......@@ -12,7 +12,13 @@ import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
/**
* 功能权限
* @ClassName: FunctionServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:33 AM

*/
@Service("functionService")
public class FunctionServiceImpl implements FunctionService{
@Autowired
......
......@@ -3,7 +3,7 @@ package com.gic.cloud.service.impl;
import com.gic.cloud.dao.mapper.TabIndexMapper;
import com.gic.cloud.dto.IndexDTO;
import com.gic.cloud.entity.TabIndex;
import com.gic.cloud.qo.IndexQO;
import com.gic.cloud.qo.IndexQo;
import com.gic.cloud.service.IndexGroupService;
import com.gic.cloud.service.IndexModuleRelService;
import com.gic.cloud.service.IndexService;
......@@ -73,7 +73,7 @@ public class IndexServiceImpl implements IndexService {
}
@Override
public Page<TabIndex> listIndex(IndexQO indexQO) {
public Page<TabIndex> listIndex(IndexQo indexQO) {
PageHelper.startPage(indexQO.getCurrentPage(), indexQO.getPageSize());
if (StringUtils.isNotBlank(indexQO.getModuleId())) {
List<Integer> indexIdList = indexModuleRelService.listBusinessIdByModuleIds(Arrays.asList(indexQO.getModuleId().split(",")));
......@@ -87,7 +87,7 @@ public class IndexServiceImpl implements IndexService {
}
@Override
public List<TabIndex> listAllIndex(IndexQO indexQO) {
public List<TabIndex> listAllIndex(IndexQo indexQO) {
return tabIndexMapper.listIndex(indexQO);
}
......@@ -101,7 +101,7 @@ public class IndexServiceImpl implements IndexService {
@Override
public TabIndex getByIndexCode(String moduleId, String indexCode) {
IndexQO indexQO = new IndexQO();
IndexQo indexQO = new IndexQo();
PageHelper.startPage(1, 1);
List<Integer> indexIdList = indexModuleRelService.listBusinessIdByModuleIds(Collections.singletonList(moduleId));
if (CollectionUtils.isEmpty(indexIdList)) {
......
......@@ -10,7 +10,13 @@ import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* 关注门店
* @ClassName: StoreAttentionServiceImpl

* @Description: 

* @author boom

* @date 2020/9/7 10:44 AM

*/
@Service("storeAttenttionService")
public class StoreAttentionServiceImpl implements StoreAttenttionService {
@Autowired
......
......@@ -9,7 +9,13 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
/**
* 门店暂存区
* @ClassName: TempStoreConditionServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:35 AM

*/
@Service("tempStoreConditionService")
public class TempStoreConditionServiceImpl implements TempStoreConditionService{
@Autowired
......
package com.gic.cloud.service.impl;
/**
* test
* @ClassName: TestServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:30 AM

*/
public class TestServiceImpl {
}
......@@ -6,9 +6,9 @@ import com.gic.cloud.entity.TabDataExplain;
import com.gic.cloud.entity.TabIndex;
import com.gic.cloud.entity.TabSysUser;
import com.gic.cloud.entity.TabUpdateTips;
import com.gic.cloud.qo.DataExplainQO;
import com.gic.cloud.qo.IndexQO;
import com.gic.cloud.qo.UserQO;
import com.gic.cloud.qo.DataExplainQo;
import com.gic.cloud.qo.IndexQo;
import com.gic.cloud.qo.UserQo;
import com.gic.cloud.service.DataExplainService;
import com.gic.cloud.service.IndexService;
import com.gic.cloud.service.UpdateTipService;
......@@ -41,7 +41,7 @@ public class UpdateTipServiceImpl implements UpdateTipService {
@Override
public void insertBySaveUser(Integer userId) {
List<TabIndex> indexList = indexService.listAllIndex(new IndexQO());
List<TabIndex> indexList = indexService.listAllIndex(new IndexQo());
for (TabIndex index : indexList) {
TabUpdateTips tabUpdateTips = new TabUpdateTips();
tabUpdateTips.setUserId(userId);
......@@ -50,7 +50,7 @@ public class UpdateTipServiceImpl implements UpdateTipService {
tabUpdateTips.setType(LogAndUpdateTipsTypeEnum.INDEX.getCode());
tabUpdateTipsMapper.insertSelective(tabUpdateTips);
}
List<TabDataExplain> dataExplainList = dataExplainService.listAllDataExplain(new DataExplainQO());
List<TabDataExplain> dataExplainList = dataExplainService.listAllDataExplain(new DataExplainQo());
for (TabDataExplain dataExplain : dataExplainList) {
TabUpdateTips tabUpdateTips = new TabUpdateTips();
tabUpdateTips.setUserId(userId);
......@@ -63,7 +63,7 @@ public class UpdateTipServiceImpl implements UpdateTipService {
@Override
public void insertBySaveBusiness(Integer businessId, Integer type) {
List<TabSysUser> users = userService.listUser(new UserQO());
List<TabSysUser> users = userService.listUser(new UserQo());
for (TabSysUser user : users) {
TabUpdateTips tabUpdateTips = new TabUpdateTips();
tabUpdateTips.setUserId(user.getUserId());
......
......@@ -3,7 +3,7 @@ package com.gic.cloud.service.impl;
import com.gic.cloud.dao.mapper.TabSysUserMapper;
import com.gic.cloud.dto.UserDTO;
import com.gic.cloud.entity.TabSysUser;
import com.gic.cloud.qo.UserQO;
import com.gic.cloud.qo.UserQo;
import com.gic.cloud.service.UserService;
import com.gic.commons.util.EntityUtil;
import com.github.pagehelper.Page;
......@@ -14,7 +14,13 @@ import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
/**
* 用户
* @ClassName: UserServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:32 AM

*/
@Service("userService")
public class UserServiceImpl implements UserService{
@Autowired
......@@ -62,14 +68,14 @@ public class UserServiceImpl implements UserService{
}
@Override
public Page<TabSysUser> pageUser(UserQO userQO) {
PageHelper.startPage(userQO.getCurrentPage(), userQO.getPageSize());
return (Page<TabSysUser>) tabSysUserMapper.pageUser(userQO);
public Page<TabSysUser> pageUser(UserQo userQo) {
PageHelper.startPage(userQo.getCurrentPage(), userQo.getPageSize());
return (Page<TabSysUser>) tabSysUserMapper.pageUser(userQo);
}
@Override
public List<TabSysUser> listUser(UserQO userQO) {
return tabSysUserMapper.pageUser(userQO);
public List<TabSysUser> listUser(UserQo userQo) {
return tabSysUserMapper.pageUser(userQo);
}
@Override
......
......@@ -19,6 +19,12 @@ import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* @Title: 

* @Description:

* @author guojuxing
* @return 


*/
@Service("accountGroupApiService")
public class AccountGroupApiServiceImpl implements AccountGroupApiService{
@Autowired
......
......@@ -24,7 +24,13 @@ import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors;
/**
* 数据权限
* @ClassName: DataAuthApiServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:34 AM

*/
@Service("dataAuthApiService")
public class DataAuthApiServiceImpl implements DataAuthApiService{
private static Logger LOGGER = LogManager.getLogger(DataAuthApiServiceImpl.class);
......
......@@ -6,7 +6,7 @@ import com.gic.cloud.constants.LogAndUpdateTipsTypeEnum;
import com.gic.cloud.constants.UpdateTypeEnum;
import com.gic.cloud.dto.DataExplainDTO;
import com.gic.cloud.entity.TabDataExplain;
import com.gic.cloud.qo.DataExplainQO;
import com.gic.cloud.qo.DataExplainQo;
import com.gic.cloud.service.DataExplainApiService;
import com.gic.cloud.service.DataExplainService;
import com.gic.cloud.service.IndexLogService;
......@@ -79,7 +79,7 @@ public class DataExplainApiServiceImpl implements DataExplainApiService {
}
@Override
public ServiceResponse<Page<DataExplainDTO>> listDataExplain(DataExplainQO dataExplainQO) {
public ServiceResponse<Page<DataExplainDTO>> listDataExplain(DataExplainQo dataExplainQO) {
com.github.pagehelper.Page<TabDataExplain> listDataExplain = this.dataExplainService.listDataExplain(dataExplainQO);
Page<DataExplainDTO> dtoPage = PageHelperUtils.changePageHelperToCurrentPage(listDataExplain, DataExplainDTO.class);
return EnterpriseServiceResponse.success(dtoPage);
......@@ -87,7 +87,7 @@ public class DataExplainApiServiceImpl implements DataExplainApiService {
@Override
public ServiceResponse<List<DataExplainDTO>> listAllDataExplain() {
List<TabDataExplain> explainList = this.dataExplainService.listAllDataExplain(new DataExplainQO());
List<TabDataExplain> explainList = this.dataExplainService.listAllDataExplain(new DataExplainQo());
return EnterpriseServiceResponse.success(EntityUtil.changeEntityListByJSON(DataExplainDTO.class, explainList));
}
......@@ -121,7 +121,7 @@ public class DataExplainApiServiceImpl implements DataExplainApiService {
@Override
public ServiceResponse<DataExplainDTO> listByModule(String moduleId) {
DataExplainQO dataExplainQO = new DataExplainQO();
DataExplainQo dataExplainQO = new DataExplainQo();
dataExplainQO.setModuleId(moduleId);
List<TabDataExplain> dataExplainList = dataExplainService.listAllDataExplain(dataExplainQO);
if (CollectionUtils.isNotEmpty(dataExplainList)) {
......
......@@ -15,7 +15,13 @@ import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Optional;
/**
* 会员画像
* @ClassName: EnterprisePortraitRelApiServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:45 AM

*/
@Service("enterprisePortraitRelApiService")
public class EnterprisePortraitRelApiServiceImpl implements EnterprisePortraitRelApiService{
@Autowired
......
......@@ -24,7 +24,13 @@ import org.springframework.stereotype.Service;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* 功能权限
* @ClassName: FunctionApiServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:33 AM

*/
@Service("functionApiService")
public class FunctionApiServiceImpl implements FunctionApiService{
@Autowired
......
......@@ -14,7 +14,13 @@ import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
/**
* 功能模块
* @ClassName: FunctionModuleApiServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:33 AM

*/
@Service("functionModuleApiService")
public class FunctionModuleApiServiceImpl implements FunctionModuleApiService{
@Autowired
......
......@@ -7,7 +7,7 @@ import com.gic.cloud.constants.UpdateTypeEnum;
import com.gic.cloud.dto.IndexDTO;
import com.gic.cloud.entity.TabIndex;
import com.gic.cloud.entity.TabIndexGroup;
import com.gic.cloud.qo.IndexQO;
import com.gic.cloud.qo.IndexQo;
import com.gic.cloud.service.*;
import com.gic.commons.util.EntityUtil;
import com.gic.commons.util.GlobalInfo;
......@@ -104,7 +104,7 @@ public class IndexApiServiceImpl implements IndexApiService {
}
if (StringUtils.isNotBlank(indexDTO.getRelTopLevel())) {
List<Integer> idsList = Stream.of(indexDTO.getRelTopLevel().split(GlobalInfo.FLAG_COMMA)).map(Integer::valueOf).collect(Collectors.toList());
IndexQO indexQO = new IndexQO();
IndexQo indexQO = new IndexQo();
indexQO.setIndexIdList(idsList);
List<TabIndex> indexList = this.indexService.listAllIndex(indexQO);
String repTopLevelName = Optional.ofNullable(indexList).orElse(Collections.emptyList())
......@@ -115,14 +115,14 @@ public class IndexApiServiceImpl implements IndexApiService {
}
@Override
public ServiceResponse<Page<IndexDTO>> listIndex(IndexQO indexQO) {
public ServiceResponse<Page<IndexDTO>> listIndex(IndexQo indexQO) {
com.github.pagehelper.Page<TabIndex> indexList = indexService.listIndex(indexQO);
Page<IndexDTO> indexDTOPage = PageHelperUtils.changePageHelperToCurrentPage(indexList, IndexDTO.class);
if (CollectionUtils.isNotEmpty(indexList)) {
List<Integer> indexIdList = indexList.stream().map(TabIndex::getIndexId).collect(Collectors.toList());
Map<Integer, List<String>> moduleIdByBusinessIdMap = indexModuleRelService.groupModuleIdByBusinessIds(indexIdList, LogAndUpdateTipsTypeEnum.INDEX.getCode());
List<IndexDTO> indexDTOList = indexDTOPage.getResult();
HashMap<Integer, String> cache = new HashMap<>();
HashMap<Integer, String> cache = new HashMap<>(16);
for (IndexDTO indexDTO : indexDTOList) {
indexDTO.setRelModuleIdList(moduleIdByBusinessIdMap.get(indexDTO.getIndexId()));
Integer indexGroupId = indexDTO.getIndexGroupId();
......@@ -147,7 +147,7 @@ public class IndexApiServiceImpl implements IndexApiService {
}
@Override
public ServiceResponse<List<IndexDTO>> listAllIndex(IndexQO indexQO) {
public ServiceResponse<List<IndexDTO>> listAllIndex(IndexQo indexQO) {
List<TabIndex> tabIndices = indexService.listAllIndex(indexQO);
List<IndexDTO> dtoList = EntityUtil.changeEntityListByJSON(IndexDTO.class, tabIndices);
return EnterpriseServiceResponse.success(dtoList);
......@@ -183,7 +183,7 @@ public class IndexApiServiceImpl implements IndexApiService {
@Override
public ServiceResponse<List<IndexDTO>> listByModule(String moduleId) {
IndexQO indexQO = new IndexQO();
IndexQo indexQO = new IndexQo();
indexQO.setModuleId(moduleId);
List<TabIndex> indexList = indexService.listAllIndex(indexQO);
return EnterpriseServiceResponse.success(EntityUtil.changeEntityListByJSON(IndexDTO.class, indexList));
......
......@@ -72,7 +72,6 @@ public class IndexDescApiServiceImpl implements IndexDescApiService {
@Override
public ServiceResponse<IndexDTO> getIndexDesc(Integer enterpriseId, String moduleId, String indexGroupName, String indexCode) {
// TabIndex index = indexService.getByIndexCode(moduleId, indexCode);
TabIndexDesc indexDesc = indexDescService.getIndexDesc(moduleId, indexCode, indexGroupName);
if (indexDesc != null) {
List<Integer> list = indexModuleRelService.listBusinessIdByModuleId(indexDesc.getIndexDescId().toString(), LogAndUpdateTipsTypeEnum.INDEX.getCode());
......
......@@ -16,7 +16,13 @@ import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 关注门店
* @ClassName: StoreAttentionApiServiceImpl

* @Description: 

* @author boom

* @date 2020/9/7 10:44 AM

*/
@Service("storeAttentionApiService")
public class StoreAttentionApiServiceImpl implements StoreAttentionApiService {
@Autowired
......@@ -48,7 +54,7 @@ public class StoreAttentionApiServiceImpl implements StoreAttentionApiService {
@Override
public ServiceResponse<Map<Integer, AttentionStoreDTO>> getAllAttenttionStore(Integer userId, Integer enterpriseId) {
List<AttentionStoreDTO> result = this.pageStoreAttention(userId, enterpriseId, 1, Integer.MAX_VALUE).getResult().getResult();
Map<Integer, AttentionStoreDTO> map = new HashMap<>();
Map<Integer, AttentionStoreDTO> map = new HashMap<>(16);
if(CollectionUtils.isNotEmpty(result)){
for(AttentionStoreDTO storeDTO : result){
map.put(storeDTO.getStoreId(), storeDTO);
......
......@@ -9,7 +9,13 @@ import com.gic.commons.util.EntityUtil;
import com.gic.enterprise.error.ErrorCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 门店暂存区
* @ClassName: TempStoreConditionApiServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:35 AM

*/
@Service("tempStoreConditionApiService")
public class TempStoreConditionApiServiceImpl implements TempStoreConditionApiService{
@Autowired
......
package com.gic.cloud.service.outer.impl;
/**
* test
* @ClassName: TestApiServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:30 AM

*/
public class TestApiServiceImpl {
}
......@@ -5,7 +5,7 @@ import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.dto.UserDTO;
import com.gic.cloud.entity.TabSysAccountGroup;
import com.gic.cloud.entity.TabSysUser;
import com.gic.cloud.qo.UserQO;
import com.gic.cloud.qo.UserQo;
import com.gic.cloud.service.AccountGroupService;
import com.gic.cloud.service.UpdateTipService;
import com.gic.cloud.service.UserApiService;
......@@ -24,7 +24,13 @@ import java.util.List;
import java.util.Optional;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* 用户
* @ClassName: UserApiServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/7 10:32 AM

*/
@Service("userApiService")
public class UserApiServiceImpl implements UserApiService{
@Autowired
......@@ -69,16 +75,16 @@ public class UserApiServiceImpl implements UserApiService{
}
@Override
public ServiceResponse<Page<UserDTO>> pageUser(UserQO userQO) {
com.github.pagehelper.Page page = userService.pageUser(userQO);
public ServiceResponse<Page<UserDTO>> pageUser(UserQo userQo) {
com.github.pagehelper.Page page = userService.pageUser(userQo);
Page<UserDTO> resultPage = PageHelperUtils.changePageHelperToCurrentPage(page, UserDTO.class);
return ServiceResponse.success(resultPage);
}
@Override
public ServiceResponse<List<UserDTO>> listUser(UserQO userQO) {
public ServiceResponse<List<UserDTO>> listUser(UserQo userQo) {
return ServiceResponse.success(Optional.ofNullable(EntityUtil.changeEntityListNew(UserDTO.class,
userService.listUser(userQO))).orElse(Collections.EMPTY_LIST));
userService.listUser(userQo))).orElse(Collections.EMPTY_LIST));
}
@Override
......@@ -146,7 +152,9 @@ public class UserApiServiceImpl implements UserApiService{
private static boolean isPhone(String phone) {
String regex = "^((13[0-9])|(14[0|5|6|7|9])|(15[0-3])|(15[5-9])|(16[6|7])|(17[2|3|5|6|7|8])|(18[0-9])|(19[1|8|9]))\\d{8}$";
if (StringUtils.isBlank(phone) || phone.length() != 11) {
//大陆手机位数 +86
Integer mainlandNumberOfPhone = 11;
if (StringUtils.isBlank(phone) || phone.length() != mainlandNumberOfPhone) {
return false;
} else {
Pattern p = Pattern.compile(regex);
......
......@@ -185,7 +185,7 @@
and status = 1
</update>
<select id="pageUser" parameterType="com.gic.cloud.qo.UserQO" resultMap="BaseResultMap">
<select id="pageUser" parameterType="com.gic.cloud.qo.UserQo" resultMap="BaseResultMap">
select <include refid="Base_Column_List"></include>
from tab_sys_user
where status = 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment