Commit 101e4a04 by 陶光胜

Merge branch 'developer' into 'master'

Developer

See merge request !2
parents 8af52866 5fb75837
package com.gic.cloud.constants;
/**
* 功能权限集
* @ClassName: FunctionEnum

* @Description: 

* @author guojuxing

* @date 2020/7/7 4:15 PM

*/
public enum FunctionEnum {
RANK_LIST("FUC001", "排行榜"),
MEMBER_PROFILE("FUC002", "会员概况"),
RECRUITMENT_ANALYSIS("FUC003", "招募分析"),
MEMBER_PORTRAIT("FUC004", "会员画像"),
PERFORMANCE_OVERVIEW("FUC005", "业绩概览"),
CONSUME_COMPOSITION("FUC006", "消费构成"),
ITEM_RANK("FUC007", "单品排行"),
BASIC_PERFORMANCE("FUC008", "基础业绩");
private String code;
private String name;
private FunctionEnum(String code, String name) {
this.code = code;
this.name = name;
}
public static boolean isRightCode(String code) {
for (FunctionEnum functionEnum : values()) {
if (functionEnum.getCode().equals(code)) {
return true;
}
}
return false;
}
public String getCode() {
return code;
}
public FunctionEnum setCode(String code) {
this.code = code;
return this;
}
public String getName() {
return name;
}
public FunctionEnum setName(String name) {
this.name = name;
return this;
}
}
package com.gic.cloud.constants;
/**
* @author zhiwj
* @Description:
* @date 2020-07-10 17:02
*/
public enum IndexTypeEnum {
INDEX(1, "指标"),
DIMENSION(2, "维度"),
NOTE(3, "说明");
private Integer code;
private String msg;
IndexTypeEnum(Integer code, String msg) {
this.code = code;
this.msg = msg;
}
public Integer getCode() {
return code;
}
public String getMsg() {
return msg;
}
public static String parse(Integer code) {
for (IndexTypeEnum value : values()) {
if (value.code.equals(code)) {
return value.msg;
}
}
return null;
}
}
package com.gic.cloud.constants;
/**
* @author zhiwj
* @Description:
* @date 2020-07-08 16:22
*/
public enum LogAndUpdateTipsTypeEnum {
// 指标字典
INDEX(1),
// 数据解读
DATA_EXPLAIN(2),
;
private Integer code;
LogAndUpdateTipsTypeEnum(Integer code) {
this.code = code;
}
public Integer getCode() {
return code;
}
}
package com.gic.cloud.constants;
/**
* @author zhiwj
* @Description:
* @date 2020-07-09 14:06
*/
public enum UpdateTypeEnum {
// 指标字典
ONLY_DETAIL(1),
// 数据解读
UPDATE_PUBLISH(2),
;
private Integer code;
UpdateTypeEnum(Integer code) {
this.code = code;
}
public Integer getCode() {
return code;
}
}
package com.gic.cloud.dto;
import java.io.Serializable;
import java.util.Date;
/**
* tab_attention_store
*/
public class AttentionStoreDTO implements Serializable {
/**
*
*/
private Integer attentionId;
/**
*
*/
private Integer storeId;
/**
*
*/
private Integer userId;
/**
*
*/
private Integer enterpriseId;
/**
*
*/
private Integer status;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
public Integer getAttentionId() {
return attentionId;
}
public void setAttentionId(Integer attentionId) {
this.attentionId = attentionId;
}
public Integer getStoreId() {
return storeId;
}
public void setStoreId(Integer storeId) {
this.storeId = storeId;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
\ No newline at end of file
package com.gic.cloud.dto;
import java.io.Serializable;
import java.util.Date;
public class DataAuthDTO implements Serializable{
private static final long serialVersionUID = -2015311334509633014L;
/**
* ID
*/
private Integer dataAuthId;
/**
* 名称
*/
private String dataAuthName;
/**
*
*/
private Integer enterpriseId;
/**
* 线上业绩权限,json数组,[{"channel":1,"storeContent":[1]}]
*/
private String onlinePerformance;
/**
* 无归属门店权限 1:勾选 0:不勾选
*/
private Integer noOwnerStore;
/**
* 门店资源,门店选择器ID
*/
private Integer storeWidgetId;
/**
* 会员卡权限,_23232_23232_,可以多选,下划线隔开
*/
private String memberCardAuth;
/**
* 商品域权限,_23232_23232_,可以多选,下划线隔开
*/
private String goodsAreaAuth;
/**
* 1:有效 0:无效
*/
private Integer status;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
/**
* 授权人数
*/
private Integer memberCount;
public Integer getDataAuthId() {
return dataAuthId;
}
public DataAuthDTO setDataAuthId(Integer dataAuthId) {
this.dataAuthId = dataAuthId;
return this;
}
public String getDataAuthName() {
return dataAuthName;
}
public DataAuthDTO setDataAuthName(String dataAuthName) {
this.dataAuthName = dataAuthName;
return this;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public DataAuthDTO setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
return this;
}
public String getOnlinePerformance() {
return onlinePerformance;
}
public DataAuthDTO setOnlinePerformance(String onlinePerformance) {
this.onlinePerformance = onlinePerformance;
return this;
}
public Integer getStoreWidgetId() {
return storeWidgetId;
}
public DataAuthDTO setStoreWidgetId(Integer storeWidgetId) {
this.storeWidgetId = storeWidgetId;
return this;
}
public String getMemberCardAuth() {
return memberCardAuth;
}
public DataAuthDTO setMemberCardAuth(String memberCardAuth) {
this.memberCardAuth = memberCardAuth;
return this;
}
public String getGoodsAreaAuth() {
return goodsAreaAuth;
}
public DataAuthDTO setGoodsAreaAuth(String goodsAreaAuth) {
this.goodsAreaAuth = goodsAreaAuth;
return this;
}
public Integer getStatus() {
return status;
}
public DataAuthDTO setStatus(Integer status) {
this.status = status;
return this;
}
public Date getCreateTime() {
return createTime;
}
public DataAuthDTO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Date getUpdateTime() {
return updateTime;
}
public DataAuthDTO setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
return this;
}
public Integer getMemberCount() {
return memberCount;
}
public DataAuthDTO setMemberCount(Integer memberCount) {
this.memberCount = memberCount;
return this;
}
public Integer getNoOwnerStore() {
return noOwnerStore;
}
public DataAuthDTO setNoOwnerStore(Integer noOwnerStore) {
this.noOwnerStore = noOwnerStore;
return this;
}
}
package com.gic.cloud.dto;
import java.io.Serializable;
import java.util.Date;
/**
* @author zhiwj
* @Description:
* @date 2020-07-08 16:10
*/
public class DataExplainDTO implements Serializable {
private static final long serialVersionUID = -6587550517516153357L;
/**
*
*/
private Integer dataExplainId;
/**
* 数据模块名称
*/
private String dataName;
/**
* 模块分类
*/
private String dataClassify;
/**
* 口径/文案编辑
*/
private String indexRemark;
/**
* 补充说明
*/
private String complement;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
*
*/
private Integer status;
/**
* 模块id
*/
private String moduleId;
private Integer optUserId;
private String optUserName;
public Integer getDataExplainId() {
return dataExplainId;
}
public void setDataExplainId(Integer dataExplainId) {
this.dataExplainId = dataExplainId;
}
public String getDataName() {
return dataName;
}
public void setDataName(String dataName) {
this.dataName = dataName;
}
public String getDataClassify() {
return dataClassify;
}
public void setDataClassify(String dataClassify) {
this.dataClassify = dataClassify;
}
public String getIndexRemark() {
return indexRemark;
}
public void setIndexRemark(String indexRemark) {
this.indexRemark = indexRemark;
}
public String getComplement() {
return complement;
}
public void setComplement(String complement) {
this.complement = complement;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getModuleId() {
return moduleId;
}
public void setModuleId(String moduleId) {
this.moduleId = moduleId;
}
public Integer getOptUserId() {
return optUserId;
}
public void setOptUserId(Integer optUserId) {
this.optUserId = optUserId;
}
public String getOptUserName() {
return optUserName;
}
public void setOptUserName(String optUserName) {
this.optUserName = optUserName;
}
}
package com.gic.cloud.dto;
import java.io.Serializable;
import java.util.Date;
public class EnterprisePortraitRelDTO implements Serializable{
private static final long serialVersionUID = -2398088229114286442L;
/**
*
*/
private Integer portraitRelationId;
private String portraitName;
/**
* 会员画像代码
*/
private String portraitCode;
/**
*
*/
private Integer enterpriseId;
/**
* 排序
*/
private Integer sort;
/**
* 1:基础画像 2:自定义画像
*/
private Integer dataType;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
*
*/
private Integer status;
public Integer getPortraitRelationId() {
return portraitRelationId;
}
public EnterprisePortraitRelDTO setPortraitRelationId(Integer portraitRelationId) {
this.portraitRelationId = portraitRelationId;
return this;
}
public String getPortraitCode() {
return portraitCode;
}
public EnterprisePortraitRelDTO setPortraitCode(String portraitCode) {
this.portraitCode = portraitCode;
return this;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public EnterprisePortraitRelDTO setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
return this;
}
public Integer getSort() {
return sort;
}
public EnterprisePortraitRelDTO setSort(Integer sort) {
this.sort = sort;
return this;
}
public Integer getDataType() {
return dataType;
}
public EnterprisePortraitRelDTO setDataType(Integer dataType) {
this.dataType = dataType;
return this;
}
public Date getCreateTime() {
return createTime;
}
public EnterprisePortraitRelDTO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Date getUpdateTime() {
return updateTime;
}
public EnterprisePortraitRelDTO setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
return this;
}
public Integer getStatus() {
return status;
}
public EnterprisePortraitRelDTO setStatus(Integer status) {
this.status = status;
return this;
}
public String getPortraitName() {
return portraitName;
}
public EnterprisePortraitRelDTO setPortraitName(String portraitName) {
this.portraitName = portraitName;
return this;
}
}
package com.gic.cloud.dto;
import java.io.Serializable;
import java.util.Date;
/**
* 功能权限集
* @ClassName: FunctionDTO

* @Description: 

* @author guojuxing

* @date 2020/7/7 4:59 PM

*/
public class FunctionDTO implements Serializable{
private static final long serialVersionUID = 6490187238101502822L;
/**
* ID
*/
private Integer functionId;
/**
* 名称
*/
private String functionName;
/**
*
*/
private Integer enterpriseId;
/**
* 功能组件,可以多选,英文逗号隔开
*/
private String functionComponent;
/**
* 1:有效 0:无效
*/
private Integer status;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
/**
* 授权用户人数
*/
private Integer memberCount;
public Integer getFunctionId() {
return functionId;
}
public FunctionDTO setFunctionId(Integer functionId) {
this.functionId = functionId;
return this;
}
public String getFunctionName() {
return functionName;
}
public FunctionDTO setFunctionName(String functionName) {
this.functionName = functionName;
return this;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public FunctionDTO setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
return this;
}
public String getFunctionComponent() {
return functionComponent;
}
public FunctionDTO setFunctionComponent(String functionComponent) {
this.functionComponent = functionComponent;
return this;
}
public Integer getStatus() {
return status;
}
public FunctionDTO setStatus(Integer status) {
this.status = status;
return this;
}
public Date getCreateTime() {
return createTime;
}
public FunctionDTO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Date getUpdateTime() {
return updateTime;
}
public FunctionDTO setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
return this;
}
public Integer getMemberCount() {
return memberCount;
}
public FunctionDTO setMemberCount(Integer memberCount) {
this.memberCount = memberCount;
return this;
}
}
package com.gic.cloud.dto;
import java.io.Serializable;
import java.util.Date;
/**
* 功能组件模块
* @ClassName: FunctionModuleDTO

* @Description: 

* @author guojuxing

* @date 2020/7/8 3:35 PM

*/
public class FunctionModuleDTO implements Serializable{
private static final long serialVersionUID = 1359760668258180981L;
/**
* ID
*/
private Integer functionModuleId;
/**
* 名称
*/
private String functionModuleName;
/**
* 功能编码
*/
private String functionModuleCode;
/**
* 功能模块说明
*/
private String functionModuleDesc;
/**
* 运维操作人ID
*/
private String operationId;
/**
* 运维操作人name
*/
private String operationName;
private String logo;
/**
* 1:有效 0:无效
*/
private Integer status;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
public Integer getFunctionModuleId() {
return functionModuleId;
}
public FunctionModuleDTO setFunctionModuleId(Integer functionModuleId) {
this.functionModuleId = functionModuleId;
return this;
}
public String getFunctionModuleName() {
return functionModuleName;
}
public FunctionModuleDTO setFunctionModuleName(String functionModuleName) {
this.functionModuleName = functionModuleName;
return this;
}
public String getFunctionModuleCode() {
return functionModuleCode;
}
public FunctionModuleDTO setFunctionModuleCode(String functionModuleCode) {
this.functionModuleCode = functionModuleCode;
return this;
}
public String getFunctionModuleDesc() {
return functionModuleDesc;
}
public FunctionModuleDTO setFunctionModuleDesc(String functionModuleDesc) {
this.functionModuleDesc = functionModuleDesc;
return this;
}
public String getOperationId() {
return operationId;
}
public FunctionModuleDTO setOperationId(String operationId) {
this.operationId = operationId;
return this;
}
public String getOperationName() {
return operationName;
}
public FunctionModuleDTO setOperationName(String operationName) {
this.operationName = operationName;
return this;
}
public Integer getStatus() {
return status;
}
public FunctionModuleDTO setStatus(Integer status) {
this.status = status;
return this;
}
public Date getCreateTime() {
return createTime;
}
public FunctionModuleDTO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Date getUpdateTime() {
return updateTime;
}
public FunctionModuleDTO setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
return this;
}
public String getLogo() {
return logo;
}
public FunctionModuleDTO setLogo(String logo) {
this.logo = logo;
return this;
}
}
package com.gic.cloud.dto;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* @author zhiwj
* @Description:
* @date 2020-07-08 10:13
*/
public class IndexDTO implements Serializable {
private static final long serialVersionUID = 5687670215343610800L;
/**
* 指标id
*/
private Integer indexId;
/**
* 分类类型 1指标 2维度 3说明
*/
private Integer classifyType;
/**
* 分类名
*/
private String classifyName;
/**
* 是否应用指标 1是 0否
*/
private Integer isAppIndex;
/**
* 关联应用指标
*/
private String relAppIndex;
/**
*
*/
private String code;
/**
*
*/
private String name;
/**
* 指标级别
*/
private Integer indexLevel;
/**
* 指标级别
*/
private String indexLevelName;
/**
* 关联一级指标 ‘,’ 隔开
*/
private String relTopLevel;
/**
* 单位
*/
private Integer unitCode;
/**
* 单位
*/
private String unitName;
/**
* 小数位数
*/
private Integer decimalSize;
/**
* 数据类型 1流量 2存量
*/
private Integer dataType;
/**
* 指标类型 1基础 2计算
*/
private Integer indexType;
/**
* 基础组织维度
*/
private String baseOrganized;
/**
* 基础时间维度
*/
private String baseTime;
/**
* 更新频率 高/中/低
*/
private String updateRate;
/**
* 更新频率 补充说明
*/
private String updateRateRemark;
/**
* 口径/文案编辑
*/
private String indexRemark;
/**
* 补充说明
*/
private String complement;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
private Integer showStatus;
private List<String> relModuleIdList;
/**
* 操作人id
*/
private Integer optUserId;
/**
* 操作人name
*/
private String optUserName;
private Integer indexGroupId;
private String indexGroupName;
private String relTopLevelName;
public Integer getIndexId() {
return indexId;
}
public void setIndexId(Integer indexId) {
this.indexId = indexId;
}
public Integer getClassifyType() {
return classifyType;
}
public void setClassifyType(Integer classifyType) {
this.classifyType = classifyType;
}
public String getClassifyName() {
return classifyName;
}
public void setClassifyName(String classifyName) {
this.classifyName = classifyName;
}
public Integer getIsAppIndex() {
return isAppIndex;
}
public void setIsAppIndex(Integer isAppIndex) {
this.isAppIndex = isAppIndex;
}
public String getRelAppIndex() {
return relAppIndex;
}
public void setRelAppIndex(String relAppIndex) {
this.relAppIndex = relAppIndex;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getIndexLevel() {
return indexLevel;
}
public void setIndexLevel(Integer indexLevel) {
this.indexLevel = indexLevel;
}
public String getIndexLevelName() {
return indexLevelName;
}
public void setIndexLevelName(String indexLevelName) {
this.indexLevelName = indexLevelName;
}
public String getRelTopLevel() {
return relTopLevel;
}
public void setRelTopLevel(String relTopLevel) {
this.relTopLevel = relTopLevel;
}
public Integer getUnitCode() {
return unitCode;
}
public void setUnitCode(Integer unitCode) {
this.unitCode = unitCode;
}
public String getUnitName() {
return unitName;
}
public void setUnitName(String unitName) {
this.unitName = unitName;
}
public Integer getDecimalSize() {
return decimalSize;
}
public void setDecimalSize(Integer decimalSize) {
this.decimalSize = decimalSize;
}
public Integer getDataType() {
return dataType;
}
public void setDataType(Integer dataType) {
this.dataType = dataType;
}
public Integer getIndexType() {
return indexType;
}
public void setIndexType(Integer indexType) {
this.indexType = indexType;
}
public String getBaseOrganized() {
return baseOrganized;
}
public void setBaseOrganized(String baseOrganized) {
this.baseOrganized = baseOrganized;
}
public String getBaseTime() {
return baseTime;
}
public void setBaseTime(String baseTime) {
this.baseTime = baseTime;
}
public String getUpdateRate() {
return updateRate;
}
public void setUpdateRate(String updateRate) {
this.updateRate = updateRate;
}
public String getUpdateRateRemark() {
return updateRateRemark;
}
public void setUpdateRateRemark(String updateRateRemark) {
this.updateRateRemark = updateRateRemark;
}
public String getIndexRemark() {
return indexRemark;
}
public void setIndexRemark(String indexRemark) {
this.indexRemark = indexRemark;
}
public String getComplement() {
return complement;
}
public void setComplement(String complement) {
this.complement = complement;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public List<String> getRelModuleIdList() {
return relModuleIdList;
}
public void setRelModuleIdList(List<String> relModuleIdList) {
this.relModuleIdList = relModuleIdList;
}
public Integer getOptUserId() {
return optUserId;
}
public void setOptUserId(Integer optUserId) {
this.optUserId = optUserId;
}
public String getOptUserName() {
return optUserName;
}
public void setOptUserName(String optUserName) {
this.optUserName = optUserName;
}
public Integer getShowStatus() {
return showStatus;
}
public void setShowStatus(Integer showStatus) {
this.showStatus = showStatus;
}
public Integer getIndexGroupId() {
return indexGroupId;
}
public void setIndexGroupId(Integer indexGroupId) {
this.indexGroupId = indexGroupId;
}
public String getIndexGroupName() {
return indexGroupName;
}
public void setIndexGroupName(String indexGroupName) {
this.indexGroupName = indexGroupName;
}
public void setRelTopLevelName(String relTopLevelName) {
this.relTopLevelName = relTopLevelName;
}
public String getRelTopLevelName() {
return relTopLevelName;
}
}
package com.gic.cloud.dto;
import java.io.Serializable;
import java.util.Date;
/**
* @author zhiwj
* @Description:
* @date 2020-07-23 16:21
*/
public class IndexDescDTO implements Serializable {
private static final long serialVersionUID = 9165568005916128353L;
/**
*
*/
private Integer indexDescId;
/**
* 模块id
*/
private String moduleId;
/**
* 指标名称
*/
private String indexName;
private String unit;
/**
* 指标code
*/
private String indexCode;
/**
* 分类名
*/
private String indexGroupName;
/**
*
*/
private Integer status;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
private Integer enterpriseId;
private Integer sort;
private Integer updateTips;
// private Integer indexRemark;
// private Integer showStatus;
private Integer indexDescEnterpriseId;
private Integer updateTipsId;
private String remark;
private int seq;
public Integer getIndexDescId() {
return indexDescId;
}
public void setIndexDescId(Integer indexDescId) {
this.indexDescId = indexDescId;
}
public String getModuleId() {
return moduleId;
}
public void setModuleId(String moduleId) {
this.moduleId = moduleId;
}
public String getIndexName() {
return indexName;
}
public void setIndexName(String indexName) {
this.indexName = indexName;
}
public String getIndexCode() {
return indexCode;
}
public void setIndexCode(String indexCode) {
this.indexCode = indexCode;
if("showSalesAmt".equals(this.indexCode)){
this.unit = "元";
}
}
public String getIndexGroupName() {
return indexGroupName;
}
public void setIndexGroupName(String indexGroupName) {
this.indexGroupName = indexGroupName;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public Integer getUpdateTips() {
return updateTips;
}
public void setUpdateTips(Integer updateTips) {
this.updateTips = updateTips;
}
public Integer getIndexDescEnterpriseId() {
return indexDescEnterpriseId;
}
public void setIndexDescEnterpriseId(Integer indexDescEnterpriseId) {
this.indexDescEnterpriseId = indexDescEnterpriseId;
}
public void setSeq(int seq) {
this.seq = seq;
}
public int getSeq() {
return seq;
}
public Integer getUpdateTipsId() {
return updateTipsId;
}
public void setUpdateTipsId(Integer updateTipsId) {
this.updateTipsId = updateTipsId;
}
public String getUnit() {
return unit;
}
public void setUnit(String unit) {
this.unit = unit;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}
package com.gic.cloud.dto;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* @author zhiwj
* @Description:
* @date 2020-07-13 15:32
*/
public class IndexGroupDTO implements Serializable {
private static final long serialVersionUID = -3805956042154485116L;
/**
*
*/
private Integer indexGroupId;
/**
*
*/
private String indexGroupName;
/**
*
*/
private Integer parentId;
/**
*
*/
private String groupChain;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
*
*/
private Integer status;
private List<IndexGroupDTO> childList;
public Integer getIndexGroupId() {
return indexGroupId;
}
public void setIndexGroupId(Integer indexGroupId) {
this.indexGroupId = indexGroupId;
}
public String getIndexGroupName() {
return indexGroupName;
}
public void setIndexGroupName(String indexGroupName) {
this.indexGroupName = indexGroupName;
}
public Integer getParentId() {
return parentId;
}
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
public String getGroupChain() {
return groupChain;
}
public void setGroupChain(String groupChain) {
this.groupChain = groupChain;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public List<IndexGroupDTO> getChildList() {
return childList;
}
public void setChildList(List<IndexGroupDTO> childList) {
this.childList = childList;
}
}
package com.gic.cloud.dto;
import java.io.Serializable;
import java.util.Date;
/**
* @author zhiwj
* @Description:
* @date 2020-07-09 15:29
*/
public class IndexLogDTO implements Serializable {
private static final long serialVersionUID = -143993917383034476L;
/**
*
*/
private Integer cloudIndexLogId;
/**
* 被操作的指标数据字典
*/
private Integer businessId;
/**
* 操作时间
*/
private Date optTime;
/**
* 操作人id
*/
private Integer optUserId;
/**
* 操作人名
*/
private String optUserName;
/**
* 调整原因
*/
private String reason;
/**
*
*/
private Integer status;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
* 1指标字典 2数据解读
*/
private Integer type;
public Integer getCloudIndexLogId() {
return cloudIndexLogId;
}
public void setCloudIndexLogId(Integer cloudIndexLogId) {
this.cloudIndexLogId = cloudIndexLogId;
}
public Integer getBusinessId() {
return businessId;
}
public void setBusinessId(Integer businessId) {
this.businessId = businessId;
}
public Date getOptTime() {
return optTime;
}
public void setOptTime(Date optTime) {
this.optTime = optTime;
}
public Integer getOptUserId() {
return optUserId;
}
public void setOptUserId(Integer optUserId) {
this.optUserId = optUserId;
}
public String getOptUserName() {
return optUserName;
}
public void setOptUserName(String optUserName) {
this.optUserName = optUserName;
}
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
}
package com.gic.cloud.dto;
import java.io.Serializable;
import java.util.Date;
/**
* 暂存区
* @ClassName: TempStoreConditionDTO

* @Description: 

* @author guojuxing

* @date 2020/7/9 11:40 AM

*/
public class TempStoreConditionDTO implements Serializable{
private static final long serialVersionUID = -946079849874069372L;
/**
* ID
*/
private Integer tempStoreConditionId;
/**
* storeWidgetId
*/
private Integer storeWidgetId;
/**
*
*/
private Integer enterpriseId;
/**
* 1:有效 0:无效
*/
private Integer status;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
public Integer getTempStoreConditionId() {
return tempStoreConditionId;
}
public TempStoreConditionDTO setTempStoreConditionId(Integer tempStoreConditionId) {
this.tempStoreConditionId = tempStoreConditionId;
return this;
}
public Integer getStoreWidgetId() {
return storeWidgetId;
}
public TempStoreConditionDTO setStoreWidgetId(Integer storeWidgetId) {
this.storeWidgetId = storeWidgetId;
return this;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public TempStoreConditionDTO setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
return this;
}
public Integer getStatus() {
return status;
}
public TempStoreConditionDTO setStatus(Integer status) {
this.status = status;
return this;
}
public Date getCreateTime() {
return createTime;
}
public TempStoreConditionDTO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Date getUpdateTime() {
return updateTime;
}
public TempStoreConditionDTO setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
return this;
}
}
package com.gic.cloud.dto;
public class TestDTO {
}
package com.gic.cloud.qo;
import java.io.Serializable;
/**
* @author zhiwj
* @Description:
* @date 2020-07-08 10:13
*/
public class DataExplainQO extends PageQO implements Serializable {
private static final long serialVersionUID = 5687670215343610800L;
private String search;
private String moduleId;
public String getSearch() {
return search;
}
public void setSearch(String search) {
this.search = search;
}
public String getModuleId() {
return moduleId;
}
public void setModuleId(String moduleId) {
this.moduleId = moduleId;
}
}
package com.gic.cloud.qo;
import java.io.Serializable;
import java.util.List;
/**
* @author zhiwj
* @Description:
* @date 2020-07-08 10:13
*/
public class IndexQO extends PageQO implements Serializable {
private static final long serialVersionUID = 5687670215343610800L;
private Integer classifyType;
private String moduleId;
private Integer isAppIndex;
private String search;
private Integer indexLevel;
private Integer indexGroupId;
private List<Integer> indexIdList;
/**
* 指标id
*/
private Integer indexId;
/**
* 分类名
*/
private String classifyName;
/**
* 关联应用指标
*/
private String relAppIndex;
/**
*
*/
private String code;
/**
*
*/
private String name;
/**
* 指标级别
*/
private String indexLevelName;
/**
* 关联一级指标 ‘,’ 隔开
*/
private String relTopLevel;
/**
* 单位
*/
private Integer unitCode;
/**
* 单位
*/
private String unitName;
/**
* 小数位数
*/
private Integer decimalSize;
/**
* 数据类型 1流量 2存量
*/
private Integer dataType;
/**
* 指标类型 1基础 2计算
*/
private Integer indexType;
/**
* 基础组织维度
*/
private String baseOrganized;
/**
* 基础时间维度
*/
private String baseTime;
/**
* 更新频率 高/中/低
*/
private String updateRate;
/**
* 更新频率 补充说明
*/
private String updateRateRemark;
/**
* 口径/文案编辑
*/
private String indexRemark;
/**
* 补充说明
*/
private String complement;
private Integer showStatus;
private List<String> relModuleIdList;
/**
* 操作人id
*/
private Integer optUserId;
/**
* 操作人name
*/
private String optUserName;
private String indexGroupName;
private List<Integer> indexGroupIdList;
public Integer getClassifyType() {
return classifyType;
}
public void setClassifyType(Integer classifyType) {
this.classifyType = classifyType;
}
public String getModuleId() {
return moduleId;
}
public void setModuleId(String moduleId) {
this.moduleId = moduleId;
}
public Integer getIsAppIndex() {
return isAppIndex;
}
public void setIsAppIndex(Integer isAppIndex) {
this.isAppIndex = isAppIndex;
}
public String getSearch() {
return search;
}
public void setSearch(String search) {
this.search = search;
}
public void setIndexIdList(List<Integer> indexIdList) {
this.indexIdList = indexIdList;
}
public List<Integer> getIndexIdList() {
return indexIdList;
}
public Integer getIndexGroupId() {
return indexGroupId;
}
public void setIndexGroupId(Integer indexGroupId) {
this.indexGroupId = indexGroupId;
}
public Integer getIndexLevel() {
return indexLevel;
}
public void setIndexLevel(Integer indexLevel) {
this.indexLevel = indexLevel;
}
public Integer getIndexId() {
return indexId;
}
public void setIndexId(Integer indexId) {
this.indexId = indexId;
}
public String getClassifyName() {
return classifyName;
}
public void setClassifyName(String classifyName) {
this.classifyName = classifyName;
}
public String getRelAppIndex() {
return relAppIndex;
}
public void setRelAppIndex(String relAppIndex) {
this.relAppIndex = relAppIndex;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getIndexLevelName() {
return indexLevelName;
}
public void setIndexLevelName(String indexLevelName) {
this.indexLevelName = indexLevelName;
}
public String getRelTopLevel() {
return relTopLevel;
}
public void setRelTopLevel(String relTopLevel) {
this.relTopLevel = relTopLevel;
}
public Integer getUnitCode() {
return unitCode;
}
public void setUnitCode(Integer unitCode) {
this.unitCode = unitCode;
}
public String getUnitName() {
return unitName;
}
public void setUnitName(String unitName) {
this.unitName = unitName;
}
public Integer getDecimalSize() {
return decimalSize;
}
public void setDecimalSize(Integer decimalSize) {
this.decimalSize = decimalSize;
}
public Integer getDataType() {
return dataType;
}
public void setDataType(Integer dataType) {
this.dataType = dataType;
}
public Integer getIndexType() {
return indexType;
}
public void setIndexType(Integer indexType) {
this.indexType = indexType;
}
public String getBaseOrganized() {
return baseOrganized;
}
public void setBaseOrganized(String baseOrganized) {
this.baseOrganized = baseOrganized;
}
public String getBaseTime() {
return baseTime;
}
public void setBaseTime(String baseTime) {
this.baseTime = baseTime;
}
public String getUpdateRate() {
return updateRate;
}
public void setUpdateRate(String updateRate) {
this.updateRate = updateRate;
}
public String getUpdateRateRemark() {
return updateRateRemark;
}
public void setUpdateRateRemark(String updateRateRemark) {
this.updateRateRemark = updateRateRemark;
}
public String getIndexRemark() {
return indexRemark;
}
public void setIndexRemark(String indexRemark) {
this.indexRemark = indexRemark;
}
public String getComplement() {
return complement;
}
public void setComplement(String complement) {
this.complement = complement;
}
public Integer getShowStatus() {
return showStatus;
}
public void setShowStatus(Integer showStatus) {
this.showStatus = showStatus;
}
public List<String> getRelModuleIdList() {
return relModuleIdList;
}
public void setRelModuleIdList(List<String> relModuleIdList) {
this.relModuleIdList = relModuleIdList;
}
public Integer getOptUserId() {
return optUserId;
}
public void setOptUserId(Integer optUserId) {
this.optUserId = optUserId;
}
public String getOptUserName() {
return optUserName;
}
public void setOptUserName(String optUserName) {
this.optUserName = optUserName;
}
public String getIndexGroupName() {
return indexGroupName;
}
public void setIndexGroupName(String indexGroupName) {
this.indexGroupName = indexGroupName;
}
public void setIndexGroupIdList(List<Integer> indexGroupIdList) {
this.indexGroupIdList = indexGroupIdList;
}
public List<Integer> getIndexGroupIdList() {
return indexGroupIdList;
}
}
package com.gic.cloud.service;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.dto.DataAuthDTO;
import java.util.List;
public interface DataAuthApiService {
ServiceResponse<Integer> saveDataAuth(DataAuthDTO dto);
ServiceResponse<Void> editDataAuth(DataAuthDTO dto);
ServiceResponse<DataAuthDTO> getDataAuth(Integer dataAuthId);
ServiceResponse<Void> deleteDataAuth(Integer dataAuthId);
ServiceResponse<Page<DataAuthDTO>> pageDataAuth(Integer enterpriseId, String dataAuthName, Integer currentPage, Integer pageSize);
ServiceResponse<List<DataAuthDTO>> listDataAuth(Integer enterpriseId, String dataAuthName);
ServiceResponse<DataAuthDTO> ggetDataAuthByUserId(Integer enterpriseId, Integer userId);
}
package com.gic.cloud.service;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.dto.DataExplainDTO;
import com.gic.cloud.qo.DataExplainQO;
import java.util.List;
/**
* @author zhiwj
* @Description:
* @date 2020-07-08 16:05
*/
public interface DataExplainApiService {
/**
* @Title: saveDataExplain
* @Description:
* @author zhiwj
* @param dataExplainDTO
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> saveDataExplain(DataExplainDTO dataExplainDTO);
/**
* @Title: updateDataExplain
* @Description:
* @author zhiwj
* @param dataExplainDTO
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> updateDataExplain(DataExplainDTO dataExplainDTO, Integer updateType, String reason);
/**
* @Title: getByDataExplainId
* @Description:
* @author zhiwj
* @return com.gic.api.base.commons.ServiceResponse<com.gic.cloud.dto.DataExplainDTO>
* @throws
*/
ServiceResponse<DataExplainDTO> getByDataExplainId(Integer dataExplainId);
/**
* @Title: listDataExplain
* @Description:
* @author zhiwj
* @param dataExplainQO
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.cloud.dto.DataExplainDTO>>
* @throws
*/
ServiceResponse<Page<DataExplainDTO>> listDataExplain(DataExplainQO dataExplainQO);
/**
* @Title: listDataExplain
* @Description:
* @author zhiwj
* @param
* @return com.gic.api.base.commons.ServiceResponse<com.gic.api.base.commons.Page<com.gic.cloud.dto.DataExplainDTO>>
* @throws
*/
ServiceResponse<List<DataExplainDTO>> listAllDataExplain();
/**
* @Title: delete
* @Description:
* @author zhiwj
* @param dataExplainId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> delete(Integer dataExplainId);
/**
* @Title: publish
* @Description:
* @author zhiwj
* @param dataExplainIdList
* @param updateType
* @param reason
* @param optUserId
* @param optUserName
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> publish(List<Integer> dataExplainIdList, Integer updateType, String reason, Integer optUserId, String optUserName);
/**
* @Title: listByModule
* @Description:
* @author zhiwj
* @param moduleId
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.cloud.dto.IndexDTO>>
* @throws
*/
ServiceResponse<List<DataExplainDTO>> listByModule(String moduleId);
}
package com.gic.cloud.service;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.dto.EnterprisePortraitRelDTO;
import java.util.List;
public interface EnterprisePortraitRelApiService {
/**
* 查询会员画像字段列表
* @Title: listPortraitField

* @Description:

* @author guojuxing
* @param enterpriseId

* @param dataType 1:基础画像 2:自定义画像
* @param status 1:有效 2:回收站
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.cloud.dto.EnterprisePortraitRelDTO>>


*/
ServiceResponse<List<EnterprisePortraitRelDTO>> listPortraitField(Integer enterpriseId, Integer dataType, Integer status);
/**
* 批量新增
* @Title: insertForeach

* @Description:

* @author guojuxing
* @param list

* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>


*/
ServiceResponse<Void> insertForeach(List<EnterprisePortraitRelDTO> list);
ServiceResponse<Void> savePortraitField( Integer enterpriseId, String fieldCode, String fieldName, Integer dataType);
/**
* 字段排序
* @Title: sort

* @Description:

* @author guojuxing
* @param enterpriseId
* @param fieldCode 字段code
* @param dataType 1:基础画像 2:自定义
* @param sort
拖动的位置
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>


*/
ServiceResponse<Void> sort(Integer enterpriseId, String fieldCode, Integer dataType, Integer sort);
/**
* 移入移除回收站
* @Title: updateStatus

* @Description:

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

* @param status 0:移入回收站 1:移除回收站
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>


*/
ServiceResponse<Void> updateStatus(Integer enterpriseId, String fieldCode, Integer dataType, Integer status);
}
package com.gic.cloud.service;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.dto.FunctionDTO;
import com.gic.cloud.dto.FunctionModuleDTO;
import java.util.List;
public interface FunctionApiService {
/**
* 新增功能权限集
* @Title: saveFunction

* @Description:

* @author guojuxing
* @param dto

* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer>


*/
ServiceResponse<Integer> saveFunction(FunctionDTO dto);
ServiceResponse<Void> editFunction(FunctionDTO dto);
ServiceResponse<Void> deleteFunction(Integer functionId);
ServiceResponse<Page<FunctionDTO>> pageFunction(Integer enterpriseId, String functionName, Integer currentPage, Integer pageSize);
ServiceResponse<List<FunctionDTO>> listFunction(Integer enterpriseId, String functionName);
ServiceResponse<FunctionDTO> getFunction(Integer functionId);
ServiceResponse<List<FunctionModuleDTO>> getFunctionByUserId(Integer userId);
}
package com.gic.cloud.service;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.dto.FunctionModuleDTO;
import java.util.List;
public interface FunctionModuleApiService {
ServiceResponse<Integer> saveFunctionModule(FunctionModuleDTO dto);
ServiceResponse<Void> editFunctionModule(FunctionModuleDTO dto);
ServiceResponse<List<FunctionModuleDTO>> listFunctionModule(String search);
}
package com.gic.cloud.service;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.dto.IndexDTO;
import com.gic.cloud.qo.IndexQO;
import java.util.List;
/**
* @author zhiwj
* @Description:
* @date 2020-07-08 10:13
*/
public interface IndexApiService {
/**
* @Title: saveIndex
* @Description:
* @author zhiwj
* @param indexDTO
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> saveIndex(IndexDTO indexDTO);
/**
* @Title: editIndex
* @Description:
* @author zhiwj
* @param indexDTO
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> updateIndex(IndexDTO indexDTO, Integer updateType, String reason);
/**
* @Title: getById
* @Description:
* @author zhiwj
* @param indexId
* @return com.gic.api.base.commons.ServiceResponse<com.gic.cloud.dto.IndexDTO>
* @throws
*/
ServiceResponse<IndexDTO> getByIndexId(Integer indexId);
/**
* @Title: listIndex
* @Description:
* @author zhiwj
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.cloud.dto.IndexDTO>>
* @throws
*/
ServiceResponse<Page<IndexDTO>> listIndex(IndexQO indexQO);
/**
* @Title: listAllIndex
* @Description:
* @author zhiwj
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.cloud.dto.IndexDTO>>
* @throws
*/
ServiceResponse<List<IndexDTO>> listAllIndex(IndexQO indexQO);
/**
* @Title: delete
* @Description:
* @author zhiwj
* @param indexId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> delete(Integer indexId);
/**
* 发布指标
* @Title: publish
* @Description:
* @author zhiwj
* @param indexIdList
* @param updateType
* @param reason
* @param optUserId
* @param optUserName
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> publish(List<Integer> indexIdList, Integer updateType, String reason, Integer optUserId, String optUserName);
/**
* @Title: listByModule
* @Description:
* @author zhiwj
* @param moduleId
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.cloud.dto.IndexDTO>>
* @throws
*/
ServiceResponse<List<IndexDTO>> listByModule(String moduleId);
}
package com.gic.cloud.service;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.dto.IndexDTO;
import com.gic.cloud.dto.IndexDescDTO;
import java.util.List;
/**
* @author zhiwj
* @Description:
* @date 2020-07-23 14:50
*/
public interface IndexDescApiService {
/**
* 查询某个商户在某个模块下的指标
* @Title: listByEnterpriseAndModule
* @Description:
* @author zhiwj
* @param enterpriseId
* @param moduleId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<List<IndexDescDTO>> listByEnterpriseAndModule(Integer enterpriseId, String moduleId, String indexGroupName);
/**
* @Title: listByEnterpriseAndModuleDetail
* @Description:
* @author zhiwj
* @param enterpriseId
* @param moduleId
* @return com.gic.api.base.commons.ServiceResponse<com.gic.cloud.dto.IndexEnterpriseGroupDTO>
* @throws
*/
ServiceResponse<List<IndexDescDTO>> listByEnterpriseAndModuleDetail(Integer enterpriseId, String moduleId, String indexGroupName, Integer userId);
/**
* 回收站中的指标
* @Title: listRecycle
* @Description:
* @author zhiwj
* @param enterpriseId
* @param moduleId
* @param userId
* @return com.gic.api.base.commons.ServiceResponse<com.gic.cloud.dto.IndexEnterpriseGroupDTO>
* @throws
*/
ServiceResponse<List<IndexDescDTO>> listRecycle(Integer enterpriseId, String moduleId, String indexGroupName, Integer userId);
/**
* 排序
* @Title: sortIndex
* @Description:
* @author zhiwj
* @param enterpriseId 商户id
* @param moduleId
* @param indexDescEnterpriseId 指标id
* @param seq 排到第几个
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> sort(Integer enterpriseId, String moduleId, String indexGroupName, Integer indexDescEnterpriseId, Integer seq);
/**
* 移动到回收站
* @Title: moveToRecycle
* @Description:
* @author zhiwj
* @param indexId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> moveToRecycle(Integer indexDescEnterpriseId);
/**
* @Title: getIndexDesc
* @Description:
* @author zhiwj
* @return com.gic.api.base.commons.ServiceResponse<com.gic.cloud.dto.IndexDescDTO>
* @throws
*/
ServiceResponse<IndexDTO> getIndexDesc(Integer enterpriseId, String moduleId, String indexGroupName, String indexCode);
/**
* 批量更新
* @Title: batchUpdate
* @Description:
* @author zhiwj
* @param descList
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> batchUpdate(List<IndexDescDTO> descList);
/**
* @Title: batchUpdate
* @Description:
* @author zhiwj
* @param enterpriseId
* @param moduleId
* @param ids
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> batchUpdate(Integer enterpriseId, String moduleId, String ids);
/**
* @Title: eraseUpdateTips
* @Description:
* @author zhiwj
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> eraseUpdateTips(Integer userId, Integer updateTipsId);
/**
* 查询全部
* @Title: listAll
* @Description:
* @author zhiwj
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.cloud.dto.IndexDescDTO>>
* @throws
*/
ServiceResponse<List<IndexDescDTO>> listAllUnRel(String moduleIds);
}
package com.gic.cloud.service;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.dto.IndexGroupDTO;
import java.util.List;
/**
* @author zhiwj
* @Description:
* @date 2020-07-13 15:31
*/
public interface IndexGroupApiService {
/**
* @Title: save
* @Description:
* @author zhiwj
* @param indexGroupDTO
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> save(IndexGroupDTO indexGroupDTO);
/**
* @Title: update
* @Description:
* @author zhiwj
* @param indexGroupDTO
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> update(IndexGroupDTO indexGroupDTO);
/**
* @Title: tree
* @Description:
* @author zhiwj
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.cloud.dto.IndexGroupDTO>>
* @throws
*/
ServiceResponse<List<IndexGroupDTO>> tree();
/**
* @Title: delete
* @Description:
* @author zhiwj
* @param indexGroupId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse<Void> delete(Integer indexGroupId);
}
package com.gic.cloud.service;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.dto.IndexLogDTO;
import java.util.List;
/**
* @author zhiwj
* @Description:
* @date 2020-07-09 15:25
*/
public interface IndexLogApiService {
/**
* @Title: listIndexLog
* @Description:
* @author zhiwj
* @param indexId
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.cloud.dto.IndexLogDTO>>
* @throws
*/
ServiceResponse<List<IndexLogDTO>> listIndexLog(Integer indexId);
/**
* @Title: listIndexLog
* @Description:
* @author zhiwj
* @param dataExplainId
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.cloud.dto.IndexLogDTO>>
* @throws
*/
ServiceResponse<List<IndexLogDTO>> listDataExplainLog(Integer dataExplainId);
}
package com.gic.cloud.service;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.dto.AttentionStoreDTO;
import java.util.Map;
public interface StoreAttentionApiService {
ServiceResponse addStoreAttenttion(Integer userId, Integer enterpriseId, Integer storeId);
ServiceResponse removeStoreAttenttion(Integer enterpriseId, Integer userId, String storeIds);
ServiceResponse<Page<AttentionStoreDTO>> pageStoreAttention(Integer userId, Integer enterpriseId, Integer pageNum, Integer pageSize);
ServiceResponse<Map<Integer, AttentionStoreDTO>> getAllAttenttionStore(Integer userId, Integer enterpriseId);
}
package com.gic.cloud.service;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.dto.TempStoreConditionDTO;
public interface TempStoreConditionApiService {
ServiceResponse<Integer> saveOrUpdateTempStoreCondition(TempStoreConditionDTO dto);
ServiceResponse<TempStoreConditionDTO> getTempStoreCondition(Integer enterpriseId);
}
......@@ -51,6 +51,8 @@ public interface UserApiService {

*/
ServiceResponse<Page<UserDTO>> pageUser(UserQO userQO);
ServiceResponse<List<UserDTO>> listUser(UserQO userQO);
/**
* 批量转移分组
* @Title: bulkTransferAccountGroup

......@@ -71,4 +73,6 @@ public interface UserApiService {
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.cloud.dto.UserDTO>>


*/
ServiceResponse<List<UserDTO>> listUserByPhone(String nationCode, String phone);
ServiceResponse<UserDTO> getUser(Integer userId);
}
......@@ -19,8 +19,9 @@
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<libraryVersion>4.0-SNAPSHOT</libraryVersion>
<gic-data-cloud-api>4.0-SNAPSHOT</gic-data-cloud-api>
<!-- api依赖,正式版会在 gic-pom-base 里生成 -->
<gic-data-cloud-api>4.0-SNAPSHOT</gic-data-cloud-api>
</properties>
<dependencies>
......@@ -88,6 +89,11 @@
<artifactId>gic-platform-enterprise-api</artifactId>
<version>${gic-platform-enterprise-api}</version>
</dependency>
<dependency>
<groupId>com.gic</groupId>
<artifactId>gic-data-cloud-api</artifactId>
<version>${gic-data-cloud-api}</version>
</dependency>
<!--<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
......
package com.gic.operation.web;
package com.gic.cloud.operation.web;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
......@@ -17,7 +17,7 @@ import com.gic.dubbo.util.DubboContextUtil;
* @author zhurz
*/
@SpringBootApplication(
scanBasePackages = "com.gic.operation.web.*",
scanBasePackages = "com.gic.cloud.operation.web.*",
exclude = {
QuartzAutoConfiguration.class
}
......@@ -25,7 +25,7 @@ import com.gic.dubbo.util.DubboContextUtil;
@ImportResource(value = {
"classpath*:applicationContext-init.xml",
"classpath*:dubbo-setting.xml",
"classpath*:dubbo-gic-platform-operation-web.xml",
"classpath*:dubbo-gic-data-cloud-operation-web.xml",
"classpath*:spring-interceptor.xml",
"classpath*:redis-init.xml"
})
......
package com.gic.cloud.operation.web.controller;
import com.alibaba.fastjson.JSON;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.authcenter.security.core.util.UserUtils;
import com.gic.cloud.dto.DataExplainDTO;
import com.gic.cloud.dto.IndexLogDTO;
import com.gic.cloud.qo.DataExplainQO;
import com.gic.cloud.service.DataExplainApiService;
import com.gic.cloud.service.IndexLogApiService;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.error.ErrorCode;
import com.gic.enterprise.utils.ResultControllerUtils;
import com.gic.redis.data.util.RedisUtil;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* @author zhiwj
* @Description:
* @date 2020-07-09 17:20
*/
@RestController
public class DataExplainController {
@Autowired
private DataExplainApiService dataExplainApiService;
@Autowired
private IndexLogApiService indexLogApiService;
@RequestMapping("/save-data-explain")
public RestResponse saveDataExplain(DataExplainDTO dataExplainDTO) {
if (StringUtils.isBlank(dataExplainDTO.getDataName()) || StringUtils.isBlank(dataExplainDTO.getIndexRemark())) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg());
}
Integer id = UserUtils.getUser().getId();
String realName = UserUtils.getUser().getRealName();
dataExplainDTO.setOptUserId(id);
dataExplainDTO.setOptUserName(realName);
ServiceResponse<Void> serviceResponse = dataExplainApiService.saveDataExplain(dataExplainDTO);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/update-data-explain")
public RestResponse updateDataExplain(DataExplainDTO dataExplainDTO, Integer updateType, String reason) {
Integer id = UserUtils.getUser().getId();
String realName = UserUtils.getUser().getRealName();
dataExplainDTO.setOptUserId(id);
dataExplainDTO.setOptUserName(realName);
ServiceResponse<Void> serviceResponse = dataExplainApiService.updateDataExplain(dataExplainDTO, updateType, reason);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/get-by-data-explain-id")
public RestResponse getByDataExplainId(Integer dataExplainId) {
ServiceResponse<DataExplainDTO> serviceResponse = dataExplainApiService.getByDataExplainId(dataExplainId);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/list-data-explain")
public RestResponse listDataExplain(DataExplainQO dataExplainQO) {
ServiceResponse<Page<DataExplainDTO>> serviceResponse = dataExplainApiService.listDataExplain(dataExplainQO);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/data-explain-log")
public RestResponse dataExplainLog(Integer dataExplainId) {
ServiceResponse<List<IndexLogDTO>> serviceResponse = indexLogApiService.listDataExplainLog(dataExplainId);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/delete-data-explain")
public RestResponse delete(Integer dataExplainId) {
ServiceResponse<Void> serviceResponse = dataExplainApiService.delete(dataExplainId);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/publish-data-explain")
public RestResponse publishIndex(String dataExplainIds, Integer updateType, String reason) {
if (StringUtils.isBlank(dataExplainIds)) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg());
}
List<Integer> dataExplainIdList;
if ("all".equals(dataExplainIds)) {
List<DataExplainDTO> explainDTOList = this.dataExplainApiService.listAllDataExplain().getResult();
dataExplainIdList = explainDTOList.stream().map(DataExplainDTO::getDataExplainId).collect(Collectors.toList());
} else {
dataExplainIdList = Stream.of(dataExplainIds.split(",")).map(Integer::valueOf).collect(Collectors.toList());
}
ServiceResponse<Void> serviceResponse = dataExplainApiService.publish(dataExplainIdList, updateType, reason, UserUtils.getUser().getId(), UserUtils.getUser().getRealName());
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/data-module-list")
public RestResponse moduleList() {
Object cache = RedisUtil.getCache("enterprise:datacloud:moduleList");
if (cache != null) {
return RestResponse.success(JSON.parseArray(cache.toString()));
}
return RestResponse.success();
}
}
\ No newline at end of file
package com.gic.cloud.operation.web.controller;
import com.gic.authcenter.security.core.util.UserUtils;
import com.gic.cloud.dto.FunctionModuleDTO;
import com.gic.cloud.operation.web.vo.FunctionModuleVO;
import com.gic.cloud.service.FunctionModuleApiService;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.utils.ResultControllerUtils;
import com.gic.enterprise.utils.UserDetail;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("function-module")
public class FunctionModuleController {
private static Logger LOGGER = LogManager.getLogger(FunctionModuleController.class);
@Autowired
private FunctionModuleApiService functionModuleApiService;
@RequestMapping("/list-function-component")
public RestResponse listFunctionComponent(String search) {
return ResultControllerUtils.commonResult(functionModuleApiService.listFunctionModule(search), FunctionModuleVO.class);
}
/**
* 添加说明
* @param dto
* @return
*/
@RequestMapping("/edit-function-component")
public RestResponse editFunctionComponent(FunctionModuleDTO dto) {
dto.setOperationId(UserUtils.getUser().getId().toString());
dto.setOperationName(UserUtils.getUser().getRealName());
return ResultControllerUtils.commonResult(functionModuleApiService.editFunctionModule(dto));
}
}
package com.gic.cloud.operation.web.controller;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.authcenter.security.core.dto.UserDetailsVO;
import com.gic.authcenter.security.core.util.UserUtils;
import com.gic.cloud.constants.IndexTypeEnum;
import com.gic.cloud.dto.IndexDTO;
import com.gic.cloud.dto.IndexDescDTO;
import com.gic.cloud.dto.IndexLogDTO;
import com.gic.cloud.operation.web.vo.IndexVO;
import com.gic.cloud.operation.web.vo.ModuleVO;
import com.gic.cloud.qo.IndexQO;
import com.gic.cloud.service.IndexApiService;
import com.gic.cloud.service.IndexDescApiService;
import com.gic.cloud.service.IndexLogApiService;
import com.gic.commons.util.EntityUtil;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.error.ErrorCode;
import com.gic.enterprise.utils.ResultControllerUtils;
import com.google.common.collect.Lists;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* @author zhiwj
* @Description:
* @date 2020-07-09 14:22
*/
@RestController
public class IndexController {
@Autowired
private IndexApiService indexApiService;
@Autowired
private IndexLogApiService indexLogApiService;
@Autowired
private IndexDescApiService indexDescApiService;
@RequestMapping("/save-index")
public RestResponse saveIndex(IndexQO indexQO, String relModuleIds) {
IndexDTO indexDTO = EntityUtil.changeEntityByJSON(IndexDTO.class, indexQO);
if (indexDTO.getClassifyType() == null ||
StringUtils.isBlank(indexDTO.getCode()) ||
StringUtils.isBlank(indexDTO.getName()) ||
StringUtils.isBlank(indexDTO.getIndexRemark())) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg());
}
UserDetailsVO user = UserUtils.getUser();
indexDTO.setClassifyName(IndexTypeEnum.parse(indexDTO.getClassifyType()));
indexDTO.setOptUserId(user.getId());
indexDTO.setOptUserName(user.getRealName());
if (StringUtils.isNotBlank(relModuleIds)) {
indexDTO.setRelModuleIdList(Lists.newArrayList(relModuleIds.split(",")));
}
ServiceResponse<Void> serviceResponse = indexApiService.saveIndex(indexDTO);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/update-index")
public RestResponse updateIndex(IndexDTO indexDTO, String relModuleIds, Integer updateType, String reason) {
if (indexDTO.getIndexId() == null || updateType == null) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg());
}
Integer id = UserUtils.getUser().getId();
String realName = UserUtils.getUser().getRealName();
indexDTO.setOptUserId(id);
indexDTO.setOptUserName(realName);
if (StringUtils.isNotBlank(relModuleIds)) {
indexDTO.setRelModuleIdList(Lists.newArrayList(relModuleIds.split(",")));
} else {
indexDTO.setRelModuleIdList(null);
}
ServiceResponse<Void> serviceResponse = indexApiService.updateIndex(indexDTO, updateType, reason);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/get-by-index-id")
public RestResponse getByIndexId(Integer indexId) {
ServiceResponse<IndexDTO> serviceResponse = indexApiService.getByIndexId(indexId);
return ResultControllerUtils.commonResultOne(serviceResponse, IndexVO.class);
}
@RequestMapping("/list-index")
public RestResponse listIndex(IndexQO indexQO) {
ServiceResponse<Page<IndexDTO>> serviceResponse = indexApiService.listIndex(indexQO);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/list-all-index")
public RestResponse listAllIndex(IndexQO indexQO) {
ServiceResponse<List<IndexDTO>> serviceResponse = indexApiService.listAllIndex(indexQO);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/index-log")
public RestResponse indexLog(Integer indexId) {
ServiceResponse<List<IndexLogDTO>> serviceResponse = indexLogApiService.listIndexLog(indexId);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/delete-index")
public RestResponse delete(Integer indexId) {
ServiceResponse<Void> serviceResponse = indexApiService.delete(indexId);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/publish-index")
public RestResponse publishIndex(String indexIds, Integer updateType, String reason) {
if (StringUtils.isBlank(indexIds)) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg());
}
Integer id = UserUtils.getUser().getId();
String realName = UserUtils.getUser().getRealName();
List<Integer> indexIdList;
if ("all".equals(indexIds)) {
List<IndexDTO> list = indexApiService.listAllIndex(new IndexQO()).getResult();
indexIdList = list.stream().map(IndexDTO::getIndexId).collect(Collectors.toList());
} else {
indexIdList = Stream.of(indexIds.split(",")).map(Integer::valueOf).collect(Collectors.toList());
}
ServiceResponse<Void> serviceResponse = indexApiService.publish(indexIdList, updateType, reason, id, realName);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/module-list")
public RestResponse moduleList(String moduleIds) {
ServiceResponse<List<IndexDescDTO>> serviceResponse = indexDescApiService.listAllUnRel(moduleIds);
List<IndexDescDTO> list = serviceResponse.getResult();
List<ModuleVO> moduleVOList = new ArrayList<>();
for (IndexDescDTO indexDescDTO : list) {
ModuleVO moduleVO = new ModuleVO();
moduleVO.setModuleId(indexDescDTO.getIndexDescId().toString());
moduleVO.setName(indexDescDTO.getRemark() + "-" + indexDescDTO.getModuleId() + "-" + indexDescDTO.getIndexName());
moduleVOList.add(moduleVO);
}
return RestResponse.success(moduleVOList);
}
}
\ No newline at end of file
package com.gic.cloud.operation.web.controller;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.dto.IndexGroupDTO;
import com.gic.cloud.service.IndexGroupApiService;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.error.ErrorCode;
import com.gic.enterprise.utils.ResultControllerUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @author zhiwj
* @Description:
* @date 2020-07-13 16:26
*/
@RestController
public class IndexGroupController {
@Autowired
private IndexGroupApiService indexGroupApiService;
@RequestMapping("/save-index-group")
public RestResponse saveIndexGroup(IndexGroupDTO indexGroupDTO) {
if (StringUtils.isBlank(indexGroupDTO.getIndexGroupName()) || indexGroupDTO.getParentId() == null) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg());
}
ServiceResponse<Void> serviceResponse = indexGroupApiService.save(indexGroupDTO);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/update-index-group")
public RestResponse updateIndexGroup(IndexGroupDTO indexGroupDTO) {
if (StringUtils.isBlank(indexGroupDTO.getIndexGroupName()) || indexGroupDTO.getParentId() == null) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg());
}
ServiceResponse<Void> serviceResponse = indexGroupApiService.update(indexGroupDTO);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/tree-index-group")
public RestResponse tree() {
ServiceResponse<List<IndexGroupDTO>> serviceResponse = indexGroupApiService.tree();
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/delete-index-group")
public RestResponse tree(Integer indexGroupId) {
ServiceResponse<Void> serviceResponse = indexGroupApiService.delete(indexGroupId);
return ResultControllerUtils.commonResult(serviceResponse);
}
}
package com.gic.operation.web.exception;
import java.io.ByteArrayOutputStream;
import java.io.PrintWriter;
import java.util.List;
import java.util.Set;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
package com.gic.cloud.operation.web.exception;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.error.ErrorCode;
import com.gic.enterprise.exception.CommonException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.validation.BindException;
......@@ -16,9 +10,13 @@ import org.springframework.validation.FieldError;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.error.ErrorCode;
import com.gic.enterprise.exception.CommonException;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import java.io.ByteArrayOutputStream;
import java.io.PrintWriter;
import java.util.List;
import java.util.Set;
/**
* 全局异常处理类
......@@ -37,7 +35,7 @@ public class GlobalExceptionHandler {
StringBuilder sb = new StringBuilder();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try (PrintWriter printWriter = new PrintWriter(baos)) {
ex.printStackTrace(printWriter);
logger.warn("err", ex);
}
try {
sb.append(baos.toString());
......
package com.gic.cloud.operation.web.vo;
import java.io.Serializable;
import java.util.Date;
public class FunctionModuleVO implements Serializable{
private static final long serialVersionUID = 6083023157590374256L;
/**
* ID
*/
private Integer functionModuleId;
/**
* 名称
*/
private String functionModuleName;
/**
* 功能编码
*/
private String functionModuleCode;
/**
* 功能模块说明
*/
private String functionModuleDesc;
/**
* 运维操作人ID
*/
private String operationId;
/**
* 运维操作人name
*/
private String operationName;
private String logo;
/**
* 1:有效 0:无效
*/
private Integer status;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
public Integer getFunctionModuleId() {
return functionModuleId;
}
public FunctionModuleVO setFunctionModuleId(Integer functionModuleId) {
this.functionModuleId = functionModuleId;
return this;
}
public String getFunctionModuleName() {
return functionModuleName;
}
public FunctionModuleVO setFunctionModuleName(String functionModuleName) {
this.functionModuleName = functionModuleName;
return this;
}
public String getFunctionModuleCode() {
return functionModuleCode;
}
public FunctionModuleVO setFunctionModuleCode(String functionModuleCode) {
this.functionModuleCode = functionModuleCode;
return this;
}
public String getFunctionModuleDesc() {
return functionModuleDesc;
}
public FunctionModuleVO setFunctionModuleDesc(String functionModuleDesc) {
this.functionModuleDesc = functionModuleDesc;
return this;
}
public String getOperationId() {
return operationId;
}
public FunctionModuleVO setOperationId(String operationId) {
this.operationId = operationId;
return this;
}
public String getOperationName() {
return operationName;
}
public FunctionModuleVO setOperationName(String operationName) {
this.operationName = operationName;
return this;
}
public Integer getStatus() {
return status;
}
public FunctionModuleVO setStatus(Integer status) {
this.status = status;
return this;
}
public Date getCreateTime() {
return createTime;
}
public FunctionModuleVO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Date getUpdateTime() {
return updateTime;
}
public FunctionModuleVO setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
return this;
}
public String getLogo() {
return logo;
}
public FunctionModuleVO setLogo(String logo) {
this.logo = logo;
return this;
}
}
package com.gic.cloud.operation.web.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* @author zhiwj
* @Description:
* @date 2020-07-20 10:56
*/
public class IndexVO implements Serializable {
private static final long serialVersionUID = 5687670215343610800L;
/**
* 指标id
*/
private Integer indexId;
/**
* 分类类型 1指标 2维度 3说明
*/
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Integer classifyType;
/**
* 分类名
*/
private String classifyName;
/**
* 是否应用指标 1是 0否
*/
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Integer isAppIndex;
/**
* 关联应用指标
*/
@JsonFormat(shape = JsonFormat.Shape.STRING)
private String relAppIndex;
/**
*
*/
private String code;
/**
*
*/
private String name;
/**
* 指标级别
*/
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Integer indexLevel;
/**
* 指标级别
*/
private String indexLevelName;
/**
* 关联一级指标 ‘,’ 隔开
*/
private String relTopLevel;
/**
* 单位
*/
private Integer unitCode;
/**
* 单位
*/
private String unitName;
/**
* 小数位数
*/
private Integer decimalSize;
/**
* 数据类型 1流量 2存量
*/
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Integer dataType;
/**
* 指标类型 1基础 2计算
*/
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Integer indexType;
/**
* 基础组织维度
*/
private String baseOrganized;
/**
* 基础时间维度
*/
private String baseTime;
/**
* 更新频率 高/中/低
*/
private String updateRate;
/**
* 更新频率 补充说明
*/
private String updateRateRemark;
/**
* 口径/文案编辑
*/
private String indexRemark;
/**
* 补充说明
*/
private String complement;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Integer showStatus;
private List<String> relModuleIdList;
/**
* 操作人id
*/
private Integer optUserId;
/**
* 操作人name
*/
private String optUserName;
private Integer indexGroupId;
private String indexGroupName;
private String relTopLevelName;
public Integer getIndexId() {
return indexId;
}
public void setIndexId(Integer indexId) {
this.indexId = indexId;
}
public Integer getClassifyType() {
return classifyType;
}
public void setClassifyType(Integer classifyType) {
this.classifyType = classifyType;
}
public String getClassifyName() {
return classifyName;
}
public void setClassifyName(String classifyName) {
this.classifyName = classifyName;
}
public Integer getIsAppIndex() {
return isAppIndex;
}
public void setIsAppIndex(Integer isAppIndex) {
this.isAppIndex = isAppIndex;
}
public String getRelAppIndex() {
return relAppIndex;
}
public void setRelAppIndex(String relAppIndex) {
this.relAppIndex = relAppIndex;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getIndexLevel() {
return indexLevel;
}
public void setIndexLevel(Integer indexLevel) {
this.indexLevel = indexLevel;
}
public String getIndexLevelName() {
return indexLevelName;
}
public void setIndexLevelName(String indexLevelName) {
this.indexLevelName = indexLevelName;
}
public String getRelTopLevel() {
return relTopLevel;
}
public void setRelTopLevel(String relTopLevel) {
this.relTopLevel = relTopLevel;
}
public Integer getUnitCode() {
return unitCode;
}
public void setUnitCode(Integer unitCode) {
this.unitCode = unitCode;
}
public String getUnitName() {
return unitName;
}
public void setUnitName(String unitName) {
this.unitName = unitName;
}
public Integer getDecimalSize() {
return decimalSize;
}
public void setDecimalSize(Integer decimalSize) {
this.decimalSize = decimalSize;
}
public Integer getDataType() {
return dataType;
}
public void setDataType(Integer dataType) {
this.dataType = dataType;
}
public Integer getIndexType() {
return indexType;
}
public void setIndexType(Integer indexType) {
this.indexType = indexType;
}
public String getBaseOrganized() {
return baseOrganized;
}
public void setBaseOrganized(String baseOrganized) {
this.baseOrganized = baseOrganized;
}
public String getBaseTime() {
return baseTime;
}
public void setBaseTime(String baseTime) {
this.baseTime = baseTime;
}
public String getUpdateRate() {
return updateRate;
}
public void setUpdateRate(String updateRate) {
this.updateRate = updateRate;
}
public String getUpdateRateRemark() {
return updateRateRemark;
}
public void setUpdateRateRemark(String updateRateRemark) {
this.updateRateRemark = updateRateRemark;
}
public String getIndexRemark() {
return indexRemark;
}
public void setIndexRemark(String indexRemark) {
this.indexRemark = indexRemark;
}
public String getComplement() {
return complement;
}
public void setComplement(String complement) {
this.complement = complement;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public List<String> getRelModuleIdList() {
return relModuleIdList;
}
public void setRelModuleIdList(List<String> relModuleIdList) {
this.relModuleIdList = relModuleIdList;
}
public Integer getOptUserId() {
return optUserId;
}
public void setOptUserId(Integer optUserId) {
this.optUserId = optUserId;
}
public String getOptUserName() {
return optUserName;
}
public void setOptUserName(String optUserName) {
this.optUserName = optUserName;
}
public Integer getShowStatus() {
return showStatus;
}
public void setShowStatus(Integer showStatus) {
this.showStatus = showStatus;
}
public Integer getIndexGroupId() {
return indexGroupId;
}
public void setIndexGroupId(Integer indexGroupId) {
this.indexGroupId = indexGroupId;
}
public String getIndexGroupName() {
return indexGroupName;
}
public void setIndexGroupName(String indexGroupName) {
this.indexGroupName = indexGroupName;
}
public String getRelTopLevelName() {
return relTopLevelName;
}
public void setRelTopLevelName(String relTopLevelName) {
this.relTopLevelName = relTopLevelName;
}
}
package com.gic.cloud.operation.web.vo;
import java.io.Serializable;
/**
* @author zhiwj
* @Description:
* @date 2020-08-17 14:42
*/
public class ModuleVO implements Serializable {
private static final long serialVersionUID = -7673158503429785997L;
private String name;
private String moduleId;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getModuleId() {
return moduleId;
}
public void setModuleId(String moduleId) {
this.moduleId = moduleId;
}
}
app.id=gic-data-cloud-operation-web
app.project-code=data-cloud
app.project-code=gic-data-cloud
logging.level.org.springframework.security=DEBUG
......
......@@ -92,4 +92,13 @@
<dubbo:reference interface="com.gic.authcenter.api.service.GicDepartmentService" id="gicDepartmentService" timeout="6000" />
<dubbo:reference interface="com.gic.member.config.api.service.MemberCardApiService" id="memberCardApiService" timeout="6000" />
<dubbo:reference interface="com.gic.cloud.service.IndexApiService" id="indexApiService" timeout="6000" retries="0"/>
<dubbo:reference interface="com.gic.cloud.service.IndexDescApiService" id="indexDescApiService" timeout="6000" retries="0"/>
<dubbo:reference interface="com.gic.cloud.service.IndexLogApiService" id="indexLogApiService" timeout="6000" retries="0"/>
<dubbo:reference interface="com.gic.cloud.service.IndexGroupApiService" id="indexGroupApiService" timeout="6000" retries="0"/>
<dubbo:reference interface="com.gic.cloud.service.DataExplainApiService" id="dataExplainApiService" timeout="6000" retries="0"/>
<dubbo:reference interface="com.gic.cloud.service.FunctionModuleApiService" id="functionModuleApiService" timeout="6000" retries="0"/>
</beans>
\ No newline at end of file
package com.gic.cloud.dao.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.gic.cloud.dto.EnterprisePortraitRelDTO;
import com.gic.cloud.entity.TabGicEnterprisePortraitRel;
public interface EnterprisePortraitRelMapper {
/**
* 根据主键删除
*
* @param portraitRelationId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer portraitRelationId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabGicEnterprisePortraitRel record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabGicEnterprisePortraitRel record);
/**
* 根据主键查询
*
* @param portraitRelationId 主键
* @return 实体对象
*/
TabGicEnterprisePortraitRel selectByPrimaryKey(Integer portraitRelationId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabGicEnterprisePortraitRel record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabGicEnterprisePortraitRel record);
/**
* 查询会员画像字段列表
* @Title: listPortraitField

* @Description:

* @author guojuxing
* @param enterpriseId

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


*/
List<TabGicEnterprisePortraitRel> listPortraitField(@Param("enterpriseId") Integer enterpriseId,
@Param("dataType") Integer dataType,
@Param("status") Integer status);
/**
* 批量插入
* @Title: insertForeach

* @Description:

 * @author guojuxing
* @param list

* @return void


 */
void insertForeach(@Param("list") List<EnterprisePortraitRelDTO> list);
TabGicEnterprisePortraitRel getPortraitField(@Param("enterpriseId") Integer enterpriseId,
@Param("fieldCode") String fieldCode,
@Param("dataType") Integer dataType);
int getMaxSort(@Param("enterpriseId") Integer enterpriseId, @Param("dataType") Integer dataType);
List<TabGicEnterprisePortraitRel> listByDataType(@Param("enterpriseId") Integer enterpriseId, @Param("dataType") Integer dataType);
}
\ No newline at end of file
package com.gic.cloud.dao.mapper;
import com.gic.cloud.entity.TabAttentionStore;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface TabAttentionStoreMapper {
/**
* 根据主键删除
*
* @param attentionId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer attentionId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabAttentionStore record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabAttentionStore record);
/**
* 根据主键查询
*
* @param attentionId 主键
* @return 实体对象
*/
TabAttentionStore selectByPrimaryKey(Integer attentionId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabAttentionStore record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabAttentionStore record);
Page<TabAttentionStore> pageStoreAttention(@Param("userId") Integer userId, @Param("enterpriseId") Integer enterpriseId);
int removeAttention(@Param("userId") Integer userId,
@Param("enterpriseId") Integer enterpriseId,
@Param("storeIds")List<Integer> storeIds);
}
\ No newline at end of file
package com.gic.cloud.dao.mapper;
import com.gic.cloud.entity.TabDataExplain;
import com.gic.cloud.qo.DataExplainQO;
import com.github.pagehelper.Page;
public interface TabDataExplainMapper {
/**
* 根据主键删除
*
* @param dataExplainId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer dataExplainId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabDataExplain record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabDataExplain record);
/**
* 根据主键查询
*
* @param dataExplainId 主键
* @return 实体对象
*/
TabDataExplain selectByPrimaryKey(Integer dataExplainId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabDataExplain record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabDataExplain record);
TabDataExplain getBySelective(TabDataExplain tabDataExplain);
Page<TabDataExplain> listDataExplain(DataExplainQO dataExplainQO);
}
\ No newline at end of file
package com.gic.cloud.dao.mapper;
import com.gic.cloud.entity.TabIndexDescEnterprise;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface TabIndexDescEnterpriseMapper {
/**
* 根据主键删除
*
* @param indexDescEnterpriseId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer indexDescEnterpriseId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabIndexDescEnterprise record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabIndexDescEnterprise record);
/**
* 根据主键查询
*
* @param indexDescEnterpriseId 主键
* @return 实体对象
*/
TabIndexDescEnterprise selectByPrimaryKey(Integer indexDescEnterpriseId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabIndexDescEnterprise record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabIndexDescEnterprise record);
void updateSort(@Param("enterpriseId") Integer enterpriseId, @Param("sort") Integer sort);
void deleteList(@Param("ids") List<Integer> deleteList);
}
\ No newline at end of file
package com.gic.cloud.dao.mapper;
import com.gic.cloud.dto.IndexDescDTO;
import com.gic.cloud.entity.TabIndexDesc;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface TabIndexDescMapper {
/**
* 根据主键删除
*
* @param indexDescId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer indexDescId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabIndexDesc record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabIndexDesc record);
/**
* 根据主键查询
*
* @param indexDescId 主键
* @return 实体对象
*/
TabIndexDesc selectByPrimaryKey(Integer indexDescId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabIndexDesc record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabIndexDesc record);
List<IndexDescDTO> listByEnterpriseAndModule(@Param("enterpriseId") Integer enterpriseId, @Param("moduleId") String moduleId, @Param("indexGroupName") String indexGroupName);
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);
List<TabIndexDesc> listAllUnRel(@Param("ids") List<Integer> relIndexDescIdList);
List<TabIndexDesc> listByIds(@Param("ids") List<Integer> indexDescIdList);
TabIndexDesc getIndexDescByIndexCode(@Param("moduleId") String moduleId, @Param("indexCode") String indexCode);
}
\ No newline at end of file
package com.gic.cloud.dao.mapper;
import com.gic.cloud.entity.TabIndexGroup;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface TabIndexGroupMapper {
/**
* 根据主键删除
*
* @param indexGroupId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer indexGroupId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabIndexGroup record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabIndexGroup record);
/**
* 根据主键查询
*
* @param indexGroupId 主键
* @return 实体对象
*/
TabIndexGroup selectByPrimaryKey(Integer indexGroupId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabIndexGroup record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabIndexGroup record);
TabIndexGroup getBySelective(TabIndexGroup indexGroup);
List<TabIndexGroup> listIndexGroup(@Param("ids") List<Integer> indexGroupIdList);
List<Integer> listChildIndexGroup(@Param("indexGroupId") Integer indexGroupId);
}
\ No newline at end of file
package com.gic.cloud.dao.mapper;
import com.gic.cloud.entity.TabIndexLog;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface TabIndexLogMapper {
/**
* 根据主键删除
*
* @param cloudIndexLogId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer cloudIndexLogId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabIndexLog record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabIndexLog record);
/**
* 根据主键查询
*
* @param cloudIndexLogId 主键
* @return 实体对象
*/
TabIndexLog selectByPrimaryKey(Integer cloudIndexLogId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabIndexLog record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabIndexLog record);
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.github.pagehelper.Page;
public interface TabIndexMapper {
/**
* 根据主键删除
*
* @param indexId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer indexId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabIndex record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabIndex record);
/**
* 根据主键查询
*
* @param indexId 主键
* @return 实体对象
*/
TabIndex selectByPrimaryKey(Integer indexId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabIndex record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabIndex record);
TabIndex getBySelective(TabIndex tabIndex);
Page<TabIndex> listIndex(IndexQO indexQO);
}
\ No newline at end of file
package com.gic.cloud.dao.mapper;
import com.gic.cloud.entity.TabIndexModuleRel;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface TabIndexModuleRelMapper {
/**
* 根据主键删除
*
* @param indexModuleRelId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer indexModuleRelId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabIndexModuleRel record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabIndexModuleRel record);
/**
* 根据主键查询
*
* @param indexModuleRelId 主键
* @return 实体对象
*/
TabIndexModuleRel selectByPrimaryKey(Integer indexModuleRelId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabIndexModuleRel record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabIndexModuleRel record);
void delByBusinessId(@Param("businessId") Integer businessId, @Param("type") Integer type);
void insertSelectiveByNotExist(TabIndexModuleRel rel);
void updateStatusByBusinessIds(@Param("businessId") Integer businessId, @Param("ids") List<String> moduleIdList, @Param("type") Integer type);
List<String> listModuleIdByBusinessId(@Param("businessId") Integer businessId, @Param("type") Integer type);
List<Integer> listBusinessIdByModuleId(@Param("moduleId") String moduleId, @Param("type") Integer type);
List<Integer> listBusinessIdByModuleIds(@Param("ids") List<String> moduleIdList);
List<TabIndexModuleRel> listModuleIdByBusinessIds(@Param("ids") List<Integer> businessIdList, @Param("type") Integer type);
}
\ No newline at end of file
package com.gic.cloud.dao.mapper;
import com.gic.cloud.entity.TabSysDataAuth;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface TabSysDataAuthMapper {
/**
* 根据主键删除
*
* @param dataAuthId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer dataAuthId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabSysDataAuth record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabSysDataAuth record);
/**
* 根据主键查询
*
* @param dataAuthId 主键
* @return 实体对象
*/
TabSysDataAuth selectByPrimaryKey(Integer dataAuthId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabSysDataAuth record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabSysDataAuth record);
int countByDataAuthName(@Param("enterpriseId") Integer enterpriseId,
@Param("dataAuthId") Integer dataAuthId,
@Param("dataAuthName") String dataAuthName);
int deleteDataAuth(@Param("dataAuthId") Integer dataAuthId);
List<TabSysDataAuth> listDataAuth(@Param("enterpriseId")Integer enterpriseId,
@Param("dataAuthName")String dataAuthName);
}
\ No newline at end of file
package com.gic.cloud.dao.mapper;
import com.gic.cloud.entity.TabSysFunction;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface TabSysFunctionMapper {
/**
* 根据主键删除
*
* @param functionId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer functionId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabSysFunction record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabSysFunction record);
/**
* 根据主键查询
*
* @param functionId 主键
* @return 实体对象
*/
TabSysFunction selectByPrimaryKey(Integer functionId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabSysFunction record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabSysFunction record);
int countByRepeatFunctionName(@Param("enterpriseId") Integer enterpriseId,
@Param("functionId") Integer functionId,
@Param("functionName") String functionName);
void deleteFunction(@Param("functionId") Integer functionId);
List<TabSysFunction> listFunction(@Param("enterpriseId")Integer enterpriseId, @Param("functionName") String functionName);
}
\ No newline at end of file
package com.gic.cloud.dao.mapper;
import com.gic.cloud.entity.TabSysFunctionModule;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface TabSysFunctionModuleMapper {
/**
* 根据主键删除
*
* @param functionModuleId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer functionModuleId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabSysFunctionModule record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabSysFunctionModule record);
/**
* 根据主键查询
*
* @param functionModuleId 主键
* @return 实体对象
*/
TabSysFunctionModule selectByPrimaryKey(Integer functionModuleId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabSysFunctionModule record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabSysFunctionModule record);
List<TabSysFunctionModule> listFunctionModule(@Param("search") String search);
}
\ No newline at end of file
package com.gic.cloud.dao.mapper;
import com.gic.cloud.entity.TabSysTempStoreCondition;
import org.apache.ibatis.annotations.Param;
public interface TabSysTempStoreConditionMapper {
/**
* 根据主键删除
*
* @param tempStoreConditionId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer tempStoreConditionId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabSysTempStoreCondition record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabSysTempStoreCondition record);
/**
* 根据主键查询
*
* @param tempStoreConditionId 主键
* @return 实体对象
*/
TabSysTempStoreCondition selectByPrimaryKey(Integer tempStoreConditionId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabSysTempStoreCondition record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabSysTempStoreCondition record);
TabSysTempStoreCondition getTempStoreCondition(@Param("enterpriseId") Integer enterpriseId);
}
\ No newline at end of file
......@@ -72,4 +72,10 @@ public interface TabSysUserMapper {
List<UserDTO> countGroupByAccountGroupId(@Param("enterpriseId")Integer enterpriseId);
List<TabSysUser> listUserByPhone(@Param("nationCode") String nationCode, @Param("phone") String phone);
List<UserDTO> countGroupByFunctionAuthId(@Param("enterpriseId") Integer enterpriseId,
@Param("functionIdList") List<Integer> functionIdList);
List<UserDTO> countGroupByDataAuthId(@Param("enterpriseId") Integer enterpriseId,
@Param("dataAuthIdList") List<Integer> dataAuthIdList);
}
\ No newline at end of file
package com.gic.cloud.dao.mapper;
import com.gic.cloud.entity.TabUpdateTips;
import org.apache.ibatis.annotations.Param;
public interface TabUpdateTipsMapper {
/**
* 根据主键删除
*
* @param updateTipsId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer updateTipsId);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insert(TabUpdateTips record);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int insertSelective(TabUpdateTips record);
/**
* 根据主键查询
*
* @param updateTipsId 主键
* @return 实体对象
*/
TabUpdateTips selectByPrimaryKey(Integer updateTipsId);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKeySelective(TabUpdateTips record);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int updateByPrimaryKey(TabUpdateTips record);
void updateStatus(@Param("businessId") Integer businessId, @Param("type") Integer type, @Param("userId") Integer userId, @Param("showStatus") Integer showStatus);
}
\ No newline at end of file
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