Commit 52fe7e54 by 陶光胜

Merge branch 'developer' into 'master'

Developer

See merge request !77
parents e89e0f9e a76bc52c
...@@ -10,6 +10,8 @@ public enum LogAndUpdateTipsTypeEnum { ...@@ -10,6 +10,8 @@ public enum LogAndUpdateTipsTypeEnum {
INDEX(1), INDEX(1),
// 数据解读 // 数据解读
DATA_EXPLAIN(2), DATA_EXPLAIN(2),
// 好办
HAOBAN(3),
; ;
private Integer code; private Integer code;
......
...@@ -29,9 +29,9 @@ public class AccountGroupDTO implements Serializable{ ...@@ -29,9 +29,9 @@ public class AccountGroupDTO implements Serializable{
private Integer enterpriseId; private Integer enterpriseId;
/** /**
* 1:有效 0:无效 * 0:有效 1:无效
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* 排序 * 排序
...@@ -80,12 +80,12 @@ public class AccountGroupDTO implements Serializable{ ...@@ -80,12 +80,12 @@ public class AccountGroupDTO implements Serializable{
return this; return this;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public AccountGroupDTO setStatus(Integer status) { public AccountGroupDTO setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this; return this;
} }
......
...@@ -53,9 +53,9 @@ public class DataAuthDTO implements Serializable{ ...@@ -53,9 +53,9 @@ public class DataAuthDTO implements Serializable{
private String goodsAreaAuth; private String goodsAreaAuth;
/** /**
* 1:有效 0:无效 * 0:有效 1:无效
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* 创建时间 * 创建时间
...@@ -135,12 +135,12 @@ public class DataAuthDTO implements Serializable{ ...@@ -135,12 +135,12 @@ public class DataAuthDTO implements Serializable{
return this; return this;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public DataAuthDTO setStatus(Integer status) { public DataAuthDTO setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this; return this;
} }
...@@ -182,6 +182,19 @@ public class DataAuthDTO implements Serializable{ ...@@ -182,6 +182,19 @@ public class DataAuthDTO implements Serializable{
@Override @Override
public String toString() { public String toString() {
return super.toString(); return "DataAuthDTO{" +
"dataAuthId=" + dataAuthId +
", dataAuthName='" + dataAuthName + '\'' +
", enterpriseId=" + enterpriseId +
", onlinePerformance='" + onlinePerformance + '\'' +
", noOwnerStore=" + noOwnerStore +
", storeWidgetId=" + storeWidgetId +
", memberCardAuth='" + memberCardAuth + '\'' +
", goodsAreaAuth='" + goodsAreaAuth + '\'' +
", deleteFlag=" + deleteFlag +
", createTime=" + createTime +
", updateTime=" + updateTime +
", memberCount=" + memberCount +
'}';
} }
} }
...@@ -49,7 +49,7 @@ public class DataExplainDTO implements Serializable { ...@@ -49,7 +49,7 @@ public class DataExplainDTO implements Serializable {
/** /**
* *
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* 模块id * 模块id
...@@ -114,12 +114,13 @@ public class DataExplainDTO implements Serializable { ...@@ -114,12 +114,13 @@ public class DataExplainDTO implements Serializable {
this.updateTime = updateTime; this.updateTime = updateTime;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public void setStatus(Integer status) { public DataExplainDTO setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this;
} }
public String getModuleId() { public String getModuleId() {
...@@ -148,6 +149,18 @@ public class DataExplainDTO implements Serializable { ...@@ -148,6 +149,18 @@ public class DataExplainDTO implements Serializable {
@Override @Override
public String toString() { public String toString() {
return super.toString(); return "DataExplainDTO{" +
"dataExplainId=" + dataExplainId +
", dataName='" + dataName + '\'' +
", dataClassify='" + dataClassify + '\'' +
", indexRemark='" + indexRemark + '\'' +
", complement='" + complement + '\'' +
", createTime=" + createTime +
", updateTime=" + updateTime +
", deleteFlag=" + deleteFlag +
", moduleId='" + moduleId + '\'' +
", optUserId=" + optUserId +
", optUserName='" + optUserName + '\'' +
'}';
} }
} }
...@@ -54,6 +54,8 @@ public class EnterprisePortraitRelDTO implements Serializable{ ...@@ -54,6 +54,8 @@ public class EnterprisePortraitRelDTO implements Serializable{
*/ */
private Integer status; private Integer status;
private Integer deleteFlag;
public Integer getPortraitRelationId() { public Integer getPortraitRelationId() {
return portraitRelationId; return portraitRelationId;
} }
...@@ -135,8 +137,28 @@ public class EnterprisePortraitRelDTO implements Serializable{ ...@@ -135,8 +137,28 @@ public class EnterprisePortraitRelDTO implements Serializable{
return this; return this;
} }
public Integer getDeleteFlag() {
return deleteFlag;
}
public EnterprisePortraitRelDTO setDeleteFlag(Integer deleteFlag) {
this.deleteFlag = deleteFlag;
return this;
}
@Override @Override
public String toString() { public String toString() {
return super.toString(); return "EnterprisePortraitRelDTO{" +
"portraitRelationId=" + portraitRelationId +
", portraitName='" + portraitName + '\'' +
", portraitCode='" + portraitCode + '\'' +
", enterpriseId=" + enterpriseId +
", sort=" + sort +
", dataType=" + dataType +
", createTime=" + createTime +
", updateTime=" + updateTime +
", status=" + status +
", deleteFlag=" + deleteFlag +
'}';
} }
} }
...@@ -34,9 +34,9 @@ public class FunctionDTO implements Serializable{ ...@@ -34,9 +34,9 @@ public class FunctionDTO implements Serializable{
private String functionComponent; private String functionComponent;
/** /**
* 1:有效 0:无效 * 0:有效 1:无效
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* 创建时间 * 创建时间
...@@ -89,12 +89,12 @@ public class FunctionDTO implements Serializable{ ...@@ -89,12 +89,12 @@ public class FunctionDTO implements Serializable{
return this; return this;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public FunctionDTO setStatus(Integer status) { public FunctionDTO setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this; return this;
} }
...@@ -127,6 +127,15 @@ public class FunctionDTO implements Serializable{ ...@@ -127,6 +127,15 @@ public class FunctionDTO implements Serializable{
@Override @Override
public String toString() { public String toString() {
return super.toString(); return "FunctionDTO{" +
"functionId=" + functionId +
", functionName='" + functionName + '\'' +
", enterpriseId=" + enterpriseId +
", functionComponent='" + functionComponent + '\'' +
", deleteFlag=" + deleteFlag +
", createTime=" + createTime +
", updateTime=" + updateTime +
", memberCount=" + memberCount +
'}';
} }
} }
...@@ -46,9 +46,9 @@ public class FunctionModuleDTO implements Serializable{ ...@@ -46,9 +46,9 @@ public class FunctionModuleDTO implements Serializable{
private String logo; private String logo;
/** /**
* 1:有效 0:无效 * 0:有效 1:无效
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* 创建时间 * 创建时间
...@@ -114,12 +114,12 @@ public class FunctionModuleDTO implements Serializable{ ...@@ -114,12 +114,12 @@ public class FunctionModuleDTO implements Serializable{
return this; return this;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public FunctionModuleDTO setStatus(Integer status) { public FunctionModuleDTO setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this; return this;
} }
...@@ -152,6 +152,17 @@ public class FunctionModuleDTO implements Serializable{ ...@@ -152,6 +152,17 @@ public class FunctionModuleDTO implements Serializable{
@Override @Override
public String toString() { public String toString() {
return super.toString(); return "FunctionModuleDTO{" +
"functionModuleId=" + functionModuleId +
", functionModuleName='" + functionModuleName + '\'' +
", functionModuleCode='" + functionModuleCode + '\'' +
", functionModuleDesc='" + functionModuleDesc + '\'' +
", operationId='" + operationId + '\'' +
", operationName='" + operationName + '\'' +
", logo='" + logo + '\'' +
", deleteFlag=" + deleteFlag +
", createTime=" + createTime +
", updateTime=" + updateTime +
'}';
} }
} }
...@@ -40,7 +40,7 @@ public class IndexDescDTO implements Serializable { ...@@ -40,7 +40,7 @@ public class IndexDescDTO implements Serializable {
/** /**
* *
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* *
...@@ -111,12 +111,13 @@ public class IndexDescDTO implements Serializable { ...@@ -111,12 +111,13 @@ public class IndexDescDTO implements Serializable {
this.indexGroupName = indexGroupName; this.indexGroupName = indexGroupName;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public void setStatus(Integer status) { public IndexDescDTO setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this;
} }
public Date getCreateTime() { public Date getCreateTime() {
...@@ -209,6 +210,24 @@ public class IndexDescDTO implements Serializable { ...@@ -209,6 +210,24 @@ public class IndexDescDTO implements Serializable {
@Override @Override
public String toString() { public String toString() {
return super.toString(); return "IndexDescDTO{" +
"indexDescId=" + indexDescId +
", moduleId='" + moduleId + '\'' +
", indexName='" + indexName + '\'' +
", unit='" + unit + '\'' +
", indexCode='" + indexCode + '\'' +
", indexGroupName='" + indexGroupName + '\'' +
", deleteFlag=" + deleteFlag +
", createTime=" + createTime +
", updateTime=" + updateTime +
", enterpriseId=" + enterpriseId +
", sort=" + sort +
", updateTips=" + updateTips +
", indexDescEnterpriseId=" + indexDescEnterpriseId +
", updateTipsId=" + updateTipsId +
", indexId=" + indexId +
", remark='" + remark + '\'' +
", seq=" + seq +
'}';
} }
} }
...@@ -45,7 +45,7 @@ public class IndexGroupDTO implements Serializable { ...@@ -45,7 +45,7 @@ public class IndexGroupDTO implements Serializable {
/** /**
* *
*/ */
private Integer status; private Integer deleteFlag;
private List<IndexGroupDTO> childList; private List<IndexGroupDTO> childList;
...@@ -97,12 +97,13 @@ public class IndexGroupDTO implements Serializable { ...@@ -97,12 +97,13 @@ public class IndexGroupDTO implements Serializable {
this.updateTime = updateTime; this.updateTime = updateTime;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public void setStatus(Integer status) { public IndexGroupDTO setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this;
} }
public List<IndexGroupDTO> getChildList() { public List<IndexGroupDTO> getChildList() {
...@@ -115,6 +116,15 @@ public class IndexGroupDTO implements Serializable { ...@@ -115,6 +116,15 @@ public class IndexGroupDTO implements Serializable {
@Override @Override
public String toString() { public String toString() {
return super.toString(); return "IndexGroupDTO{" +
"indexGroupId=" + indexGroupId +
", indexGroupName='" + indexGroupName + '\'' +
", parentId=" + parentId +
", groupChain='" + groupChain + '\'' +
", createTime=" + createTime +
", updateTime=" + updateTime +
", deleteFlag=" + deleteFlag +
", childList=" + childList +
'}';
} }
} }
...@@ -28,9 +28,9 @@ public class TempStoreConditionDTO implements Serializable{ ...@@ -28,9 +28,9 @@ public class TempStoreConditionDTO implements Serializable{
private Integer enterpriseId; private Integer enterpriseId;
/** /**
* 1:有效 0:无效 * 0:有效 1:无效
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* 创建时间 * 创建时间
...@@ -69,12 +69,12 @@ public class TempStoreConditionDTO implements Serializable{ ...@@ -69,12 +69,12 @@ public class TempStoreConditionDTO implements Serializable{
return this; return this;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public TempStoreConditionDTO setStatus(Integer status) { public TempStoreConditionDTO setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this; return this;
} }
......
...@@ -54,9 +54,9 @@ public class UserDTO implements Serializable{ ...@@ -54,9 +54,9 @@ public class UserDTO implements Serializable{
private Integer functionAuthId; private Integer functionAuthId;
/** /**
* 1:有效 0:无效 * 0:有效 1:无效
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* 创建时间 * 创建时间
...@@ -142,12 +142,12 @@ public class UserDTO implements Serializable{ ...@@ -142,12 +142,12 @@ public class UserDTO implements Serializable{
return this; return this;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public UserDTO setStatus(Integer status) { public UserDTO setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this; return this;
} }
...@@ -180,6 +180,19 @@ public class UserDTO implements Serializable{ ...@@ -180,6 +180,19 @@ public class UserDTO implements Serializable{
@Override @Override
public String toString() { public String toString() {
return super.toString(); return "UserDTO{" +
"userId=" + userId +
", userName='" + userName + '\'' +
", enterpriseId=" + enterpriseId +
", phone='" + phone + '\'' +
", nationCode='" + nationCode + '\'' +
", accountGroupId=" + accountGroupId +
", dataAuthId=" + dataAuthId +
", functionAuthId=" + functionAuthId +
", deleteFlag=" + deleteFlag +
", createTime=" + createTime +
", updateTime=" + updateTime +
", memberCount=" + memberCount +
'}';
} }
} }
...@@ -102,9 +102,9 @@ public interface IndexApiService { ...@@ -102,9 +102,9 @@ public interface IndexApiService {
* @Title: listByModule * @Title: listByModule
* @Description: * @Description:
* @author zhiwj * @author zhiwj
* @param moduleId * @param indexDescCode
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.cloud.dto.IndexDTO>> * @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.cloud.dto.IndexDTO>>
* @throws * @throws
*/ */
ServiceResponse<List<IndexDTO>> listByModule(String moduleId); ServiceResponse<IndexDTO> getByIndexDescCode(String indexDescCode);
} }
package com.gic.cloud.constanst;
/**
* 数据删除标志
* @ClassName: DeleteFlagConstants

* @Description: 

* @author guojuxing

* @date 2020/10/13 4:43 PM

*/
public class DeleteFlagConstants {
/**
* 数据正常状态
*/
public static final int NORMAL_STATUS = 0;
/**
* 数据删除状态
*/
public static final int DELETE_STATUS = 1;
}
...@@ -14,13 +14,7 @@ import com.gic.cloud.entity.TabGicEnterprisePortraitRel; ...@@ -14,13 +14,7 @@ import com.gic.cloud.entity.TabGicEnterprisePortraitRel;
* @date 2020/9/7 10:45 AM
 * @date 2020/9/7 10:45 AM

*/ */
public interface EnterprisePortraitRelMapper { public interface EnterprisePortraitRelMapper {
/**
* 根据主键删除
*
* @param portraitRelationId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer portraitRelationId);
/** /**
* 插入一条记录 * 插入一条记录
......
...@@ -13,13 +13,7 @@ import java.util.List; ...@@ -13,13 +13,7 @@ import java.util.List;
* @date 2020/9/7 10:41 AM
 * @date 2020/9/7 10:41 AM

*/ */
public interface TabAttentionStoreMapper { public interface TabAttentionStoreMapper {
/**
* 根据主键删除
*
* @param attentionId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer attentionId);
/** /**
* 插入一条记录 * 插入一条记录
......
...@@ -11,13 +11,7 @@ import com.github.pagehelper.Page; ...@@ -11,13 +11,7 @@ import com.github.pagehelper.Page;
* @date 2020/9/7 9:57 AM
 * @date 2020/9/7 9:57 AM

*/ */
public interface TabDataExplainMapper { public interface TabDataExplainMapper {
/**
* 根据主键删除
*
* @param dataExplainId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer dataExplainId);
/** /**
* 插入一条记录 * 插入一条记录
......
...@@ -12,13 +12,7 @@ import java.util.List; ...@@ -12,13 +12,7 @@ import java.util.List;
* @date 2020/9/7 10:45 AM
 * @date 2020/9/7 10:45 AM

*/ */
public interface TabIndexDescEnterpriseMapper { public interface TabIndexDescEnterpriseMapper {
/**
* 根据主键删除
*
* @param indexDescEnterpriseId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer indexDescEnterpriseId);
/** /**
* 插入一条记录 * 插入一条记录
......
...@@ -13,13 +13,7 @@ import java.util.List; ...@@ -13,13 +13,7 @@ import java.util.List;
* @date 2020/9/7 10:45 AM
 * @date 2020/9/7 10:45 AM

*/ */
public interface TabIndexDescMapper { public interface TabIndexDescMapper {
/**
* 根据主键删除
*
* @param indexDescId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer indexDescId);
/** /**
* 插入一条记录 * 插入一条记录
......
...@@ -12,13 +12,7 @@ import java.util.List; ...@@ -12,13 +12,7 @@ import java.util.List;
* @date 2020/9/7 10:30 AM
 * @date 2020/9/7 10:30 AM

*/ */
public interface TabIndexGroupMapper { public interface TabIndexGroupMapper {
/**
* 根据主键删除
*
* @param indexGroupId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer indexGroupId);
/** /**
* 插入一条记录 * 插入一条记录
......
...@@ -12,13 +12,7 @@ import java.util.List; ...@@ -12,13 +12,7 @@ import java.util.List;
* @date 2020/9/7 10:35 AM
 * @date 2020/9/7 10:35 AM

*/ */
public interface TabIndexLogMapper { public interface TabIndexLogMapper {
/**
* 根据主键删除
*
* @param cloudIndexLogId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer cloudIndexLogId);
/** /**
* 插入一条记录 * 插入一条记录
......
...@@ -11,13 +11,7 @@ import com.github.pagehelper.Page; ...@@ -11,13 +11,7 @@ import com.github.pagehelper.Page;
* @date 2020/9/7 10:35 AM
 * @date 2020/9/7 10:35 AM

*/ */
public interface TabIndexMapper { public interface TabIndexMapper {
/**
* 根据主键删除
*
* @param indexId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer indexId);
/** /**
* 插入一条记录 * 插入一条记录
......
...@@ -12,13 +12,7 @@ import java.util.List; ...@@ -12,13 +12,7 @@ import java.util.List;
* @date 2020/9/7 10:35 AM
 * @date 2020/9/7 10:35 AM

*/ */
public interface TabIndexModuleRelMapper { public interface TabIndexModuleRelMapper {
/**
* 根据主键删除
*
* @param indexModuleRelId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer indexModuleRelId);
/** /**
* 插入一条记录 * 插入一条记录
......
...@@ -13,13 +13,7 @@ import java.util.List; ...@@ -13,13 +13,7 @@ import java.util.List;
* @date 2020/9/7 10:31 AM
 * @date 2020/9/7 10:31 AM

*/ */
public interface TabSysAccountGroupMapper { public interface TabSysAccountGroupMapper {
/**
* 根据主键删除
*
* @param accountGroupId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer accountGroupId);
/** /**
* 插入一条记录 * 插入一条记录
......
...@@ -12,13 +12,7 @@ import java.util.List; ...@@ -12,13 +12,7 @@ import java.util.List;
* @date 2020/9/7 10:34 AM
 * @date 2020/9/7 10:34 AM

*/ */
public interface TabSysDataAuthMapper { public interface TabSysDataAuthMapper {
/**
* 根据主键删除
*
* @param dataAuthId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer dataAuthId);
/** /**
* 插入一条记录 * 插入一条记录
......
...@@ -12,13 +12,7 @@ import java.util.List; ...@@ -12,13 +12,7 @@ import java.util.List;
* @date 2020/9/7 10:32 AM
 * @date 2020/9/7 10:32 AM

*/ */
public interface TabSysFunctionMapper { public interface TabSysFunctionMapper {
/**
* 根据主键删除
*
* @param functionId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer functionId);
/** /**
* 插入一条记录 * 插入一条记录
......
...@@ -12,13 +12,7 @@ import java.util.List; ...@@ -12,13 +12,7 @@ import java.util.List;
* @date 2020/9/7 10:33 AM
 * @date 2020/9/7 10:33 AM

*/ */
public interface TabSysFunctionModuleMapper { public interface TabSysFunctionModuleMapper {
/**
* 根据主键删除
*
* @param functionModuleId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer functionModuleId);
/** /**
* 插入一条记录 * 插入一条记录
......
...@@ -10,13 +10,7 @@ import org.apache.ibatis.annotations.Param; ...@@ -10,13 +10,7 @@ import org.apache.ibatis.annotations.Param;
* @date 2020/9/7 10:34 AM
 * @date 2020/9/7 10:34 AM

*/ */
public interface TabSysTempStoreConditionMapper { public interface TabSysTempStoreConditionMapper {
/**
* 根据主键删除
*
* @param tempStoreConditionId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer tempStoreConditionId);
/** /**
* 插入一条记录 * 插入一条记录
......
...@@ -14,13 +14,7 @@ import java.util.List; ...@@ -14,13 +14,7 @@ import java.util.List;
* @date 2020/9/7 10:32 AM
 * @date 2020/9/7 10:32 AM

*/ */
public interface TabSysUserMapper { public interface TabSysUserMapper {
/**
* 根据主键删除
*
* @param userId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer userId);
/** /**
* 插入一条记录 * 插入一条记录
......
...@@ -12,13 +12,6 @@ import java.util.List; ...@@ -12,13 +12,6 @@ import java.util.List;
* @date 2020/9/7 10:35 AM
 * @date 2020/9/7 10:35 AM

*/ */
public interface TabUpdateTipsMapper { public interface TabUpdateTipsMapper {
/**
* 根据主键删除
*
* @param updateTipsId 主键
* @return 更新条目数
*/
int deleteByPrimaryKey(Integer updateTipsId);
/** /**
* 插入一条记录 * 插入一条记录
......
...@@ -33,7 +33,7 @@ public class TabAttentionStore { ...@@ -33,7 +33,7 @@ public class TabAttentionStore {
/** /**
* *
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* *
...@@ -77,12 +77,13 @@ public class TabAttentionStore { ...@@ -77,12 +77,13 @@ public class TabAttentionStore {
this.enterpriseId = enterpriseId; this.enterpriseId = enterpriseId;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public void setStatus(Integer status) { public TabAttentionStore setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this;
} }
public Date getCreateTime() { public Date getCreateTime() {
......
...@@ -48,7 +48,7 @@ public class TabDataExplain { ...@@ -48,7 +48,7 @@ public class TabDataExplain {
/** /**
* *
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* 模块id * 模块id
...@@ -111,12 +111,13 @@ public class TabDataExplain { ...@@ -111,12 +111,13 @@ public class TabDataExplain {
this.updateTime = updateTime; this.updateTime = updateTime;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public void setStatus(Integer status) { public TabDataExplain setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this;
} }
public String getModuleId() { public String getModuleId() {
......
...@@ -48,10 +48,12 @@ public class TabGicEnterprisePortraitRel { ...@@ -48,10 +48,12 @@ public class TabGicEnterprisePortraitRel {
private Date updateTime; private Date updateTime;
/** /**
* * 1:正常 2:回收站
*/ */
private Integer status; private Integer status;
private Integer deleteFlag;
public Integer getPortraitRelationId() { public Integer getPortraitRelationId() {
return portraitRelationId; return portraitRelationId;
} }
...@@ -132,4 +134,13 @@ public class TabGicEnterprisePortraitRel { ...@@ -132,4 +134,13 @@ public class TabGicEnterprisePortraitRel {
this.portraitName = portraitName; this.portraitName = portraitName;
return this; return this;
} }
public Integer getDeleteFlag() {
return deleteFlag;
}
public TabGicEnterprisePortraitRel setDeleteFlag(Integer deleteFlag) {
this.deleteFlag = deleteFlag;
return this;
}
} }
\ No newline at end of file
...@@ -138,7 +138,7 @@ public class TabIndex { ...@@ -138,7 +138,7 @@ public class TabIndex {
/** /**
* *
*/ */
private Integer status; private Integer deleteFlag;
public Integer getIndexId() { public Integer getIndexId() {
return indexId; return indexId;
...@@ -340,11 +340,12 @@ public class TabIndex { ...@@ -340,11 +340,12 @@ public class TabIndex {
this.updateTime = updateTime; this.updateTime = updateTime;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public void setStatus(Integer status) { public TabIndex setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this;
} }
} }
\ No newline at end of file
...@@ -38,7 +38,7 @@ public class TabIndexDesc { ...@@ -38,7 +38,7 @@ public class TabIndexDesc {
/** /**
* *
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* *
...@@ -92,12 +92,13 @@ public class TabIndexDesc { ...@@ -92,12 +92,13 @@ public class TabIndexDesc {
this.indexGroupName = indexGroupName; this.indexGroupName = indexGroupName;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public void setStatus(Integer status) { public TabIndexDesc setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this;
} }
public Date getCreateTime() { public Date getCreateTime() {
......
...@@ -38,7 +38,7 @@ public class TabIndexDescEnterprise { ...@@ -38,7 +38,7 @@ public class TabIndexDescEnterprise {
/** /**
* *
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* *
...@@ -90,12 +90,13 @@ public class TabIndexDescEnterprise { ...@@ -90,12 +90,13 @@ public class TabIndexDescEnterprise {
this.sort = sort; this.sort = sort;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public void setStatus(Integer status) { public TabIndexDescEnterprise setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this;
} }
public Date getCreateTime() { public Date getCreateTime() {
......
...@@ -43,7 +43,7 @@ public class TabIndexGroup { ...@@ -43,7 +43,7 @@ public class TabIndexGroup {
/** /**
* *
*/ */
private Integer status; private Integer deleteFlag;
public Integer getIndexGroupId() { public Integer getIndexGroupId() {
return indexGroupId; return indexGroupId;
...@@ -93,11 +93,12 @@ public class TabIndexGroup { ...@@ -93,11 +93,12 @@ public class TabIndexGroup {
this.updateTime = updateTime; this.updateTime = updateTime;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public void setStatus(Integer status) { public TabIndexGroup setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this;
} }
} }
\ No newline at end of file
...@@ -43,7 +43,7 @@ public class TabIndexLog { ...@@ -43,7 +43,7 @@ public class TabIndexLog {
/** /**
* *
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* *
...@@ -108,12 +108,13 @@ public class TabIndexLog { ...@@ -108,12 +108,13 @@ public class TabIndexLog {
this.reason = reason; this.reason = reason;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public void setStatus(Integer status) { public TabIndexLog setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this;
} }
public Date getCreateTime() { public Date getCreateTime() {
......
...@@ -43,7 +43,7 @@ public class TabIndexModuleRel { ...@@ -43,7 +43,7 @@ public class TabIndexModuleRel {
/** /**
* *
*/ */
private Integer status; private Integer deleteFlag;
public Integer getIndexModuleRelId() { public Integer getIndexModuleRelId() {
return indexModuleRelId; return indexModuleRelId;
...@@ -93,11 +93,12 @@ public class TabIndexModuleRel { ...@@ -93,11 +93,12 @@ public class TabIndexModuleRel {
this.updateTime = updateTime; this.updateTime = updateTime;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public void setStatus(Integer status) { public TabIndexModuleRel setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this;
} }
} }
\ No newline at end of file
...@@ -26,9 +26,9 @@ public class TabSysAccountGroup { ...@@ -26,9 +26,9 @@ public class TabSysAccountGroup {
private Integer enterpriseId; private Integer enterpriseId;
/** /**
* 1:有效 0:无效 * 0:有效 1:无效
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* 排序 * 排序
...@@ -72,12 +72,12 @@ public class TabSysAccountGroup { ...@@ -72,12 +72,12 @@ public class TabSysAccountGroup {
return this; return this;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public TabSysAccountGroup setStatus(Integer status) { public TabSysAccountGroup setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this; return this;
} }
......
...@@ -51,9 +51,9 @@ public class TabSysDataAuth { ...@@ -51,9 +51,9 @@ public class TabSysDataAuth {
private String goodsAreaAuth; private String goodsAreaAuth;
/** /**
* 1:有效 0:无效 * 0:有效 1:无效
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* 创建时间 * 创建时间
...@@ -128,12 +128,12 @@ public class TabSysDataAuth { ...@@ -128,12 +128,12 @@ public class TabSysDataAuth {
return this; return this;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public TabSysDataAuth setStatus(Integer status) { public TabSysDataAuth setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this; return this;
} }
......
...@@ -31,9 +31,9 @@ public class TabSysFunction { ...@@ -31,9 +31,9 @@ public class TabSysFunction {
private String functionComponent; private String functionComponent;
/** /**
* 1:有效 0:无效 * 0:有效 1无效
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* 创建时间 * 创建时间
...@@ -81,12 +81,12 @@ public class TabSysFunction { ...@@ -81,12 +81,12 @@ public class TabSysFunction {
return this; return this;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public TabSysFunction setStatus(Integer status) { public TabSysFunction setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this; return this;
} }
......
...@@ -43,9 +43,9 @@ public class TabSysFunctionModule { ...@@ -43,9 +43,9 @@ public class TabSysFunctionModule {
private String logo; private String logo;
/** /**
* 1:有效 0:无效 * 0:有效 1:无效
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* 创建时间 * 创建时间
...@@ -111,12 +111,12 @@ public class TabSysFunctionModule { ...@@ -111,12 +111,12 @@ public class TabSysFunctionModule {
return this; return this;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public TabSysFunctionModule setStatus(Integer status) { public TabSysFunctionModule setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this; return this;
} }
......
...@@ -26,9 +26,9 @@ public class TabSysTempStoreCondition { ...@@ -26,9 +26,9 @@ public class TabSysTempStoreCondition {
private Integer enterpriseId; private Integer enterpriseId;
/** /**
* 1:有效 0:无效 * 0:有效 1:无效
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* 创建时间 * 创建时间
...@@ -67,12 +67,12 @@ public class TabSysTempStoreCondition { ...@@ -67,12 +67,12 @@ public class TabSysTempStoreCondition {
return this; return this;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public TabSysTempStoreCondition setStatus(Integer status) { public TabSysTempStoreCondition setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this; return this;
} }
......
...@@ -51,9 +51,9 @@ public class TabSysUser { ...@@ -51,9 +51,9 @@ public class TabSysUser {
private Integer functionAuthId; private Integer functionAuthId;
/** /**
* 1:有效 0:无效 * 0:有效 1:无效
*/ */
private Integer status; private Integer deleteFlag;
/** /**
* 创建时间 * 创建时间
...@@ -137,12 +137,12 @@ public class TabSysUser { ...@@ -137,12 +137,12 @@ public class TabSysUser {
return this; return this;
} }
public Integer getStatus() { public Integer getDeleteFlag() {
return status; return deleteFlag;
} }
public TabSysUser setStatus(Integer status) { public TabSysUser setDeleteFlag(Integer deleteFlag) {
this.status = status; this.deleteFlag = deleteFlag;
return this; return this;
} }
......
...@@ -3,6 +3,7 @@ package com.gic.cloud.service.impl; ...@@ -3,6 +3,7 @@ package com.gic.cloud.service.impl;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import com.gic.cloud.constanst.DeleteFlagConstants;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -28,7 +29,7 @@ public class AccountGroupServiceImpl implements AccountGroupService{ ...@@ -28,7 +29,7 @@ public class AccountGroupServiceImpl implements AccountGroupService{
Date now = new Date(); Date now = new Date();
dto.setUpdateTime(now); dto.setUpdateTime(now);
dto.setCreateTime(now); dto.setCreateTime(now);
dto.setStatus(1); dto.setDeleteFlag(DeleteFlagConstants.NORMAL_STATUS);
TabSysAccountGroup record = EntityUtil.changeEntityNew(TabSysAccountGroup.class, dto); TabSysAccountGroup record = EntityUtil.changeEntityNew(TabSysAccountGroup.class, dto);
tabSysAccountGroupMapper.insert(record); tabSysAccountGroupMapper.insert(record);
return record.getAccountGroupId(); return record.getAccountGroupId();
......
package com.gic.cloud.service.impl; package com.gic.cloud.service.impl;
import com.gic.cloud.constanst.DeleteFlagConstants;
import com.gic.cloud.dao.mapper.TabSysDataAuthMapper; import com.gic.cloud.dao.mapper.TabSysDataAuthMapper;
import com.gic.cloud.dto.DataAuthDTO; import com.gic.cloud.dto.DataAuthDTO;
import com.gic.cloud.entity.TabSysDataAuth; import com.gic.cloud.entity.TabSysDataAuth;
...@@ -30,7 +31,7 @@ public class DataAuthServiceImpl implements DataAuthService{ ...@@ -30,7 +31,7 @@ public class DataAuthServiceImpl implements DataAuthService{
Date now = new Date(); Date now = new Date();
record.setUpdateTime(now); record.setUpdateTime(now);
record.setCreateTime(now); record.setCreateTime(now);
record.setStatus(1); record.setDeleteFlag(DeleteFlagConstants.NORMAL_STATUS);
tabSysDataAuthMapper.insert(record); tabSysDataAuthMapper.insert(record);
return record.getDataAuthId(); return record.getDataAuthId();
} }
......
package com.gic.cloud.service.impl; package com.gic.cloud.service.impl;
import com.gic.cloud.constanst.DeleteFlagConstants;
import com.gic.cloud.dao.mapper.TabDataExplainMapper; import com.gic.cloud.dao.mapper.TabDataExplainMapper;
import com.gic.cloud.dto.DataExplainDTO; import com.gic.cloud.dto.DataExplainDTO;
import com.gic.cloud.entity.TabDataExplain; import com.gic.cloud.entity.TabDataExplain;
...@@ -37,7 +38,7 @@ public class DataExplainServiceImpl implements DataExplainService { ...@@ -37,7 +38,7 @@ public class DataExplainServiceImpl implements DataExplainService {
public Integer save(DataExplainDTO dataExplainDTO) { public Integer save(DataExplainDTO dataExplainDTO) {
TabDataExplain tabDataExplain = EntityUtil.changeEntityByJSON(TabDataExplain.class, dataExplainDTO); TabDataExplain tabDataExplain = EntityUtil.changeEntityByJSON(TabDataExplain.class, dataExplainDTO);
tabDataExplain.setCreateTime(new Date()); tabDataExplain.setCreateTime(new Date());
tabDataExplain.setStatus(1); tabDataExplain.setDataExplainId(DeleteFlagConstants.NORMAL_STATUS);
tabDataExplainMapper.insertSelective(tabDataExplain); tabDataExplainMapper.insertSelective(tabDataExplain);
return tabDataExplain.getDataExplainId(); return tabDataExplain.getDataExplainId();
} }
...@@ -68,7 +69,7 @@ public class DataExplainServiceImpl implements DataExplainService { ...@@ -68,7 +69,7 @@ public class DataExplainServiceImpl implements DataExplainService {
public void deleteById(Integer dataExplainId) { public void deleteById(Integer dataExplainId) {
TabDataExplain dataExplain = new TabDataExplain(); TabDataExplain dataExplain = new TabDataExplain();
dataExplain.setDataExplainId(dataExplainId); dataExplain.setDataExplainId(dataExplainId);
dataExplain.setStatus(0); dataExplain.setDataExplainId(DeleteFlagConstants.DELETE_STATUS);
tabDataExplainMapper.updateByPrimaryKeySelective(dataExplain); tabDataExplainMapper.updateByPrimaryKeySelective(dataExplain);
} }
} }
...@@ -3,6 +3,7 @@ package com.gic.cloud.service.impl; ...@@ -3,6 +3,7 @@ package com.gic.cloud.service.impl;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import com.gic.cloud.constanst.DeleteFlagConstants;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -29,7 +30,7 @@ public class FunctionModuleServiceImpl implements FunctionModuleService{ ...@@ -29,7 +30,7 @@ public class FunctionModuleServiceImpl implements FunctionModuleService{
Date now = new Date(); Date now = new Date();
record.setCreateTime(now); record.setCreateTime(now);
record.setUpdateTime(now); record.setUpdateTime(now);
record.setStatus(1); record.setDeleteFlag(DeleteFlagConstants.NORMAL_STATUS);
tabSysFunctionModuleMapper.insert(record); tabSysFunctionModuleMapper.insert(record);
return record.getFunctionModuleId(); return record.getFunctionModuleId();
} }
......
package com.gic.cloud.service.impl; package com.gic.cloud.service.impl;
import com.gic.cloud.constanst.DeleteFlagConstants;
import com.gic.cloud.dao.mapper.TabSysFunctionMapper; import com.gic.cloud.dao.mapper.TabSysFunctionMapper;
import com.gic.cloud.dto.FunctionDTO; import com.gic.cloud.dto.FunctionDTO;
import com.gic.cloud.entity.TabSysFunction; import com.gic.cloud.entity.TabSysFunction;
...@@ -30,7 +31,7 @@ public class FunctionServiceImpl implements FunctionService{ ...@@ -30,7 +31,7 @@ public class FunctionServiceImpl implements FunctionService{
Date now = new Date(); Date now = new Date();
record.setCreateTime(now); record.setCreateTime(now);
record.setUpdateTime(now); record.setUpdateTime(now);
record.setStatus(1); record.setDeleteFlag(DeleteFlagConstants.NORMAL_STATUS);
tabSysFunctionMapper.insert(record); tabSysFunctionMapper.insert(record);
return record.getFunctionId(); return record.getFunctionId();
} }
......
package com.gic.cloud.service.impl; package com.gic.cloud.service.impl;
import com.gic.cloud.constanst.DeleteFlagConstants;
import com.gic.cloud.dao.mapper.TabIndexDescMapper; import com.gic.cloud.dao.mapper.TabIndexDescMapper;
import com.gic.cloud.dto.IndexDescDTO; import com.gic.cloud.dto.IndexDescDTO;
import com.gic.cloud.entity.TabIndexDesc; import com.gic.cloud.entity.TabIndexDesc;
...@@ -106,7 +107,7 @@ public class IndexDescServiceImpl implements IndexDescService { ...@@ -106,7 +107,7 @@ public class IndexDescServiceImpl implements IndexDescService {
indexDescEnterprise.setEnterpriseId(enterpriseId); indexDescEnterprise.setEnterpriseId(enterpriseId);
indexDescEnterprise.setIndexStatus(1); indexDescEnterprise.setIndexStatus(1);
indexDescEnterprise.setSort(0); indexDescEnterprise.setSort(0);
indexDescEnterprise.setStatus(1); indexDescEnterprise.setDeleteFlag(DeleteFlagConstants.NORMAL_STATUS);
indexDescEnterpriseService.insert(indexDescEnterprise); indexDescEnterpriseService.insert(indexDescEnterprise);
} }
} }
......
package com.gic.cloud.service.impl; package com.gic.cloud.service.impl;
import com.gic.cloud.constanst.DeleteFlagConstants;
import com.gic.cloud.dao.mapper.TabIndexGroupMapper; import com.gic.cloud.dao.mapper.TabIndexGroupMapper;
import com.gic.cloud.dto.IndexGroupDTO; import com.gic.cloud.dto.IndexGroupDTO;
import com.gic.cloud.entity.TabIndexGroup; import com.gic.cloud.entity.TabIndexGroup;
...@@ -36,7 +37,7 @@ public class IndexGroupServiceImpl implements IndexGroupService { ...@@ -36,7 +37,7 @@ public class IndexGroupServiceImpl implements IndexGroupService {
@Override @Override
public Integer save(IndexGroupDTO indexGroupDTO) { public Integer save(IndexGroupDTO indexGroupDTO) {
TabIndexGroup indexGroup = EntityUtil.changeEntityByJSON(TabIndexGroup.class, indexGroupDTO); TabIndexGroup indexGroup = EntityUtil.changeEntityByJSON(TabIndexGroup.class, indexGroupDTO);
indexGroup.setStatus(1); indexGroup.setDeleteFlag(DeleteFlagConstants.NORMAL_STATUS);
indexGroup.setCreateTime(new Date()); indexGroup.setCreateTime(new Date());
tabIndexGroupMapper.insertSelective(indexGroup); tabIndexGroupMapper.insertSelective(indexGroup);
return indexGroup.getIndexGroupId(); return indexGroup.getIndexGroupId();
...@@ -56,7 +57,7 @@ public class IndexGroupServiceImpl implements IndexGroupService { ...@@ -56,7 +57,7 @@ public class IndexGroupServiceImpl implements IndexGroupService {
public void delete(Integer indexGroupId) { public void delete(Integer indexGroupId) {
TabIndexGroup tabIndexGroup = new TabIndexGroup(); TabIndexGroup tabIndexGroup = new TabIndexGroup();
tabIndexGroup.setIndexGroupId(indexGroupId); tabIndexGroup.setIndexGroupId(indexGroupId);
tabIndexGroup.setStatus(0); tabIndexGroup.setDeleteFlag(DeleteFlagConstants.DELETE_STATUS);
tabIndexGroupMapper.updateByPrimaryKeySelective(EntityUtil.changeEntityByJSON(TabIndexGroup.class, tabIndexGroup)); tabIndexGroupMapper.updateByPrimaryKeySelective(EntityUtil.changeEntityByJSON(TabIndexGroup.class, tabIndexGroup));
} }
......
package com.gic.cloud.service.impl; package com.gic.cloud.service.impl;
import com.gic.cloud.constanst.DeleteFlagConstants;
import com.gic.cloud.constants.LogAndUpdateTipsTypeEnum; import com.gic.cloud.constants.LogAndUpdateTipsTypeEnum;
import com.gic.cloud.dao.mapper.TabIndexLogMapper; import com.gic.cloud.dao.mapper.TabIndexLogMapper;
import com.gic.cloud.dto.DataExplainDTO; import com.gic.cloud.dto.DataExplainDTO;
...@@ -40,7 +41,7 @@ public class IndexLogServiceImpl implements IndexLogService { ...@@ -40,7 +41,7 @@ public class IndexLogServiceImpl implements IndexLogService {
indexLog.setOptUserId(indexDTO.getOptUserId()); indexLog.setOptUserId(indexDTO.getOptUserId());
indexLog.setOptUserName(indexDTO.getOptUserName()); indexLog.setOptUserName(indexDTO.getOptUserName());
indexLog.setReason(reason); indexLog.setReason(reason);
indexLog.setStatus(1); indexLog.setDeleteFlag(DeleteFlagConstants.NORMAL_STATUS);
indexLog.setCreateTime(new Date()); indexLog.setCreateTime(new Date());
indexLog.setUpdateTime(new Date()); indexLog.setUpdateTime(new Date());
indexLog.setType(LogAndUpdateTipsTypeEnum.INDEX.getCode()); indexLog.setType(LogAndUpdateTipsTypeEnum.INDEX.getCode());
...@@ -74,7 +75,7 @@ public class IndexLogServiceImpl implements IndexLogService { ...@@ -74,7 +75,7 @@ public class IndexLogServiceImpl implements IndexLogService {
indexLog.setOptUserId(dataExplainDTO.getOptUserId()); indexLog.setOptUserId(dataExplainDTO.getOptUserId());
indexLog.setOptUserName(dataExplainDTO.getOptUserName()); indexLog.setOptUserName(dataExplainDTO.getOptUserName());
indexLog.setReason(reason); indexLog.setReason(reason);
indexLog.setStatus(1); indexLog.setDeleteFlag(DeleteFlagConstants.NORMAL_STATUS);
indexLog.setCreateTime(new Date()); indexLog.setCreateTime(new Date());
indexLog.setUpdateTime(new Date()); indexLog.setUpdateTime(new Date());
indexLog.setType(LogAndUpdateTipsTypeEnum.DATA_EXPLAIN.getCode()); indexLog.setType(LogAndUpdateTipsTypeEnum.DATA_EXPLAIN.getCode());
......
package com.gic.cloud.service.impl; package com.gic.cloud.service.impl;
import com.gic.cloud.constanst.DeleteFlagConstants;
import com.gic.cloud.dao.mapper.TabIndexModuleRelMapper; import com.gic.cloud.dao.mapper.TabIndexModuleRelMapper;
import com.gic.cloud.entity.TabIndexModuleRel; import com.gic.cloud.entity.TabIndexModuleRel;
import com.gic.cloud.service.IndexModuleRelService; import com.gic.cloud.service.IndexModuleRelService;
...@@ -34,7 +35,7 @@ public class IndexModuleRelServiceImpl implements IndexModuleRelService { ...@@ -34,7 +35,7 @@ public class IndexModuleRelServiceImpl implements IndexModuleRelService {
rel.setBusinessId(businessId); rel.setBusinessId(businessId);
rel.setModuleId(moduleId); rel.setModuleId(moduleId);
rel.setCreateTime(new Date()); rel.setCreateTime(new Date());
rel.setStatus(1); rel.setDeleteFlag(DeleteFlagConstants.NORMAL_STATUS);
tabIndexModuleRelMapper.insertSelectiveByNotExist(rel); tabIndexModuleRelMapper.insertSelectiveByNotExist(rel);
} }
// 把所有userId关联status都设置为1 // 把所有userId关联status都设置为1
......
package com.gic.cloud.service.impl; package com.gic.cloud.service.impl;
import com.gic.cloud.constanst.DeleteFlagConstants;
import com.gic.cloud.dao.mapper.TabIndexMapper; import com.gic.cloud.dao.mapper.TabIndexMapper;
import com.gic.cloud.dto.IndexDTO; import com.gic.cloud.dto.IndexDTO;
import com.gic.cloud.entity.TabIndex; import com.gic.cloud.entity.TabIndex;
...@@ -54,7 +55,7 @@ public class IndexServiceImpl implements IndexService { ...@@ -54,7 +55,7 @@ public class IndexServiceImpl implements IndexService {
@Override @Override
public Integer save(IndexDTO indexDTO) { public Integer save(IndexDTO indexDTO) {
TabIndex tabIndex = EntityUtil.changeEntityByJSON(TabIndex.class, indexDTO); TabIndex tabIndex = EntityUtil.changeEntityByJSON(TabIndex.class, indexDTO);
tabIndex.setStatus(1); tabIndex.setDeleteFlag(DeleteFlagConstants.NORMAL_STATUS);
tabIndex.setCreateTime(new Date()); tabIndex.setCreateTime(new Date());
tabIndex.setUpdateTime(new Date()); tabIndex.setUpdateTime(new Date());
tabIndexMapper.insertSelective(tabIndex); tabIndexMapper.insertSelective(tabIndex);
...@@ -95,7 +96,7 @@ public class IndexServiceImpl implements IndexService { ...@@ -95,7 +96,7 @@ public class IndexServiceImpl implements IndexService {
public void deleteById(Integer indexId) { public void deleteById(Integer indexId) {
TabIndex index = new TabIndex(); TabIndex index = new TabIndex();
index.setIndexId(indexId); index.setIndexId(indexId);
index.setStatus(0); index.setDeleteFlag(DeleteFlagConstants.DELETE_STATUS);
tabIndexMapper.updateByPrimaryKeySelective(index); tabIndexMapper.updateByPrimaryKeySelective(index);
} }
......
package com.gic.cloud.service.impl; package com.gic.cloud.service.impl;
import com.gic.cloud.constanst.DeleteFlagConstants;
import com.gic.cloud.dao.mapper.TabAttentionStoreMapper; import com.gic.cloud.dao.mapper.TabAttentionStoreMapper;
import com.gic.cloud.entity.TabAttentionStore; import com.gic.cloud.entity.TabAttentionStore;
import com.gic.cloud.service.StoreAttenttionService; import com.gic.cloud.service.StoreAttenttionService;
...@@ -25,7 +26,7 @@ public class StoreAttentionServiceImpl implements StoreAttenttionService { ...@@ -25,7 +26,7 @@ public class StoreAttentionServiceImpl implements StoreAttenttionService {
public int addStoreAttenttion(TabAttentionStore tabAttentionStore) { public int addStoreAttenttion(TabAttentionStore tabAttentionStore) {
tabAttentionStore.setCreateTime(new Date()); tabAttentionStore.setCreateTime(new Date());
tabAttentionStore.setUpdateTime(new Date()); tabAttentionStore.setUpdateTime(new Date());
tabAttentionStore.setStatus(1); tabAttentionStore.setDeleteFlag(DeleteFlagConstants.NORMAL_STATUS);
int i = this.tabAttentionStoreMapper.insertSelective(tabAttentionStore); int i = this.tabAttentionStoreMapper.insertSelective(tabAttentionStore);
return i; return i;
} }
......
package com.gic.cloud.service.impl; package com.gic.cloud.service.impl;
import com.gic.cloud.constanst.DeleteFlagConstants;
import com.gic.cloud.dao.mapper.TabSysTempStoreConditionMapper; import com.gic.cloud.dao.mapper.TabSysTempStoreConditionMapper;
import com.gic.cloud.dto.TempStoreConditionDTO; import com.gic.cloud.dto.TempStoreConditionDTO;
import com.gic.cloud.entity.TabSysTempStoreCondition; import com.gic.cloud.entity.TabSysTempStoreCondition;
...@@ -27,7 +28,7 @@ public class TempStoreConditionServiceImpl implements TempStoreConditionService{ ...@@ -27,7 +28,7 @@ public class TempStoreConditionServiceImpl implements TempStoreConditionService{
Date now = new Date(); Date now = new Date();
record.setCreateTime(now); record.setCreateTime(now);
record.setUpdateTime(now); record.setUpdateTime(now);
record.setStatus(1); record.setDeleteFlag(DeleteFlagConstants.NORMAL_STATUS);
tabSysTempStoreConditionMapper.insert(record); tabSysTempStoreConditionMapper.insert(record);
return record.getTempStoreConditionId(); return record.getTempStoreConditionId();
} }
......
package com.gic.cloud.service.impl; package com.gic.cloud.service.impl;
import com.gic.cloud.constanst.DeleteFlagConstants;
import com.gic.cloud.dao.mapper.TabSysUserMapper; import com.gic.cloud.dao.mapper.TabSysUserMapper;
import com.gic.cloud.dto.UserDTO; import com.gic.cloud.dto.UserDTO;
import com.gic.cloud.entity.TabSysUser; import com.gic.cloud.entity.TabSysUser;
...@@ -30,7 +31,7 @@ public class UserServiceImpl implements UserService{ ...@@ -30,7 +31,7 @@ public class UserServiceImpl implements UserService{
public Integer saveUser(UserDTO dto) { public Integer saveUser(UserDTO dto) {
TabSysUser record = EntityUtil.changeEntityNew(TabSysUser.class, dto); TabSysUser record = EntityUtil.changeEntityNew(TabSysUser.class, dto);
Date now = new Date(); Date now = new Date();
record.setStatus(1); record.setDeleteFlag(DeleteFlagConstants.NORMAL_STATUS);
record.setCreateTime(now); record.setCreateTime(now);
record.setUpdateTime(now); record.setUpdateTime(now);
tabSysUserMapper.insert(record); tabSysUserMapper.insert(record);
......
package com.gic.cloud.service.outer.impl; package com.gic.cloud.service.outer.impl;
import com.gic.api.base.commons.ServiceResponse; import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.constanst.DeleteFlagConstants;
import com.gic.cloud.dao.mapper.EnterprisePortraitRelMapper; import com.gic.cloud.dao.mapper.EnterprisePortraitRelMapper;
import com.gic.cloud.dto.EnterprisePortraitRelDTO; import com.gic.cloud.dto.EnterprisePortraitRelDTO;
import com.gic.cloud.entity.TabGicEnterprisePortraitRel; import com.gic.cloud.entity.TabGicEnterprisePortraitRel;
...@@ -61,7 +62,8 @@ public class EnterprisePortraitRelApiServiceImpl implements EnterprisePortraitRe ...@@ -61,7 +62,8 @@ public class EnterprisePortraitRelApiServiceImpl implements EnterprisePortraitRe
.setPortraitName(fieldName) .setPortraitName(fieldName)
.setStatus(1) .setStatus(1)
.setUpdateTime(new Date()) .setUpdateTime(new Date())
.setSort(maxSort + 1)); .setSort(maxSort + 1)
.setDeleteFlag(DeleteFlagConstants.NORMAL_STATUS));
} else { } else {
if (!record.getPortraitName().equals(fieldName)) { if (!record.getPortraitName().equals(fieldName)) {
//如果名称有变动,则更新 //如果名称有变动,则更新
...@@ -140,7 +142,8 @@ public class EnterprisePortraitRelApiServiceImpl implements EnterprisePortraitRe ...@@ -140,7 +142,8 @@ public class EnterprisePortraitRelApiServiceImpl implements EnterprisePortraitRe
public ServiceResponse<Void> delete(Integer portraitRelationId) { public ServiceResponse<Void> delete(Integer portraitRelationId) {
enterprisePortraitRelMapper.updateByPrimaryKeySelective(new TabGicEnterprisePortraitRel() enterprisePortraitRelMapper.updateByPrimaryKeySelective(new TabGicEnterprisePortraitRel()
.setPortraitRelationId(portraitRelationId) .setPortraitRelationId(portraitRelationId)
.setStatus(0)); .setStatus(0)
.setDeleteFlag(DeleteFlagConstants.DELETE_STATUS));
return ServiceResponse.success(); return ServiceResponse.success();
} }
......
...@@ -6,6 +6,7 @@ import com.gic.cloud.constants.LogAndUpdateTipsTypeEnum; ...@@ -6,6 +6,7 @@ import com.gic.cloud.constants.LogAndUpdateTipsTypeEnum;
import com.gic.cloud.constants.UpdateTypeEnum; import com.gic.cloud.constants.UpdateTypeEnum;
import com.gic.cloud.dto.IndexDTO; import com.gic.cloud.dto.IndexDTO;
import com.gic.cloud.entity.TabIndex; import com.gic.cloud.entity.TabIndex;
import com.gic.cloud.entity.TabIndexDesc;
import com.gic.cloud.entity.TabIndexGroup; import com.gic.cloud.entity.TabIndexGroup;
import com.gic.cloud.qo.IndexQo; import com.gic.cloud.qo.IndexQo;
import com.gic.cloud.service.*; import com.gic.cloud.service.*;
...@@ -31,6 +32,8 @@ import java.util.stream.Stream; ...@@ -31,6 +32,8 @@ import java.util.stream.Stream;
@Service("indexApiService") @Service("indexApiService")
public class IndexApiServiceImpl implements IndexApiService { public class IndexApiServiceImpl implements IndexApiService {
private static final String HAOBAN_NAME = "haoban";
@Autowired @Autowired
private IndexService indexService; private IndexService indexService;
@Autowired @Autowired
...@@ -41,6 +44,8 @@ public class IndexApiServiceImpl implements IndexApiService { ...@@ -41,6 +44,8 @@ public class IndexApiServiceImpl implements IndexApiService {
private UpdateTipService updateTipService; private UpdateTipService updateTipService;
@Autowired @Autowired
private IndexGroupService indexGroupService; private IndexGroupService indexGroupService;
@Autowired
private IndexDescService indexDescService;
@Override @Override
public ServiceResponse<Void> saveIndex(IndexDTO indexDTO) { public ServiceResponse<Void> saveIndex(IndexDTO indexDTO) {
...@@ -182,10 +187,19 @@ public class IndexApiServiceImpl implements IndexApiService { ...@@ -182,10 +187,19 @@ public class IndexApiServiceImpl implements IndexApiService {
} }
@Override @Override
public ServiceResponse<List<IndexDTO>> listByModule(String moduleId) { public ServiceResponse<IndexDTO> getByIndexDescCode(String indexDescCode) {
IndexQo indexQo = new IndexQo(); TabIndexDesc indexDesc = indexDescService.getIndexDesc(HAOBAN_NAME, indexDescCode, null);
indexQo.setModuleId(moduleId); if (indexDesc == null) {
List<TabIndex> indexList = indexService.listAllIndex(indexQo); return EnterpriseServiceResponse.failure(ErrorCode.NOTEXISTS.getCode(), ErrorCode.NOTEXISTS.getMsg());
return EnterpriseServiceResponse.success(EntityUtil.changeEntityListByJSON(IndexDTO.class, indexList)); }
List<Integer> list = indexModuleRelService.listBusinessIdByModuleId(indexDesc.getIndexDescId().toString(), LogAndUpdateTipsTypeEnum.INDEX.getCode());
if (CollectionUtils.isEmpty(list)) {
return EnterpriseServiceResponse.failure(ErrorCode.NOTEXISTS.getCode(), ErrorCode.NOTEXISTS.getMsg());
}
TabIndex index = indexService.getByIndexId(list.get(0));
if (index == null) {
return EnterpriseServiceResponse.failure(ErrorCode.NOTEXISTS.getCode(), ErrorCode.NOTEXISTS.getMsg());
}
return EnterpriseServiceResponse.success(EntityUtil.changeEntityByJSON(IndexDTO.class, index));
} }
} }
...@@ -11,10 +11,11 @@ ...@@ -11,10 +11,11 @@
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="status" jdbcType="INTEGER" property="status" />
<result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
portrait_relation_id, portrati_name, portrait_code, enterprise_id, sort, data_type, create_time, portrait_relation_id, portrati_name, portrait_code, enterprise_id, sort, data_type, create_time,
update_time, status update_time, status, delete_flag
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
...@@ -22,17 +23,14 @@ ...@@ -22,17 +23,14 @@
from tab_gic_enterprise_portrait_rel from tab_gic_enterprise_portrait_rel
where portrait_relation_id = #{portraitRelationId,jdbcType=INTEGER} where portrait_relation_id = #{portraitRelationId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_gic_enterprise_portrait_rel
where portrait_relation_id = #{portraitRelationId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.cloud.entity.TabGicEnterprisePortraitRel"> <insert id="insert" parameterType="com.gic.cloud.entity.TabGicEnterprisePortraitRel">
insert into tab_gic_enterprise_portrait_rel (portrait_relation_id, portrati_name, portrait_code, enterprise_id, insert into tab_gic_enterprise_portrait_rel (portrait_relation_id, portrati_name, portrait_code, enterprise_id,
sort, data_type, create_time, sort, data_type, create_time,
update_time, status) update_time, status, delete_flag)
values (#{portraitRelationId,jdbcType=INTEGER}, #{portraitName,jdbcType=CHAR}, #{portraitCode,jdbcType=CHAR}, #{enterpriseId,jdbcType=INTEGER}, values (#{portraitRelationId,jdbcType=INTEGER}, #{portraitName,jdbcType=CHAR}, #{portraitCode,jdbcType=CHAR}, #{enterpriseId,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER}, #{dataType,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{sort,jdbcType=INTEGER}, #{dataType,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}) #{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER})
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.cloud.entity.TabGicEnterprisePortraitRel"> <insert id="insertSelective" parameterType="com.gic.cloud.entity.TabGicEnterprisePortraitRel">
insert into tab_gic_enterprise_portrait_rel insert into tab_gic_enterprise_portrait_rel
...@@ -64,6 +62,9 @@ ...@@ -64,6 +62,9 @@
<if test="status != null"> <if test="status != null">
status, status,
</if> </if>
<if test="deleteFlag != null">
delete_flag,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="portraitRelationId != null"> <if test="portraitRelationId != null">
...@@ -93,6 +94,9 @@ ...@@ -93,6 +94,9 @@
<if test="status != null"> <if test="status != null">
#{status,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
</if> </if>
<if test="deleteFlag != null">
#{deleteFlag,jdbcType=INTEGER},
</if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.cloud.entity.TabGicEnterprisePortraitRel"> <update id="updateByPrimaryKeySelective" parameterType="com.gic.cloud.entity.TabGicEnterprisePortraitRel">
...@@ -122,6 +126,9 @@ ...@@ -122,6 +126,9 @@
<if test="status != null"> <if test="status != null">
status = #{status,jdbcType=INTEGER}, status = #{status,jdbcType=INTEGER},
</if> </if>
<if test="deleteFlag != null">
delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if>
</set> </set>
where portrait_relation_id = #{portraitRelationId,jdbcType=INTEGER} where portrait_relation_id = #{portraitRelationId,jdbcType=INTEGER}
</update> </update>
...@@ -134,7 +141,8 @@ ...@@ -134,7 +141,8 @@
data_type = #{dataType,jdbcType=INTEGER}, data_type = #{dataType,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER} status = #{status,jdbcType=INTEGER},
delete_flag = #{deleteFlag,jdbcType=INTEGER}
where portrait_relation_id = #{portraitRelationId,jdbcType=INTEGER} where portrait_relation_id = #{portraitRelationId,jdbcType=INTEGER}
</update> </update>
...@@ -157,7 +165,7 @@ ...@@ -157,7 +165,7 @@
<insert id="insertForeach" parameterType="java.util.List"> <insert id="insertForeach" parameterType="java.util.List">
insert into tab_gic_enterprise_portrait_rel (portrait_relation_id, portrati_name, portrait_code, enterprise_id, insert into tab_gic_enterprise_portrait_rel (portrait_relation_id, portrati_name, portrait_code, enterprise_id,
sort, data_type, create_time, sort, data_type, create_time,
update_time, status) update_time, status, delete_flag)
VALUES VALUES
<foreach collection="list" item="item" index="index" separator=","> <foreach collection="list" item="item" index="index" separator=",">
( (
...@@ -169,7 +177,8 @@ ...@@ -169,7 +177,8 @@
#{item.dataType}, #{item.dataType},
#{item.createTime}, #{item.createTime},
#{item.updateTime}, #{item.updateTime},
#{item.status} #{item.status},
#{item.deleteFlag}
) )
</foreach> </foreach>
</insert> </insert>
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
<result column="store_id" jdbcType="INTEGER" property="storeId" /> <result column="store_id" jdbcType="INTEGER" property="storeId" />
<result column="user_id" jdbcType="INTEGER" property="userId" /> <result column="user_id" jdbcType="INTEGER" property="userId" />
<result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" /> <result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
attention_id, store_id, user_id, enterprise_id, status, create_time, update_time attention_id, store_id, user_id, enterprise_id, delete_flag, create_time, update_time
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
...@@ -19,16 +19,13 @@ ...@@ -19,16 +19,13 @@
from tab_attention_store from tab_attention_store
where attention_id = #{attentionId,jdbcType=INTEGER} where attention_id = #{attentionId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_attention_store
where attention_id = #{attentionId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.cloud.entity.TabAttentionStore"> <insert id="insert" parameterType="com.gic.cloud.entity.TabAttentionStore">
insert into tab_attention_store (attention_id, store_id, user_id, insert into tab_attention_store (attention_id, store_id, user_id,
enterprise_id, status, create_time, enterprise_id, delete_flag, create_time,
update_time) update_time)
values (#{attentionId,jdbcType=INTEGER}, #{storeId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, values (#{attentionId,jdbcType=INTEGER}, #{storeId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER},
#{enterpriseId,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{enterpriseId,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}) #{updateTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.cloud.entity.TabAttentionStore"> <insert id="insertSelective" parameterType="com.gic.cloud.entity.TabAttentionStore">
...@@ -46,8 +43,8 @@ ...@@ -46,8 +43,8 @@
<if test="enterpriseId != null"> <if test="enterpriseId != null">
enterprise_id, enterprise_id,
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status, delete_flag,
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time, create_time,
...@@ -69,8 +66,8 @@ ...@@ -69,8 +66,8 @@
<if test="enterpriseId != null"> <if test="enterpriseId != null">
#{enterpriseId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
#{status,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
...@@ -92,8 +89,8 @@ ...@@ -92,8 +89,8 @@
<if test="enterpriseId != null"> <if test="enterpriseId != null">
enterprise_id = #{enterpriseId,jdbcType=INTEGER}, enterprise_id = #{enterpriseId,jdbcType=INTEGER},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
...@@ -109,7 +106,7 @@ ...@@ -109,7 +106,7 @@
set store_id = #{storeId,jdbcType=INTEGER}, set store_id = #{storeId,jdbcType=INTEGER},
user_id = #{userId,jdbcType=INTEGER}, user_id = #{userId,jdbcType=INTEGER},
enterprise_id = #{enterpriseId,jdbcType=INTEGER}, enterprise_id = #{enterpriseId,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP} update_time = #{updateTime,jdbcType=TIMESTAMP}
where attention_id = #{attentionId,jdbcType=INTEGER} where attention_id = #{attentionId,jdbcType=INTEGER}
...@@ -118,11 +115,11 @@ ...@@ -118,11 +115,11 @@
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_attention_store from tab_attention_store
where status = 1 and user_id = #{userId} and enterprise_id = #{enterpriseId} order by create_time desc where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS} and user_id = #{userId} and enterprise_id = #{enterpriseId} order by create_time desc
</select> </select>
<update id="removeAttention" > <update id="removeAttention" >
update tab_attention_store update tab_attention_store
set status = 0 set delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@DELETE_STATUS}
where enterprise_id = #{enterpriseId,jdbcType=INTEGER} and user_id= #{userId} where enterprise_id = #{enterpriseId,jdbcType=INTEGER} and user_id= #{userId}
<if test="storeIds != null and storeIds.size()>0"> <if test="storeIds != null and storeIds.size()>0">
and store_id in and store_id in
......
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
<result column="complement" jdbcType="VARCHAR" property="complement" /> <result column="complement" jdbcType="VARCHAR" property="complement" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
<result column="module_id" jdbcType="VARCHAR" property="moduleId" /> <result column="module_id" jdbcType="VARCHAR" property="moduleId" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
data_explain_id, data_name, data_classify, index_remark, complement, create_time, data_explain_id, data_name, data_classify, index_remark, complement, create_time,
update_time, status, module_id update_time, delete_flag, module_id
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
...@@ -22,18 +22,15 @@ ...@@ -22,18 +22,15 @@
from tab_data_explain from tab_data_explain
where data_explain_id = #{dataExplainId,jdbcType=INTEGER} where data_explain_id = #{dataExplainId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_data_explain
where data_explain_id = #{dataExplainId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.cloud.entity.TabDataExplain"> <insert id="insert" parameterType="com.gic.cloud.entity.TabDataExplain">
insert into tab_data_explain (data_explain_id, data_name, data_classify, insert into tab_data_explain (data_explain_id, data_name, data_classify,
index_remark, complement, create_time, index_remark, complement, create_time,
update_time, status, module_id update_time, delete_flag, module_id
) )
values (#{dataExplainId,jdbcType=INTEGER}, #{dataName,jdbcType=VARCHAR}, #{dataClassify,jdbcType=VARCHAR}, values (#{dataExplainId,jdbcType=INTEGER}, #{dataName,jdbcType=VARCHAR}, #{dataClassify,jdbcType=VARCHAR},
#{indexRemark,jdbcType=VARCHAR}, #{complement,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{indexRemark,jdbcType=VARCHAR}, #{complement,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{moduleId,jdbcType=VARCHAR} #{updateTime,jdbcType=TIMESTAMP}, #{deleteFlag,jdbcType=INTEGER}, #{moduleId,jdbcType=VARCHAR}
) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.cloud.entity.TabDataExplain"> <insert id="insertSelective" parameterType="com.gic.cloud.entity.TabDataExplain">
...@@ -63,8 +60,8 @@ ...@@ -63,8 +60,8 @@
<if test="updateTime != null"> <if test="updateTime != null">
update_time, update_time,
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status, delete_flag,
</if> </if>
<if test="moduleId != null"> <if test="moduleId != null">
module_id, module_id,
...@@ -92,8 +89,8 @@ ...@@ -92,8 +89,8 @@
<if test="updateTime != null"> <if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
#{status,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="moduleId != null"> <if test="moduleId != null">
#{moduleId,jdbcType=VARCHAR}, #{moduleId,jdbcType=VARCHAR},
...@@ -121,8 +118,8 @@ ...@@ -121,8 +118,8 @@
<if test="updateTime != null"> <if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="moduleId != null"> <if test="moduleId != null">
module_id = #{moduleId,jdbcType=VARCHAR}, module_id = #{moduleId,jdbcType=VARCHAR},
...@@ -138,7 +135,7 @@ ...@@ -138,7 +135,7 @@
complement = #{complement,jdbcType=VARCHAR}, complement = #{complement,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
module_id = #{moduleId,jdbcType=VARCHAR} module_id = #{moduleId,jdbcType=VARCHAR}
where data_explain_id = #{dataExplainId,jdbcType=INTEGER} where data_explain_id = #{dataExplainId,jdbcType=INTEGER}
</update> </update>
...@@ -146,7 +143,7 @@ ...@@ -146,7 +143,7 @@
<select id="getBySelective" resultMap="BaseResultMap"> <select id="getBySelective" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_data_explain where status = 1 from tab_data_explain where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
<if test="dataName != null "> <if test="dataName != null ">
and data_name = #{dataName} and data_name = #{dataName}
</if> </if>
...@@ -158,7 +155,7 @@ ...@@ -158,7 +155,7 @@
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_data_explain from tab_data_explain
where status = 1 where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
<if test="search != null and search != '' "> <if test="search != null and search != '' ">
and ( data_name like concat('%', #{search}, '%') or data_classify like concat('%', #{search}, '%') ) and ( data_name like concat('%', #{search}, '%') or data_classify like concat('%', #{search}, '%') )
</if> </if>
......
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
<result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" /> <result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" />
<result column="index_status" jdbcType="INTEGER" property="indexStatus" /> <result column="index_status" jdbcType="INTEGER" property="indexStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" /> <result column="sort" jdbcType="INTEGER" property="sort" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
index_desc_enterprise_id, index_desc_id, enterprise_id, index_status, sort, status, index_desc_enterprise_id, index_desc_id, enterprise_id, index_status, sort, delete_flag,
create_time, update_time create_time, update_time
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
...@@ -21,18 +21,15 @@ ...@@ -21,18 +21,15 @@
from tab_index_desc_enterprise from tab_index_desc_enterprise
where index_desc_enterprise_id = #{indexDescEnterpriseId,jdbcType=INTEGER} where index_desc_enterprise_id = #{indexDescEnterpriseId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_index_desc_enterprise
where index_desc_enterprise_id = #{indexDescEnterpriseId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.cloud.entity.TabIndexDescEnterprise"> <insert id="insert" parameterType="com.gic.cloud.entity.TabIndexDescEnterprise">
insert into tab_index_desc_enterprise (index_desc_enterprise_id, index_desc_id, insert into tab_index_desc_enterprise (index_desc_enterprise_id, index_desc_id,
enterprise_id, index_status, sort, enterprise_id, index_status, sort,
status, create_time, update_time delete_flag, create_time, update_time
) )
values (#{indexDescEnterpriseId,jdbcType=INTEGER}, #{indexDescId,jdbcType=INTEGER}, values (#{indexDescEnterpriseId,jdbcType=INTEGER}, #{indexDescId,jdbcType=INTEGER},
#{enterpriseId,jdbcType=INTEGER}, #{indexStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{indexStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER},
#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP} #{deleteFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.cloud.entity.TabIndexDescEnterprise"> <insert id="insertSelective" parameterType="com.gic.cloud.entity.TabIndexDescEnterprise">
...@@ -53,8 +50,8 @@ ...@@ -53,8 +50,8 @@
<if test="sort != null"> <if test="sort != null">
sort, sort,
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status, delete_flag,
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time, create_time,
...@@ -79,8 +76,8 @@ ...@@ -79,8 +76,8 @@
<if test="sort != null"> <if test="sort != null">
#{sort,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
#{status,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
...@@ -98,7 +95,7 @@ ...@@ -98,7 +95,7 @@
WHERE WHERE
tab_index_desc_enterprise.enterprise_id = #{enterpriseId} tab_index_desc_enterprise.enterprise_id = #{enterpriseId}
AND tab_index_desc_enterprise.index_desc_id = #{indexDescId} AND tab_index_desc_enterprise.index_desc_id = #{indexDescId}
AND tab_index_desc_enterprise.status = 1 AND tab_index_desc_enterprise.delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
) )
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.cloud.entity.TabIndexDescEnterprise"> <update id="updateByPrimaryKeySelective" parameterType="com.gic.cloud.entity.TabIndexDescEnterprise">
...@@ -116,8 +113,8 @@ ...@@ -116,8 +113,8 @@
<if test="sort != null"> <if test="sort != null">
sort = #{sort,jdbcType=INTEGER}, sort = #{sort,jdbcType=INTEGER},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
...@@ -134,7 +131,7 @@ ...@@ -134,7 +131,7 @@
enterprise_id = #{enterpriseId,jdbcType=INTEGER}, enterprise_id = #{enterpriseId,jdbcType=INTEGER},
index_status = #{indexStatus,jdbcType=INTEGER}, index_status = #{indexStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}, sort = #{sort,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP} update_time = #{updateTime,jdbcType=TIMESTAMP}
where index_desc_enterprise_id = #{indexDescEnterpriseId,jdbcType=INTEGER} where index_desc_enterprise_id = #{indexDescEnterpriseId,jdbcType=INTEGER}
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<result column="index_name" jdbcType="VARCHAR" property="indexName" /> <result column="index_name" jdbcType="VARCHAR" property="indexName" />
<result column="index_code" jdbcType="VARCHAR" property="indexCode" /> <result column="index_code" jdbcType="VARCHAR" property="indexCode" />
<result column="index_group_name" jdbcType="VARCHAR" property="indexGroupName" /> <result column="index_group_name" jdbcType="VARCHAR" property="indexGroupName" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap> </resultMap>
...@@ -17,17 +17,17 @@ ...@@ -17,17 +17,17 @@
<result column="index_name" jdbcType="VARCHAR" property="indexName" /> <result column="index_name" jdbcType="VARCHAR" property="indexName" />
<result column="index_code" jdbcType="VARCHAR" property="indexCode" /> <result column="index_code" jdbcType="VARCHAR" property="indexCode" />
<result column="index_group_name" jdbcType="VARCHAR" property="indexGroupName" /> <result column="index_group_name" jdbcType="VARCHAR" property="indexGroupName" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
index_desc_id, module_id, index_name, index_code, index_group_name, status, create_time, index_desc_id, module_id, index_name, index_code, index_group_name, delete_flag, create_time,
update_time, remark update_time, remark
</sql> </sql>
<sql id="DTO_List" > <sql id="DTO_List" >
${alias}.index_desc_id, ${alias}.module_id, ${alias}.index_name, ${alias}.index_code, ${alias}.index_group_name, ${alias}.index_desc_id, ${alias}.module_id, ${alias}.index_name, ${alias}.index_code, ${alias}.index_group_name,
${alias}.status, ${alias}.create_time, ${alias}.update_time ${alias}.delete_flag, ${alias}.create_time, ${alias}.update_time
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
...@@ -35,16 +35,13 @@ ...@@ -35,16 +35,13 @@
from tab_index_desc from tab_index_desc
where index_desc_id = #{indexDescId,jdbcType=INTEGER} where index_desc_id = #{indexDescId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_index_desc
where index_desc_id = #{indexDescId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.cloud.entity.TabIndexDesc"> <insert id="insert" parameterType="com.gic.cloud.entity.TabIndexDesc">
insert into tab_index_desc (index_desc_id, module_id, index_name, insert into tab_index_desc (index_desc_id, module_id, index_name,
index_code, index_group_name, status, index_code, index_group_name, delete_flag,
create_time, update_time) create_time, update_time)
values (#{indexDescId,jdbcType=INTEGER}, #{moduleId,jdbcType=VARCHAR}, #{indexName,jdbcType=VARCHAR}, values (#{indexDescId,jdbcType=INTEGER}, #{moduleId,jdbcType=VARCHAR}, #{indexName,jdbcType=VARCHAR},
#{indexCode,jdbcType=VARCHAR}, #{indexGroupName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{indexCode,jdbcType=VARCHAR}, #{indexGroupName,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.cloud.entity.TabIndexDesc"> <insert id="insertSelective" parameterType="com.gic.cloud.entity.TabIndexDesc">
...@@ -65,8 +62,8 @@ ...@@ -65,8 +62,8 @@
<if test="indexGroupName != null"> <if test="indexGroupName != null">
index_group_name, index_group_name,
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status, delete_flag,
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time, create_time,
...@@ -91,8 +88,8 @@ ...@@ -91,8 +88,8 @@
<if test="indexGroupName != null"> <if test="indexGroupName != null">
#{indexGroupName,jdbcType=VARCHAR}, #{indexGroupName,jdbcType=VARCHAR},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
#{status,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
...@@ -117,8 +114,8 @@ ...@@ -117,8 +114,8 @@
<if test="indexGroupName != null"> <if test="indexGroupName != null">
index_group_name = #{indexGroupName,jdbcType=VARCHAR}, index_group_name = #{indexGroupName,jdbcType=VARCHAR},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
...@@ -135,7 +132,7 @@ ...@@ -135,7 +132,7 @@
index_name = #{indexName,jdbcType=VARCHAR}, index_name = #{indexName,jdbcType=VARCHAR},
index_code = #{indexCode,jdbcType=VARCHAR}, index_code = #{indexCode,jdbcType=VARCHAR},
index_group_name = #{indexGroupName,jdbcType=VARCHAR}, index_group_name = #{indexGroupName,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP} update_time = #{updateTime,jdbcType=TIMESTAMP}
where index_desc_id = #{indexDescId,jdbcType=INTEGER} where index_desc_id = #{indexDescId,jdbcType=INTEGER}
...@@ -147,7 +144,7 @@ ...@@ -147,7 +144,7 @@
</include> </include>
from tab_index_desc t1 from tab_index_desc t1
left join tab_index_desc_enterprise t2 on t1.index_desc_id = t2.index_desc_id left join tab_index_desc_enterprise t2 on t1.index_desc_id = t2.index_desc_id
where t1.status = 1 where t1.delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
and t2.enterprise_id = #{enterpriseId} and t2.enterprise_id = #{enterpriseId}
and t1.module_id = #{moduleId} and t1.module_id = #{moduleId}
<if test="indexGroupName != null and indexGroupName != '' "> <if test="indexGroupName != null and indexGroupName != '' ">
...@@ -171,14 +168,14 @@ ...@@ -171,14 +168,14 @@
left join tab_index_module_rel t5 on t1.index_desc_id = t5.module_id left join tab_index_module_rel t5 on t1.index_desc_id = t5.module_id
left join tab_index t3 on t5.business_id = t3.index_id left join tab_index t3 on t5.business_id = t3.index_id
-- left join tab_update_tips t4 on t3.index_id = t4.business_id -- left join tab_update_tips t4 on t3.index_id = t4.business_id
where t1.status = 1 where t1.delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
and t2.enterprise_id = #{enterpriseId} and t2.enterprise_id = #{enterpriseId}
and t1.module_id = #{moduleId} and t1.module_id = #{moduleId}
<if test="indexGroupName != null and indexGroupName != '' "> <if test="indexGroupName != null and indexGroupName != '' ">
and t1.index_group_name = #{indexGroupName} and t1.index_group_name = #{indexGroupName}
</if> </if>
and t2.index_status = #{indexStatus} and t2.index_status = #{indexStatus}
and (t3.status = 1 or t3.status is null) and (t3.delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS} or t3.delete_flag is null)
and (t3.classify_type = 1 or t3.classify_type is null) and (t3.classify_type = 1 or t3.classify_type is null)
-- AND (t4.type = 1 or t4.type is null) -- AND (t4.type = 1 or t4.type is null)
and (t5.type = 1 or t5.type = 1 is null) and (t5.type = 1 or t5.type = 1 is null)
...@@ -206,12 +203,12 @@ ...@@ -206,12 +203,12 @@
<select id="listAll" resultMap="BaseResultMap"> <select id="listAll" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_index_desc where status = 1 from tab_index_desc where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
</select> </select>
<select id="listAllUnRel" resultMap="BaseResultMap"> <select id="listAllUnRel" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_index_desc where status = 1 from tab_index_desc where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
<if test="null != ids and ids.size > 0"> <if test="null != ids and ids.size > 0">
and index_desc_id not in and index_desc_id not in
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")"> <foreach collection="ids" index="index" item="item" open="(" separator="," close=")">
...@@ -223,7 +220,7 @@ ...@@ -223,7 +220,7 @@
<select id="listByIds" resultMap="BaseResultMap"> <select id="listByIds" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_index_desc where status = 1 from tab_index_desc where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
<if test="null != ids and ids.size > 0"> <if test="null != ids and ids.size > 0">
and index_desc_id in and index_desc_id in
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")"> <foreach collection="ids" index="index" item="item" open="(" separator="," close=")">
......
...@@ -8,11 +8,11 @@ ...@@ -8,11 +8,11 @@
<result column="group_chain" jdbcType="VARCHAR" property="groupChain" /> <result column="group_chain" jdbcType="VARCHAR" property="groupChain" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
index_group_id, index_group_name, parent_id, group_chain, create_time, update_time, index_group_id, index_group_name, parent_id, group_chain, create_time, update_time,
status delete_flag
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
...@@ -20,17 +20,14 @@ ...@@ -20,17 +20,14 @@
from tab_index_group from tab_index_group
where index_group_id = #{indexGroupId,jdbcType=INTEGER} where index_group_id = #{indexGroupId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_index_group
where index_group_id = #{indexGroupId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.cloud.entity.TabIndexGroup"> <insert id="insert" parameterType="com.gic.cloud.entity.TabIndexGroup">
insert into tab_index_group (index_group_id, index_group_name, parent_id, insert into tab_index_group (index_group_id, index_group_name, parent_id,
group_chain, create_time, update_time, group_chain, create_time, update_time,
status) delete_flag)
values (#{indexGroupId,jdbcType=INTEGER}, #{indexGroupName,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER}, values (#{indexGroupId,jdbcType=INTEGER}, #{indexGroupName,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER},
#{groupChain,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{groupChain,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{status,jdbcType=INTEGER}) #{deleteFlag,jdbcType=INTEGER})
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.cloud.entity.TabIndexGroup"> <insert id="insertSelective" parameterType="com.gic.cloud.entity.TabIndexGroup">
<selectKey keyProperty="indexGroupId" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="indexGroupId" order="AFTER" resultType="java.lang.Integer">
...@@ -56,8 +53,8 @@ ...@@ -56,8 +53,8 @@
<if test="updateTime != null"> <if test="updateTime != null">
update_time, update_time,
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status, delete_flag,
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
...@@ -79,8 +76,8 @@ ...@@ -79,8 +76,8 @@
<if test="updateTime != null"> <if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
#{status,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER},
</if> </if>
</trim> </trim>
</insert> </insert>
...@@ -102,8 +99,8 @@ ...@@ -102,8 +99,8 @@
<if test="updateTime != null"> <if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if> </if>
</set> </set>
where index_group_id = #{indexGroupId,jdbcType=INTEGER} where index_group_id = #{indexGroupId,jdbcType=INTEGER}
...@@ -115,14 +112,14 @@ ...@@ -115,14 +112,14 @@
group_chain = #{groupChain,jdbcType=VARCHAR}, group_chain = #{groupChain,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER} delete_flag = #{deleteFlag,jdbcType=INTEGER}
where index_group_id = #{indexGroupId,jdbcType=INTEGER} where index_group_id = #{indexGroupId,jdbcType=INTEGER}
</update> </update>
<select id="getBySelective" resultMap="BaseResultMap"> <select id="getBySelective" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_index_group from tab_index_group
where status = 1 where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
<if test="indexGroupName != null "> <if test="indexGroupName != null ">
and index_group_name = #{indexGroupName} and index_group_name = #{indexGroupName}
</if> </if>
...@@ -134,7 +131,7 @@ ...@@ -134,7 +131,7 @@
<select id="listIndexGroup" resultMap="BaseResultMap"> <select id="listIndexGroup" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_index_group where status = 1 from tab_index_group where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
<if test="null != ids and ids.size > 0"> <if test="null != ids and ids.size > 0">
and index_group_id in and index_group_id in
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")"> <foreach collection="ids" index="index" item="item" open="(" separator="," close=")">
...@@ -147,7 +144,7 @@ ...@@ -147,7 +144,7 @@
select select
index_group_id index_group_id
from tab_index_group from tab_index_group
where status = 1 where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
and group_chain like concat('%_', #{indexGroupId}, '_%') and group_chain like concat('%_', #{indexGroupId}, '_%')
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
<result column="opt_user_id" jdbcType="INTEGER" property="optUserId" /> <result column="opt_user_id" jdbcType="INTEGER" property="optUserId" />
<result column="opt_user_name" jdbcType="VARCHAR" property="optUserName" /> <result column="opt_user_name" jdbcType="VARCHAR" property="optUserName" />
<result column="reason" jdbcType="VARCHAR" property="reason" /> <result column="reason" jdbcType="VARCHAR" property="reason" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="type" jdbcType="INTEGER" property="type" /> <result column="type" jdbcType="INTEGER" property="type" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
cloud_index_log_id, business_id, opt_time, opt_user_id, opt_user_name, reason, status, cloud_index_log_id, business_id, opt_time, opt_user_id, opt_user_name, reason, delete_flag,
create_time, update_time, type create_time, update_time, type
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
...@@ -23,18 +23,15 @@ ...@@ -23,18 +23,15 @@
from tab_index_log from tab_index_log
where cloud_index_log_id = #{cloudIndexLogId,jdbcType=INTEGER} where cloud_index_log_id = #{cloudIndexLogId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_index_log
where cloud_index_log_id = #{cloudIndexLogId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.cloud.entity.TabIndexLog"> <insert id="insert" parameterType="com.gic.cloud.entity.TabIndexLog">
insert into tab_index_log (cloud_index_log_id, business_id, opt_time, insert into tab_index_log (cloud_index_log_id, business_id, opt_time,
opt_user_id, opt_user_name, reason, opt_user_id, opt_user_name, reason,
status, create_time, update_time, delete_flag, create_time, update_time,
type) type)
values (#{cloudIndexLogId,jdbcType=INTEGER}, #{businessId,jdbcType=INTEGER}, #{optTime,jdbcType=TIMESTAMP}, values (#{cloudIndexLogId,jdbcType=INTEGER}, #{businessId,jdbcType=INTEGER}, #{optTime,jdbcType=TIMESTAMP},
#{optUserId,jdbcType=INTEGER}, #{optUserName,jdbcType=VARCHAR}, #{reason,jdbcType=VARCHAR}, #{optUserId,jdbcType=INTEGER}, #{optUserName,jdbcType=VARCHAR}, #{reason,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{type,jdbcType=INTEGER}) #{type,jdbcType=INTEGER})
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.cloud.entity.TabIndexLog"> <insert id="insertSelective" parameterType="com.gic.cloud.entity.TabIndexLog">
...@@ -58,8 +55,8 @@ ...@@ -58,8 +55,8 @@
<if test="reason != null"> <if test="reason != null">
reason, reason,
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status, delete_flag,
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time, create_time,
...@@ -90,8 +87,8 @@ ...@@ -90,8 +87,8 @@
<if test="reason != null"> <if test="reason != null">
#{reason,jdbcType=VARCHAR}, #{reason,jdbcType=VARCHAR},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
#{status,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
...@@ -122,8 +119,8 @@ ...@@ -122,8 +119,8 @@
<if test="reason != null"> <if test="reason != null">
reason = #{reason,jdbcType=VARCHAR}, reason = #{reason,jdbcType=VARCHAR},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
...@@ -144,7 +141,7 @@ ...@@ -144,7 +141,7 @@
opt_user_id = #{optUserId,jdbcType=INTEGER}, opt_user_id = #{optUserId,jdbcType=INTEGER},
opt_user_name = #{optUserName,jdbcType=VARCHAR}, opt_user_name = #{optUserName,jdbcType=VARCHAR},
reason = #{reason,jdbcType=VARCHAR}, reason = #{reason,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
type = #{type,jdbcType=INTEGER} type = #{type,jdbcType=INTEGER}
...@@ -154,7 +151,7 @@ ...@@ -154,7 +151,7 @@
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_index_log from tab_index_log
where status = 1 where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
<if test="businessId != null "> <if test="businessId != null ">
and business_id = #{businessId} and business_id = #{businessId}
</if> </if>
......
...@@ -27,13 +27,13 @@ ...@@ -27,13 +27,13 @@
<result column="complement" jdbcType="VARCHAR" property="complement" /> <result column="complement" jdbcType="VARCHAR" property="complement" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
index_id, classify_type, classify_name, is_app_index, rel_app_index, code, name, index_id, classify_type, classify_name, is_app_index, rel_app_index, code, name,
index_level, index_level_name, rel_top_level, unit_code, unit_name, decimal_size, index_level, index_level_name, rel_top_level, unit_code, unit_name, decimal_size,
index_group_id, data_type, index_type, base_organized, base_time, update_rate, update_rate_remark, index_group_id, data_type, index_type, base_organized, base_time, update_rate, update_rate_remark,
index_remark, show_status, complement, create_time, update_time, status index_remark, show_status, complement, create_time, update_time, delete_flag
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
...@@ -41,10 +41,7 @@ ...@@ -41,10 +41,7 @@
from tab_index from tab_index
where index_id = #{indexId,jdbcType=INTEGER} where index_id = #{indexId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_index
where index_id = #{indexId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.cloud.entity.TabIndex"> <insert id="insert" parameterType="com.gic.cloud.entity.TabIndex">
insert into tab_index (index_id, classify_type, classify_name, insert into tab_index (index_id, classify_type, classify_name,
is_app_index, rel_app_index, code, is_app_index, rel_app_index, code,
...@@ -54,7 +51,7 @@ ...@@ -54,7 +51,7 @@
index_type, base_organized, base_time, index_type, base_organized, base_time,
update_rate, update_rate_remark, index_remark, update_rate, update_rate_remark, index_remark,
show_status, complement, create_time, show_status, complement, create_time,
update_time, status) update_time, delete_flag)
values (#{indexId,jdbcType=INTEGER}, #{classifyType,jdbcType=INTEGER}, #{classifyName,jdbcType=VARCHAR}, values (#{indexId,jdbcType=INTEGER}, #{classifyType,jdbcType=INTEGER}, #{classifyName,jdbcType=VARCHAR},
#{isAppIndex,jdbcType=INTEGER}, #{relAppIndex,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{isAppIndex,jdbcType=INTEGER}, #{relAppIndex,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR}, #{indexLevel,jdbcType=INTEGER}, #{indexLevelName,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{indexLevel,jdbcType=INTEGER}, #{indexLevelName,jdbcType=VARCHAR},
...@@ -63,7 +60,7 @@ ...@@ -63,7 +60,7 @@
#{indexType,jdbcType=INTEGER}, #{baseOrganized,jdbcType=VARCHAR}, #{baseTime,jdbcType=VARCHAR}, #{indexType,jdbcType=INTEGER}, #{baseOrganized,jdbcType=VARCHAR}, #{baseTime,jdbcType=VARCHAR},
#{updateRate,jdbcType=VARCHAR}, #{updateRateRemark,jdbcType=VARCHAR}, #{indexRemark,jdbcType=VARCHAR}, #{updateRate,jdbcType=VARCHAR}, #{updateRateRemark,jdbcType=VARCHAR}, #{indexRemark,jdbcType=VARCHAR},
#{showStatus,jdbcType=INTEGER}, #{complement,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{showStatus,jdbcType=INTEGER}, #{complement,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}) #{updateTime,jdbcType=TIMESTAMP}, #{deleteFlag,jdbcType=INTEGER})
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.cloud.entity.TabIndex"> <insert id="insertSelective" parameterType="com.gic.cloud.entity.TabIndex">
<selectKey keyProperty="indexId" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="indexId" order="AFTER" resultType="java.lang.Integer">
...@@ -146,8 +143,8 @@ ...@@ -146,8 +143,8 @@
<if test="updateTime != null"> <if test="updateTime != null">
update_time, update_time,
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status, delete_flag,
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
...@@ -226,8 +223,8 @@ ...@@ -226,8 +223,8 @@
<if test="updateTime != null"> <if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
#{status,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER},
</if> </if>
</trim> </trim>
</insert> </insert>
...@@ -306,8 +303,8 @@ ...@@ -306,8 +303,8 @@
<if test="updateTime != null"> <if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if> </if>
</set> </set>
where index_id = #{indexId,jdbcType=INTEGER} where index_id = #{indexId,jdbcType=INTEGER}
...@@ -338,14 +335,14 @@ ...@@ -338,14 +335,14 @@
complement = #{complement,jdbcType=VARCHAR}, complement = #{complement,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER} delete_flag = #{deleteFlag,jdbcType=INTEGER}
where index_id = #{indexId,jdbcType=INTEGER} where index_id = #{indexId,jdbcType=INTEGER}
</update> </update>
<select id="getBySelective" resultMap="BaseResultMap"> <select id="getBySelective" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_index from tab_index
where status = 1 where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
<if test="name != null and name != '' "> <if test="name != null and name != '' ">
and name = #{name} and name = #{name}
</if> </if>
...@@ -365,7 +362,7 @@ ...@@ -365,7 +362,7 @@
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_index from tab_index
where status = 1 where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
<if test="classifyType != null "> <if test="classifyType != null ">
and classify_type = #{classifyType} and classify_type = #{classifyType}
</if> </if>
......
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
<result column="module_id" jdbcType="VARCHAR" property="moduleId" /> <result column="module_id" jdbcType="VARCHAR" property="moduleId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
index_module_rel_id, type, business_id, module_id, create_time, update_time, status index_module_rel_id, type, business_id, module_id, create_time, update_time, delete_flag
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
...@@ -19,17 +19,14 @@ ...@@ -19,17 +19,14 @@
from tab_index_module_rel from tab_index_module_rel
where index_module_rel_id = #{indexModuleRelId,jdbcType=INTEGER} where index_module_rel_id = #{indexModuleRelId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_index_module_rel
where index_module_rel_id = #{indexModuleRelId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.cloud.entity.TabIndexModuleRel"> <insert id="insert" parameterType="com.gic.cloud.entity.TabIndexModuleRel">
insert into tab_index_module_rel (index_module_rel_id, type, business_id, insert into tab_index_module_rel (index_module_rel_id, type, business_id,
module_id, create_time, update_time, module_id, create_time, update_time,
status) delete_flag)
values (#{indexModuleRelId,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{businessId,jdbcType=INTEGER}, values (#{indexModuleRelId,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{businessId,jdbcType=INTEGER},
#{moduleId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{moduleId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{status,jdbcType=INTEGER}) #{deleteFlag,jdbcType=INTEGER})
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.cloud.entity.TabIndexModuleRel"> <insert id="insertSelective" parameterType="com.gic.cloud.entity.TabIndexModuleRel">
insert into tab_index_module_rel insert into tab_index_module_rel
...@@ -52,8 +49,8 @@ ...@@ -52,8 +49,8 @@
<if test="updateTime != null"> <if test="updateTime != null">
update_time, update_time,
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status, delete_flag,
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
...@@ -75,8 +72,8 @@ ...@@ -75,8 +72,8 @@
<if test="updateTime != null"> <if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
#{status,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER},
</if> </if>
</trim> </trim>
</insert> </insert>
...@@ -98,8 +95,8 @@ ...@@ -98,8 +95,8 @@
<if test="updateTime != null"> <if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if> </if>
</set> </set>
where index_module_rel_id = #{indexModuleRelId,jdbcType=INTEGER} where index_module_rel_id = #{indexModuleRelId,jdbcType=INTEGER}
...@@ -111,11 +108,11 @@ ...@@ -111,11 +108,11 @@
module_id = #{moduleId,jdbcType=VARCHAR}, module_id = #{moduleId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER} delete_flag = #{deleteFlag,jdbcType=INTEGER}
where index_module_rel_id = #{indexModuleRelId,jdbcType=INTEGER} where index_module_rel_id = #{indexModuleRelId,jdbcType=INTEGER}
</update> </update>
<update id="delByBusinessId"> <update id="delByBusinessId">
update tab_index_module_rel set status = 0 where business_id = #{businessId} and type = #{type} and status = 1 update tab_index_module_rel set delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@DELETE_STATUS} where business_id = #{businessId} and type = #{type} and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
</update> </update>
<insert id="insertSelectiveByNotExist"> <insert id="insertSelectiveByNotExist">
INSERT INTO tab_index_module_rel ( INSERT INTO tab_index_module_rel (
...@@ -124,14 +121,14 @@ ...@@ -124,14 +121,14 @@
module_id, module_id,
create_time, create_time,
update_time, update_time,
status delete_flag
) SELECT ) SELECT
#{type}, #{type},
#{businessId}, #{businessId},
#{moduleId}, #{moduleId},
#{createTime}, #{createTime},
#{updateTime}, #{updateTime},
#{status} #{deleteFlag}
FROM FROM
DUAL DUAL
WHERE WHERE
...@@ -148,7 +145,7 @@ ...@@ -148,7 +145,7 @@
</insert> </insert>
<!-- void updateStatusByBusinessIds(@Param("businessId") Integer businessId, @Param("ids") List<Integer> moduleIdList, @Param("type") Integer type);--> <!-- void updateStatusByBusinessIds(@Param("businessId") Integer businessId, @Param("ids") List<Integer> moduleIdList, @Param("type") Integer type);-->
<update id="updateStatusByBusinessIds"> <update id="updateStatusByBusinessIds">
update tab_index_module_rel set status = 1 where business_id = #{businessId} and `type` = #{type} update tab_index_module_rel set delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS} where business_id = #{businessId} and `type` = #{type}
<if test="null != ids and ids.size > 0"> <if test="null != ids and ids.size > 0">
and module_id in and module_id in
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")"> <foreach collection="ids" index="index" item="item" open="(" separator="," close=")">
...@@ -160,19 +157,19 @@ ...@@ -160,19 +157,19 @@
select select
module_id module_id
from tab_index_module_rel from tab_index_module_rel
where status = 1 and business_id = #{businessId} and type = #{type} where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS} and business_id = #{businessId} and type = #{type}
</select> </select>
<select id="listBusinessIdByModuleId" resultType="int"> <select id="listBusinessIdByModuleId" resultType="int">
select select
business_id business_id
from tab_index_module_rel from tab_index_module_rel
where status = 1 and module_id = #{moduleId} and type = #{type} where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS} and module_id = #{moduleId} and type = #{type}
</select> </select>
<select id="listBusinessIdByModuleIds" resultType="int"> <select id="listBusinessIdByModuleIds" resultType="int">
select select
business_id business_id
from tab_index_module_rel from tab_index_module_rel
where status = 1 where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
<if test="null != ids and ids.size > 0"> <if test="null != ids and ids.size > 0">
and module_id in and module_id in
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")"> <foreach collection="ids" index="index" item="item" open="(" separator="," close=")">
...@@ -183,7 +180,7 @@ ...@@ -183,7 +180,7 @@
<select id="listModuleIdByBusinessIds" resultMap="BaseResultMap"> <select id="listModuleIdByBusinessIds" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_index_module_rel where type = #{type} from tab_index_module_rel where type = #{type} and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
<if test="null != ids and ids.size > 0"> <if test="null != ids and ids.size > 0">
and business_id in and business_id in
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")"> <foreach collection="ids" index="index" item="item" open="(" separator="," close=")">
......
...@@ -5,13 +5,13 @@ ...@@ -5,13 +5,13 @@
<id column="account_group_id" jdbcType="INTEGER" property="accountGroupId" /> <id column="account_group_id" jdbcType="INTEGER" property="accountGroupId" />
<result column="account_group_name" jdbcType="VARCHAR" property="accountGroupName" /> <result column="account_group_name" jdbcType="VARCHAR" property="accountGroupName" />
<result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" /> <result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
<result column="sort" jdbcType="INTEGER" property="sort" /> <result column="sort" jdbcType="INTEGER" property="sort" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
account_group_id, account_group_name, enterprise_id, status, sort, create_time, update_time account_group_id, account_group_name, enterprise_id, delete_flag, sort, create_time, update_time
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
...@@ -19,16 +19,13 @@ ...@@ -19,16 +19,13 @@
from tab_sys_account_group from tab_sys_account_group
where account_group_id = #{accountGroupId,jdbcType=INTEGER} where account_group_id = #{accountGroupId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_sys_account_group
where account_group_id = #{accountGroupId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.cloud.entity.TabSysAccountGroup" useGeneratedKeys="true" keyProperty="accountGroupId"> <insert id="insert" parameterType="com.gic.cloud.entity.TabSysAccountGroup" useGeneratedKeys="true" keyProperty="accountGroupId">
insert into tab_sys_account_group (account_group_id, account_group_name, insert into tab_sys_account_group (account_group_id, account_group_name,
enterprise_id, status, sort, enterprise_id, delete_flag, sort,
create_time, update_time) create_time, update_time)
values (#{accountGroupId,jdbcType=INTEGER}, #{accountGroupName,jdbcType=VARCHAR}, values (#{accountGroupId,jdbcType=INTEGER}, #{accountGroupName,jdbcType=VARCHAR},
#{enterpriseId,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.cloud.entity.TabSysAccountGroup"> <insert id="insertSelective" parameterType="com.gic.cloud.entity.TabSysAccountGroup">
...@@ -43,8 +40,8 @@ ...@@ -43,8 +40,8 @@
<if test="enterpriseId != null"> <if test="enterpriseId != null">
enterprise_id, enterprise_id,
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status, delete_flag,
</if> </if>
<if test="sort != null"> <if test="sort != null">
sort, sort,
...@@ -66,8 +63,8 @@ ...@@ -66,8 +63,8 @@
<if test="enterpriseId != null"> <if test="enterpriseId != null">
#{enterpriseId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
#{status,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="sort != null"> <if test="sort != null">
#{sort,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER},
...@@ -89,8 +86,8 @@ ...@@ -89,8 +86,8 @@
<if test="enterpriseId != null"> <if test="enterpriseId != null">
enterprise_id = #{enterpriseId,jdbcType=INTEGER}, enterprise_id = #{enterpriseId,jdbcType=INTEGER},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="sort != null"> <if test="sort != null">
sort = #{sort,jdbcType=INTEGER}, sort = #{sort,jdbcType=INTEGER},
...@@ -108,7 +105,7 @@ ...@@ -108,7 +105,7 @@
update tab_sys_account_group update tab_sys_account_group
set account_group_name = #{accountGroupName,jdbcType=VARCHAR}, set account_group_name = #{accountGroupName,jdbcType=VARCHAR},
enterprise_id = #{enterpriseId,jdbcType=INTEGER}, enterprise_id = #{enterpriseId,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}, sort = #{sort,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP} update_time = #{updateTime,jdbcType=TIMESTAMP}
...@@ -122,27 +119,27 @@ ...@@ -122,27 +119,27 @@
<if test="accountGroupId != null"> <if test="accountGroupId != null">
and account_group_id &lt;&gt; #{accountGroupId} and account_group_id &lt;&gt; #{accountGroupId}
</if> </if>
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
</select> </select>
<select id="queryMaxSort" resultType="int"> <select id="queryMaxSort" resultType="int">
select ifnull(max(sort),0) from tab_sys_account_group select ifnull(max(sort),0) from tab_sys_account_group
where enterprise_id = #{enterpriseId} where enterprise_id = #{enterpriseId}
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
</select> </select>
<select id="listAccountGroupOrderBySort" resultMap="BaseResultMap"> <select id="listAccountGroupOrderBySort" resultMap="BaseResultMap">
select <include refid="Base_Column_List"></include> select <include refid="Base_Column_List"></include>
from tab_sys_account_group from tab_sys_account_group
where enterprise_id = #{enterpriseId} where enterprise_id = #{enterpriseId}
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
order by sort order by sort
</select> </select>
<update id="deleteAccountGroup"> <update id="deleteAccountGroup">
update tab_sys_account_group set status = 0 update tab_sys_account_group set delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@DELETE_STATUS}
where account_group_id = #{accountGroupId} where account_group_id = #{accountGroupId}
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
<result column="store_widget_id" jdbcType="INTEGER" property="storeWidgetId" /> <result column="store_widget_id" jdbcType="INTEGER" property="storeWidgetId" />
<result column="member_card_auth" jdbcType="VARCHAR" property="memberCardAuth" /> <result column="member_card_auth" jdbcType="VARCHAR" property="memberCardAuth" />
<result column="goods_area_auth" jdbcType="VARCHAR" property="goodsAreaAuth" /> <result column="goods_area_auth" jdbcType="VARCHAR" property="goodsAreaAuth" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
data_auth_id, data_auth_name, enterprise_id, online_performance, no_owner_store, store_widget_id, data_auth_id, data_auth_name, enterprise_id, online_performance, no_owner_store, store_widget_id,
member_card_auth, goods_area_auth, status, create_time, update_time member_card_auth, goods_area_auth, delete_flag, create_time, update_time
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
...@@ -24,18 +24,15 @@ ...@@ -24,18 +24,15 @@
from tab_sys_data_auth from tab_sys_data_auth
where data_auth_id = #{dataAuthId,jdbcType=INTEGER} where data_auth_id = #{dataAuthId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_sys_data_auth
where data_auth_id = #{dataAuthId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.cloud.entity.TabSysDataAuth" useGeneratedKeys="true" keyProperty="dataAuthId"> <insert id="insert" parameterType="com.gic.cloud.entity.TabSysDataAuth" useGeneratedKeys="true" keyProperty="dataAuthId">
insert into tab_sys_data_auth (data_auth_id, data_auth_name, enterprise_id, insert into tab_sys_data_auth (data_auth_id, data_auth_name, enterprise_id,
online_performance, no_owner_store, store_widget_id, member_card_auth, online_performance, no_owner_store, store_widget_id, member_card_auth,
goods_area_auth, status, create_time, goods_area_auth, delete_flag, create_time,
update_time) update_time)
values (#{dataAuthId,jdbcType=INTEGER}, #{dataAuthName,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=INTEGER}, values (#{dataAuthId,jdbcType=INTEGER}, #{dataAuthName,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=INTEGER},
#{onlinePerformance,jdbcType=VARCHAR}, #{noOwnerStore,jdbcType=INTEGER}, #{storeWidgetId,jdbcType=INTEGER}, #{memberCardAuth,jdbcType=VARCHAR}, #{onlinePerformance,jdbcType=VARCHAR}, #{noOwnerStore,jdbcType=INTEGER}, #{storeWidgetId,jdbcType=INTEGER}, #{memberCardAuth,jdbcType=VARCHAR},
#{goodsAreaAuth,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{goodsAreaAuth,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}) #{updateTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.cloud.entity.TabSysDataAuth"> <insert id="insertSelective" parameterType="com.gic.cloud.entity.TabSysDataAuth">
...@@ -65,8 +62,8 @@ ...@@ -65,8 +62,8 @@
<if test="goodsAreaAuth != null"> <if test="goodsAreaAuth != null">
goods_area_auth, goods_area_auth,
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status, delete_flag,
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time, create_time,
...@@ -100,8 +97,8 @@ ...@@ -100,8 +97,8 @@
<if test="goodsAreaAuth != null"> <if test="goodsAreaAuth != null">
#{goodsAreaAuth,jdbcType=VARCHAR}, #{goodsAreaAuth,jdbcType=VARCHAR},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
#{status,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
...@@ -135,8 +132,8 @@ ...@@ -135,8 +132,8 @@
<if test="goodsAreaAuth != null"> <if test="goodsAreaAuth != null">
goods_area_auth = #{goodsAreaAuth,jdbcType=VARCHAR}, goods_area_auth = #{goodsAreaAuth,jdbcType=VARCHAR},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
...@@ -156,7 +153,7 @@ ...@@ -156,7 +153,7 @@
store_widget_id = #{storeWidgetId,jdbcType=INTEGER}, store_widget_id = #{storeWidgetId,jdbcType=INTEGER},
member_card_auth = #{memberCardAuth,jdbcType=VARCHAR}, member_card_auth = #{memberCardAuth,jdbcType=VARCHAR},
goods_area_auth = #{goodsAreaAuth,jdbcType=VARCHAR}, goods_area_auth = #{goodsAreaAuth,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP} update_time = #{updateTime,jdbcType=TIMESTAMP}
where data_auth_id = #{dataAuthId,jdbcType=INTEGER} where data_auth_id = #{dataAuthId,jdbcType=INTEGER}
...@@ -170,13 +167,13 @@ ...@@ -170,13 +167,13 @@
<if test="dataAuthId != null"> <if test="dataAuthId != null">
and data_auth_id &lt;&gt; #{dataAuthId} and data_auth_id &lt;&gt; #{dataAuthId}
</if> </if>
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
</select> </select>
<update id="deleteDataAuth"> <update id="deleteDataAuth">
update tab_sys_data_auth set status = 0 update tab_sys_data_auth set delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@DELETE_STATUS}
where data_auth_id = #{dataAuthId} where data_auth_id = #{dataAuthId}
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
</update> </update>
<select id="listDataAuth" resultMap="BaseResultMap"> <select id="listDataAuth" resultMap="BaseResultMap">
...@@ -187,7 +184,7 @@ ...@@ -187,7 +184,7 @@
<if test="dataAuthName != null and dataAuthName != ''"> <if test="dataAuthName != null and dataAuthName != ''">
and data_auth_name like concat('%', #{dataAuthName}, '%') and data_auth_name like concat('%', #{dataAuthName}, '%')
</if> </if>
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
order by create_time desc order by create_time desc
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
<result column="function_name" jdbcType="VARCHAR" property="functionName" /> <result column="function_name" jdbcType="VARCHAR" property="functionName" />
<result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" /> <result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" />
<result column="function_component" jdbcType="VARCHAR" property="functionComponent" /> <result column="function_component" jdbcType="VARCHAR" property="functionComponent" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
function_id, function_name, enterprise_id, function_component, status, create_time, function_id, function_name, enterprise_id, function_component, delete_flag, create_time,
update_time update_time
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
...@@ -20,16 +20,13 @@ ...@@ -20,16 +20,13 @@
from tab_sys_function from tab_sys_function
where function_id = #{functionId,jdbcType=INTEGER} where function_id = #{functionId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_sys_function
where function_id = #{functionId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.cloud.entity.TabSysFunction" useGeneratedKeys="true" keyProperty="functionId"> <insert id="insert" parameterType="com.gic.cloud.entity.TabSysFunction" useGeneratedKeys="true" keyProperty="functionId">
insert into tab_sys_function (function_id, function_name, enterprise_id, insert into tab_sys_function (function_id, function_name, enterprise_id,
function_component, status, create_time, function_component, delete_flag, create_time,
update_time) update_time)
values (#{functionId,jdbcType=INTEGER}, #{functionName,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=INTEGER}, values (#{functionId,jdbcType=INTEGER}, #{functionName,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=INTEGER},
#{functionComponent,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{functionComponent,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}) #{updateTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.cloud.entity.TabSysFunction"> <insert id="insertSelective" parameterType="com.gic.cloud.entity.TabSysFunction">
...@@ -47,8 +44,8 @@ ...@@ -47,8 +44,8 @@
<if test="functionComponent != null"> <if test="functionComponent != null">
function_component, function_component,
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status, delete_flag,
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time, create_time,
...@@ -70,8 +67,8 @@ ...@@ -70,8 +67,8 @@
<if test="functionComponent != null"> <if test="functionComponent != null">
#{functionComponent,jdbcType=VARCHAR}, #{functionComponent,jdbcType=VARCHAR},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
#{status,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
...@@ -93,8 +90,8 @@ ...@@ -93,8 +90,8 @@
<if test="functionComponent != null"> <if test="functionComponent != null">
function_component = #{functionComponent,jdbcType=VARCHAR}, function_component = #{functionComponent,jdbcType=VARCHAR},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
...@@ -110,7 +107,7 @@ ...@@ -110,7 +107,7 @@
set function_name = #{functionName,jdbcType=VARCHAR}, set function_name = #{functionName,jdbcType=VARCHAR},
enterprise_id = #{enterpriseId,jdbcType=INTEGER}, enterprise_id = #{enterpriseId,jdbcType=INTEGER},
function_component = #{functionComponent,jdbcType=VARCHAR}, function_component = #{functionComponent,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP} update_time = #{updateTime,jdbcType=TIMESTAMP}
where function_id = #{functionId,jdbcType=INTEGER} where function_id = #{functionId,jdbcType=INTEGER}
...@@ -123,13 +120,13 @@ ...@@ -123,13 +120,13 @@
<if test="functionId != null"> <if test="functionId != null">
and function_id &lt;&gt; #{functionId} and function_id &lt;&gt; #{functionId}
</if> </if>
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
</select> </select>
<update id="deleteFunction"> <update id="deleteFunction">
update tab_sys_function set status = 0 update tab_sys_function set delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@DELETE_STATUS}
where function_id = #{functionId} where function_id = #{functionId}
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
</update> </update>
<select id="listFunction" resultMap="BaseResultMap"> <select id="listFunction" resultMap="BaseResultMap">
...@@ -139,7 +136,7 @@ ...@@ -139,7 +136,7 @@
<if test="functionName != null and functionName != ''"> <if test="functionName != null and functionName != ''">
and function_name like concat('%', #{functionName}, '%') and function_name like concat('%', #{functionName}, '%')
</if> </if>
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
order by create_time desc order by create_time desc
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -9,13 +9,13 @@ ...@@ -9,13 +9,13 @@
<result column="operation_id" jdbcType="VARCHAR" property="operationId" /> <result column="operation_id" jdbcType="VARCHAR" property="operationId" />
<result column="operation_name" jdbcType="VARCHAR" property="operationName" /> <result column="operation_name" jdbcType="VARCHAR" property="operationName" />
<result column="logo" jdbcType="VARCHAR" property="logo" /> <result column="logo" jdbcType="VARCHAR" property="logo" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
function_module_id, function_module_name, function_module_code, function_module_desc, function_module_id, function_module_name, function_module_code, function_module_desc,
operation_id, operation_name, logo, status, create_time, update_time operation_id, operation_name, logo, delete_flag, create_time, update_time
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
...@@ -23,18 +23,15 @@ ...@@ -23,18 +23,15 @@
from tab_sys_function_module from tab_sys_function_module
where function_module_id = #{functionModuleId,jdbcType=INTEGER} where function_module_id = #{functionModuleId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_sys_function_module
where function_module_id = #{functionModuleId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.cloud.entity.TabSysFunctionModule" useGeneratedKeys="true" keyProperty="functionModuleId"> <insert id="insert" parameterType="com.gic.cloud.entity.TabSysFunctionModule" useGeneratedKeys="true" keyProperty="functionModuleId">
insert into tab_sys_function_module (function_module_id, function_module_name, insert into tab_sys_function_module (function_module_id, function_module_name,
function_module_code, function_module_desc, function_module_code, function_module_desc,
operation_id, operation_name, logo, status, operation_id, operation_name, logo, delete_flag,
create_time, update_time) create_time, update_time)
values (#{functionModuleId,jdbcType=INTEGER}, #{functionModuleName,jdbcType=VARCHAR}, values (#{functionModuleId,jdbcType=INTEGER}, #{functionModuleName,jdbcType=VARCHAR},
#{functionModuleCode,jdbcType=VARCHAR}, #{functionModuleDesc,jdbcType=VARCHAR}, #{functionModuleCode,jdbcType=VARCHAR}, #{functionModuleDesc,jdbcType=VARCHAR},
#{operationId,jdbcType=VARCHAR}, #{operationName,jdbcType=VARCHAR}, #{logo,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{operationId,jdbcType=VARCHAR}, #{operationName,jdbcType=VARCHAR}, #{logo,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.cloud.entity.TabSysFunctionModule"> <insert id="insertSelective" parameterType="com.gic.cloud.entity.TabSysFunctionModule">
...@@ -61,8 +58,8 @@ ...@@ -61,8 +58,8 @@
<if test="logo != null"> <if test="logo != null">
logo, logo,
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status, delete_flag,
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time, create_time,
...@@ -93,8 +90,8 @@ ...@@ -93,8 +90,8 @@
<if test="logo != null"> <if test="logo != null">
#{logo,jdbcType=VARCHAR}, #{logo,jdbcType=VARCHAR},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
#{status,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
...@@ -125,8 +122,8 @@ ...@@ -125,8 +122,8 @@
<if test="logo != null"> <if test="logo != null">
logo = #{logo,jdbcType=VARCHAR}, logo = #{logo,jdbcType=VARCHAR},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
...@@ -145,7 +142,7 @@ ...@@ -145,7 +142,7 @@
operation_id = #{operationId,jdbcType=VARCHAR}, operation_id = #{operationId,jdbcType=VARCHAR},
operation_name = #{operationName,jdbcType=VARCHAR}, operation_name = #{operationName,jdbcType=VARCHAR},
logo = #{logo,jdbcType=VARCHAR}, logo = #{logo,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP} update_time = #{updateTime,jdbcType=TIMESTAMP}
where function_module_id = #{functionModuleId,jdbcType=INTEGER} where function_module_id = #{functionModuleId,jdbcType=INTEGER}
...@@ -154,7 +151,7 @@ ...@@ -154,7 +151,7 @@
<select id="listFunctionModule" resultMap="BaseResultMap"> <select id="listFunctionModule" resultMap="BaseResultMap">
select <include refid="Base_Column_List"></include> select <include refid="Base_Column_List"></include>
from tab_sys_function_module from tab_sys_function_module
where status = 1 where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
<if test="search != null and search != ''"> <if test="search != null and search != ''">
and (function_module_name like concat('%', #{search}, '%') or function_module_code like concat('%', #{search}, '%') and (function_module_name like concat('%', #{search}, '%') or function_module_code like concat('%', #{search}, '%')
or operation_name like concat('%', #{search}, '%')) or operation_name like concat('%', #{search}, '%'))
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
<id column="temp_store_condition_id" jdbcType="INTEGER" property="tempStoreConditionId" /> <id column="temp_store_condition_id" jdbcType="INTEGER" property="tempStoreConditionId" />
<result column="store_widget_id" jdbcType="INTEGER" property="storeWidgetId" /> <result column="store_widget_id" jdbcType="INTEGER" property="storeWidgetId" />
<result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" /> <result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
temp_store_condition_id, store_widget_id, enterprise_id, status, create_time, update_time temp_store_condition_id, store_widget_id, enterprise_id, delete_flag, create_time, update_time
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
...@@ -18,16 +18,13 @@ ...@@ -18,16 +18,13 @@
from tab_sys_temp_store_condition from tab_sys_temp_store_condition
where temp_store_condition_id = #{tempStoreConditionId,jdbcType=INTEGER} where temp_store_condition_id = #{tempStoreConditionId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_sys_temp_store_condition
where temp_store_condition_id = #{tempStoreConditionId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.cloud.entity.TabSysTempStoreCondition" useGeneratedKeys="true" keyProperty="tempStoreConditionId"> <insert id="insert" parameterType="com.gic.cloud.entity.TabSysTempStoreCondition" useGeneratedKeys="true" keyProperty="tempStoreConditionId">
insert into tab_sys_temp_store_condition (temp_store_condition_id, store_widget_id, insert into tab_sys_temp_store_condition (temp_store_condition_id, store_widget_id,
enterprise_id, status, create_time, enterprise_id, delete_flag, create_time,
update_time) update_time)
values (#{tempStoreConditionId,jdbcType=INTEGER}, #{storeWidgetId,jdbcType=INTEGER}, values (#{tempStoreConditionId,jdbcType=INTEGER}, #{storeWidgetId,jdbcType=INTEGER},
#{enterpriseId,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{enterpriseId,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}) #{updateTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.cloud.entity.TabSysTempStoreCondition"> <insert id="insertSelective" parameterType="com.gic.cloud.entity.TabSysTempStoreCondition">
...@@ -42,8 +39,8 @@ ...@@ -42,8 +39,8 @@
<if test="enterpriseId != null"> <if test="enterpriseId != null">
enterprise_id, enterprise_id,
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status, delete_flag,
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time, create_time,
...@@ -62,8 +59,8 @@ ...@@ -62,8 +59,8 @@
<if test="enterpriseId != null"> <if test="enterpriseId != null">
#{enterpriseId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
#{status,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
...@@ -82,8 +79,8 @@ ...@@ -82,8 +79,8 @@
<if test="enterpriseId != null"> <if test="enterpriseId != null">
enterprise_id = #{enterpriseId,jdbcType=INTEGER}, enterprise_id = #{enterpriseId,jdbcType=INTEGER},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
...@@ -98,7 +95,7 @@ ...@@ -98,7 +95,7 @@
update tab_sys_temp_store_condition update tab_sys_temp_store_condition
set store_widget_id = #{storeWidgetId,jdbcType=INTEGER}, set store_widget_id = #{storeWidgetId,jdbcType=INTEGER},
enterprise_id = #{enterpriseId,jdbcType=INTEGER}, enterprise_id = #{enterpriseId,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP} update_time = #{updateTime,jdbcType=TIMESTAMP}
where temp_store_condition_id = #{tempStoreConditionId,jdbcType=INTEGER} where temp_store_condition_id = #{tempStoreConditionId,jdbcType=INTEGER}
...@@ -110,6 +107,6 @@ ...@@ -110,6 +107,6 @@
from tab_sys_temp_store_condition from tab_sys_temp_store_condition
where enterprise_id = #{enterpriseId} where enterprise_id = #{enterpriseId}
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
<result column="account_group_id" jdbcType="INTEGER" property="accountGroupId" /> <result column="account_group_id" jdbcType="INTEGER" property="accountGroupId" />
<result column="data_auth_id" jdbcType="INTEGER" property="dataAuthId" /> <result column="data_auth_id" jdbcType="INTEGER" property="dataAuthId" />
<result column="function_auth_id" jdbcType="INTEGER" property="functionAuthId" /> <result column="function_auth_id" jdbcType="INTEGER" property="functionAuthId" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
user_id, user_name, enterprise_id, phone, nation_code, account_group_id, data_auth_id, user_id, user_name, enterprise_id, phone, nation_code, account_group_id, data_auth_id,
function_auth_id, status, create_time, update_time function_auth_id, delete_flag, create_time, update_time
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
...@@ -24,18 +24,15 @@ ...@@ -24,18 +24,15 @@
from tab_sys_user from tab_sys_user
where user_id = #{userId,jdbcType=INTEGER} where user_id = #{userId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_sys_user
where user_id = #{userId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.cloud.entity.TabSysUser" useGeneratedKeys="true" keyProperty="userId"> <insert id="insert" parameterType="com.gic.cloud.entity.TabSysUser" useGeneratedKeys="true" keyProperty="userId">
insert into tab_sys_user (user_id, user_name, enterprise_id, insert into tab_sys_user (user_id, user_name, enterprise_id,
phone, nation_code, account_group_id, phone, nation_code, account_group_id,
data_auth_id, function_auth_id, status, data_auth_id, function_auth_id, delete_flag,
create_time, update_time) create_time, update_time)
values (#{userId,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=INTEGER}, values (#{userId,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=INTEGER},
#{phone,jdbcType=VARCHAR}, #{nationCode,jdbcType=VARCHAR}, #{accountGroupId,jdbcType=INTEGER}, #{phone,jdbcType=VARCHAR}, #{nationCode,jdbcType=VARCHAR}, #{accountGroupId,jdbcType=INTEGER},
#{dataAuthId,jdbcType=INTEGER}, #{functionAuthId,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{dataAuthId,jdbcType=INTEGER}, #{functionAuthId,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.cloud.entity.TabSysUser"> <insert id="insertSelective" parameterType="com.gic.cloud.entity.TabSysUser">
...@@ -65,8 +62,8 @@ ...@@ -65,8 +62,8 @@
<if test="functionAuthId != null"> <if test="functionAuthId != null">
function_auth_id, function_auth_id,
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status, delete_flag,
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time, create_time,
...@@ -100,8 +97,8 @@ ...@@ -100,8 +97,8 @@
<if test="functionAuthId != null"> <if test="functionAuthId != null">
#{functionAuthId,jdbcType=INTEGER}, #{functionAuthId,jdbcType=INTEGER},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
#{status,jdbcType=INTEGER}, #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
...@@ -135,8 +132,8 @@ ...@@ -135,8 +132,8 @@
<if test="functionAuthId != null"> <if test="functionAuthId != null">
function_auth_id = #{functionAuthId,jdbcType=INTEGER}, function_auth_id = #{functionAuthId,jdbcType=INTEGER},
</if> </if>
<if test="status != null"> <if test="deleteFlag != null">
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
...@@ -156,7 +153,7 @@ ...@@ -156,7 +153,7 @@
account_group_id = #{accountGroupId,jdbcType=INTEGER}, account_group_id = #{accountGroupId,jdbcType=INTEGER},
data_auth_id = #{dataAuthId,jdbcType=INTEGER}, data_auth_id = #{dataAuthId,jdbcType=INTEGER},
function_auth_id = #{functionAuthId,jdbcType=INTEGER}, function_auth_id = #{functionAuthId,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER}, delete_flag = #{deleteFlag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP} update_time = #{updateTime,jdbcType=TIMESTAMP}
where user_id = #{userId,jdbcType=INTEGER} where user_id = #{userId,jdbcType=INTEGER}
...@@ -170,25 +167,25 @@ ...@@ -170,25 +167,25 @@
<if test="userId != null"> <if test="userId != null">
and user_id &lt;&gt; #{userId} and user_id &lt;&gt; #{userId}
</if> </if>
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
</select> </select>
<update id="deleteUser"> <update id="deleteUser">
update tab_sys_user set status = 0 update tab_sys_user set delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@DELETE_STATUS}
where user_id = #{userId} where user_id = #{userId}
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
</update> </update>
<update id="deleteUserByAccountGroupId"> <update id="deleteUserByAccountGroupId">
update tab_sys_user set status = 0 update tab_sys_user set delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@DELETE_STATUS}
where account_group_id = #{accountGroupId} where account_group_id = #{accountGroupId}
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
</update> </update>
<select id="pageUser" parameterType="com.gic.cloud.qo.UserQo" resultMap="BaseResultMap"> <select id="pageUser" parameterType="com.gic.cloud.qo.UserQo" resultMap="BaseResultMap">
select <include refid="Base_Column_List"></include> select <include refid="Base_Column_List"></include>
from tab_sys_user from tab_sys_user
where status = 1 where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
<if test="enterpriseId != null"> <if test="enterpriseId != null">
and enterprise_id = #{enterpriseId} and enterprise_id = #{enterpriseId}
</if> </if>
...@@ -209,7 +206,7 @@ ...@@ -209,7 +206,7 @@
<update id="bulkTransferAccountGroup"> <update id="bulkTransferAccountGroup">
update tab_sys_user set account_group_id = #{targetAccountGroupId} update tab_sys_user set account_group_id = #{targetAccountGroupId}
where status = 1 where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
and user_id in and user_id in
<foreach collection="userIdList" index="index" item="item" open="(" separator="," close=")"> <foreach collection="userIdList" index="index" item="item" open="(" separator="," close=")">
#{item} #{item}
...@@ -220,7 +217,7 @@ ...@@ -220,7 +217,7 @@
select account_group_id accountGroupId, count(user_id) memberCount select account_group_id accountGroupId, count(user_id) memberCount
from tab_sys_user from tab_sys_user
where enterprise_id = #{enterpriseId} where enterprise_id = #{enterpriseId}
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
group by account_group_id group by account_group_id
</select> </select>
...@@ -229,14 +226,14 @@ ...@@ -229,14 +226,14 @@
from tab_sys_user from tab_sys_user
where nation_code = #{nationCode} where nation_code = #{nationCode}
and phone = #{phone} and phone = #{phone}
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
</select> </select>
<select id="countGroupByFunctionAuthId" resultType="com.gic.cloud.dto.UserDTO"> <select id="countGroupByFunctionAuthId" resultType="com.gic.cloud.dto.UserDTO">
select function_auth_id functionAuthId, count(user_id) memberCount select function_auth_id functionAuthId, count(user_id) memberCount
from tab_sys_user from tab_sys_user
where enterprise_id = #{enterpriseId} where enterprise_id = #{enterpriseId}
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
<if test="functionIdList != null and functionIdList.size() > 0"> <if test="functionIdList != null and functionIdList.size() > 0">
and function_auth_id in and function_auth_id in
<foreach collection="functionIdList" index="index" item="item" open="(" separator="," close=")"> <foreach collection="functionIdList" index="index" item="item" open="(" separator="," close=")">
...@@ -250,7 +247,7 @@ ...@@ -250,7 +247,7 @@
select data_auth_id dataAuthId, count(user_id) memberCount select data_auth_id dataAuthId, count(user_id) memberCount
from tab_sys_user from tab_sys_user
where enterprise_id = #{enterpriseId} where enterprise_id = #{enterpriseId}
and status = 1 and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
<if test="dataAuthIdList != null and dataAuthIdList.size() > 0"> <if test="dataAuthIdList != null and dataAuthIdList.size() > 0">
and data_auth_id in and data_auth_id in
<foreach collection="dataAuthIdList" index="index" item="item" open="(" separator="," close=")"> <foreach collection="dataAuthIdList" index="index" item="item" open="(" separator="," close=")">
......
...@@ -17,10 +17,7 @@ ...@@ -17,10 +17,7 @@
from tab_update_tips from tab_update_tips
where update_tips_id = #{updateTipsId,jdbcType=INTEGER} where update_tips_id = #{updateTipsId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tab_update_tips
where update_tips_id = #{updateTipsId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.cloud.entity.TabUpdateTips"> <insert id="insert" parameterType="com.gic.cloud.entity.TabUpdateTips">
insert into tab_update_tips (update_tips_id, user_id, business_id, insert into tab_update_tips (update_tips_id, user_id, business_id,
show_status, type) show_status, type)
......
...@@ -261,6 +261,7 @@ public class MemberCloudDataController { ...@@ -261,6 +261,7 @@ public class MemberCloudDataController {
.setPortraitCode("1") .setPortraitCode("1")
.setSort(1) .setSort(1)
.setStatus(1) .setStatus(1)
.setDeleteFlag(0)
.setPortraitName("会员等级")); .setPortraitName("会员等级"));
list.add(new EnterprisePortraitRelDTO() list.add(new EnterprisePortraitRelDTO()
.setCreateTime(new Date()) .setCreateTime(new Date())
...@@ -270,6 +271,7 @@ public class MemberCloudDataController { ...@@ -270,6 +271,7 @@ public class MemberCloudDataController {
.setPortraitCode("2") .setPortraitCode("2")
.setSort(2) .setSort(2)
.setStatus(1) .setStatus(1)
.setDeleteFlag(0)
.setPortraitName("性别")); .setPortraitName("性别"));
list.add(new EnterprisePortraitRelDTO() list.add(new EnterprisePortraitRelDTO()
.setCreateTime(new Date()) .setCreateTime(new Date())
...@@ -279,6 +281,7 @@ public class MemberCloudDataController { ...@@ -279,6 +281,7 @@ public class MemberCloudDataController {
.setPortraitCode("3") .setPortraitCode("3")
.setSort(3) .setSort(3)
.setStatus(1) .setStatus(1)
.setDeleteFlag(0)
.setPortraitName("年龄段")); .setPortraitName("年龄段"));
list.add(new EnterprisePortraitRelDTO() list.add(new EnterprisePortraitRelDTO()
.setCreateTime(new Date()) .setCreateTime(new Date())
...@@ -288,6 +291,7 @@ public class MemberCloudDataController { ...@@ -288,6 +291,7 @@ public class MemberCloudDataController {
.setPortraitCode("4") .setPortraitCode("4")
.setSort(4) .setSort(4)
.setStatus(1) .setStatus(1)
.setDeleteFlag(0)
.setPortraitName("4开卡渠道")); .setPortraitName("4开卡渠道"));
list.add(new EnterprisePortraitRelDTO() list.add(new EnterprisePortraitRelDTO()
.setCreateTime(new Date()) .setCreateTime(new Date())
...@@ -297,6 +301,7 @@ public class MemberCloudDataController { ...@@ -297,6 +301,7 @@ public class MemberCloudDataController {
.setPortraitCode("5") .setPortraitCode("5")
.setSort(5) .setSort(5)
.setStatus(1) .setStatus(1)
.setDeleteFlag(0)
.setPortraitName("生日月份")); .setPortraitName("生日月份"));
list.add(new EnterprisePortraitRelDTO() list.add(new EnterprisePortraitRelDTO()
.setCreateTime(new Date()) .setCreateTime(new Date())
...@@ -306,6 +311,7 @@ public class MemberCloudDataController { ...@@ -306,6 +311,7 @@ public class MemberCloudDataController {
.setPortraitCode("6") .setPortraitCode("6")
.setSort(6) .setSort(6)
.setStatus(1) .setStatus(1)
.setDeleteFlag(0)
.setPortraitName("星座名称")); .setPortraitName("星座名称"));
enterprisePortraitRelApiService.insertForeach(list); enterprisePortraitRelApiService.insertForeach(list);
ServiceResponse<List<EnterprisePortraitRelDTO>> portraitFieldRes = enterprisePortraitRelApiService.listPortraitField(enterpriseId, 1, params.getDataStatus()); ServiceResponse<List<EnterprisePortraitRelDTO>> portraitFieldRes = enterprisePortraitRelApiService.listPortraitField(enterpriseId, 1, params.getDataStatus());
......
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