Merge pull request 'lvleigang' (#39) from lvleigang into dev
Reviewed-on: http://192.168.2.237:3000/root/kangarooDataCenterV3/pulls/39
This commit is contained in:
commit
e2b3c496cd
|
@ -0,0 +1,3 @@
|
||||||
|
ALTER TABLE mdm_module_distribute ADD COLUMN update_api VARCHAR(50) DEFAULT NULL COMMENT '修改接口';
|
||||||
|
ALTER TABLE mdm_module_distribute ADD COLUMN enabled_state CHAR(1) DEFAULT NULL COMMENT '启用停用 0、停用1、启用';
|
||||||
|
COMMIT;
|
|
@ -1,83 +0,0 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity;
|
|
||||||
import com.hzya.frame.web.entity.BaseEntity;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class DbFiledsDto {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 1\修改 2、新增
|
|
||||||
*/
|
|
||||||
private String dataType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 中文名
|
|
||||||
*/
|
|
||||||
private String chName;
|
|
||||||
/**
|
|
||||||
* 英文名
|
|
||||||
*/
|
|
||||||
private String enName;
|
|
||||||
/**
|
|
||||||
* 字段类型 1、BIGINT 2、DECIMAL 3、VARCHAR 4、DATETIME
|
|
||||||
*/
|
|
||||||
private String filedType;
|
|
||||||
/**
|
|
||||||
* 长度
|
|
||||||
*/
|
|
||||||
private String filedLength;
|
|
||||||
|
|
||||||
public DbFiledsDto() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public DbFiledsDto(String dataType,String chName, String enName, String filedType, String filedLength) {
|
|
||||||
this.dataType = dataType;
|
|
||||||
this.chName = chName;
|
|
||||||
this.enName = enName;
|
|
||||||
this.filedType = filedType;
|
|
||||||
this.filedLength = filedLength;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getChName() {
|
|
||||||
return chName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setChName(String chName) {
|
|
||||||
this.chName = chName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getEnName() {
|
|
||||||
return enName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEnName(String enName) {
|
|
||||||
this.enName = enName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFiledType() {
|
|
||||||
return filedType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFiledType(String filedType) {
|
|
||||||
this.filedType = filedType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFiledLength() {
|
|
||||||
return filedLength;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFiledLength(String filedLength) {
|
|
||||||
this.filedLength = filedLength;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDataType() {
|
|
||||||
return dataType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDataType(String dataType) {
|
|
||||||
this.dataType = dataType;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,69 +0,0 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
|
||||||
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class MdmDataDto {
|
|
||||||
|
|
||||||
private String id;
|
|
||||||
private String tableName;
|
|
||||||
private String documentRule;
|
|
||||||
private Integer documentRuleNum;
|
|
||||||
/**
|
|
||||||
* 类型 1、主表 2、明细
|
|
||||||
*/
|
|
||||||
private String dbType;
|
|
||||||
|
|
||||||
private List<MdmDataFiledDto> mdmDataFiledDtos;
|
|
||||||
|
|
||||||
public String getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(String id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTableName() {
|
|
||||||
return tableName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTableName(String tableName) {
|
|
||||||
this.tableName = tableName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmDataFiledDto> getMdmDataFiledDtos() {
|
|
||||||
return mdmDataFiledDtos;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmDataFiledDtos(List<MdmDataFiledDto> mdmDataFiledDtos) {
|
|
||||||
this.mdmDataFiledDtos = mdmDataFiledDtos;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDocumentRule() {
|
|
||||||
return documentRule;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDocumentRule(String documentRule) {
|
|
||||||
this.documentRule = documentRule;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getDocumentRuleNum() {
|
|
||||||
return documentRuleNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDocumentRuleNum(Integer documentRuleNum) {
|
|
||||||
this.documentRuleNum = documentRuleNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDbType() {
|
|
||||||
return dbType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDbType(String dbType) {
|
|
||||||
this.dbType = dbType;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
|
||||||
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class MdmDataFiledDto {
|
|
||||||
|
|
||||||
private String filedsName;
|
|
||||||
private String filedsValue;
|
|
||||||
|
|
||||||
public String getFiledsName() {
|
|
||||||
return filedsName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFiledsName(String filedsName) {
|
|
||||||
this.filedsName = filedsName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFiledsValue() {
|
|
||||||
return filedsValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFiledsValue(String filedsValue) {
|
|
||||||
this.filedsValue = filedsValue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class MdmDbFiledVo {
|
|
||||||
private String id;
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
public String getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(String id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MdmDbFiledVo() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public MdmDbFiledVo(String id, String name) {
|
|
||||||
this.id = id;
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,25 +1,19 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
package com.hzya.frame.mdm.entity;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity;
|
import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class MdmDbVo {
|
public class MdmDbVo {
|
||||||
|
|
||||||
|
//单据编码规则
|
||||||
|
private List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntityList;
|
||||||
//主数据主表
|
//主数据主表
|
||||||
private MdmModuleDbEntity mainMdmModuleDb;
|
private MdmModuleDbEntity mainMdmModuleDb;
|
||||||
//主数据子表
|
//主数据子表
|
||||||
private List<MdmModuleDbEntity> sublistMdmModuleDb;
|
private List<MdmModuleDbEntity> sublistMdmModuleDb;
|
||||||
//控件字段规则属性
|
|
||||||
private List<MdmModuleDbFiledsRuleFilesEntity> moduleDbFiledsRuleFiles;
|
|
||||||
//单据编码规则
|
|
||||||
private List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntityList;
|
|
||||||
|
|
||||||
|
|
||||||
public List<MdmTableCodeRuleEntity> getMdmTableCodeRuleEntityList() {
|
public List<MdmTableCodeRuleEntity> getMdmTableCodeRuleEntityList() {
|
||||||
|
@ -30,14 +24,6 @@ public class MdmDbVo {
|
||||||
this.mdmTableCodeRuleEntityList = mdmTableCodeRuleEntityList;
|
this.mdmTableCodeRuleEntityList = mdmTableCodeRuleEntityList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<MdmModuleDbFiledsRuleFilesEntity> getModuleDbFiledsRuleFiles() {
|
|
||||||
return moduleDbFiledsRuleFiles;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setModuleDbFiledsRuleFiles(List<MdmModuleDbFiledsRuleFilesEntity> moduleDbFiledsRuleFiles) {
|
|
||||||
this.moduleDbFiledsRuleFiles = moduleDbFiledsRuleFiles;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MdmModuleDbEntity getMainMdmModuleDb() {
|
public MdmModuleDbEntity getMainMdmModuleDb() {
|
||||||
return mainMdmModuleDb;
|
return mainMdmModuleDb;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,41 +0,0 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class MdmDetailViewVo {
|
|
||||||
//模版信息
|
|
||||||
private MdmModuleEntity mdmModuleEntity;
|
|
||||||
//主数据主表
|
|
||||||
private MdmModuleDbEntity mainMdmModuleDb;
|
|
||||||
//主数据子表
|
|
||||||
private List<MdmModuleDbEntity> sublistMdmModuleDb;
|
|
||||||
|
|
||||||
public MdmModuleEntity getMdmModuleEntity() {
|
|
||||||
return mdmModuleEntity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmModuleEntity(MdmModuleEntity mdmModuleEntity) {
|
|
||||||
this.mdmModuleEntity = mdmModuleEntity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MdmModuleDbEntity getMainMdmModuleDb() {
|
|
||||||
return mainMdmModuleDb;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMainMdmModuleDb(MdmModuleDbEntity mainMdmModuleDb) {
|
|
||||||
this.mainMdmModuleDb = mainMdmModuleDb;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmModuleDbEntity> getSublistMdmModuleDb() {
|
|
||||||
return sublistMdmModuleDb;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSublistMdmModuleDb(List<MdmModuleDbEntity> sublistMdmModuleDb) {
|
|
||||||
this.sublistMdmModuleDb = sublistMdmModuleDb;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
|
||||||
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class MdmDistributeDto {
|
|
||||||
|
|
||||||
//id
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private List<MdmModuleDistributeEntity> mdmModuleDistributeEntities;
|
|
||||||
|
|
||||||
public List<MdmModuleDistributeEntity> getMdmModuleDistributeEntities() {
|
|
||||||
return mdmModuleDistributeEntities;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmModuleDistributeEntities(List<MdmModuleDistributeEntity> mdmModuleDistributeEntities) {
|
|
||||||
this.mdmModuleDistributeEntities = mdmModuleDistributeEntities;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(String id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,53 +0,0 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
|
||||||
|
|
||||||
import com.hzya.frame.web.entity.BaseEntity;
|
|
||||||
|
|
||||||
public class MdmDistributeEntity extends BaseEntity {
|
|
||||||
|
|
||||||
private String tableName;
|
|
||||||
private String formmainId;
|
|
||||||
private String appId;
|
|
||||||
private String status;//1、发送成功 2、发送中 3、发送失败 4、未发送
|
|
||||||
private String msg;
|
|
||||||
|
|
||||||
public String getTableName() {
|
|
||||||
return tableName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTableName(String tableName) {
|
|
||||||
this.tableName = tableName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFormmainId() {
|
|
||||||
return formmainId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFormmainId(String formmainId) {
|
|
||||||
this.formmainId = formmainId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAppId() {
|
|
||||||
return appId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAppId(String appId) {
|
|
||||||
this.appId = appId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStatus(String status) {
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMsg() {
|
|
||||||
return msg;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMsg(String msg) {
|
|
||||||
this.msg = msg;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,55 +0,0 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
|
||||||
|
|
||||||
public class MdmDistributeVo {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 数据
|
|
||||||
*/
|
|
||||||
private String formmainId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 应用id
|
|
||||||
*/
|
|
||||||
private String appId;
|
|
||||||
/**
|
|
||||||
* 状态 1、发送成功 2、发送中 3、发送失败 4、未发送
|
|
||||||
*/
|
|
||||||
private String status;
|
|
||||||
/**
|
|
||||||
*描述
|
|
||||||
*/
|
|
||||||
private String msg;
|
|
||||||
|
|
||||||
public String getFormmainId() {
|
|
||||||
return formmainId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFormmainId(String formmainId) {
|
|
||||||
this.formmainId = formmainId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAppId() {
|
|
||||||
return appId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAppId(String appId) {
|
|
||||||
this.appId = appId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStatus(String status) {
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMsg() {
|
|
||||||
return msg;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMsg(String msg) {
|
|
||||||
this.msg = msg;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,38 +2,14 @@ package com.hzya.frame.mdm.entity;
|
||||||
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity;
|
import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class MdmDto {
|
public class MdmDto {
|
||||||
|
|
||||||
//id
|
|
||||||
private String id;
|
|
||||||
//3、新增4、修改 5、查看
|
|
||||||
private String showType;
|
|
||||||
//分页
|
|
||||||
private Integer pageNum;
|
|
||||||
private Integer pageSize;
|
|
||||||
/**
|
|
||||||
* 显示字段
|
|
||||||
*/
|
|
||||||
private String viewFiled;
|
|
||||||
/**
|
|
||||||
* 上级id字段
|
|
||||||
*/
|
|
||||||
private String upIdFiled;
|
|
||||||
//主数据名称
|
|
||||||
private String mdmName;
|
|
||||||
//主数据编码
|
//主数据编码
|
||||||
private Integer mdmCode;
|
private Long mdmCode;
|
||||||
//主数据类型
|
|
||||||
private String mdmType;
|
|
||||||
//描述
|
|
||||||
private String remark;
|
|
||||||
//描述
|
|
||||||
private String[] ids;
|
|
||||||
//单据编码规则
|
//单据编码规则
|
||||||
private List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntityList;
|
private List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntityList;
|
||||||
//主数据主表
|
//主数据主表
|
||||||
|
@ -41,29 +17,20 @@ public class MdmDto {
|
||||||
//主数据子表
|
//主数据子表
|
||||||
private List<MdmModuleDbEntity> sublistMdmModuleDb;
|
private List<MdmModuleDbEntity> sublistMdmModuleDb;
|
||||||
|
|
||||||
private String tableName;
|
public Long getMdmCode() {
|
||||||
private String value;
|
return mdmCode;
|
||||||
|
|
||||||
private String label;
|
|
||||||
private String lableValue;
|
|
||||||
|
|
||||||
private String upId;
|
|
||||||
|
|
||||||
|
|
||||||
public String getLableValue() {
|
|
||||||
return lableValue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLableValue(String lableValue) {
|
public void setMdmCode(Long mdmCode) {
|
||||||
this.lableValue = lableValue;
|
this.mdmCode = mdmCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getValue() {
|
public List<MdmTableCodeRuleEntity> getMdmTableCodeRuleEntityList() {
|
||||||
return value;
|
return mdmTableCodeRuleEntityList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setValue(String value) {
|
public void setMdmTableCodeRuleEntityList(List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntityList) {
|
||||||
this.value = value;
|
this.mdmTableCodeRuleEntityList = mdmTableCodeRuleEntityList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MdmModuleDbEntity getMainMdmModuleDb() {
|
public MdmModuleDbEntity getMainMdmModuleDb() {
|
||||||
|
@ -81,125 +48,5 @@ public class MdmDto {
|
||||||
public void setSublistMdmModuleDb(List<MdmModuleDbEntity> sublistMdmModuleDb) {
|
public void setSublistMdmModuleDb(List<MdmModuleDbEntity> sublistMdmModuleDb) {
|
||||||
this.sublistMdmModuleDb = sublistMdmModuleDb;
|
this.sublistMdmModuleDb = sublistMdmModuleDb;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMdmName() {
|
|
||||||
return mdmName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmName(String mdmName) {
|
|
||||||
this.mdmName = mdmName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getMdmCode() {
|
|
||||||
return mdmCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmCode(Integer mdmCode) {
|
|
||||||
this.mdmCode = mdmCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMdmType() {
|
|
||||||
return mdmType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmType(String mdmType) {
|
|
||||||
this.mdmType = mdmType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(String id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPageNum() {
|
|
||||||
return pageNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPageNum(Integer pageNum) {
|
|
||||||
this.pageNum = pageNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPageSize() {
|
|
||||||
return pageSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPageSize(Integer pageSize) {
|
|
||||||
this.pageSize = pageSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRemark() {
|
|
||||||
return remark;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRemark(String remark) {
|
|
||||||
this.remark = remark;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getShowType() {
|
|
||||||
return showType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setShowType(String showType) {
|
|
||||||
this.showType = showType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmTableCodeRuleEntity> getMdmTableCodeRuleEntityList() {
|
|
||||||
return mdmTableCodeRuleEntityList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmTableCodeRuleEntityList(List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntityList) {
|
|
||||||
this.mdmTableCodeRuleEntityList = mdmTableCodeRuleEntityList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getViewFiled() {
|
|
||||||
return viewFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setViewFiled(String viewFiled) {
|
|
||||||
this.viewFiled = viewFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUpIdFiled() {
|
|
||||||
return upIdFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUpIdFiled(String upIdFiled) {
|
|
||||||
this.upIdFiled = upIdFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTableName() {
|
|
||||||
return tableName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTableName(String tableName) {
|
|
||||||
this.tableName = tableName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLabel() {
|
|
||||||
return label;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLabel(String label) {
|
|
||||||
this.label = label;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUpId() {
|
|
||||||
return upId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUpId(String upId) {
|
|
||||||
this.upId = upId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String[] getIds() {
|
|
||||||
return ids;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIds(String[] ids) {
|
|
||||||
this.ids = ids;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,81 +0,0 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class MdmModuleViewDto {
|
|
||||||
|
|
||||||
//id
|
|
||||||
private String id;
|
|
||||||
//模版
|
|
||||||
private MdmModuleViewEntity mdmModuleViewEntity;
|
|
||||||
//新增
|
|
||||||
private List<MdmDbFiledVo> addFiled;
|
|
||||||
//修改
|
|
||||||
private List<MdmDbFiledVo> editFiled;
|
|
||||||
//查看
|
|
||||||
private List<MdmDbFiledVo> showFiled;
|
|
||||||
//查询
|
|
||||||
private List<MdmDbFiledVo> queryFiled;
|
|
||||||
//列表
|
|
||||||
private List<MdmDbFiledVo> listFiled;
|
|
||||||
|
|
||||||
public MdmModuleViewEntity getMdmModuleViewEntity() {
|
|
||||||
return mdmModuleViewEntity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmModuleViewEntity(MdmModuleViewEntity mdmModuleViewEntity) {
|
|
||||||
this.mdmModuleViewEntity = mdmModuleViewEntity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmDbFiledVo> getAddFiled() {
|
|
||||||
return addFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAddFiled(List<MdmDbFiledVo> addFiled) {
|
|
||||||
this.addFiled = addFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmDbFiledVo> getEditFiled() {
|
|
||||||
return editFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEditFiled(List<MdmDbFiledVo> editFiled) {
|
|
||||||
this.editFiled = editFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmDbFiledVo> getShowFiled() {
|
|
||||||
return showFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setShowFiled(List<MdmDbFiledVo> showFiled) {
|
|
||||||
this.showFiled = showFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmDbFiledVo> getQueryFiled() {
|
|
||||||
return queryFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setQueryFiled(List<MdmDbFiledVo> queryFiled) {
|
|
||||||
this.queryFiled = queryFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmDbFiledVo> getListFiled() {
|
|
||||||
return listFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setListFiled(List<MdmDbFiledVo> listFiled) {
|
|
||||||
this.listFiled = listFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(String id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,123 +0,0 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class MdmModuleViewVo {
|
|
||||||
|
|
||||||
|
|
||||||
//模版
|
|
||||||
private MdmModuleViewEntity mdmModuleViewEntity;
|
|
||||||
//新增
|
|
||||||
private List<MdmDbFiledVo> addFiled;
|
|
||||||
//修改
|
|
||||||
private List<MdmDbFiledVo> editFiled;
|
|
||||||
//查看
|
|
||||||
private List<MdmDbFiledVo> showFiled;
|
|
||||||
//查询
|
|
||||||
private List<MdmDbFiledVo> queryFiled;
|
|
||||||
//列表
|
|
||||||
private List<MdmDbFiledVo> listFiled;
|
|
||||||
|
|
||||||
//新增
|
|
||||||
private List<MdmModuleViewDetailEntity> dbAddFiled;
|
|
||||||
//修改
|
|
||||||
private List<MdmModuleViewDetailEntity> dbEditFiled;
|
|
||||||
//查看
|
|
||||||
private List<MdmModuleViewDetailEntity> dbShowFiled;
|
|
||||||
//查询
|
|
||||||
private List<MdmModuleViewDetailEntity> dbQueryFiled;
|
|
||||||
//列表
|
|
||||||
private List<MdmModuleViewDetailEntity> dbListFiled;
|
|
||||||
|
|
||||||
public List<MdmDbFiledVo> getAddFiled() {
|
|
||||||
return addFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAddFiled(List<MdmDbFiledVo> addFiled) {
|
|
||||||
this.addFiled = addFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmDbFiledVo> getEditFiled() {
|
|
||||||
return editFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEditFiled(List<MdmDbFiledVo> editFiled) {
|
|
||||||
this.editFiled = editFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmDbFiledVo> getShowFiled() {
|
|
||||||
return showFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setShowFiled(List<MdmDbFiledVo> showFiled) {
|
|
||||||
this.showFiled = showFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmDbFiledVo> getQueryFiled() {
|
|
||||||
return queryFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setQueryFiled(List<MdmDbFiledVo> queryFiled) {
|
|
||||||
this.queryFiled = queryFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmDbFiledVo> getListFiled() {
|
|
||||||
return listFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setListFiled(List<MdmDbFiledVo> listFiled) {
|
|
||||||
this.listFiled = listFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MdmModuleViewEntity getMdmModuleViewEntity() {
|
|
||||||
return mdmModuleViewEntity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmModuleViewEntity(MdmModuleViewEntity mdmModuleViewEntity) {
|
|
||||||
this.mdmModuleViewEntity = mdmModuleViewEntity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmModuleViewDetailEntity> getDbAddFiled() {
|
|
||||||
return dbAddFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDbAddFiled(List<MdmModuleViewDetailEntity> dbAddFiled) {
|
|
||||||
this.dbAddFiled = dbAddFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmModuleViewDetailEntity> getDbEditFiled() {
|
|
||||||
return dbEditFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDbEditFiled(List<MdmModuleViewDetailEntity> dbEditFiled) {
|
|
||||||
this.dbEditFiled = dbEditFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmModuleViewDetailEntity> getDbShowFiled() {
|
|
||||||
return dbShowFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDbShowFiled(List<MdmModuleViewDetailEntity> dbShowFiled) {
|
|
||||||
this.dbShowFiled = dbShowFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmModuleViewDetailEntity> getDbQueryFiled() {
|
|
||||||
return dbQueryFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDbQueryFiled(List<MdmModuleViewDetailEntity> dbQueryFiled) {
|
|
||||||
this.dbQueryFiled = dbQueryFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmModuleViewDetailEntity> getDbListFiled() {
|
|
||||||
return dbListFiled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDbListFiled(List<MdmModuleViewDetailEntity> dbListFiled) {
|
|
||||||
this.dbListFiled = dbListFiled;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,69 +0,0 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
|
||||||
|
|
||||||
|
|
||||||
import com.hzya.frame.sys.entity.TemplateKeyValue;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class MdmQuery {
|
|
||||||
|
|
||||||
//分页
|
|
||||||
private Integer pageNum;
|
|
||||||
private Integer pageSize;
|
|
||||||
//表名
|
|
||||||
private String tableName;
|
|
||||||
//查询条件
|
|
||||||
private List<TemplateKeyValue> queryCondition;
|
|
||||||
//返回字段
|
|
||||||
private List<String> returnField;
|
|
||||||
//明细表查询条件
|
|
||||||
private List<MdmQuery> detailQueryCondition;
|
|
||||||
|
|
||||||
public Integer getPageNum() {
|
|
||||||
return pageNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPageNum(Integer pageNum) {
|
|
||||||
this.pageNum = pageNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPageSize() {
|
|
||||||
return pageSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPageSize(Integer pageSize) {
|
|
||||||
this.pageSize = pageSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTableName() {
|
|
||||||
return tableName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTableName(String tableName) {
|
|
||||||
this.tableName = tableName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<TemplateKeyValue> getQueryCondition() {
|
|
||||||
return queryCondition;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setQueryCondition(List<TemplateKeyValue> queryCondition) {
|
|
||||||
this.queryCondition = queryCondition;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<String> getReturnField() {
|
|
||||||
return returnField;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setReturnField(List<String> returnField) {
|
|
||||||
this.returnField = returnField;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmQuery> getDetailQueryCondition() {
|
|
||||||
return detailQueryCondition;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDetailQueryCondition(List<MdmQuery> detailQueryCondition) {
|
|
||||||
this.detailQueryCondition = detailQueryCondition;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
|
||||||
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class MdmRoleDto {
|
|
||||||
|
|
||||||
//id
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
|
|
||||||
private List<MdmModuleRoleEntity> mdmModuleRoleEntities;
|
|
||||||
|
|
||||||
public List<MdmModuleRoleEntity> getMdmModuleRoleEntities() {
|
|
||||||
return mdmModuleRoleEntities;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmModuleRoleEntities(List<MdmModuleRoleEntity> mdmModuleRoleEntities) {
|
|
||||||
this.mdmModuleRoleEntities = mdmModuleRoleEntities;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(String id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
|
||||||
|
|
||||||
public class MdmViewButtonVo {
|
|
||||||
|
|
||||||
//按钮类型
|
|
||||||
private String buttonType;
|
|
||||||
//按钮名
|
|
||||||
private String buttonName;
|
|
||||||
|
|
||||||
public String getButtonType() {
|
|
||||||
return buttonType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setButtonType(String buttonType) {
|
|
||||||
this.buttonType = buttonType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getButtonName() {
|
|
||||||
return buttonName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setButtonName(String buttonName) {
|
|
||||||
this.buttonName = buttonName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MdmViewButtonVo() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public MdmViewButtonVo(String buttonType, String buttonName) {
|
|
||||||
this.buttonType = buttonType;
|
|
||||||
this.buttonName = buttonName;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,114 +0,0 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class MdmViewFiledVo {
|
|
||||||
|
|
||||||
//字段id
|
|
||||||
private String id;
|
|
||||||
//表名
|
|
||||||
private String dbName;
|
|
||||||
//类型 1、主表 2、明细
|
|
||||||
private String dbType;
|
|
||||||
//主数据模版ID
|
|
||||||
private String mdmId;
|
|
||||||
//模版数据库id
|
|
||||||
private String dbId;
|
|
||||||
//中文名
|
|
||||||
private String chName;
|
|
||||||
//英文名
|
|
||||||
private String enName;
|
|
||||||
//排序
|
|
||||||
private Integer sorts;
|
|
||||||
/**
|
|
||||||
* 字段类型 1、BIGINT 2、DECIMAL 3、VARCHAR 4、DATETIME
|
|
||||||
*/
|
|
||||||
private String filedType;
|
|
||||||
//字段规则
|
|
||||||
private List<MdmModuleDbFiledsRuleEntity> ruleList;
|
|
||||||
|
|
||||||
public String getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(String id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDbName() {
|
|
||||||
return dbName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDbName(String dbName) {
|
|
||||||
this.dbName = dbName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDbType() {
|
|
||||||
return dbType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDbType(String dbType) {
|
|
||||||
this.dbType = dbType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMdmId() {
|
|
||||||
return mdmId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmId(String mdmId) {
|
|
||||||
this.mdmId = mdmId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDbId() {
|
|
||||||
return dbId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDbId(String dbId) {
|
|
||||||
this.dbId = dbId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getChName() {
|
|
||||||
return chName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setChName(String chName) {
|
|
||||||
this.chName = chName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getEnName() {
|
|
||||||
return enName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEnName(String enName) {
|
|
||||||
this.enName = enName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmModuleDbFiledsRuleEntity> getRuleList() {
|
|
||||||
return ruleList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRuleList(List<MdmModuleDbFiledsRuleEntity> ruleList) {
|
|
||||||
this.ruleList = ruleList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSorts() {
|
|
||||||
return sorts;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSorts(Integer sorts) {
|
|
||||||
this.sorts = sorts;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFiledType() {
|
|
||||||
return filedType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFiledType(String filedType) {
|
|
||||||
this.filedType = filedType;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,73 +0,0 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity;
|
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class MdmViewVo {
|
|
||||||
|
|
||||||
private String id;
|
|
||||||
//模版信息
|
|
||||||
private MdmModuleEntity mdmModuleEntity;
|
|
||||||
//模版展示信息
|
|
||||||
private MdmModuleViewEntity mdmModuleViewEntity;
|
|
||||||
//查询条件
|
|
||||||
private List<MdmViewFiledVo> queryList;
|
|
||||||
//列表
|
|
||||||
private List<MdmViewFiledVo> listList;
|
|
||||||
//按钮
|
|
||||||
private List<MdmViewButtonVo> buttonList;
|
|
||||||
|
|
||||||
public List<MdmViewFiledVo> getQueryList() {
|
|
||||||
return queryList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setQueryList(List<MdmViewFiledVo> queryList) {
|
|
||||||
this.queryList = queryList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmViewFiledVo> getListList() {
|
|
||||||
return listList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setListList(List<MdmViewFiledVo> listList) {
|
|
||||||
this.listList = listList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmViewButtonVo> getButtonList() {
|
|
||||||
return buttonList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setButtonList(List<MdmViewButtonVo> buttonList) {
|
|
||||||
this.buttonList = buttonList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(String id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MdmModuleEntity getMdmModuleEntity() {
|
|
||||||
return mdmModuleEntity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmModuleEntity(MdmModuleEntity mdmModuleEntity) {
|
|
||||||
this.mdmModuleEntity = mdmModuleEntity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MdmModuleViewEntity getMdmModuleViewEntity() {
|
|
||||||
return mdmModuleViewEntity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmModuleViewEntity(MdmModuleViewEntity mdmModuleViewEntity) {
|
|
||||||
this.mdmModuleViewEntity = mdmModuleViewEntity;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,122 +0,0 @@
|
||||||
package com.hzya.frame.mdm.entity;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
public class MdmVo {
|
|
||||||
|
|
||||||
//id
|
|
||||||
private String id;
|
|
||||||
//主数据名称
|
|
||||||
private String mdmName;
|
|
||||||
//主数据编码
|
|
||||||
private String mdmCode;
|
|
||||||
//主数据类型 1、档案 2、单据
|
|
||||||
private String mdmType;
|
|
||||||
//主数据类型 1、档案 2、单据
|
|
||||||
private String mdmTypeName;
|
|
||||||
//描述
|
|
||||||
private String remark;
|
|
||||||
|
|
||||||
/** logo(地址或者id) */
|
|
||||||
private String mdmLogo;
|
|
||||||
private String createUserId;
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
private Date createTime;
|
|
||||||
private String modifyUserId;
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
private Date modifyTime;
|
|
||||||
|
|
||||||
public String getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(String id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMdmName() {
|
|
||||||
return mdmName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmName(String mdmName) {
|
|
||||||
this.mdmName = mdmName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMdmCode() {
|
|
||||||
return mdmCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmCode(String mdmCode) {
|
|
||||||
this.mdmCode = mdmCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMdmType() {
|
|
||||||
return mdmType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmType(String mdmType) {
|
|
||||||
this.mdmType = mdmType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRemark() {
|
|
||||||
return remark;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRemark(String remark) {
|
|
||||||
this.remark = remark;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMdmTypeName() {
|
|
||||||
return mdmTypeName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmTypeName(String mdmTypeName) {
|
|
||||||
this.mdmTypeName = mdmTypeName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCreateUserId() {
|
|
||||||
return createUserId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCreateUserId(String createUserId) {
|
|
||||||
this.createUserId = createUserId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getCreateTime() {
|
|
||||||
return createTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCreateTime(Date createTime) {
|
|
||||||
this.createTime = createTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getModifyUserId() {
|
|
||||||
return modifyUserId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setModifyUserId(String modifyUserId) {
|
|
||||||
this.modifyUserId = modifyUserId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getModifyTime() {
|
|
||||||
return modifyTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setModifyTime(Date modifyTime) {
|
|
||||||
this.modifyTime = modifyTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMdmLogo() {
|
|
||||||
return mdmLogo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmLogo(String mdmLogo) {
|
|
||||||
this.mdmLogo = mdmLogo;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,16 +1,8 @@
|
||||||
package com.hzya.frame.mdm.mdmModule.dao;
|
package com.hzya.frame.mdm.mdmModule.dao;
|
||||||
|
|
||||||
import com.hzya.frame.mdm.entity.MdmDataDto;
|
|
||||||
import com.hzya.frame.mdm.entity.MdmDistributeEntity;
|
|
||||||
import com.hzya.frame.mdm.entity.MdmDto;
|
|
||||||
import com.hzya.frame.mdm.entity.MdmQuery;
|
|
||||||
import com.hzya.frame.mdm.entity.MdmVo;
|
|
||||||
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
||||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
import com.hzya.frame.sys.entity.FormmainDeleteDto;
|
|
||||||
import com.hzya.frame.sys.entity.ModuleDto;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@ -18,41 +10,15 @@ import java.util.Map;
|
||||||
* 主数据模版(mdm_module: table)表数据库访问层
|
* 主数据模版(mdm_module: table)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:25:41
|
* @since 2024-06-03 08:46:29
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleDao extends IBaseDao<MdmModuleEntity, String> {
|
public interface IMdmModuleDao extends IBaseDao<MdmModuleEntity, String> {
|
||||||
|
|
||||||
List<MdmVo> queryMdm(MdmDto entity);
|
List<MdmModuleEntity> queryMdm(MdmModuleEntity entity);
|
||||||
|
|
||||||
|
MdmModuleEntity getByMdmCode(Long mdmCode);
|
||||||
|
|
||||||
Integer checkTable(Map<String, String> maps);
|
Integer checkTable(Map<String, String> maps);
|
||||||
|
|
||||||
Integer createTable(Map<String, Object> maps);
|
|
||||||
Integer createTableDistribute(Map<String, Object> maps);
|
|
||||||
Integer alterTable(Map<String, Object> maps);
|
|
||||||
Integer alterTableName(Map<String, String> maps);
|
|
||||||
|
|
||||||
List<HashMap<String, Object>> queryMdmShowData(MdmQuery entity);
|
|
||||||
|
|
||||||
Integer checkData(Map<String, String> map);
|
|
||||||
|
|
||||||
Integer updateForm(MdmDataDto mdmDataDto);
|
|
||||||
Integer saveForm(MdmDataDto mdmDataDto);
|
|
||||||
|
|
||||||
Integer deleteTemplateById(FormmainDeleteDto formmainDeleteDto);
|
|
||||||
|
|
||||||
List<HashMap<String, Object>> queryDataAll(MdmDto entity);
|
|
||||||
|
|
||||||
List<HashMap<String, Object>> queryTemplateData(ModuleDto entity);
|
|
||||||
|
|
||||||
HashMap<String, Object> queryTemplateDataOne(MdmDto entity);
|
|
||||||
|
|
||||||
List<HashMap<String, Object>> queryTemplateDataMore(MdmDto entity);
|
|
||||||
List<HashMap<String, Object>> querySelectData(MdmDto entity);
|
|
||||||
|
|
||||||
Integer deleteChilder(FormmainDeleteDto formmainDeleteDto);
|
|
||||||
|
|
||||||
Integer saveDistribute(MdmDistributeEntity mdmDistributeEntity);
|
|
||||||
|
|
||||||
Integer updateDistribute(MdmDistributeEntity mdmDistributeEntity);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,10 @@
|
||||||
package com.hzya.frame.mdm.mdmModule.dao.impl;
|
package com.hzya.frame.mdm.mdmModule.dao.impl;
|
||||||
|
|
||||||
import com.hzya.frame.mdm.entity.MdmDataDto;
|
|
||||||
import com.hzya.frame.mdm.entity.MdmDistributeEntity;
|
|
||||||
import com.hzya.frame.mdm.entity.MdmDto;
|
|
||||||
import com.hzya.frame.mdm.entity.MdmQuery;
|
|
||||||
import com.hzya.frame.mdm.entity.MdmVo;
|
|
||||||
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
||||||
import com.hzya.frame.mdm.mdmModule.dao.IMdmModuleDao;
|
import com.hzya.frame.mdm.mdmModule.dao.IMdmModuleDao;
|
||||||
import com.hzya.frame.sys.entity.FormmainDeleteDto;
|
|
||||||
import com.hzya.frame.sys.entity.ModuleDto;
|
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@ -20,126 +12,28 @@ import java.util.Map;
|
||||||
* 主数据模版(MdmModule)表数据库访问层
|
* 主数据模版(MdmModule)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:25:42
|
* @since 2024-06-03 08:46:29
|
||||||
*/
|
*/
|
||||||
@Repository(value = "MdmModuleDaoImpl")
|
@Repository(value = "MdmModuleDaoImpl")
|
||||||
public class MdmModuleDaoImpl extends MybatisGenericDao<MdmModuleEntity, String> implements IMdmModuleDao {
|
public class MdmModuleDaoImpl extends MybatisGenericDao<MdmModuleEntity, String> implements IMdmModuleDao{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<MdmVo> queryMdm(MdmDto entity) {
|
public List<MdmModuleEntity> queryMdm(MdmModuleEntity entity) {
|
||||||
List<MdmVo> o = (List<MdmVo>) super.selectList(getSqlIdPrifx() + "queryMdm", entity);
|
List<MdmModuleEntity> o = (List<MdmModuleEntity>) super.selectList(getSqlIdPrifx() + "queryMdm", entity);
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MdmModuleEntity getByMdmCode(Long mdmCode) {
|
||||||
|
MdmModuleEntity mdmModuleEntity = (MdmModuleEntity) super.query(getSqlIdPrifx() + "getByMdmCode",mdmCode);
|
||||||
|
return mdmModuleEntity;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer checkTable(Map<String, String> maps) {
|
public Integer checkTable(Map<String, String> maps) {
|
||||||
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "checkTable", maps);
|
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "checkTable", maps);
|
||||||
return o;
|
return o;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Integer createTable(Map<String, Object> maps) {
|
|
||||||
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "createTable", maps);
|
|
||||||
return o;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public Integer createTableDistribute(Map<String, Object> maps) {
|
|
||||||
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "createTableDistribute", maps);
|
|
||||||
return o;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public Integer alterTable(Map<String, Object> maps) {
|
|
||||||
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "alterTable", maps);
|
|
||||||
return o;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Integer alterTableName(Map<String, String> maps) {
|
|
||||||
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "alterTableName", maps);
|
|
||||||
return o;
|
|
||||||
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public Integer checkData(Map<String, String> maps) {
|
|
||||||
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "checkData", maps);
|
|
||||||
return o;
|
|
||||||
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public List<HashMap<String, Object>> querySelectData(MdmDto entity) {
|
|
||||||
List<HashMap<String, Object>> o = (List<HashMap<String, Object>>) super.selectList(getSqlIdPrifx() + "querySelectData", entity);
|
|
||||||
return o;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<HashMap<String, Object>> queryTemplateDataMore(MdmDto entity) {
|
|
||||||
List<HashMap<String, Object>> o = (List<HashMap<String, Object>>) super.selectList(getSqlIdPrifx() + "queryTemplateDataMore", entity);
|
|
||||||
return o;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<HashMap<String, Object>> queryMdmShowData(MdmQuery entity) {
|
|
||||||
List<HashMap<String, Object>> o = (List<HashMap<String, Object>>) super.selectList(getSqlIdPrifx() + "queryMdmShowData", entity);
|
|
||||||
return o;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public List<HashMap<String, Object>> queryDataAll(MdmDto entity) {
|
|
||||||
List<HashMap<String, Object>> o = (List<HashMap<String, Object>>) super.selectList(getSqlIdPrifx() + "queryDataAll", entity);
|
|
||||||
return o;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<HashMap<String, Object>> queryTemplateData(ModuleDto entity) {
|
|
||||||
List<HashMap<String, Object>> o = (List<HashMap<String, Object>>) super.selectList(getSqlIdPrifx() + "queryTemplateData", entity);
|
|
||||||
return o;
|
|
||||||
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public Integer updateForm(MdmDataDto mdmDataDto) {
|
|
||||||
Integer o = super.update(getSqlIdPrifx() + "updateForm", mdmDataDto);
|
|
||||||
return o;
|
|
||||||
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public Integer saveForm(MdmDataDto mdmDataDto) {
|
|
||||||
Integer o = super.update(getSqlIdPrifx() + "saveForm", mdmDataDto);
|
|
||||||
return o;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Integer deleteTemplateById(FormmainDeleteDto entity) {
|
|
||||||
Integer o = super.delete(getSqlIdPrifx() + "deleteTemplateById", entity);
|
|
||||||
return o;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Integer deleteChilder(FormmainDeleteDto entity) {
|
|
||||||
Integer o = super.delete(getSqlIdPrifx() + "deleteChilder", entity);
|
|
||||||
return o;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Integer saveDistribute(MdmDistributeEntity mdmDistributeEntity) {
|
|
||||||
Integer o = super.insert(getSqlIdPrifx() + "saveDistribute", mdmDistributeEntity);
|
|
||||||
return o;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public Integer updateDistribute(MdmDistributeEntity mdmDistributeEntity) {
|
|
||||||
Integer o = super.update(getSqlIdPrifx() + "updateDistribute", mdmDistributeEntity);
|
|
||||||
return o;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public HashMap<String, Object> queryTemplateDataOne(MdmDto entity) {
|
|
||||||
HashMap<String, Object> o = (HashMap<String, Object>) super.selectOne(getSqlIdPrifx() + "queryTemplateDataOne", entity);
|
|
||||||
return o;
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,36 +1,31 @@
|
||||||
package com.hzya.frame.mdm.mdmModule.entity;
|
package com.hzya.frame.mdm.mdmModule.entity;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import com.hzya.frame.web.entity.BaseEntity;
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主数据模版(MdmModule)实体类
|
* 主数据模版(MdmModule)实体类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:25:42
|
* @since 2024-06-03 08:46:29
|
||||||
*/
|
*/
|
||||||
public class MdmModuleEntity extends BaseEntity {
|
public class MdmModuleEntity extends BaseEntity {
|
||||||
|
|
||||||
|
/** 主数据名称 */
|
||||||
/** logo(地址或者id) */
|
private String mdmName;
|
||||||
private String mdmLogo;
|
/** logo */
|
||||||
/**
|
private String mdmLogo;
|
||||||
* 主数据名称
|
/** 主数据编码 */
|
||||||
*/
|
private Long mdmCode;
|
||||||
private String mdmName;
|
/** 主数据类型 1、档案 2、单据 */
|
||||||
/**
|
private String mdmType;
|
||||||
* 主数据编码
|
/** 描述 */
|
||||||
*/
|
private String remark;
|
||||||
private Integer mdmCode;
|
/** 公司id */
|
||||||
/**
|
private String companyId;
|
||||||
* 主数据类型 1、档案 2、单据
|
//创建人
|
||||||
*/
|
private String createUser;
|
||||||
private String mdmType;
|
//修改人
|
||||||
/**
|
private String modifyUser;
|
||||||
* 描述
|
|
||||||
*/
|
|
||||||
private String remark;
|
|
||||||
|
|
||||||
|
|
||||||
public String getMdmName() {
|
public String getMdmName() {
|
||||||
|
@ -41,11 +36,19 @@ public class MdmModuleEntity extends BaseEntity {
|
||||||
this.mdmName = mdmName;
|
this.mdmName = mdmName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getMdmCode() {
|
public String getMdmLogo() {
|
||||||
|
return mdmLogo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMdmLogo(String mdmLogo) {
|
||||||
|
this.mdmLogo = mdmLogo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getMdmCode() {
|
||||||
return mdmCode;
|
return mdmCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMdmCode(Integer mdmCode) {
|
public void setMdmCode(Long mdmCode) {
|
||||||
this.mdmCode = mdmCode;
|
this.mdmCode = mdmCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,12 +68,28 @@ public class MdmModuleEntity extends BaseEntity {
|
||||||
this.remark = remark;
|
this.remark = remark;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMdmLogo() {
|
public String getCompanyId() {
|
||||||
return mdmLogo;
|
return companyId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMdmLogo(String mdmLogo) {
|
public void setCompanyId(String companyId) {
|
||||||
this.mdmLogo = mdmLogo;
|
this.companyId = companyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getModifyUser() {
|
||||||
|
return modifyUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setModifyUser(String modifyUser) {
|
||||||
|
this.modifyUser = modifyUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateUser() {
|
||||||
|
return createUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateUser(String createUser) {
|
||||||
|
this.createUser = createUser;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,26 +2,29 @@
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.hzya.frame.mdm.mdmModule.dao.impl.MdmModuleDaoImpl">
|
<mapper namespace="com.hzya.frame.mdm.mdmModule.dao.impl.MdmModuleDaoImpl">
|
||||||
|
|
||||||
<resultMap id="get-MdmModuleEntity-result" type="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
<resultMap id="get-MdmModuleEntity-result" type="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity" >
|
||||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
<result property="mdmName" column="mdm_name" jdbcType="VARCHAR"/>
|
<result property="mdmName" column="mdm_name" jdbcType="VARCHAR"/>
|
||||||
<result property="mdmLogo" column="mdm_logo" jdbcType="VARCHAR"/>
|
<result property="mdmLogo" column="mdm_logo" jdbcType="VARCHAR"/>
|
||||||
<result property="mdmCode" column="mdm_code" jdbcType="INTEGER"/>
|
<result property="mdmCode" column="mdm_code" jdbcType="INTEGER"/>
|
||||||
<result property="mdmType" column="mdm_type" jdbcType="VARCHAR"/>
|
<result property="mdmType" column="mdm_type" jdbcType="VARCHAR"/>
|
||||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
<result property="createUser" column="createUser" jdbcType="VARCHAR"/>
|
||||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
<result property="modifyUser" column="modifyUser" jdbcType="VARCHAR"/>
|
||||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||||
</resultMap>
|
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||||
|
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
<!-- 查询的字段-->
|
<!-- 查询的字段-->
|
||||||
<sql id="MdmModuleEntity_Base_Column_List">
|
<sql id = "MdmModuleEntity_Base_Column_List">
|
||||||
id
|
id
|
||||||
,mdm_name
|
,mdm_name
|
||||||
,mdm_logo
|
,mdm_logo
|
||||||
,mdm_code
|
,mdm_code
|
||||||
,mdm_type
|
,mdm_type
|
||||||
,remark
|
,remark
|
||||||
|
@ -32,252 +35,245 @@
|
||||||
,modify_time
|
,modify_time
|
||||||
,sts
|
,sts
|
||||||
,org_id
|
,org_id
|
||||||
|
,company_id
|
||||||
</sql>
|
</sql>
|
||||||
<!--通过ID获取数据 -->
|
<!--通过ID获取数据 -->
|
||||||
<select id="entity_get" resultMap="get-MdmModuleEntity-result">
|
<select id="entity_get" resultMap="get-MdmModuleEntity-result">
|
||||||
select
|
select
|
||||||
<include refid="MdmModuleEntity_Base_Column_List" />
|
<include refid="MdmModuleEntity_Base_Column_List" />
|
||||||
from mdm_module where sts = 'Y' and id = #{id}
|
from mdm_module where id = #{ id } and sts='Y'
|
||||||
</select>
|
</select>
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="entity_list_base" resultMap="get-MdmModuleEntity-result"
|
<select id="entity_list_base" resultMap="get-MdmModuleEntity-result" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
select
|
||||||
select
|
<include refid="MdmModuleEntity_Base_Column_List" />
|
||||||
<include refid="MdmModuleEntity_Base_Column_List"/>
|
from mdm_module
|
||||||
from mdm_module
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
<if test="mdmName != null and mdmName != ''"> and mdm_name = #{mdmName} </if>
|
||||||
<if test="mdmName != null and mdmName != ''">and mdm_name = #{mdmName}</if>
|
<if test="mdmLogo != null and mdmLogo != ''"> and mdm_logo = #{mdmLogo} </if>
|
||||||
<if test="mdmLogo != null and mdmLogo != ''">and mdm_logo = #{mdmLogo}</if>
|
<if test="mdmCode != null"> and mdm_code = #{mdmCode} </if>
|
||||||
<if test="mdmCode != null ">and mdm_code = #{mdmCode}</if>
|
<if test="mdmType != null and mdmType != ''"> and mdm_type = #{mdmType} </if>
|
||||||
<if test="mdmType != null and mdmType != ''">and mdm_type = #{mdmType}</if>
|
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
||||||
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询符合条件的数量 -->
|
<!-- 查询符合条件的数量 -->
|
||||||
<select id="entity_count" resultType="Integer" parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||||
select count(1) from mdm_module
|
select count(1) from mdm_module
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="mdmName != null and mdmName != ''">and mdm_name = #{mdmName}</if>
|
<if test="mdmName != null and mdmName != ''"> and mdm_name = #{mdmName} </if>
|
||||||
<if test="mdmLogo != null and mdmLogo != ''">and mdm_logo = #{mdmLogo}</if>
|
<if test="mdmLogo != null and mdmLogo != ''"> and mdm_logo = #{mdmLogo} </if>
|
||||||
<if test="mdmCode != null ">and mdm_code = #{mdmCode}</if>
|
<if test="mdmCode != null"> and mdm_code = #{mdmCode} </if>
|
||||||
<if test="mdmType != null and mdmType != ''">and mdm_type = #{mdmType}</if>
|
<if test="mdmType != null and mdmType != ''"> and mdm_type = #{mdmType} </if>
|
||||||
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
<!-- 分页查询列表 采用like格式 -->
|
||||||
<select id="entity_list_like" resultMap="get-MdmModuleEntity-result"
|
<select id="entity_list_like" resultMap="get-MdmModuleEntity-result" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
select
|
||||||
select
|
<include refid="MdmModuleEntity_Base_Column_List" />
|
||||||
<include refid="MdmModuleEntity_Base_Column_List"/>
|
from mdm_module
|
||||||
from mdm_module
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||||
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
<if test="mdmName != null and mdmName != ''"> and mdm_name like concat('%',#{mdmName},'%') </if>
|
||||||
<if test="mdmName != null and mdmName != ''">and mdm_name like concat('%',#{mdmName},'%')</if>
|
<if test="mdmLogo != null and mdmLogo != ''"> and mdm_logo like concat('%',#{mdmLogo},'%') </if>
|
||||||
<if test="mdmLogo != null and mdmLogo != ''">and mdm_logo like concat('%',#{mdmLogo},'%')</if>
|
<if test="mdmCode != null"> and mdm_code like concat('%',#{mdmCode},'%') </if>
|
||||||
<if test="mdmCode != null ">and mdm_code like concat('%',#{mdmCode},'%')</if>
|
<if test="mdmType != null and mdmType != ''"> and mdm_type like concat('%',#{mdmType},'%') </if>
|
||||||
<if test="mdmType != null and mdmType != ''">and mdm_type like concat('%',#{mdmType},'%')</if>
|
<if test="remark != null and remark != ''"> and remark like concat('%',#{remark},'%') </if>
|
||||||
<if test="remark != null and remark != ''">and remark like concat('%',#{remark},'%')</if>
|
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||||
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||||
concat('%',#{create_user_id},'%')
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
||||||
</if>
|
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||||
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
|
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||||
concat('%',#{modify_user_id},'%')
|
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||||
</if>
|
|
||||||
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
|
|
||||||
<if test="org_id != null and org_id != ''">and org_id like concat('%',#{org_id},'%')</if>
|
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询列表 字段采用or格式 -->
|
<!-- 查询列表 字段采用or格式 -->
|
||||||
<select id="MdmModuleentity_list_or" resultMap="get-MdmModuleEntity-result"
|
<select id="MdmModuleentity_list_or" resultMap="get-MdmModuleEntity-result" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
select
|
||||||
select
|
<include refid="MdmModuleEntity_Base_Column_List" />
|
||||||
<include refid="MdmModuleEntity_Base_Column_List"/>
|
from mdm_module
|
||||||
from mdm_module
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||||
<if test="id != null and id != ''">or id = #{id}</if>
|
<if test="mdmName != null and mdmName != ''"> or mdm_name = #{mdmName} </if>
|
||||||
<if test="mdmName != null and mdmName != ''">or mdm_name = #{mdmName}</if>
|
<if test="mdmLogo != null and mdmLogo != ''"> or mdm_logo = #{mdmLogo} </if>
|
||||||
<if test="mdmLogo != null and mdmLogo != ''">or mdm_logo = #{mdmLogo}</if>
|
<if test="mdmCode != null"> or mdm_code = #{mdmCode} </if>
|
||||||
<if test="mdmCode != null ">or mdm_code = #{mdmCode}</if>
|
<if test="mdmType != null and mdmType != ''"> or mdm_type = #{mdmType} </if>
|
||||||
<if test="mdmType != null and mdmType != ''">or mdm_type = #{mdmType}</if>
|
<if test="remark != null and remark != ''"> or remark = #{remark} </if>
|
||||||
<if test="remark != null and remark != ''">or remark = #{remark}</if>
|
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||||
<if test="sorts != null">or sorts = #{sorts}</if>
|
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||||
<if test="create_time != null">or create_time = #{create_time}</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
|
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||||
<if test="modify_time != null">or modify_time = #{modify_time}</if>
|
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||||
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||||
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
|
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--新增所有列-->
|
<!--新增所有列-->
|
||||||
<insert id="entity_insert" parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity" >
|
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity" >
|
||||||
insert into mdm_module(
|
insert into mdm_module(
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="id != null and id != ''">id ,</if>
|
<if test="id != null and id != ''"> id , </if>
|
||||||
<if test="mdmName != null and mdmName != ''">mdm_name ,</if>
|
<if test="mdmName != null and mdmName != ''"> mdm_name , </if>
|
||||||
<if test="mdmLogo != null and mdmLogo != ''">mdm_logo ,</if>
|
<if test="mdmLogo != null and mdmLogo != ''"> mdm_logo , </if>
|
||||||
<if test="mdmCode != null ">mdm_code ,</if>
|
<if test="mdmCode != null"> mdm_code , </if>
|
||||||
<if test="mdmCode == null ">mdm_code ,</if>
|
<if test="mdmCode == null"> mdm_code , </if>
|
||||||
<if test="mdmType != null and mdmType != ''">mdm_type ,</if>
|
<if test="mdmType != null and mdmType != ''"> mdm_type , </if>
|
||||||
<if test="remark != null and remark != ''">remark ,</if>
|
<if test="remark != null and remark != ''"> remark , </if>
|
||||||
<if test="sorts != null">sorts ,</if>
|
<if test="sorts != null"> sorts , </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||||
<if test="create_time != null">create_time ,</if>
|
<if test="create_time != null"> create_time , </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
||||||
<if test="modify_time != null">modify_time ,</if>
|
<if test="modify_time != null"> modify_time , </if>
|
||||||
<if test="sts != null and sts != ''">sts ,</if>
|
<if test="sts != null and sts != ''"> sts , </if>
|
||||||
<if test="org_id != null and org_id != ''">org_id ,</if>
|
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||||
<if test="sts == null ">sts,</if>
|
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||||
</trim>
|
<if test="sts == null ">sts,</if>
|
||||||
)values(
|
</trim>
|
||||||
<trim suffix="" suffixOverrides=",">
|
)values(
|
||||||
<if test="id != null and id != ''">#{id} ,</if>
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="mdmName != null and mdmName != ''">#{mdmName} ,</if>
|
<if test="id != null and id != ''"> #{id} ,</if>
|
||||||
<if test="mdmLogo != null and mdmLogo != ''">#{mdmLogo} ,</if>
|
<if test="mdmName != null and mdmName != ''"> #{mdmName} ,</if>
|
||||||
<if test="mdmCode != null ">#{mdmCode} ,</if>
|
<if test="mdmLogo != null and mdmLogo != ''"> #{mdmLogo} ,</if>
|
||||||
|
<if test="mdmCode != null"> #{mdmCode} ,</if>
|
||||||
<if test="mdmCode == null ">(SELECT IFNULL(MAX(b.mdm_code)+1,10001) AS mdmCode FROM mdm_module b ),</if>
|
<if test="mdmCode == null ">(SELECT IFNULL(MAX(b.mdm_code)+1,10001) AS mdmCode FROM mdm_module b ),</if>
|
||||||
<if test="mdmType != null and mdmType != ''">#{mdmType} ,</if>
|
<if test="mdmType != null and mdmType != ''"> #{mdmType} ,</if>
|
||||||
<if test="remark != null and remark != ''">#{remark} ,</if>
|
<if test="remark != null and remark != ''"> #{remark} ,</if>
|
||||||
<if test="sorts != null">#{sorts} ,</if>
|
<if test="sorts != null"> #{sorts} ,</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||||
<if test="create_time != null">#{create_time} ,</if>
|
<if test="create_time != null"> #{create_time} ,</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
||||||
<if test="modify_time != null">#{modify_time} ,</if>
|
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||||
<if test="sts != null and sts != ''">#{sts} ,</if>
|
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||||
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||||
<if test="sts == null ">'Y',</if>
|
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||||
</trim>
|
<if test="sts == null ">'Y',</if>
|
||||||
)
|
</trim>
|
||||||
</insert>
|
)
|
||||||
<!-- 批量新增 -->
|
</insert>
|
||||||
<insert id="entityInsertBatch" >
|
<!-- 批量新增 -->
|
||||||
insert into mdm_module(mdm_name,mdm_logo, mdm_code, mdm_type, remark, sorts, create_user_id, create_time, modify_user_id,
|
<insert id="entityInsertBatch" >
|
||||||
modify_time, sts, org_id, sts)
|
insert into mdm_module(mdm_name, mdm_logo, mdm_code, mdm_type, remark, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||||
values
|
values
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
(#{entity.mdmName},#{entity.mdmLogo},#{entity.mdmCode},#{entity.mdmType},#{entity.remark},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},
|
(#{entity.mdmName},#{entity.mdmLogo},#{entity.mdmCode},#{entity.mdmType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||||
'Y')
|
</foreach>
|
||||||
</foreach>
|
</insert>
|
||||||
</insert>
|
<!-- 批量新增或者修改-->
|
||||||
<!-- 批量新增或者修改-->
|
<insert id="entityInsertOrUpdateBatch" >
|
||||||
<insert id="entityInsertOrUpdateBatch" >
|
insert into mdm_module(mdm_name, mdm_logo, mdm_code, mdm_type, remark, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||||
insert into mdm_module(mdm_name, mdm_logo, mdm_code, mdm_type, remark, sorts, create_user_id, create_time, modify_user_id,
|
values
|
||||||
modify_time, sts, org_id)
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
values
|
(#{entity.mdmName},#{entity.mdmLogo},#{entity.mdmCode},#{entity.mdmType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
</foreach>
|
||||||
(#{entity.mdmName},#{entity.mdmLogo},#{entity.mdmCode},#{entity.mdmType},#{entity.remark},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id})
|
on duplicate key update
|
||||||
</foreach>
|
mdm_name = values(mdm_name),
|
||||||
on duplicate key update
|
mdm_logo = values(mdm_logo),
|
||||||
mdm_name = values(mdm_name),
|
mdm_code = values(mdm_code),
|
||||||
mdm_logo = values(mdm_logo),
|
mdm_type = values(mdm_type),
|
||||||
mdm_code = values(mdm_code),
|
remark = values(remark),
|
||||||
mdm_type = values(mdm_type),
|
create_user_id = values(create_user_id),
|
||||||
remark = values(remark),
|
create_time = values(create_time),
|
||||||
sorts = values(sorts),
|
modify_user_id = values(modify_user_id),
|
||||||
create_user_id = values(create_user_id),
|
modify_time = values(modify_time),
|
||||||
create_time = values(create_time),
|
sts = values(sts),
|
||||||
modify_user_id = values(modify_user_id),
|
org_id = values(org_id),
|
||||||
modify_time = values(modify_time),
|
company_id = values(company_id)</insert>
|
||||||
sts = values(sts),
|
<!--通过主键修改方法-->
|
||||||
org_id = values(org_id)
|
<update id="entity_update" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity" >
|
||||||
</insert>
|
update mdm_module set
|
||||||
<!--通过主键修改方法-->
|
<trim suffix="" suffixOverrides=",">
|
||||||
<update id="entity_update" parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
<if test="mdmName != null and mdmName != ''"> mdm_name = #{mdmName},</if>
|
||||||
update mdm_module set
|
<if test="mdmLogo != null and mdmLogo != ''"> mdm_logo = #{mdmLogo},</if>
|
||||||
<trim suffix="" suffixOverrides=",">
|
<if test="mdmCode != null"> mdm_code = #{mdmCode},</if>
|
||||||
<if test="mdmName != null and mdmName != ''">mdm_name = #{mdmName},</if>
|
<if test="mdmType != null and mdmType != ''"> mdm_type = #{mdmType},</if>
|
||||||
<if test="mdmLogo != null and mdmLogo != ''">mdm_logo = #{mdmLogo},</if>
|
<if test="remark != null and remark != ''"> remark = #{remark},</if>
|
||||||
<if test="mdmCode != null ">mdm_code = #{mdmCode},</if>
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||||
<if test="mdmType != null and mdmType != ''">mdm_type = #{mdmType},</if>
|
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||||
<if test="sorts != null">sorts = #{sorts},</if>
|
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||||
<if test="create_time != null">create_time = #{create_time},</if>
|
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
|
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||||
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
</trim>
|
||||||
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
where id = #{id}
|
||||||
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
</update>
|
||||||
</trim>
|
<!-- 逻辑删除 -->
|
||||||
where id = #{id}
|
<update id="entity_logicDelete" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity" >
|
||||||
</update>
|
|
||||||
<!-- 逻辑删除 -->
|
|
||||||
<update id="entity_logicDelete" parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
|
||||||
update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
<!-- 多条件逻辑删除 -->
|
<!-- 多条件逻辑删除 -->
|
||||||
<update id="entity_logicDelete_Multi_Condition" parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity" >
|
||||||
update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="mdmName != null and mdmName != ''">and mdm_name = #{mdmName}</if>
|
<if test="mdmName != null and mdmName != ''"> and mdm_name = #{mdmName} </if>
|
||||||
<if test="mdmLogo != null and mdmLogo != ''">and mdm_logo = #{mdmLogo}</if>
|
<if test="mdmLogo != null and mdmLogo != ''"> and mdm_logo = #{mdmLogo} </if>
|
||||||
<if test="mdmCode != null ">and mdm_code = #{mdmCode}</if>
|
<if test="mdmCode != null"> and mdm_code = #{mdmCode} </if>
|
||||||
<if test="mdmType != null and mdmType != ''">and mdm_type = #{mdmType}</if>
|
<if test="mdmType != null and mdmType != ''"> and mdm_type = #{mdmType} </if>
|
||||||
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
</update>
|
</update>
|
||||||
<!--通过主键删除-->
|
<!--通过主键删除-->
|
||||||
<delete id="entity_delete">
|
<delete id="entity_delete">
|
||||||
delete from mdm_module where id = #{id}
|
delete from mdm_module where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
<!-- 分页查询列表 采用like格式 -->
|
||||||
<select id="queryMdm" resultType="com.hzya.frame.mdm.entity.MdmVo" parameterType="com.hzya.frame.mdm.entity.MdmDto">
|
<select id="queryMdm" resultMap="get-MdmModuleEntity-result" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||||
select
|
select
|
||||||
a.id as id,
|
a.id as id,
|
||||||
a.mdm_name as mdmName,
|
a.mdm_name as mdm_name,
|
||||||
a.mdm_logo as mdmLogo,
|
a.mdm_logo as mdm_logo,
|
||||||
a.mdm_code as mdmCode,
|
a.mdm_code as mdm_code,
|
||||||
a.mdm_type as mdmType,
|
a.mdm_type as mdm_type,
|
||||||
sd.column_content as mdmTypeName,
|
|
||||||
a.remark as remark,
|
a.remark as remark,
|
||||||
a.create_time as createTime,
|
a.create_time as create_time,
|
||||||
a.modify_time as modifyTime,
|
a.modify_time as modify_time,
|
||||||
d.person_name as createUserId,
|
d.person_name as createUser,
|
||||||
n.person_name as modifyUserId
|
n.person_name as modifyUser
|
||||||
from
|
from
|
||||||
mdm_module a
|
mdm_module a
|
||||||
LEFT JOIN sys_dictionaryshop_new sd on sd.column_value = a.mdm_type and sd.tab_name = 'mdm' and sd.column_name = 'mdm_type' and sd.used_sts = '1'
|
|
||||||
LEFT JOIN sys_user c on c.id = a.create_user_id and c.sts = 'Y'
|
LEFT JOIN sys_user c on c.id = a.create_user_id and c.sts = 'Y'
|
||||||
LEFT JOIN sys_person d on d.id = c.person_id and d.sts = 'Y'
|
LEFT JOIN sys_person d on d.id = c.person_id and d.sts = 'Y'
|
||||||
LEFT JOIN sys_user m on m.id = a.modify_user_id and m.sts = 'Y'
|
LEFT JOIN sys_user m on m.id = a.modify_user_id and m.sts = 'Y'
|
||||||
|
@ -293,6 +289,12 @@ where id = #{id}
|
||||||
order by a.sorts asc
|
order by a.sorts asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<!--通过ID获取数据 -->
|
||||||
|
<select id="getByMdmCode" resultMap="get-MdmModuleEntity-result">
|
||||||
|
select
|
||||||
|
<include refid="MdmModuleEntity_Base_Column_List" />
|
||||||
|
from mdm_module where mdm_code = #{ mdmCode } and sts='Y'
|
||||||
|
</select>
|
||||||
<!--通过ID获取数据 -->
|
<!--通过ID获取数据 -->
|
||||||
<select id="checkTable" resultType="java.lang.Integer">
|
<select id="checkTable" resultType="java.lang.Integer">
|
||||||
SELECT
|
SELECT
|
||||||
|
@ -303,451 +305,5 @@ where id = #{id}
|
||||||
TABLE_SCHEMA = 'businesscenter'
|
TABLE_SCHEMA = 'businesscenter'
|
||||||
and TABLE_NAME = #{tableName}
|
and TABLE_NAME = #{tableName}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="createTable" resultType="java.lang.Integer">
|
|
||||||
CREATE TABLE ${tableName} (
|
|
||||||
`id` varchar(50) NOT NULL COMMENT '唯一标识码',
|
|
||||||
<if test="dbType == '1'.toString()">
|
|
||||||
`document_rule` varchar(50) DEFAULT NULL COMMENT '单据规则',
|
|
||||||
`document_rule_num` bigint(50) DEFAULT NULL COMMENT '单据规则流水号',
|
|
||||||
</if>
|
|
||||||
<foreach collection="databaseFields" item="item" index="index">
|
|
||||||
<choose>
|
|
||||||
<when test="item.filedType == '1'.toString()">
|
|
||||||
${item.enName} bigint(${item.filedLength}) DEFAULT NULL COMMENT #{item.chName},
|
|
||||||
</when>
|
|
||||||
<when test="item.filedType == '2'.toString()">
|
|
||||||
${item.enName} decimal(${item.filedLength}) DEFAULT NULL COMMENT #{item.chName},
|
|
||||||
</when>
|
|
||||||
<when test="item.filedType == '3'.toString()">
|
|
||||||
${item.enName} varchar(${item.filedLength}) DEFAULT NULL COMMENT #{item.chName},
|
|
||||||
</when>
|
|
||||||
<when test="item.filedType == '4'.toString()">
|
|
||||||
${item.enName} datetime DEFAULT NULL COMMENT #{item.chName},
|
|
||||||
</when>
|
|
||||||
</choose>
|
|
||||||
</foreach>
|
|
||||||
`sorts` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '排序',
|
|
||||||
`create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id',
|
|
||||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
|
||||||
`modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id',
|
|
||||||
`modify_time` datetime DEFAULT NULL COMMENT '修改时间',
|
|
||||||
`sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)',
|
|
||||||
`org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID',
|
|
||||||
`company_id` varchar(50) DEFAULT NULL COMMENT '公司id',
|
|
||||||
PRIMARY KEY (`sorts`,`id`) USING BTREE
|
|
||||||
) ENGINE = INNODB DEFAULT CHARSET = utf8 COMMENT = #{tableRemark}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
|
|
||||||
<select id="createTableDistribute" resultType="java.lang.Integer">
|
|
||||||
CREATE TABLE ${tableName} (
|
|
||||||
`id` varchar(50) NOT NULL COMMENT '唯一标识码',
|
|
||||||
`formmain_id` varchar(50) DEFAULT NULL COMMENT '数据id',
|
|
||||||
`app_id` varchar(50) DEFAULT NULL COMMENT '应用id',
|
|
||||||
`status` varchar(50) DEFAULT NULL COMMENT '状态',
|
|
||||||
`msg` varchar(50) DEFAULT NULL COMMENT '描述',
|
|
||||||
`sorts` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '排序',
|
|
||||||
`create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id',
|
|
||||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
|
||||||
`modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id',
|
|
||||||
`modify_time` datetime DEFAULT NULL COMMENT '修改时间',
|
|
||||||
`sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)',
|
|
||||||
`org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID',
|
|
||||||
`company_id` varchar(50) DEFAULT NULL COMMENT '公司id',
|
|
||||||
PRIMARY KEY (`sorts`,`id`) USING BTREE
|
|
||||||
) ENGINE = INNODB DEFAULT CHARSET = utf8 COMMENT = #{tableRemark}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!--通过ID获取数据 -->
|
|
||||||
<select id="alterTable" resultType="java.lang.Integer">
|
|
||||||
ALTER TABLE ${tableName}
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<foreach collection="databaseFields" item="item" index="index">
|
|
||||||
<choose>
|
|
||||||
<when test="item.filedType == '3'.toString()">
|
|
||||||
<choose>
|
|
||||||
<when test="item.dataType == '1'.toString()">
|
|
||||||
MODIFY COLUMN ${item.enName} varchar(${item.filedLength}) DEFAULT NULL
|
|
||||||
COMMENT #{item.chName},
|
|
||||||
</when>
|
|
||||||
<otherwise>
|
|
||||||
add COLUMN ${item.enName} varchar(${item.filedLength}) DEFAULT NULL COMMENT
|
|
||||||
#{item.chName},
|
|
||||||
</otherwise>
|
|
||||||
</choose>
|
|
||||||
</when>
|
|
||||||
<when test="item.filedType == '1'.toString()">
|
|
||||||
<choose>
|
|
||||||
<when test="item.dataType == '1'.toString()">
|
|
||||||
MODIFY COLUMN ${item.enName} bigint(${item.filedLength}) DEFAULT NULL COMMENT
|
|
||||||
#{item.chName},
|
|
||||||
</when>
|
|
||||||
<otherwise>
|
|
||||||
add COLUMN ${item.enName} bigint(${item.filedLength}) DEFAULT NULL COMMENT
|
|
||||||
#{item.chName},
|
|
||||||
</otherwise>
|
|
||||||
</choose>
|
|
||||||
</when>
|
|
||||||
<when test="item.filedType == '2'.toString()">
|
|
||||||
<choose>
|
|
||||||
<when test="item.dataType == '1'.toString()">
|
|
||||||
MODIFY COLUMN ${item.enName} decimal(${item.filedLength}) DEFAULT NULL COMMENT
|
|
||||||
#{item.chName},
|
|
||||||
</when>
|
|
||||||
<otherwise>
|
|
||||||
add COLUMN ${item.enName} decimal(${item.filedLength}) DEFAULT NULL COMMENT
|
|
||||||
#{item.chName},
|
|
||||||
</otherwise>
|
|
||||||
</choose>
|
|
||||||
</when>
|
|
||||||
<when test="item.filedType == '4'.toString()">
|
|
||||||
<choose>
|
|
||||||
<when test="item.dataType == '1'.toString()">
|
|
||||||
MODIFY COLUMN ${item.enName} datetime DEFAULT NULL COMMENT #{item.chName},
|
|
||||||
</when>
|
|
||||||
<otherwise>
|
|
||||||
add COLUMN ${item.enName} datetime DEFAULT NULL COMMENT #{item.chName},
|
|
||||||
</otherwise>
|
|
||||||
</choose>
|
|
||||||
</when>
|
|
||||||
</choose>
|
|
||||||
</foreach>
|
|
||||||
</trim>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!--通过ID获取数据 -->
|
|
||||||
<select id="alterTableName" resultType="java.lang.Integer">
|
|
||||||
ALTER TABLE ${tableName} COMMENT = #{tableRemark}
|
|
||||||
</select>
|
|
||||||
<!-- 查询符合条件的数量 -->
|
|
||||||
<select id="checkData" resultType="Integer" >
|
|
||||||
SELECT
|
|
||||||
count(*)
|
|
||||||
from
|
|
||||||
${tableName}
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="filedName != null and filedName !='' and filedValue != null and filedValue !='' ">
|
|
||||||
and ${filedName} = #{filedValue}
|
|
||||||
</if>
|
|
||||||
|
|
||||||
<if test="id != null and id !='' ">and id != #{id}</if>
|
|
||||||
and sts = 'Y'
|
|
||||||
</trim>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
|
||||||
<select id="queryMdmShowData" resultType="java.util.HashMap"
|
|
||||||
parameterType="com.hzya.frame.mdm.entity.MdmQuery">
|
|
||||||
select
|
|
||||||
<if test="returnField != null and returnField.size>0">
|
|
||||||
(SELECT count(*) from ${tableName}_distribute WHERE sts = 'Y' and status = '1' and formmain_id = a.id) as qwqwasdasdzxasda,
|
|
||||||
<trim suffixOverrides=",">
|
|
||||||
<foreach collection="returnField" item="returnField">
|
|
||||||
a.${returnField} as ${returnField} ,
|
|
||||||
</foreach>
|
|
||||||
</trim>
|
|
||||||
</if>
|
|
||||||
<if test="returnField == null or returnField.size == 0">
|
|
||||||
(SELECT count(*) from ${tableName}_distribute WHERE sts = 'Y' and status = '1' and formmain_id = a.id) as qwqwasdasdzxasda,
|
|
||||||
a.*
|
|
||||||
</if>
|
|
||||||
from ${tableName} a
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="queryCondition != null and queryCondition.size>0">
|
|
||||||
<foreach collection="queryCondition" item="item" index="index">
|
|
||||||
${item.getValueByType('a.')}
|
|
||||||
</foreach>
|
|
||||||
</if>
|
|
||||||
and a.sts='Y'
|
|
||||||
<if test="detailQueryCondition != null and detailQueryCondition.size>0">
|
|
||||||
<foreach collection="detailQueryCondition" item="item" index="index">
|
|
||||||
AND a.id IN (
|
|
||||||
SELECT
|
|
||||||
formmain_id
|
|
||||||
FROM
|
|
||||||
${item.tableName}
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
sts = 'Y'
|
|
||||||
<if test="item.queryCondition != null and item.queryCondition.size>0">
|
|
||||||
<foreach collection="item.queryCondition" item="itema" index="index">
|
|
||||||
${itema.getValueByType('')}
|
|
||||||
</foreach>
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
)
|
|
||||||
</foreach>
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
order by a.sorts asc
|
|
||||||
</select>
|
|
||||||
|
|
||||||
|
|
||||||
<insert id="saveForm" parameterType="com.hzya.frame.mdm.entity.MdmDataDto">
|
|
||||||
insert into ${tableName}(
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="mdmDataFiledDtos != null and mdmDataFiledDtos.size>0">
|
|
||||||
<foreach collection="mdmDataFiledDtos" item="item" index="index">
|
|
||||||
<if test="item.filedsName != 'logid'.toString() ">
|
|
||||||
${item.filedsName},
|
|
||||||
</if>
|
|
||||||
<if test="item.filedsName == 'logid'.toString() ">
|
|
||||||
create_user_id,
|
|
||||||
modify_user_id,
|
|
||||||
</if>
|
|
||||||
</foreach>
|
|
||||||
</if>
|
|
||||||
sorts,
|
|
||||||
create_time,
|
|
||||||
modify_time,
|
|
||||||
sts,
|
|
||||||
<if test="dbType == '1'.toString()">
|
|
||||||
document_rule,
|
|
||||||
document_rule_num,
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
)values
|
|
||||||
(
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="mdmDataFiledDtos != null and mdmDataFiledDtos.size>0">
|
|
||||||
<foreach collection="mdmDataFiledDtos" item="item" index="index">
|
|
||||||
<if test="item.filedsName != 'logid'.toString() ">
|
|
||||||
#{item.filedsValue},
|
|
||||||
</if>
|
|
||||||
<if test="item.filedsName == 'logid'.toString() ">
|
|
||||||
#{item.filedsValue},
|
|
||||||
#{item.filedsValue},
|
|
||||||
</if>
|
|
||||||
</foreach>
|
|
||||||
</if>
|
|
||||||
(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from ${tableName} a WHERE
|
|
||||||
a.sts = 'Y' ),
|
|
||||||
now(),
|
|
||||||
now(),
|
|
||||||
'Y',
|
|
||||||
<if test="dbType == '1'.toString()">
|
|
||||||
( concat(#{documentRule},
|
|
||||||
(SELECT
|
|
||||||
IF
|
|
||||||
(
|
|
||||||
LENGTH( (SELECT
|
|
||||||
IFNULL(MAX(b.document_rule_num),0)+1
|
|
||||||
FROM
|
|
||||||
${tableName} b
|
|
||||||
WHERE
|
|
||||||
DATE_FORMAT( b.create_time, '%Y-%m' ) = DATE_FORMAT( now(), '%Y-%m' )) ) <= ${documentRuleNum},
|
|
||||||
LPAD( (SELECT
|
|
||||||
IFNULL(MAX(c.document_rule_num),0)+1
|
|
||||||
FROM
|
|
||||||
${tableName} c
|
|
||||||
WHERE
|
|
||||||
DATE_FORMAT( c.create_time, '%Y-%m' ) = DATE_FORMAT( now(), '%Y-%m' )), ${documentRuleNum}, '0' ),
|
|
||||||
(SELECT
|
|
||||||
IFNULL(MAX(d.document_rule_num),0)+1
|
|
||||||
FROM
|
|
||||||
${tableName} d
|
|
||||||
WHERE
|
|
||||||
DATE_FORMAT( d.create_time, '%Y-%m' ) = DATE_FORMAT( now(), '%Y-%m' ))
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)),
|
|
||||||
(SELECT
|
|
||||||
IF
|
|
||||||
(
|
|
||||||
LENGTH( (SELECT
|
|
||||||
IFNULL(MAX(e.document_rule_num),0)+1
|
|
||||||
FROM
|
|
||||||
${tableName} e
|
|
||||||
WHERE
|
|
||||||
DATE_FORMAT( e.create_time, '%Y-%m' ) = DATE_FORMAT( now(), '%Y-%m' )) ) <= ${documentRuleNum},
|
|
||||||
LPAD( (SELECT
|
|
||||||
IFNULL(MAX(f.document_rule_num),0)+1
|
|
||||||
FROM
|
|
||||||
${tableName} f
|
|
||||||
WHERE
|
|
||||||
DATE_FORMAT( f.create_time, '%Y-%m' ) = DATE_FORMAT( now(), '%Y-%m' )), ${documentRuleNum}, '0' ),
|
|
||||||
(SELECT
|
|
||||||
IFNULL(MAX(g.document_rule_num),0)+1
|
|
||||||
FROM
|
|
||||||
${tableName} g
|
|
||||||
WHERE
|
|
||||||
DATE_FORMAT( g.create_time, '%Y-%m' ) = DATE_FORMAT( now(), '%Y-%m' ))
|
|
||||||
)
|
|
||||||
)
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
)
|
|
||||||
</insert>
|
|
||||||
<update id="updateForm" parameterType="com.hzya.frame.mdm.entity.MdmDataDto">
|
|
||||||
update ${tableName} set
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="mdmDataFiledDtos != null and mdmDataFiledDtos.size>0">
|
|
||||||
<foreach collection="mdmDataFiledDtos" item="item" index="index">
|
|
||||||
<if test="item.filedsName != 'logid'.toString() ">
|
|
||||||
${item.filedsName} = #{item.filedsValue},
|
|
||||||
</if>
|
|
||||||
<if test="item.filedsName == 'logid'.toString() ">
|
|
||||||
modify_user_id = #{item.filedsValue},
|
|
||||||
</if>
|
|
||||||
</foreach>
|
|
||||||
</if>
|
|
||||||
modify_time = now(),
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<update id="deleteTemplateById" parameterType="com.hzya.frame.sys.entity.FormmainDeleteDto">
|
|
||||||
update ${tableName} set
|
|
||||||
sts='N',modify_time = now(),modify_user_id = #{loginId}
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id !='' ">and id = #{id}</if>
|
|
||||||
<if test="formmain_id != null and formmain_id !='' ">and formmain_id = #{formmain_id}</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
</update>
|
|
||||||
|
|
||||||
|
|
||||||
<update id="deleteChilder" parameterType="com.hzya.frame.sys.entity.FormmainDeleteDto">
|
|
||||||
update ${tableName} set
|
|
||||||
sts='N',modify_time = now(),modify_user_id = #{loginId}
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="upIdFiled != null and upIdFiled !='' and upIdFiledValue != null and upIdFiledValue !=''">
|
|
||||||
and ${upIdFiled} like concat(#{upIdFiledValue},'%')
|
|
||||||
</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
|
||||||
<select id="queryDataAll" resultType="java.util.HashMap"
|
|
||||||
parameterType="com.hzya.frame.mdm.entity.MdmDto">
|
|
||||||
select
|
|
||||||
id as qsdfg,
|
|
||||||
${label},
|
|
||||||
${upId}
|
|
||||||
from ${tableName}
|
|
||||||
where sts = 'Y'
|
|
||||||
order by sorts asc
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
|
||||||
<select id="queryTemplateData" resultType="java.util.HashMap" parameterType="com.hzya.frame.sys.entity.ModuleDto">
|
|
||||||
select
|
|
||||||
${value},
|
|
||||||
${label}
|
|
||||||
from ${tableName}
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id !='' ">and ${value} = #{id}</if>
|
|
||||||
<if test="lableValue != null and lableValue !='' ">and ${label} like concat('%',#{lableValue},'%')</if>
|
|
||||||
and sts = 'Y'
|
|
||||||
</trim>
|
|
||||||
order by sorts asc
|
|
||||||
</select>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
|
||||||
<select id="queryTemplateDataOne" resultType="java.util.HashMap"
|
|
||||||
parameterType="com.hzya.frame.mdm.entity.MdmDto">
|
|
||||||
select
|
|
||||||
${value} as id,
|
|
||||||
${label} as label,
|
|
||||||
${upId} as upID
|
|
||||||
from ${tableName}
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id !='' ">and id = #{id}</if>
|
|
||||||
and sts = 'Y'
|
|
||||||
</trim>
|
|
||||||
order by sorts asc
|
|
||||||
</select>
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
|
||||||
<select id="queryTemplateDataMore" resultType="java.util.HashMap"
|
|
||||||
parameterType="com.hzya.frame.mdm.entity.MdmDto">
|
|
||||||
select
|
|
||||||
${value} as id,
|
|
||||||
${label} as label,
|
|
||||||
${upId} as upID
|
|
||||||
from ${tableName}
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="ids != null and ids.length >0">
|
|
||||||
and id in (
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<foreach collection="ids" item="item" index="index">
|
|
||||||
#{item},
|
|
||||||
</foreach>
|
|
||||||
</trim>
|
|
||||||
)
|
|
||||||
</if>
|
|
||||||
and sts = 'Y'
|
|
||||||
</trim>
|
|
||||||
order by sorts asc
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
|
||||||
<select id="querySelectData" resultType="java.util.HashMap" parameterType="com.hzya.frame.mdm.entity.MdmDto">
|
|
||||||
select
|
|
||||||
${value},
|
|
||||||
${label}
|
|
||||||
from ${tableName}
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id !='' ">and ${value} = #{id}</if>
|
|
||||||
<if test="lableValue != null and lableValue !='' ">and ${label} like concat('%',#{lableValue},'%')</if>
|
|
||||||
and sts = 'Y'
|
|
||||||
and ${label} is not null
|
|
||||||
</trim>
|
|
||||||
order by sorts asc
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<insert id="saveDistribute" parameterType="com.hzya.frame.mdm.entity.MdmDistributeEntity" >
|
|
||||||
insert into ${tableName}(
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="id != null and id != ''">id ,</if>
|
|
||||||
<if test="formmainId != null and formmainId != ''">formmain_id ,</if>
|
|
||||||
<if test="appId != null and appId != ''">app_id ,</if>
|
|
||||||
<if test="status != null and status != ''">status ,</if>
|
|
||||||
<if test="msg != null and msg != ''">msg ,</if>
|
|
||||||
<if test="sorts != null">sorts ,</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
|
||||||
<if test="create_time != null">create_time ,</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
|
||||||
<if test="modify_time != null">modify_time ,</if>
|
|
||||||
<if test="sts != null and sts != ''">sts ,</if>
|
|
||||||
<if test="org_id != null and org_id != ''">org_id ,</if>
|
|
||||||
<if test="companyId != null and companyId != ''">company_id ,</if>
|
|
||||||
<if test="sts == null ">sts,</if>
|
|
||||||
</trim>
|
|
||||||
)values(
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="id != null and id != ''">#{id} ,</if>
|
|
||||||
<if test="formmainId != null and formmainId != ''">#{formmainId} ,</if>
|
|
||||||
<if test="appId != null and appId != ''">#{appId} ,</if>
|
|
||||||
<if test="status != null and status != ''">#{status} ,</if>
|
|
||||||
<if test="msg != null and msg != ''">#{msg} ,</if>
|
|
||||||
<if test="sorts != null">#{sorts} ,</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
|
||||||
<if test="create_time != null">#{create_time} ,</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
|
||||||
<if test="modify_time != null">#{modify_time} ,</if>
|
|
||||||
<if test="sts != null and sts != ''">#{sts} ,</if>
|
|
||||||
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
|
||||||
<if test="companyId != null and companyId != ''">#{companyId} ,</if>
|
|
||||||
<if test="sts == null ">'Y',</if>
|
|
||||||
</trim>
|
|
||||||
)
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<update id="updateDistribute" parameterType="com.hzya.frame.mdm.entity.MdmDistributeEntity">
|
|
||||||
update ${tableName} set
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="formmainId != null and formmainId != ''">formmain_id = #{formmainId},</if>
|
|
||||||
<if test="appId != null and appId != ''">app_id = #{appId},</if>
|
|
||||||
<if test="status != null ">status = #{status},</if>
|
|
||||||
<if test="msg != null and msg != ''">msg = #{msg},</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
|
|
||||||
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
|
||||||
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
|
||||||
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,11 @@ package com.hzya.frame.mdm.mdmModule.service;
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
||||||
import com.hzya.frame.basedao.service.IBaseService;
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主数据模版(MdmModule)表服务接口
|
* 主数据模版(MdmModule)表服务接口
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:25:44
|
* @since 2024-06-03 08:46:29
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleService extends IBaseService<MdmModuleEntity, String> {
|
public interface IMdmModuleService extends IBaseService<MdmModuleEntity, String>{
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,16 +5,13 @@ import com.hzya.frame.mdm.mdmModule.dao.IMdmModuleDao;
|
||||||
import com.hzya.frame.mdm.mdmModule.service.IMdmModuleService;
|
import com.hzya.frame.mdm.mdmModule.service.IMdmModuleService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主数据模版(MdmModule)表服务实现类
|
* 主数据模版(MdmModule)表服务实现类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:25:44
|
* @since 2024-06-03 08:46:29
|
||||||
*/
|
*/
|
||||||
@Service(value = "mdmModuleService")
|
@Service(value = "mdmModuleService")
|
||||||
public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> implements IMdmModuleService {
|
public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> implements IMdmModuleService {
|
||||||
|
@ -22,8 +19,8 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
||||||
private IMdmModuleDao mdmModuleDao;
|
private IMdmModuleDao mdmModuleDao;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public void setMdmModuleDao(IMdmModuleDao dao) {
|
public void setMdmModuleDao(IMdmModuleDao dao) {
|
||||||
this.mdmModuleDao = dao;
|
this.mdmModuleDao = dao;
|
||||||
this.dao = dao;
|
this.dao = dao;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,29 +1,15 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleDb.dao;
|
package com.hzya.frame.mdm.mdmModuleDb.dao;
|
||||||
|
|
||||||
import com.hzya.frame.mdm.entity.MdmDistributeVo;
|
|
||||||
import com.hzya.frame.mdm.entity.MdmDto;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
||||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
import com.hzya.frame.sys.entity.ModuleDto;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模版数据库表(mdm_module_db: table)表数据库访问层
|
* 模版数据库表(mdm_module_db: table)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:26:49
|
* @since 2024-06-03 08:46:48
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleDbDao extends IBaseDao<MdmModuleDbEntity, String> {
|
public interface IMdmModuleDbDao extends IBaseDao<MdmModuleDbEntity, String> {
|
||||||
|
|
||||||
HashMap<String, Object> getServiceDataById(Map<String, Object> queryData);
|
|
||||||
|
|
||||||
List<HashMap<String, Object>> getServiceByFormmainId(Map<String, Object> queryData);
|
|
||||||
List<HashMap<String, Object>> getServiceByDistributeId(Map<String, Object> queryData);
|
|
||||||
List<MdmDistributeVo> getServiceByDistributeIdNoCase(Map<String, Object> queryData);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,51 +1,17 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleDb.dao.impl;
|
package com.hzya.frame.mdm.mdmModuleDb.dao.impl;
|
||||||
|
|
||||||
import com.hzya.frame.mdm.entity.MdmDistributeVo;
|
|
||||||
import com.hzya.frame.mdm.entity.MdmDto;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
||||||
import com.hzya.frame.mdm.mdmModuleDb.dao.IMdmModuleDbDao;
|
import com.hzya.frame.mdm.mdmModuleDb.dao.IMdmModuleDbDao;
|
||||||
import com.hzya.frame.sys.entity.ModuleDto;
|
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模版数据库表(MdmModuleDb)表数据库访问层
|
* 模版数据库表(MdmModuleDb)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:26:49
|
* @since 2024-06-03 08:46:50
|
||||||
*/
|
*/
|
||||||
@Repository(value = "MdmModuleDbDaoImpl")
|
@Repository(value = "MdmModuleDbDaoImpl")
|
||||||
public class MdmModuleDbDaoImpl extends MybatisGenericDao<MdmModuleDbEntity, String> implements IMdmModuleDbDao {
|
public class MdmModuleDbDaoImpl extends MybatisGenericDao<MdmModuleDbEntity, String> implements IMdmModuleDbDao{
|
||||||
|
|
||||||
@Override
|
|
||||||
public HashMap<String, Object> getServiceDataById(Map<String, Object> maps) {
|
|
||||||
HashMap<String, Object> o = (HashMap<String, Object>) super.selectOne(getSqlIdPrifx() + "getServiceDataById", maps);
|
|
||||||
return o;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<HashMap<String, Object>> getServiceByFormmainId(Map<String, Object> maps) {
|
|
||||||
List<HashMap<String, Object>> o = (List<HashMap<String, Object>>) super.selectList(getSqlIdPrifx() + "getServiceByFormmainId", maps);
|
|
||||||
return o;
|
|
||||||
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public List<HashMap<String, Object>> getServiceByDistributeId(Map<String, Object> maps) {
|
|
||||||
List<HashMap<String, Object>> o = (List<HashMap<String, Object>>) super.selectList(getSqlIdPrifx() + "getServiceByDistributeId", maps);
|
|
||||||
return o;
|
|
||||||
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public List<MdmDistributeVo> getServiceByDistributeIdNoCase(Map<String, Object> maps) {
|
|
||||||
List<MdmDistributeVo> o = (List<MdmDistributeVo>) super.selectList(getSqlIdPrifx() + "getServiceByDistributeIdNoCase", maps);
|
|
||||||
return o;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,36 +4,31 @@ import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
|
import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
|
||||||
|
import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity;
|
||||||
import com.hzya.frame.web.entity.BaseEntity;
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模版数据库表(MdmModuleDb)实体类
|
* 模版数据库表(MdmModuleDb)实体类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:26:49
|
* @since 2024-06-03 08:46:50
|
||||||
*/
|
*/
|
||||||
public class MdmModuleDbEntity extends BaseEntity {
|
public class MdmModuleDbEntity extends BaseEntity {
|
||||||
|
|
||||||
/**
|
/** 主数据模版ID */
|
||||||
* 主数据模版ID
|
private String mdmId;
|
||||||
*/
|
/** 表名 */
|
||||||
private String mdmId;
|
private String dbName;
|
||||||
/**
|
/** 类型 1、主表 2、明细 3、操作日志 4、下发日志 */
|
||||||
* 表名
|
private String dbType;
|
||||||
*/
|
/** 备注 */
|
||||||
private String dbName;
|
private String remark;
|
||||||
/**
|
/** 公司id */
|
||||||
* 类型 1、主表 2、明细
|
private String companyId;
|
||||||
*/
|
/** 数据类型 1、新增 2、修改 */
|
||||||
private String dbType;
|
private String dataType;
|
||||||
/**
|
|
||||||
* 备注
|
|
||||||
*/
|
|
||||||
private String remark;
|
|
||||||
|
|
||||||
//主数据子表字段
|
|
||||||
private List<MdmModuleDbFiledsEntity> sublistMdmModuleDbFileds;
|
private List<MdmModuleDbFiledsEntity> sublistMdmModuleDbFileds;
|
||||||
|
|
||||||
|
|
||||||
public String getMdmId() {
|
public String getMdmId() {
|
||||||
return mdmId;
|
return mdmId;
|
||||||
}
|
}
|
||||||
|
@ -66,6 +61,14 @@ public class MdmModuleDbEntity extends BaseEntity {
|
||||||
this.remark = remark;
|
this.remark = remark;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getCompanyId() {
|
||||||
|
return companyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCompanyId(String companyId) {
|
||||||
|
this.companyId = companyId;
|
||||||
|
}
|
||||||
|
|
||||||
public List<MdmModuleDbFiledsEntity> getSublistMdmModuleDbFileds() {
|
public List<MdmModuleDbFiledsEntity> getSublistMdmModuleDbFileds() {
|
||||||
return sublistMdmModuleDbFileds;
|
return sublistMdmModuleDbFileds;
|
||||||
}
|
}
|
||||||
|
@ -73,5 +76,13 @@ public class MdmModuleDbEntity extends BaseEntity {
|
||||||
public void setSublistMdmModuleDbFileds(List<MdmModuleDbFiledsEntity> sublistMdmModuleDbFileds) {
|
public void setSublistMdmModuleDbFileds(List<MdmModuleDbFiledsEntity> sublistMdmModuleDbFileds) {
|
||||||
this.sublistMdmModuleDbFileds = sublistMdmModuleDbFileds;
|
this.sublistMdmModuleDbFileds = sublistMdmModuleDbFileds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDataType() {
|
||||||
|
return dataType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataType(String dataType) {
|
||||||
|
this.dataType = dataType;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,22 +2,23 @@
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.hzya.frame.mdm.mdmModuleDb.dao.impl.MdmModuleDbDaoImpl">
|
<mapper namespace="com.hzya.frame.mdm.mdmModuleDb.dao.impl.MdmModuleDbDaoImpl">
|
||||||
|
|
||||||
<resultMap id="get-MdmModuleDbEntity-result" type="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
<resultMap id="get-MdmModuleDbEntity-result" type="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity" >
|
||||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
||||||
<result property="dbName" column="db_name" jdbcType="VARCHAR"/>
|
<result property="dbName" column="db_name" jdbcType="VARCHAR"/>
|
||||||
<result property="dbType" column="db_type" jdbcType="VARCHAR"/>
|
<result property="dbType" column="db_type" jdbcType="VARCHAR"/>
|
||||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||||
</resultMap>
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
<!-- 查询的字段-->
|
<!-- 查询的字段-->
|
||||||
<sql id="MdmModuleDbEntity_Base_Column_List">
|
<sql id = "MdmModuleDbEntity_Base_Column_List">
|
||||||
id
|
id
|
||||||
,mdm_id
|
,mdm_id
|
||||||
,db_name
|
,db_name
|
||||||
|
@ -30,293 +31,213 @@
|
||||||
,modify_time
|
,modify_time
|
||||||
,sts
|
,sts
|
||||||
,org_id
|
,org_id
|
||||||
|
,company_id
|
||||||
</sql>
|
</sql>
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="entity_list_base" resultMap="get-MdmModuleDbEntity-result"
|
<select id="entity_list_base" resultMap="get-MdmModuleDbEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
select
|
||||||
select
|
<include refid="MdmModuleDbEntity_Base_Column_List" />
|
||||||
<include refid="MdmModuleDbEntity_Base_Column_List"/>
|
from mdm_module_db
|
||||||
from mdm_module_db
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
<if test="dbName != null and dbName != ''"> and db_name = #{dbName} </if>
|
||||||
<if test="dbName != null and dbName != ''">and db_name = #{dbName}</if>
|
<if test="dbType != null and dbType != ''"> and db_type = #{dbType} </if>
|
||||||
<if test="dbType != null and dbType != ''">and db_type = #{dbType}</if>
|
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
||||||
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询符合条件的数量 -->
|
<!-- 查询符合条件的数量 -->
|
||||||
<select id="entity_count" resultType="Integer"
|
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
select count(1) from mdm_module_db
|
||||||
select count(1) from mdm_module_db
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
<if test="dbName != null and dbName != ''"> and db_name = #{dbName} </if>
|
||||||
<if test="dbName != null and dbName != ''">and db_name = #{dbName}</if>
|
<if test="dbType != null and dbType != ''"> and db_type = #{dbType} </if>
|
||||||
<if test="dbType != null and dbType != ''">and db_type = #{dbType}</if>
|
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
||||||
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
<!-- 分页查询列表 采用like格式 -->
|
||||||
<select id="entity_list_like" resultMap="get-MdmModuleDbEntity-result"
|
<select id="entity_list_like" resultMap="get-MdmModuleDbEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
select
|
||||||
select
|
<include refid="MdmModuleDbEntity_Base_Column_List" />
|
||||||
<include refid="MdmModuleDbEntity_Base_Column_List"/>
|
from mdm_module_db
|
||||||
from mdm_module_db
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||||
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id like concat('%',#{mdmId},'%') </if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id like concat('%',#{mdmId},'%')</if>
|
<if test="dbName != null and dbName != ''"> and db_name like concat('%',#{dbName},'%') </if>
|
||||||
<if test="dbName != null and dbName != ''">and db_name like concat('%',#{dbName},'%')</if>
|
<if test="dbType != null and dbType != ''"> and db_type like concat('%',#{dbType},'%') </if>
|
||||||
<if test="dbType != null and dbType != ''">and db_type like concat('%',#{dbType},'%')</if>
|
<if test="remark != null and remark != ''"> and remark like concat('%',#{remark},'%') </if>
|
||||||
<if test="remark != null and remark != ''">and remark like concat('%',#{remark},'%')</if>
|
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||||
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||||
concat('%',#{create_user_id},'%')
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
||||||
</if>
|
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||||
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
|
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||||
concat('%',#{modify_user_id},'%')
|
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||||
</if>
|
|
||||||
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
|
|
||||||
<if test="org_id != null and org_id != ''">and org_id like concat('%',#{org_id},'%')</if>
|
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询列表 字段采用or格式 -->
|
<!-- 查询列表 字段采用or格式 -->
|
||||||
<select id="MdmModuleDbentity_list_or" resultMap="get-MdmModuleDbEntity-result"
|
<select id="MdmModuleDbentity_list_or" resultMap="get-MdmModuleDbEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
select
|
||||||
select
|
<include refid="MdmModuleDbEntity_Base_Column_List" />
|
||||||
<include refid="MdmModuleDbEntity_Base_Column_List"/>
|
from mdm_module_db
|
||||||
from mdm_module_db
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||||
<if test="id != null and id != ''">or id = #{id}</if>
|
<if test="mdmId != null and mdmId != ''"> or mdm_id = #{mdmId} </if>
|
||||||
<if test="mdmId != null and mdmId != ''">or mdm_id = #{mdmId}</if>
|
<if test="dbName != null and dbName != ''"> or db_name = #{dbName} </if>
|
||||||
<if test="dbName != null and dbName != ''">or db_name = #{dbName}</if>
|
<if test="dbType != null and dbType != ''"> or db_type = #{dbType} </if>
|
||||||
<if test="dbType != null and dbType != ''">or db_type = #{dbType}</if>
|
<if test="remark != null and remark != ''"> or remark = #{remark} </if>
|
||||||
<if test="remark != null and remark != ''">or remark = #{remark}</if>
|
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||||
<if test="sorts != null">or sorts = #{sorts}</if>
|
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||||
<if test="create_time != null">or create_time = #{create_time}</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
|
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||||
<if test="modify_time != null">or modify_time = #{modify_time}</if>
|
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||||
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||||
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
|
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--新增所有列-->
|
<!--新增所有列-->
|
||||||
<insert id="entity_insert" parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity" >
|
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity" >
|
||||||
insert into mdm_module_db(
|
insert into mdm_module_db(
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="id != null and id != ''">id ,</if>
|
<if test="id != null and id != ''"> id , </if>
|
||||||
<if test="mdmId != null and mdmId != ''">mdm_id ,</if>
|
<if test="mdmId != null and mdmId != ''"> mdm_id , </if>
|
||||||
<if test="dbName != null and dbName != ''">db_name ,</if>
|
<if test="dbName != null and dbName != ''"> db_name , </if>
|
||||||
<if test="dbType != null and dbType != ''">db_type ,</if>
|
<if test="dbType != null and dbType != ''"> db_type , </if>
|
||||||
<if test="remark != null and remark != ''">remark ,</if>
|
<if test="remark != null and remark != ''"> remark , </if>
|
||||||
<if test="sorts != null">sorts ,</if>
|
<if test="sorts != null"> sorts , </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||||
<if test="create_time != null">create_time ,</if>
|
<if test="create_time != null"> create_time , </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
||||||
<if test="modify_time != null">modify_time ,</if>
|
<if test="modify_time != null"> modify_time , </if>
|
||||||
<if test="sts != null and sts != ''">sts ,</if>
|
<if test="sts != null and sts != ''"> sts , </if>
|
||||||
<if test="org_id != null and org_id != ''">org_id ,</if>
|
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||||
<if test="sts == null ">sts,</if>
|
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||||
</trim>
|
<if test="sts == null ">sts,</if>
|
||||||
)values(
|
</trim>
|
||||||
<trim suffix="" suffixOverrides=",">
|
)values(
|
||||||
<if test="id != null and id != ''">#{id} ,</if>
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="mdmId != null and mdmId != ''">#{mdmId} ,</if>
|
<if test="id != null and id != ''"> #{id} ,</if>
|
||||||
<if test="dbName != null and dbName != ''">#{dbName} ,</if>
|
<if test="mdmId != null and mdmId != ''"> #{mdmId} ,</if>
|
||||||
<if test="dbType != null and dbType != ''">#{dbType} ,</if>
|
<if test="dbName != null and dbName != ''"> #{dbName} ,</if>
|
||||||
<if test="remark != null and remark != ''">#{remark} ,</if>
|
<if test="dbType != null and dbType != ''"> #{dbType} ,</if>
|
||||||
<if test="sorts != null">#{sorts} ,</if>
|
<if test="remark != null and remark != ''"> #{remark} ,</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
<if test="sorts != null"> #{sorts} ,</if>
|
||||||
<if test="create_time != null">#{create_time} ,</if>
|
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
<if test="create_time != null"> #{create_time} ,</if>
|
||||||
<if test="modify_time != null">#{modify_time} ,</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
||||||
<if test="sts != null and sts != ''">#{sts} ,</if>
|
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||||
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||||
|
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||||
<if test="sts == null ">'Y',</if>
|
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||||
</trim>
|
<if test="sts == null ">'Y',</if>
|
||||||
)
|
</trim>
|
||||||
</insert>
|
)
|
||||||
<!-- 批量新增 -->
|
</insert>
|
||||||
<insert id="entityInsertBatch" >
|
<!-- 批量新增 -->
|
||||||
insert into mdm_module_db(mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id,
|
<insert id="entityInsertBatch" >
|
||||||
modify_time, sts, org_id, sts)
|
insert into mdm_module_db(mdm_id, db_name, db_type, remark, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||||
values
|
values
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
(#{entity.mdmId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},
|
(#{entity.mdmId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||||
'Y')
|
</foreach>
|
||||||
</foreach>
|
</insert>
|
||||||
</insert>
|
<!-- 批量新增或者修改-->
|
||||||
<!-- 批量新增或者修改-->
|
<insert id="entityInsertOrUpdateBatch" >
|
||||||
<insert id="entityInsertOrUpdateBatch" >
|
insert into mdm_module_db(mdm_id, db_name, db_type, remark, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||||
insert into mdm_module_db(mdm_id, db_name, db_type, remark, sorts, create_user_id, create_time, modify_user_id,
|
values
|
||||||
modify_time, sts, org_id)
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
values
|
(#{entity.mdmId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
</foreach>
|
||||||
(#{entity.mdmId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id})
|
on duplicate key update
|
||||||
</foreach>
|
mdm_id = values(mdm_id),
|
||||||
on duplicate key update
|
db_name = values(db_name),
|
||||||
mdm_id = values(mdm_id),
|
db_type = values(db_type),
|
||||||
db_name = values(db_name),
|
remark = values(remark),
|
||||||
db_type = values(db_type),
|
create_user_id = values(create_user_id),
|
||||||
remark = values(remark),
|
create_time = values(create_time),
|
||||||
sorts = values(sorts),
|
modify_user_id = values(modify_user_id),
|
||||||
create_user_id = values(create_user_id),
|
modify_time = values(modify_time),
|
||||||
create_time = values(create_time),
|
sts = values(sts),
|
||||||
modify_user_id = values(modify_user_id),
|
org_id = values(org_id),
|
||||||
modify_time = values(modify_time),
|
company_id = values(company_id)</insert>
|
||||||
sts = values(sts),
|
<!--通过主键修改方法-->
|
||||||
org_id = values(org_id)
|
<update id="entity_update" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity" >
|
||||||
</insert>
|
update mdm_module_db set
|
||||||
<!--通过主键修改方法-->
|
<trim suffix="" suffixOverrides=",">
|
||||||
<update id="entity_update" parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
<if test="mdmId != null and mdmId != ''"> mdm_id = #{mdmId},</if>
|
||||||
update mdm_module_db set
|
<if test="dbName != null and dbName != ''"> db_name = #{dbName},</if>
|
||||||
<trim suffix="" suffixOverrides=",">
|
<if test="dbType != null and dbType != ''"> db_type = #{dbType},</if>
|
||||||
<if test="mdmId != null and mdmId != ''">mdm_id = #{mdmId},</if>
|
<if test="remark != null and remark != ''"> remark = #{remark},</if>
|
||||||
<if test="dbName != null and dbName != ''">db_name = #{dbName},</if>
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||||
<if test="dbType != null and dbType != ''">db_type = #{dbType},</if>
|
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||||
<if test="sorts != null">sorts = #{sorts},</if>
|
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||||
<if test="create_time != null">create_time = #{create_time},</if>
|
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
|
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||||
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
</trim>
|
||||||
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
where id = #{id}
|
||||||
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
</update>
|
||||||
</trim>
|
<!-- 逻辑删除 -->
|
||||||
where id = #{id}
|
<update id="entity_logicDelete" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity" >
|
||||||
</update>
|
|
||||||
<!-- 逻辑删除 -->
|
|
||||||
<update id="entity_logicDelete" parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
|
||||||
update mdm_module_db set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
update mdm_module_db set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
<!-- 多条件逻辑删除 -->
|
<!-- 多条件逻辑删除 -->
|
||||||
<update id="entity_logicDelete_Multi_Condition"
|
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity" >
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
update mdm_module_db set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
update mdm_module_db set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
<if test="dbName != null and dbName != ''"> and db_name = #{dbName} </if>
|
||||||
<if test="dbName != null and dbName != ''">and db_name = #{dbName}</if>
|
<if test="dbType != null and dbType != ''"> and db_type = #{dbType} </if>
|
||||||
<if test="dbType != null and dbType != ''">and db_type = #{dbType}</if>
|
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
||||||
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
</update>
|
</update>
|
||||||
<!--通过主键删除-->
|
<!--通过主键删除-->
|
||||||
<delete id="entity_delete">
|
<delete id="entity_delete">
|
||||||
delete from mdm_module_db where id = #{id}
|
delete from mdm_module_db where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
<select id="getServiceDataById" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
||||||
select
|
|
||||||
*
|
|
||||||
from ${tableName}
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="detailFlag">
|
|
||||||
and formmain_id = #{id}
|
|
||||||
</if>
|
|
||||||
<if test="!detailFlag">
|
|
||||||
and id = #{id}
|
|
||||||
</if>
|
|
||||||
and sts = 'Y'
|
|
||||||
</trim>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
|
||||||
<select id="getServiceByFormmainId" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
||||||
select
|
|
||||||
*
|
|
||||||
from ${tableName}
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="detailFlag">
|
|
||||||
and formmain_id = #{id}
|
|
||||||
</if>
|
|
||||||
<if test="!detailFlag">
|
|
||||||
and id = #{id}
|
|
||||||
</if>
|
|
||||||
and sts = 'Y'
|
|
||||||
</trim>
|
|
||||||
order by sorts asc
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
|
||||||
<select id="getServiceByDistributeId" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
|
||||||
select
|
|
||||||
id,
|
|
||||||
formmain_id,
|
|
||||||
app_id,
|
|
||||||
CASE
|
|
||||||
status
|
|
||||||
WHEN '1' THEN '发送成功'
|
|
||||||
WHEN '2' THEN '发送中'
|
|
||||||
WHEN '3' THEN '发送失败'
|
|
||||||
ELSE ''
|
|
||||||
END status,
|
|
||||||
msg,
|
|
||||||
sorts,
|
|
||||||
create_user_id,
|
|
||||||
create_time,
|
|
||||||
modify_user_id,
|
|
||||||
modify_time,
|
|
||||||
sts,
|
|
||||||
org_id
|
|
||||||
from ${tableName}
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
and formmain_id = #{id}
|
|
||||||
and sts = 'Y'
|
|
||||||
</trim>
|
|
||||||
order by sorts asc
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
|
||||||
<select id="getServiceByDistributeIdNoCase" resultType="com.hzya.frame.mdm.entity.MdmDistributeVo" parameterType="java.util.HashMap">
|
|
||||||
select
|
|
||||||
formmain_id as formmainId,
|
|
||||||
app_id as appId,
|
|
||||||
status,
|
|
||||||
msg
|
|
||||||
from ${tableName}
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
and formmain_id = #{id}
|
|
||||||
and sts = 'Y'
|
|
||||||
</trim>
|
|
||||||
order by sorts asc
|
|
||||||
</select>
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,11 @@ package com.hzya.frame.mdm.mdmModuleDb.service;
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
||||||
import com.hzya.frame.basedao.service.IBaseService;
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模版数据库表(MdmModuleDb)表服务接口
|
* 模版数据库表(MdmModuleDb)表服务接口
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:26:51
|
* @since 2024-06-03 08:46:51
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleDbService extends IBaseService<MdmModuleDbEntity, String> {
|
public interface IMdmModuleDbService extends IBaseService<MdmModuleDbEntity, String>{
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,16 +5,13 @@ import com.hzya.frame.mdm.mdmModuleDb.dao.IMdmModuleDbDao;
|
||||||
import com.hzya.frame.mdm.mdmModuleDb.service.IMdmModuleDbService;
|
import com.hzya.frame.mdm.mdmModuleDb.service.IMdmModuleDbService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模版数据库表(MdmModuleDb)表服务实现类
|
* 模版数据库表(MdmModuleDb)表服务实现类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:26:51
|
* @since 2024-06-03 08:46:52
|
||||||
*/
|
*/
|
||||||
@Service(value = "mdmModuleDbService")
|
@Service(value = "mdmModuleDbService")
|
||||||
public class MdmModuleDbServiceImpl extends BaseService<MdmModuleDbEntity, String> implements IMdmModuleDbService {
|
public class MdmModuleDbServiceImpl extends BaseService<MdmModuleDbEntity, String> implements IMdmModuleDbService {
|
||||||
|
@ -22,8 +19,8 @@ public class MdmModuleDbServiceImpl extends BaseService<MdmModuleDbEntity, Strin
|
||||||
private IMdmModuleDbDao mdmModuleDbDao;
|
private IMdmModuleDbDao mdmModuleDbDao;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public void setMdmModuleDbDao(IMdmModuleDbDao dao) {
|
public void setMdmModuleDbDao(IMdmModuleDbDao dao) {
|
||||||
this.mdmModuleDbDao = dao;
|
this.mdmModuleDbDao = dao;
|
||||||
this.dao = dao;
|
this.dao = dao;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
* 模版数据库字段表(mdm_module_db_fileds: table)表数据库访问层
|
* 模版数据库字段表(mdm_module_db_fileds: table)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:28:06
|
* @since 2024-06-03 08:47:01
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleDbFiledsDao extends IBaseDao<MdmModuleDbFiledsEntity, String> {
|
public interface IMdmModuleDbFiledsDao extends IBaseDao<MdmModuleDbFiledsEntity, String> {
|
||||||
|
|
||||||
|
|
|
@ -4,15 +4,14 @@ import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFileds.dao.IMdmModuleDbFiledsDao;
|
import com.hzya.frame.mdm.mdmModuleDbFileds.dao.IMdmModuleDbFiledsDao;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模版数据库字段表(MdmModuleDbFileds)表数据库访问层
|
* 模版数据库字段表(MdmModuleDbFileds)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:28:07
|
* @since 2024-06-03 08:47:01
|
||||||
*/
|
*/
|
||||||
@Repository(value = "MdmModuleDbFiledsDaoImpl")
|
@Repository(value = "MdmModuleDbFiledsDaoImpl")
|
||||||
public class MdmModuleDbFiledsDaoImpl extends MybatisGenericDao<MdmModuleDbFiledsEntity, String> implements IMdmModuleDbFiledsDao {
|
public class MdmModuleDbFiledsDaoImpl extends MybatisGenericDao<MdmModuleDbFiledsEntity, String> implements IMdmModuleDbFiledsDao{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,57 +5,43 @@ import java.util.List;
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity;
|
import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity;
|
||||||
import com.hzya.frame.web.entity.BaseEntity;
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模版数据库字段表(MdmModuleDbFileds)实体类
|
* 模版数据库字段表(MdmModuleDbFileds)实体类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:28:07
|
* @since 2024-06-03 08:47:01
|
||||||
*/
|
*/
|
||||||
public class MdmModuleDbFiledsEntity extends BaseEntity {
|
public class MdmModuleDbFiledsEntity extends BaseEntity {
|
||||||
|
|
||||||
/**
|
/** 主数据模版ID */
|
||||||
* 主数据模版ID
|
private String mdmId;
|
||||||
*/
|
/** 模版数据库id */
|
||||||
private String mdmId;
|
private String dbId;
|
||||||
/**
|
/** 中文名 */
|
||||||
* 模版数据库id
|
private String chName;
|
||||||
*/
|
/** 英文名 */
|
||||||
private String dbId;
|
private String enName;
|
||||||
/**
|
/** 字段类型 1、BIGINT 2、DECIMAL 3、VARCHAR 4、DATETIME */
|
||||||
* 中文名
|
private String filedType;
|
||||||
*/
|
/** 显示类型:新增 */
|
||||||
private String chName;
|
private String addType;
|
||||||
/**
|
/** 显示类型:修改 */
|
||||||
* 英文名
|
private String updateType;
|
||||||
*/
|
/** 显示类型:查看 */
|
||||||
private String enName;
|
private String showType;
|
||||||
/**
|
/** 显示类型:查询 */
|
||||||
* 字段类型 1、BIGINT 2、DECIMAL 3、VARCHAR 4、DATETIME
|
private String queryType;
|
||||||
*/
|
/** 显示类型:列表 */
|
||||||
private String filedType;
|
private String listType;
|
||||||
/**
|
/** 显示类型:显示 */
|
||||||
* 长度
|
private String viewType;
|
||||||
*/
|
/** 长度 */
|
||||||
private String filedLength;
|
private String filedLength;
|
||||||
/**
|
/** 公司id */
|
||||||
* roletype
|
private String companyId;
|
||||||
*/
|
/** 数据类型 1、新增 2、修改 */
|
||||||
private String roletype;
|
private String dataType;
|
||||||
/**
|
private List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRules;
|
||||||
* roletype
|
|
||||||
*/
|
|
||||||
private String roleValue;
|
|
||||||
//字段规则
|
|
||||||
private List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRules;
|
|
||||||
|
|
||||||
public List<MdmModuleDbFiledsRuleEntity> getMdmModuleDbFiledsRules() {
|
|
||||||
return mdmModuleDbFiledsRules;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmModuleDbFiledsRules(List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRules) {
|
|
||||||
this.mdmModuleDbFiledsRules = mdmModuleDbFiledsRules;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMdmId() {
|
public String getMdmId() {
|
||||||
return mdmId;
|
return mdmId;
|
||||||
|
@ -97,6 +83,54 @@ public class MdmModuleDbFiledsEntity extends BaseEntity {
|
||||||
this.filedType = filedType;
|
this.filedType = filedType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getAddType() {
|
||||||
|
return addType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAddType(String addType) {
|
||||||
|
this.addType = addType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateType() {
|
||||||
|
return updateType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateType(String updateType) {
|
||||||
|
this.updateType = updateType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getShowType() {
|
||||||
|
return showType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShowType(String showType) {
|
||||||
|
this.showType = showType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getQueryType() {
|
||||||
|
return queryType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQueryType(String queryType) {
|
||||||
|
this.queryType = queryType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getListType() {
|
||||||
|
return listType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setListType(String listType) {
|
||||||
|
this.listType = listType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getViewType() {
|
||||||
|
return viewType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setViewType(String viewType) {
|
||||||
|
this.viewType = viewType;
|
||||||
|
}
|
||||||
|
|
||||||
public String getFiledLength() {
|
public String getFiledLength() {
|
||||||
return filedLength;
|
return filedLength;
|
||||||
}
|
}
|
||||||
|
@ -105,20 +139,28 @@ public class MdmModuleDbFiledsEntity extends BaseEntity {
|
||||||
this.filedLength = filedLength;
|
this.filedLength = filedLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getRoletype() {
|
public String getCompanyId() {
|
||||||
return roletype;
|
return companyId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRoletype(String roletype) {
|
public void setCompanyId(String companyId) {
|
||||||
this.roletype = roletype;
|
this.companyId = companyId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getRoleValue() {
|
public List<MdmModuleDbFiledsRuleEntity> getMdmModuleDbFiledsRules() {
|
||||||
return roleValue;
|
return mdmModuleDbFiledsRules;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRoleValue(String roleValue) {
|
public void setMdmModuleDbFiledsRules(List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRules) {
|
||||||
this.roleValue = roleValue;
|
this.mdmModuleDbFiledsRules = mdmModuleDbFiledsRules;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDataType() {
|
||||||
|
return dataType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataType(String dataType) {
|
||||||
|
this.dataType = dataType;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,31 +2,43 @@
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.hzya.frame.mdm.mdmModuleDbFileds.dao.impl.MdmModuleDbFiledsDaoImpl">
|
<mapper namespace="com.hzya.frame.mdm.mdmModuleDbFileds.dao.impl.MdmModuleDbFiledsDaoImpl">
|
||||||
|
|
||||||
<resultMap id="get-MdmModuleDbFiledsEntity-result"
|
<resultMap id="get-MdmModuleDbFiledsEntity-result" type="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity" >
|
||||||
type="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
||||||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
<result property="dbId" column="db_id" jdbcType="VARCHAR"/>
|
||||||
<result property="dbId" column="db_id" jdbcType="VARCHAR"/>
|
<result property="chName" column="ch_name" jdbcType="VARCHAR"/>
|
||||||
<result property="chName" column="ch_name" jdbcType="VARCHAR"/>
|
<result property="enName" column="en_name" jdbcType="VARCHAR"/>
|
||||||
<result property="enName" column="en_name" jdbcType="VARCHAR"/>
|
<result property="filedType" column="filed_type" jdbcType="VARCHAR"/>
|
||||||
<result property="filedType" column="filed_type" jdbcType="VARCHAR"/>
|
<result property="addType" column="add_type" jdbcType="VARCHAR"/>
|
||||||
<result property="filedLength" column="filed_length" jdbcType="VARCHAR"/>
|
<result property="updateType" column="update_type" jdbcType="VARCHAR"/>
|
||||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
<result property="showType" column="show_type" jdbcType="VARCHAR"/>
|
||||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
<result property="queryType" column="query_type" jdbcType="VARCHAR"/>
|
||||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="listType" column="list_type" jdbcType="VARCHAR"/>
|
||||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
<result property="viewType" column="view_type" jdbcType="VARCHAR"/>
|
||||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
<result property="filedLength" column="filed_length" jdbcType="VARCHAR"/>
|
||||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
</resultMap>
|
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||||
|
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
<!-- 查询的字段-->
|
<!-- 查询的字段-->
|
||||||
<sql id="MdmModuleDbFiledsEntity_Base_Column_List">
|
<sql id = "MdmModuleDbFiledsEntity_Base_Column_List">
|
||||||
id
|
id
|
||||||
,mdm_id
|
,mdm_id
|
||||||
,db_id
|
,db_id
|
||||||
,ch_name
|
,ch_name
|
||||||
,en_name
|
,en_name
|
||||||
,filed_type
|
,filed_type
|
||||||
|
,add_type
|
||||||
|
,update_type
|
||||||
|
,show_type
|
||||||
|
,query_type
|
||||||
|
,list_type
|
||||||
|
,view_type
|
||||||
,filed_length
|
,filed_length
|
||||||
,sorts
|
,sorts
|
||||||
,create_user_id
|
,create_user_id
|
||||||
|
@ -35,245 +47,283 @@
|
||||||
,modify_time
|
,modify_time
|
||||||
,sts
|
,sts
|
||||||
,org_id
|
,org_id
|
||||||
|
,company_id
|
||||||
</sql>
|
</sql>
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="entity_list_base" resultMap="get-MdmModuleDbFiledsEntity-result"
|
<select id="entity_list_base" resultMap="get-MdmModuleDbFiledsEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
select
|
||||||
select
|
<include refid="MdmModuleDbFiledsEntity_Base_Column_List" />
|
||||||
<include refid="MdmModuleDbFiledsEntity_Base_Column_List"/>
|
from mdm_module_db_fileds
|
||||||
from mdm_module_db_fileds
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
<if test="dbId != null and dbId != ''"> and db_id = #{dbId} </if>
|
||||||
<if test="dbId != null and dbId != ''">and db_id = #{dbId}</if>
|
<if test="chName != null and chName != ''"> and ch_name = #{chName} </if>
|
||||||
<if test="chName != null and chName != ''">and ch_name = #{chName}</if>
|
<if test="enName != null and enName != ''"> and en_name = #{enName} </if>
|
||||||
<if test="enName != null and enName != ''">and en_name = #{enName}</if>
|
<if test="filedType != null and filedType != ''"> and filed_type = #{filedType} </if>
|
||||||
<if test="filedType != null and filedType != ''">and filed_type = #{filedType}</if>
|
<if test="addType != null and addType != ''"> and add_type = #{addType} </if>
|
||||||
<if test="filedLength != null and filedLength != ''">and filed_length = #{filedLength}</if>
|
<if test="updateType != null and updateType != ''"> and update_type = #{updateType} </if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="showType != null and showType != ''"> and show_type = #{showType} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
<if test="queryType != null and queryType != ''"> and query_type = #{queryType} </if>
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
<if test="listType != null and listType != ''"> and list_type = #{listType} </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
<if test="viewType != null and viewType != ''"> and view_type = #{viewType} </if>
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
<if test="filedLength != null and filedLength != ''"> and filed_length = #{filedLength} </if>
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||||
<if test="roletype != null and roletype != ''">
|
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||||
and id in (
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||||
select
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
filed_id
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
from mdm_module_db_fileds_rule
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
where sts='Y' and rule_code = #{roletype} and rule_value = #{roleValue}
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
)
|
|
||||||
</if>
|
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询符合条件的数量 -->
|
<!-- 查询符合条件的数量 -->
|
||||||
<select id="entity_count" resultType="Integer"
|
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
select count(1) from mdm_module_db_fileds
|
||||||
select count(1) from mdm_module_db_fileds
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
<if test="dbId != null and dbId != ''"> and db_id = #{dbId} </if>
|
||||||
<if test="dbId != null and dbId != ''">and db_id = #{dbId}</if>
|
<if test="chName != null and chName != ''"> and ch_name = #{chName} </if>
|
||||||
<if test="chName != null and chName != ''">and ch_name = #{chName}</if>
|
<if test="enName != null and enName != ''"> and en_name = #{enName} </if>
|
||||||
<if test="enName != null and enName != ''">and en_name = #{enName}</if>
|
<if test="filedType != null and filedType != ''"> and filed_type = #{filedType} </if>
|
||||||
<if test="filedType != null and filedType != ''">and filed_type = #{filedType}</if>
|
<if test="addType != null and addType != ''"> and add_type = #{addType} </if>
|
||||||
<if test="filedLength != null and filedLength != ''">and filed_length = #{filedLength}</if>
|
<if test="updateType != null and updateType != ''"> and update_type = #{updateType} </if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="showType != null and showType != ''"> and show_type = #{showType} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
<if test="queryType != null and queryType != ''"> and query_type = #{queryType} </if>
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
<if test="listType != null and listType != ''"> and list_type = #{listType} </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
<if test="viewType != null and viewType != ''"> and view_type = #{viewType} </if>
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
<if test="filedLength != null and filedLength != ''"> and filed_length = #{filedLength} </if>
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||||
|
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||||
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||||
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
<!-- 分页查询列表 采用like格式 -->
|
||||||
<select id="entity_list_like" resultMap="get-MdmModuleDbFiledsEntity-result"
|
<select id="entity_list_like" resultMap="get-MdmModuleDbFiledsEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
select
|
||||||
select
|
<include refid="MdmModuleDbFiledsEntity_Base_Column_List" />
|
||||||
<include refid="MdmModuleDbFiledsEntity_Base_Column_List"/>
|
from mdm_module_db_fileds
|
||||||
from mdm_module_db_fileds
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||||
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id like concat('%',#{mdmId},'%') </if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id like concat('%',#{mdmId},'%')</if>
|
<if test="dbId != null and dbId != ''"> and db_id like concat('%',#{dbId},'%') </if>
|
||||||
<if test="dbId != null and dbId != ''">and db_id like concat('%',#{dbId},'%')</if>
|
<if test="chName != null and chName != ''"> and ch_name like concat('%',#{chName},'%') </if>
|
||||||
<if test="chName != null and chName != ''">and ch_name like concat('%',#{chName},'%')</if>
|
<if test="enName != null and enName != ''"> and en_name like concat('%',#{enName},'%') </if>
|
||||||
<if test="enName != null and enName != ''">and en_name like concat('%',#{enName},'%')</if>
|
<if test="filedType != null and filedType != ''"> and filed_type like concat('%',#{filedType},'%') </if>
|
||||||
<if test="filedType != null and filedType != ''">and filed_type like concat('%',#{filedType},'%')</if>
|
<if test="addType != null and addType != ''"> and add_type like concat('%',#{addType},'%') </if>
|
||||||
<if test="filedLength != null and filedLength != ''">and filed_length like concat('%',#{filedLength},'%')
|
<if test="updateType != null and updateType != ''"> and update_type like concat('%',#{updateType},'%') </if>
|
||||||
</if>
|
<if test="showType != null and showType != ''"> and show_type like concat('%',#{showType},'%') </if>
|
||||||
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
<if test="queryType != null and queryType != ''"> and query_type like concat('%',#{queryType},'%') </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
<if test="listType != null and listType != ''"> and list_type like concat('%',#{listType},'%') </if>
|
||||||
concat('%',#{create_user_id},'%')
|
<if test="viewType != null and viewType != ''"> and view_type like concat('%',#{viewType},'%') </if>
|
||||||
</if>
|
<if test="filedLength != null and filedLength != ''"> and filed_length like concat('%',#{filedLength},'%') </if>
|
||||||
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||||
concat('%',#{modify_user_id},'%')
|
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||||
</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
||||||
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
|
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||||
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
|
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||||
<if test="org_id != null and org_id != ''">and org_id like concat('%',#{org_id},'%')</if>
|
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||||
|
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询列表 字段采用or格式 -->
|
<!-- 查询列表 字段采用or格式 -->
|
||||||
<select id="MdmModuleDbFiledsentity_list_or" resultMap="get-MdmModuleDbFiledsEntity-result"
|
<select id="MdmModuleDbFiledsentity_list_or" resultMap="get-MdmModuleDbFiledsEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
select
|
||||||
select
|
<include refid="MdmModuleDbFiledsEntity_Base_Column_List" />
|
||||||
<include refid="MdmModuleDbFiledsEntity_Base_Column_List"/>
|
from mdm_module_db_fileds
|
||||||
from mdm_module_db_fileds
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||||
<if test="id != null and id != ''">or id = #{id}</if>
|
<if test="mdmId != null and mdmId != ''"> or mdm_id = #{mdmId} </if>
|
||||||
<if test="mdmId != null and mdmId != ''">or mdm_id = #{mdmId}</if>
|
<if test="dbId != null and dbId != ''"> or db_id = #{dbId} </if>
|
||||||
<if test="dbId != null and dbId != ''">or db_id = #{dbId}</if>
|
<if test="chName != null and chName != ''"> or ch_name = #{chName} </if>
|
||||||
<if test="chName != null and chName != ''">or ch_name = #{chName}</if>
|
<if test="enName != null and enName != ''"> or en_name = #{enName} </if>
|
||||||
<if test="enName != null and enName != ''">or en_name = #{enName}</if>
|
<if test="filedType != null and filedType != ''"> or filed_type = #{filedType} </if>
|
||||||
<if test="filedType != null and filedType != ''">or filed_type = #{filedType}</if>
|
<if test="addType != null and addType != ''"> or add_type = #{addType} </if>
|
||||||
<if test="filedLength != null and filedLength != ''">or filed_length = #{filedLength}</if>
|
<if test="updateType != null and updateType != ''"> or update_type = #{updateType} </if>
|
||||||
<if test="sorts != null">or sorts = #{sorts}</if>
|
<if test="showType != null and showType != ''"> or show_type = #{showType} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
<if test="queryType != null and queryType != ''"> or query_type = #{queryType} </if>
|
||||||
<if test="create_time != null">or create_time = #{create_time}</if>
|
<if test="listType != null and listType != ''"> or list_type = #{listType} </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
|
<if test="viewType != null and viewType != ''"> or view_type = #{viewType} </if>
|
||||||
<if test="modify_time != null">or modify_time = #{modify_time}</if>
|
<if test="filedLength != null and filedLength != ''"> or filed_length = #{filedLength} </if>
|
||||||
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||||
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
|
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||||
|
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||||
|
<if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
|
||||||
|
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||||
|
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||||
|
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||||
|
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--新增所有列-->
|
<!--新增所有列-->
|
||||||
<insert id="entity_insert" parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity"
|
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity" >
|
||||||
>
|
insert into mdm_module_db_fileds(
|
||||||
insert into mdm_module_db_fileds(
|
<trim suffix="" suffixOverrides=",">
|
||||||
<trim suffix="" suffixOverrides=",">
|
<if test="id != null and id != ''"> id , </if>
|
||||||
<if test="id != null and id != ''">id ,</if>
|
<if test="mdmId != null and mdmId != ''"> mdm_id , </if>
|
||||||
<if test="mdmId != null and mdmId != ''">mdm_id ,</if>
|
<if test="dbId != null and dbId != ''"> db_id , </if>
|
||||||
<if test="dbId != null and dbId != ''">db_id ,</if>
|
<if test="chName != null and chName != ''"> ch_name , </if>
|
||||||
<if test="chName != null and chName != ''">ch_name ,</if>
|
<if test="enName != null and enName != ''"> en_name , </if>
|
||||||
<if test="enName != null and enName != ''">en_name ,</if>
|
<if test="filedType != null and filedType != ''"> filed_type , </if>
|
||||||
<if test="filedType != null and filedType != ''">filed_type ,</if>
|
<if test="addType != null and addType != ''"> add_type , </if>
|
||||||
<if test="filedLength != null and filedLength != ''">filed_length ,</if>
|
<if test="updateType != null and updateType != ''"> update_type , </if>
|
||||||
<if test="sorts != null">sorts ,</if>
|
<if test="showType != null and showType != ''"> show_type , </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
<if test="queryType != null and queryType != ''"> query_type , </if>
|
||||||
<if test="create_time != null">create_time ,</if>
|
<if test="listType != null and listType != ''"> list_type , </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
<if test="viewType != null and viewType != ''"> view_type , </if>
|
||||||
<if test="modify_time != null">modify_time ,</if>
|
<if test="filedLength != null and filedLength != ''"> filed_length , </if>
|
||||||
<if test="sts != null and sts != ''">sts ,</if>
|
<if test="sorts != null"> sorts , </if>
|
||||||
<if test="org_id != null and org_id != ''">org_id ,</if>
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||||
<if test="sts == null ">sts,</if>
|
<if test="create_time != null"> create_time , </if>
|
||||||
</trim>
|
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
||||||
)values(
|
<if test="modify_time != null"> modify_time , </if>
|
||||||
<trim suffix="" suffixOverrides=",">
|
<if test="sts != null and sts != ''"> sts , </if>
|
||||||
<if test="id != null and id != ''">#{id} ,</if>
|
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||||
<if test="mdmId != null and mdmId != ''">#{mdmId} ,</if>
|
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||||
<if test="dbId != null and dbId != ''">#{dbId} ,</if>
|
<if test="sts == null ">sts,</if>
|
||||||
<if test="chName != null and chName != ''">#{chName} ,</if>
|
</trim>
|
||||||
<if test="enName != null and enName != ''">#{enName} ,</if>
|
)values(
|
||||||
<if test="filedType != null and filedType != ''">#{filedType} ,</if>
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="filedLength != null and filedLength != ''">#{filedLength} ,</if>
|
<if test="id != null and id != ''"> #{id} ,</if>
|
||||||
<if test="sorts != null">#{sorts} ,</if>
|
<if test="mdmId != null and mdmId != ''"> #{mdmId} ,</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
<if test="dbId != null and dbId != ''"> #{dbId} ,</if>
|
||||||
<if test="create_time != null">#{create_time} ,</if>
|
<if test="chName != null and chName != ''"> #{chName} ,</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
<if test="enName != null and enName != ''"> #{enName} ,</if>
|
||||||
<if test="modify_time != null">#{modify_time} ,</if>
|
<if test="filedType != null and filedType != ''"> #{filedType} ,</if>
|
||||||
<if test="sts != null and sts != ''">#{sts} ,</if>
|
<if test="addType != null and addType != ''"> #{addType} ,</if>
|
||||||
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
<if test="updateType != null and updateType != ''"> #{updateType} ,</if>
|
||||||
|
<if test="showType != null and showType != ''"> #{showType} ,</if>
|
||||||
<if test="sts == null ">'Y',</if>
|
<if test="queryType != null and queryType != ''"> #{queryType} ,</if>
|
||||||
</trim>
|
<if test="listType != null and listType != ''"> #{listType} ,</if>
|
||||||
)
|
<if test="viewType != null and viewType != ''"> #{viewType} ,</if>
|
||||||
</insert>
|
<if test="filedLength != null and filedLength != ''"> #{filedLength} ,</if>
|
||||||
<!-- 批量新增 -->
|
<if test="sorts != null"> #{sorts} ,</if>
|
||||||
<insert id="entityInsertBatch" >
|
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||||
insert into mdm_module_db_fileds(mdm_id, db_id, ch_name, en_name, filed_type, filed_length, sorts,
|
<if test="create_time != null"> #{create_time} ,</if>
|
||||||
create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
|
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
||||||
values
|
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||||
(#{entity.mdmId},#{entity.dbId},#{entity.chName},#{entity.enName},#{entity.filedType},#{entity.filedLength},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},
|
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||||
'Y')
|
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||||
</foreach>
|
<if test="sts == null ">'Y',</if>
|
||||||
</insert>
|
</trim>
|
||||||
<!-- 批量新增或者修改-->
|
)
|
||||||
<insert id="entityInsertOrUpdateBatch" >
|
</insert>
|
||||||
insert into mdm_module_db_fileds(mdm_id, db_id, ch_name, en_name, filed_type, filed_length, sorts,
|
<!-- 批量新增 -->
|
||||||
create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
<insert id="entityInsertBatch" >
|
||||||
values
|
insert into mdm_module_db_fileds(mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
values
|
||||||
(#{entity.mdmId},#{entity.dbId},#{entity.chName},#{entity.enName},#{entity.filedType},#{entity.filedLength},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id})
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
</foreach>
|
(#{entity.mdmId},#{entity.dbId},#{entity.chName},#{entity.enName},#{entity.filedType},#{entity.addType},#{entity.updateType},#{entity.showType},#{entity.queryType},#{entity.listType},#{entity.viewType},#{entity.filedLength},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||||
on duplicate key update
|
</foreach>
|
||||||
mdm_id = values(mdm_id),
|
</insert>
|
||||||
db_id = values(db_id),
|
<!-- 批量新增或者修改-->
|
||||||
ch_name = values(ch_name),
|
<insert id="entityInsertOrUpdateBatch" >
|
||||||
en_name = values(en_name),
|
insert into mdm_module_db_fileds(mdm_id, db_id, ch_name, en_name, filed_type, add_type, update_type, show_type, query_type, list_type, view_type, filed_length, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||||
filed_type = values(filed_type),
|
values
|
||||||
filed_length = values(filed_length),
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
sorts = values(sorts),
|
(#{entity.mdmId},#{entity.dbId},#{entity.chName},#{entity.enName},#{entity.filedType},#{entity.addType},#{entity.updateType},#{entity.showType},#{entity.queryType},#{entity.listType},#{entity.viewType},#{entity.filedLength},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||||
create_user_id = values(create_user_id),
|
</foreach>
|
||||||
create_time = values(create_time),
|
on duplicate key update
|
||||||
modify_user_id = values(modify_user_id),
|
mdm_id = values(mdm_id),
|
||||||
modify_time = values(modify_time),
|
db_id = values(db_id),
|
||||||
sts = values(sts),
|
ch_name = values(ch_name),
|
||||||
org_id = values(org_id)
|
en_name = values(en_name),
|
||||||
</insert>
|
filed_type = values(filed_type),
|
||||||
<!--通过主键修改方法-->
|
add_type = values(add_type),
|
||||||
<update id="entity_update" parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
update_type = values(update_type),
|
||||||
update mdm_module_db_fileds set
|
show_type = values(show_type),
|
||||||
<trim suffix="" suffixOverrides=",">
|
query_type = values(query_type),
|
||||||
<if test="mdmId != null and mdmId != ''">mdm_id = #{mdmId},</if>
|
list_type = values(list_type),
|
||||||
<if test="dbId != null and dbId != ''">db_id = #{dbId},</if>
|
view_type = values(view_type),
|
||||||
<if test="chName != null and chName != ''">ch_name = #{chName},</if>
|
filed_length = values(filed_length),
|
||||||
<if test="enName != null and enName != ''">en_name = #{enName},</if>
|
create_user_id = values(create_user_id),
|
||||||
<if test="filedType != null and filedType != ''">filed_type = #{filedType},</if>
|
create_time = values(create_time),
|
||||||
<if test="filedLength != null and filedLength != ''">filed_length = #{filedLength},</if>
|
modify_user_id = values(modify_user_id),
|
||||||
<if test="sorts != null">sorts = #{sorts},</if>
|
modify_time = values(modify_time),
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
sts = values(sts),
|
||||||
<if test="create_time != null">create_time = #{create_time},</if>
|
org_id = values(org_id),
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
|
company_id = values(company_id)</insert>
|
||||||
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
<!--通过主键修改方法-->
|
||||||
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
<update id="entity_update" parameterType = "com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity" >
|
||||||
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
update mdm_module_db_fileds set
|
||||||
</trim>
|
<trim suffix="" suffixOverrides=",">
|
||||||
where id = #{id}
|
<if test="mdmId != null and mdmId != ''"> mdm_id = #{mdmId},</if>
|
||||||
</update>
|
<if test="dbId != null and dbId != ''"> db_id = #{dbId},</if>
|
||||||
<!-- 逻辑删除 -->
|
<if test="chName != null and chName != ''"> ch_name = #{chName},</if>
|
||||||
<update id="entity_logicDelete" parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
<if test="enName != null and enName != ''"> en_name = #{enName},</if>
|
||||||
|
<if test="filedType != null and filedType != ''"> filed_type = #{filedType},</if>
|
||||||
|
<if test="addType != null and addType != ''"> add_type = #{addType},</if>
|
||||||
|
<if test="updateType != null and updateType != ''"> update_type = #{updateType},</if>
|
||||||
|
<if test="showType != null and showType != ''"> show_type = #{showType},</if>
|
||||||
|
<if test="queryType != null and queryType != ''"> query_type = #{queryType},</if>
|
||||||
|
<if test="listType != null and listType != ''"> list_type = #{listType},</if>
|
||||||
|
<if test="viewType != null and viewType != ''"> view_type = #{viewType},</if>
|
||||||
|
<if test="filedLength != null and filedLength != ''"> filed_length = #{filedLength},</if>
|
||||||
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||||
|
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||||
|
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||||
|
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||||
|
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||||
|
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||||
|
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
<!-- 逻辑删除 -->
|
||||||
|
<update id="entity_logicDelete" parameterType = "com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity" >
|
||||||
update mdm_module_db_fileds set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
update mdm_module_db_fileds set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
<!-- 多条件逻辑删除 -->
|
<!-- 多条件逻辑删除 -->
|
||||||
<update id="entity_logicDelete_Multi_Condition"
|
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity" >
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity">
|
update mdm_module_db_fileds set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
update mdm_module_db_fileds set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
<if test="dbId != null and dbId != ''"> and db_id = #{dbId} </if>
|
||||||
<if test="dbId != null and dbId != ''">and db_id = #{dbId}</if>
|
<if test="chName != null and chName != ''"> and ch_name = #{chName} </if>
|
||||||
<if test="chName != null and chName != ''">and ch_name = #{chName}</if>
|
<if test="enName != null and enName != ''"> and en_name = #{enName} </if>
|
||||||
<if test="enName != null and enName != ''">and en_name = #{enName}</if>
|
<if test="filedType != null and filedType != ''"> and filed_type = #{filedType} </if>
|
||||||
<if test="filedType != null and filedType != ''">and filed_type = #{filedType}</if>
|
<if test="addType != null and addType != ''"> and add_type = #{addType} </if>
|
||||||
<if test="filedLength != null and filedLength != ''">and filed_length = #{filedLength}</if>
|
<if test="updateType != null and updateType != ''"> and update_type = #{updateType} </if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="showType != null and showType != ''"> and show_type = #{showType} </if>
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
<if test="queryType != null and queryType != ''"> and query_type = #{queryType} </if>
|
||||||
|
<if test="listType != null and listType != ''"> and list_type = #{listType} </if>
|
||||||
|
<if test="viewType != null and viewType != ''"> and view_type = #{viewType} </if>
|
||||||
|
<if test="filedLength != null and filedLength != ''"> and filed_length = #{filedLength} </if>
|
||||||
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
</update>
|
</update>
|
||||||
<!--通过主键删除-->
|
<!--通过主键删除-->
|
||||||
<delete id="entity_delete">
|
<delete id="entity_delete">
|
||||||
delete from mdm_module_db_fileds where id = #{id}
|
delete from mdm_module_db_fileds where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,11 @@ package com.hzya.frame.mdm.mdmModuleDbFileds.service;
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
|
import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
|
||||||
import com.hzya.frame.basedao.service.IBaseService;
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模版数据库字段表(MdmModuleDbFileds)表服务接口
|
* 模版数据库字段表(MdmModuleDbFileds)表服务接口
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:28:09
|
* @since 2024-06-03 08:47:01
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleDbFiledsService extends IBaseService<MdmModuleDbFiledsEntity, String> {
|
public interface IMdmModuleDbFiledsService extends IBaseService<MdmModuleDbFiledsEntity, String>{
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,16 +5,13 @@ import com.hzya.frame.mdm.mdmModuleDbFileds.dao.IMdmModuleDbFiledsDao;
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFileds.service.IMdmModuleDbFiledsService;
|
import com.hzya.frame.mdm.mdmModuleDbFileds.service.IMdmModuleDbFiledsService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模版数据库字段表(MdmModuleDbFileds)表服务实现类
|
* 模版数据库字段表(MdmModuleDbFileds)表服务实现类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:28:09
|
* @since 2024-06-03 08:47:01
|
||||||
*/
|
*/
|
||||||
@Service(value = "mdmModuleDbFiledsService")
|
@Service(value = "mdmModuleDbFiledsService")
|
||||||
public class MdmModuleDbFiledsServiceImpl extends BaseService<MdmModuleDbFiledsEntity, String> implements IMdmModuleDbFiledsService {
|
public class MdmModuleDbFiledsServiceImpl extends BaseService<MdmModuleDbFiledsEntity, String> implements IMdmModuleDbFiledsService {
|
||||||
|
@ -22,8 +19,8 @@ public class MdmModuleDbFiledsServiceImpl extends BaseService<MdmModuleDbFiledsE
|
||||||
private IMdmModuleDbFiledsDao mdmModuleDbFiledsDao;
|
private IMdmModuleDbFiledsDao mdmModuleDbFiledsDao;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public void setMdmModuleDbFiledsDao(IMdmModuleDbFiledsDao dao) {
|
public void setMdmModuleDbFiledsDao(IMdmModuleDbFiledsDao dao) {
|
||||||
this.mdmModuleDbFiledsDao = dao;
|
this.mdmModuleDbFiledsDao = dao;
|
||||||
this.dao = dao;
|
this.dao = dao;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
* 模版数据库字段规则表(mdm_module_db_fileds_rule: table)表数据库访问层
|
* 模版数据库字段规则表(mdm_module_db_fileds_rule: table)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-04 11:16:44
|
* @since 2024-06-03 08:47:10
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleDbFiledsRuleDao extends IBaseDao<MdmModuleDbFiledsRuleEntity, String> {
|
public interface IMdmModuleDbFiledsRuleDao extends IBaseDao<MdmModuleDbFiledsRuleEntity, String> {
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
* 模版数据库字段规则表(MdmModuleDbFiledsRule)表数据库访问层
|
* 模版数据库字段规则表(MdmModuleDbFiledsRule)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-04 11:16:44
|
* @since 2024-06-03 08:47:10
|
||||||
*/
|
*/
|
||||||
@Repository(value = "MdmModuleDbFiledsRuleDaoImpl")
|
@Repository(value = "MdmModuleDbFiledsRuleDaoImpl")
|
||||||
public class MdmModuleDbFiledsRuleDaoImpl extends MybatisGenericDao<MdmModuleDbFiledsRuleEntity, String> implements IMdmModuleDbFiledsRuleDao{
|
public class MdmModuleDbFiledsRuleDaoImpl extends MybatisGenericDao<MdmModuleDbFiledsRuleEntity, String> implements IMdmModuleDbFiledsRuleDao{
|
||||||
|
|
|
@ -6,7 +6,7 @@ import com.hzya.frame.web.entity.BaseEntity;
|
||||||
* 模版数据库字段规则表(MdmModuleDbFiledsRule)实体类
|
* 模版数据库字段规则表(MdmModuleDbFiledsRule)实体类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-04 11:16:44
|
* @since 2024-06-03 08:47:10
|
||||||
*/
|
*/
|
||||||
public class MdmModuleDbFiledsRuleEntity extends BaseEntity {
|
public class MdmModuleDbFiledsRuleEntity extends BaseEntity {
|
||||||
|
|
||||||
|
@ -26,7 +26,10 @@ public class MdmModuleDbFiledsRuleEntity extends BaseEntity {
|
||||||
private String ruleValue;
|
private String ruleValue;
|
||||||
/** 规则类型1、表单属性 2、控件属性 */
|
/** 规则类型1、表单属性 2、控件属性 */
|
||||||
private String ruleType;
|
private String ruleType;
|
||||||
|
/** 公司id */
|
||||||
|
private String companyId;
|
||||||
|
/** 数据类型 1、新增 2、修改 */
|
||||||
|
private String dataType;
|
||||||
|
|
||||||
public String getMdmId() {
|
public String getMdmId() {
|
||||||
return mdmId;
|
return mdmId;
|
||||||
|
@ -92,5 +95,20 @@ public class MdmModuleDbFiledsRuleEntity extends BaseEntity {
|
||||||
this.ruleType = ruleType;
|
this.ruleType = ruleType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getCompanyId() {
|
||||||
|
return companyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCompanyId(String companyId) {
|
||||||
|
this.companyId = companyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDataType() {
|
||||||
|
return dataType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataType(String dataType) {
|
||||||
|
this.dataType = dataType;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<!-- 查询的字段-->
|
<!-- 查询的字段-->
|
||||||
<sql id = "MdmModuleDbFiledsRuleEntity_Base_Column_List">
|
<sql id = "MdmModuleDbFiledsRuleEntity_Base_Column_List">
|
||||||
|
@ -38,6 +39,7 @@
|
||||||
,modify_time
|
,modify_time
|
||||||
,sts
|
,sts
|
||||||
,org_id
|
,org_id
|
||||||
|
,company_id
|
||||||
</sql>
|
</sql>
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="entity_list_base" resultMap="get-MdmModuleDbFiledsRuleEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity">
|
<select id="entity_list_base" resultMap="get-MdmModuleDbFiledsRuleEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity">
|
||||||
|
@ -61,6 +63,7 @@
|
||||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
|
@ -87,6 +90,7 @@
|
||||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
|
@ -115,6 +119,7 @@
|
||||||
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||||
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||||
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||||
|
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
|
@ -143,14 +148,15 @@
|
||||||
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||||
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||||
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||||
and sts='Y'
|
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||||
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--新增所有列-->
|
<!--新增所有列-->
|
||||||
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity" >
|
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity" >
|
||||||
insert into mdm_module_db_fileds_rule(
|
insert into mdm_module_db_fileds_rule(
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="id != null and id != ''"> id , </if>
|
<if test="id != null and id != ''"> id , </if>
|
||||||
|
@ -169,6 +175,7 @@
|
||||||
<if test="modify_time != null"> modify_time , </if>
|
<if test="modify_time != null"> modify_time , </if>
|
||||||
<if test="sts != null and sts != ''"> sts , </if>
|
<if test="sts != null and sts != ''"> sts , </if>
|
||||||
<if test="org_id != null and org_id != ''"> org_id , </if>
|
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||||
|
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||||
<if test="sts == null ">sts,</if>
|
<if test="sts == null ">sts,</if>
|
||||||
</trim>
|
</trim>
|
||||||
)values(
|
)values(
|
||||||
|
@ -189,24 +196,25 @@
|
||||||
<if test="modify_time != null"> #{modify_time} ,</if>
|
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||||
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||||
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||||
|
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||||
<if test="sts == null ">'Y',</if>
|
<if test="sts == null ">'Y',</if>
|
||||||
</trim>
|
</trim>
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<!-- 批量新增 -->
|
<!-- 批量新增 -->
|
||||||
<insert id="entityInsertBatch" >
|
<insert id="entityInsertBatch" >
|
||||||
insert into mdm_module_db_fileds_rule(mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
|
insert into mdm_module_db_fileds_rule(mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||||
values
|
values
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
(#{entity.mdmId},#{entity.formName},#{entity.dbId},#{entity.filedId},#{entity.ruleName},#{entity.ruleCode},#{entity.ruleValue},#{entity.ruleType},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id}, 'Y')
|
(#{entity.mdmId},#{entity.formName},#{entity.dbId},#{entity.filedId},#{entity.ruleName},#{entity.ruleCode},#{entity.ruleValue},#{entity.ruleType},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
<!-- 批量新增或者修改-->
|
<!-- 批量新增或者修改-->
|
||||||
<insert id="entityInsertOrUpdateBatch" >
|
<insert id="entityInsertOrUpdateBatch" >
|
||||||
insert into mdm_module_db_fileds_rule(mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
insert into mdm_module_db_fileds_rule(mdm_id, form_name, db_id, filed_id, rule_name, rule_code, rule_value, rule_type, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||||
values
|
values
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
(#{entity.mdmId},#{entity.formName},#{entity.dbId},#{entity.filedId},#{entity.ruleName},#{entity.ruleCode},#{entity.ruleValue},#{entity.ruleType},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id})
|
(#{entity.mdmId},#{entity.formName},#{entity.dbId},#{entity.filedId},#{entity.ruleName},#{entity.ruleCode},#{entity.ruleValue},#{entity.ruleType},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||||
</foreach>
|
</foreach>
|
||||||
on duplicate key update
|
on duplicate key update
|
||||||
mdm_id = values(mdm_id),
|
mdm_id = values(mdm_id),
|
||||||
|
@ -217,13 +225,13 @@
|
||||||
rule_code = values(rule_code),
|
rule_code = values(rule_code),
|
||||||
rule_value = values(rule_value),
|
rule_value = values(rule_value),
|
||||||
rule_type = values(rule_type),
|
rule_type = values(rule_type),
|
||||||
sorts = values(sorts),
|
|
||||||
create_user_id = values(create_user_id),
|
create_user_id = values(create_user_id),
|
||||||
create_time = values(create_time),
|
create_time = values(create_time),
|
||||||
modify_user_id = values(modify_user_id),
|
modify_user_id = values(modify_user_id),
|
||||||
modify_time = values(modify_time),
|
modify_time = values(modify_time),
|
||||||
sts = values(sts),
|
sts = values(sts),
|
||||||
org_id = values(org_id)</insert>
|
org_id = values(org_id),
|
||||||
|
company_id = values(company_id)</insert>
|
||||||
<!--通过主键修改方法-->
|
<!--通过主键修改方法-->
|
||||||
<update id="entity_update" parameterType = "com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity" >
|
<update id="entity_update" parameterType = "com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity" >
|
||||||
update mdm_module_db_fileds_rule set
|
update mdm_module_db_fileds_rule set
|
||||||
|
@ -236,14 +244,14 @@ update mdm_module_db_fileds_rule set
|
||||||
<if test="ruleCode != null and ruleCode != ''"> rule_code = #{ruleCode},</if>
|
<if test="ruleCode != null and ruleCode != ''"> rule_code = #{ruleCode},</if>
|
||||||
<if test="ruleValue != null and ruleValue != ''"> rule_value = #{ruleValue},</if>
|
<if test="ruleValue != null and ruleValue != ''"> rule_value = #{ruleValue},</if>
|
||||||
<if test="ruleType != null and ruleType != ''"> rule_type = #{ruleType},</if>
|
<if test="ruleType != null and ruleType != ''"> rule_type = #{ruleType},</if>
|
||||||
<if test="sorts != null"> sorts = #{sorts},</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||||
<if test="create_time != null"> create_time = #{create_time},</if>
|
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||||
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||||
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||||
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||||
</trim>
|
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||||
|
</trim>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
<!-- 逻辑删除 -->
|
<!-- 逻辑删除 -->
|
||||||
|
@ -266,7 +274,8 @@ update mdm_module_db_fileds_rule set sts= 'N' ,modify_time = #{modify_time},mod
|
||||||
<if test="ruleType != null and ruleType != ''"> and rule_type = #{ruleType} </if>
|
<if test="ruleType != null and ruleType != ''"> and rule_type = #{ruleType} </if>
|
||||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
and sts='Y'
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
</update>
|
</update>
|
||||||
<!--通过主键删除-->
|
<!--通过主键删除-->
|
||||||
|
|
|
@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService;
|
||||||
* 模版数据库字段规则表(MdmModuleDbFiledsRule)表服务接口
|
* 模版数据库字段规则表(MdmModuleDbFiledsRule)表服务接口
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-04 11:16:44
|
* @since 2024-06-03 08:47:10
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleDbFiledsRuleService extends IBaseService<MdmModuleDbFiledsRuleEntity, String>{
|
public interface IMdmModuleDbFiledsRuleService extends IBaseService<MdmModuleDbFiledsRuleEntity, String>{
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
* 模版数据库字段规则表(MdmModuleDbFiledsRule)表服务实现类
|
* 模版数据库字段规则表(MdmModuleDbFiledsRule)表服务实现类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-04 11:16:44
|
* @since 2024-06-03 08:47:10
|
||||||
*/
|
*/
|
||||||
@Service(value = "mdmModuleDbFiledsRuleService")
|
@Service(value = "mdmModuleDbFiledsRuleService")
|
||||||
public class MdmModuleDbFiledsRuleServiceImpl extends BaseService<MdmModuleDbFiledsRuleEntity, String> implements IMdmModuleDbFiledsRuleService {
|
public class MdmModuleDbFiledsRuleServiceImpl extends BaseService<MdmModuleDbFiledsRuleEntity, String> implements IMdmModuleDbFiledsRuleService {
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.dao;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity;
|
|
||||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 模版数据库字段规则档案表(mdm_module_db_fileds_rule_files: table)表数据库访问层
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:30:12
|
|
||||||
*/
|
|
||||||
public interface IMdmModuleDbFiledsRuleFilesDao extends IBaseDao<MdmModuleDbFiledsRuleFilesEntity, String> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.dao.impl;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.dao.IMdmModuleDbFiledsRuleFilesDao;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 模版数据库字段规则档案表(MdmModuleDbFiledsRuleFiles)表数据库访问层
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:30:12
|
|
||||||
*/
|
|
||||||
@Repository(value = "MdmModuleDbFiledsRuleFilesDaoImpl")
|
|
||||||
public class MdmModuleDbFiledsRuleFilesDaoImpl extends MybatisGenericDao<MdmModuleDbFiledsRuleFilesEntity, String> implements IMdmModuleDbFiledsRuleFilesDao {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,66 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
import com.hzya.frame.web.entity.BaseEntity;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 模版数据库字段规则档案表(MdmModuleDbFiledsRuleFiles)实体类
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:30:13
|
|
||||||
*/
|
|
||||||
public class MdmModuleDbFiledsRuleFilesEntity extends BaseEntity {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 规则名称
|
|
||||||
*/
|
|
||||||
private String ruleName;
|
|
||||||
/**
|
|
||||||
* 规则编码
|
|
||||||
*/
|
|
||||||
private String ruleCode;
|
|
||||||
/**
|
|
||||||
* 规则类型 1、表单属性 2、控件属性
|
|
||||||
*/
|
|
||||||
private String ruleType;
|
|
||||||
/**
|
|
||||||
* 规则值
|
|
||||||
*/
|
|
||||||
private String ruleValue;
|
|
||||||
|
|
||||||
|
|
||||||
public String getRuleName() {
|
|
||||||
return ruleName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRuleName(String ruleName) {
|
|
||||||
this.ruleName = ruleName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRuleCode() {
|
|
||||||
return ruleCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRuleCode(String ruleCode) {
|
|
||||||
this.ruleCode = ruleCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRuleType() {
|
|
||||||
return ruleType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRuleType(String ruleType) {
|
|
||||||
this.ruleType = ruleType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRuleValue() {
|
|
||||||
return ruleValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRuleValue(String ruleValue) {
|
|
||||||
this.ruleValue = ruleValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,254 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.dao.impl.MdmModuleDbFiledsRuleFilesDaoImpl">
|
|
||||||
|
|
||||||
<resultMap id="get-MdmModuleDbFiledsRuleFilesEntity-result"
|
|
||||||
type="com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity">
|
|
||||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="ruleName" column="rule_name" jdbcType="VARCHAR"/>
|
|
||||||
<result property="ruleCode" column="rule_code" jdbcType="VARCHAR"/>
|
|
||||||
<result property="ruleType" column="rule_type" jdbcType="VARCHAR"/>
|
|
||||||
<result property="ruleValue" column="rule_value" jdbcType="VARCHAR"/>
|
|
||||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
|
||||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
|
||||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
|
||||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
|
||||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
|
||||||
</resultMap>
|
|
||||||
<!-- 查询的字段-->
|
|
||||||
<sql id="MdmModuleDbFiledsRuleFilesEntity_Base_Column_List">
|
|
||||||
id
|
|
||||||
,rule_name
|
|
||||||
,rule_code
|
|
||||||
,rule_type
|
|
||||||
,rule_value
|
|
||||||
,sorts
|
|
||||||
,create_user_id
|
|
||||||
,create_time
|
|
||||||
,modify_user_id
|
|
||||||
,modify_time
|
|
||||||
,sts
|
|
||||||
,org_id
|
|
||||||
</sql>
|
|
||||||
<!-- 查询 采用==查询 -->
|
|
||||||
<select id="entity_list_base" resultMap="get-MdmModuleDbFiledsRuleFilesEntity-result"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity">
|
|
||||||
select
|
|
||||||
<include refid="MdmModuleDbFiledsRuleFilesEntity_Base_Column_List"/>
|
|
||||||
from mdm_module_db_fileds_rule_files
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
|
||||||
<if test="ruleName != null and ruleName != ''">and rule_name = #{ruleName}</if>
|
|
||||||
<if test="ruleCode != null and ruleCode != ''">and rule_code = #{ruleCode}</if>
|
|
||||||
<if test="ruleType != null and ruleType != ''">and rule_type = #{ruleType}</if>
|
|
||||||
<if test="ruleValue != null and ruleValue != ''">and rule_value = #{ruleValue}</if>
|
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 查询符合条件的数量 -->
|
|
||||||
<select id="entity_count" resultType="Integer"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity">
|
|
||||||
select count(1) from mdm_module_db_fileds_rule_files
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
|
||||||
<if test="ruleName != null and ruleName != ''">and rule_name = #{ruleName}</if>
|
|
||||||
<if test="ruleCode != null and ruleCode != ''">and rule_code = #{ruleCode}</if>
|
|
||||||
<if test="ruleType != null and ruleType != ''">and rule_type = #{ruleType}</if>
|
|
||||||
<if test="ruleValue != null and ruleValue != ''">and rule_value = #{ruleValue}</if>
|
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
|
||||||
<select id="entity_list_like" resultMap="get-MdmModuleDbFiledsRuleFilesEntity-result"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity">
|
|
||||||
select
|
|
||||||
<include refid="MdmModuleDbFiledsRuleFilesEntity_Base_Column_List"/>
|
|
||||||
from mdm_module_db_fileds_rule_files
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
|
||||||
<if test="ruleName != null and ruleName != ''">and rule_name like concat('%',#{ruleName},'%')</if>
|
|
||||||
<if test="ruleCode != null and ruleCode != ''">and rule_code like concat('%',#{ruleCode},'%')</if>
|
|
||||||
<if test="ruleType != null and ruleType != ''">and rule_type like concat('%',#{ruleType},'%')</if>
|
|
||||||
<if test="ruleValue != null and ruleValue != ''">and rule_value like concat('%',#{ruleValue},'%')</if>
|
|
||||||
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
|
||||||
concat('%',#{create_user_id},'%')
|
|
||||||
</if>
|
|
||||||
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
|
|
||||||
concat('%',#{modify_user_id},'%')
|
|
||||||
</if>
|
|
||||||
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
|
|
||||||
<if test="org_id != null and org_id != ''">and org_id like concat('%',#{org_id},'%')</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 查询列表 字段采用or格式 -->
|
|
||||||
<select id="MdmModuleDbFiledsRuleFilesentity_list_or" resultMap="get-MdmModuleDbFiledsRuleFilesEntity-result"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity">
|
|
||||||
select
|
|
||||||
<include refid="MdmModuleDbFiledsRuleFilesEntity_Base_Column_List"/>
|
|
||||||
from mdm_module_db_fileds_rule_files
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">or id = #{id}</if>
|
|
||||||
<if test="ruleName != null and ruleName != ''">or rule_name = #{ruleName}</if>
|
|
||||||
<if test="ruleCode != null and ruleCode != ''">or rule_code = #{ruleCode}</if>
|
|
||||||
<if test="ruleType != null and ruleType != ''">or rule_type = #{ruleType}</if>
|
|
||||||
<if test="ruleValue != null and ruleValue != ''">or rule_value = #{ruleValue}</if>
|
|
||||||
<if test="sorts != null">or sorts = #{sorts}</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
|
||||||
<if test="create_time != null">or create_time = #{create_time}</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
|
|
||||||
<if test="modify_time != null">or modify_time = #{modify_time}</if>
|
|
||||||
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
|
||||||
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!--新增所有列-->
|
|
||||||
<insert id="entity_insert"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity"
|
|
||||||
>
|
|
||||||
insert into mdm_module_db_fileds_rule_files(
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="id != null and id != ''">id ,</if>
|
|
||||||
<if test="ruleName != null and ruleName != ''">rule_name ,</if>
|
|
||||||
<if test="ruleCode != null and ruleCode != ''">rule_code ,</if>
|
|
||||||
<if test="ruleType != null and ruleType != ''">rule_type ,</if>
|
|
||||||
<if test="ruleValue != null and ruleValue != ''">rule_value ,</if>
|
|
||||||
<if test="sorts != null">sorts ,</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
|
||||||
<if test="create_time != null">create_time ,</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
|
||||||
<if test="modify_time != null">modify_time ,</if>
|
|
||||||
<if test="sts != null and sts != ''">sts ,</if>
|
|
||||||
<if test="org_id != null and org_id != ''">org_id ,</if>
|
|
||||||
<if test="sts == null ">sts,</if>
|
|
||||||
</trim>
|
|
||||||
)values(
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="id != null and id != ''">#{id} ,</if>
|
|
||||||
<if test="ruleName != null and ruleName != ''">#{ruleName} ,</if>
|
|
||||||
<if test="ruleCode != null and ruleCode != ''">#{ruleCode} ,</if>
|
|
||||||
<if test="ruleType != null and ruleType != ''">#{ruleType} ,</if>
|
|
||||||
<if test="ruleValue != null and ruleValue != ''">#{ruleValue} ,</if>
|
|
||||||
<if test="sorts != null">#{sorts} ,</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
|
||||||
<if test="create_time != null">#{create_time} ,</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
|
||||||
<if test="modify_time != null">#{modify_time} ,</if>
|
|
||||||
<if test="sts != null and sts != ''">#{sts} ,</if>
|
|
||||||
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
|
||||||
|
|
||||||
<if test="sts == null ">'Y',</if>
|
|
||||||
</trim>
|
|
||||||
)
|
|
||||||
</insert>
|
|
||||||
<!-- 批量新增 -->
|
|
||||||
<insert id="entityInsertBatch" >
|
|
||||||
insert into mdm_module_db_fileds_rule_files(rule_name, rule_code, rule_type, rule_value, sorts, create_user_id,
|
|
||||||
create_time, modify_user_id, modify_time, sts, org_id, sts)
|
|
||||||
values
|
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
|
||||||
(#{entity.ruleName},#{entity.ruleCode},#{entity.ruleType},#{entity.ruleValue},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},
|
|
||||||
'Y')
|
|
||||||
</foreach>
|
|
||||||
</insert>
|
|
||||||
<!-- 批量新增或者修改-->
|
|
||||||
<insert id="entityInsertOrUpdateBatch" >
|
|
||||||
insert into mdm_module_db_fileds_rule_files(rule_name, rule_code, rule_type, rule_value, sorts, create_user_id,
|
|
||||||
create_time, modify_user_id, modify_time, sts, org_id)
|
|
||||||
values
|
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
|
||||||
(#{entity.ruleName},#{entity.ruleCode},#{entity.ruleType},#{entity.ruleValue},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id})
|
|
||||||
</foreach>
|
|
||||||
on duplicate key update
|
|
||||||
rule_name = values(rule_name),
|
|
||||||
rule_code = values(rule_code),
|
|
||||||
rule_type = values(rule_type),
|
|
||||||
rule_value = values(rule_value),
|
|
||||||
sorts = values(sorts),
|
|
||||||
create_user_id = values(create_user_id),
|
|
||||||
create_time = values(create_time),
|
|
||||||
modify_user_id = values(modify_user_id),
|
|
||||||
modify_time = values(modify_time),
|
|
||||||
sts = values(sts),
|
|
||||||
org_id = values(org_id)
|
|
||||||
</insert>
|
|
||||||
<!--通过主键修改方法-->
|
|
||||||
<update id="entity_update"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity">
|
|
||||||
update mdm_module_db_fileds_rule_files set
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="ruleName != null and ruleName != ''">rule_name = #{ruleName},</if>
|
|
||||||
<if test="ruleCode != null and ruleCode != ''">rule_code = #{ruleCode},</if>
|
|
||||||
<if test="ruleType != null and ruleType != ''">rule_type = #{ruleType},</if>
|
|
||||||
<if test="ruleValue != null and ruleValue != ''">rule_value = #{ruleValue},</if>
|
|
||||||
<if test="sorts != null">sorts = #{sorts},</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
|
||||||
<if test="create_time != null">create_time = #{create_time},</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
|
|
||||||
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
|
||||||
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
|
||||||
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
<!-- 逻辑删除 -->
|
|
||||||
<update id="entity_logicDelete"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity">
|
|
||||||
update mdm_module_db_fileds_rule_files set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
<!-- 多条件逻辑删除 -->
|
|
||||||
<update id="entity_logicDelete_Multi_Condition"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity">
|
|
||||||
update mdm_module_db_fileds_rule_files set sts= 'N' ,modify_time = #{modify_time},modify_user_id =
|
|
||||||
#{modify_user_id}
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
|
||||||
<if test="ruleName != null and ruleName != ''">and rule_name = #{ruleName}</if>
|
|
||||||
<if test="ruleCode != null and ruleCode != ''">and rule_code = #{ruleCode}</if>
|
|
||||||
<if test="ruleType != null and ruleType != ''">and rule_type = #{ruleType}</if>
|
|
||||||
<if test="ruleValue != null and ruleValue != ''">and rule_value = #{ruleValue}</if>
|
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
</update>
|
|
||||||
<!--通过主键删除-->
|
|
||||||
<delete id="entity_delete">
|
|
||||||
delete from mdm_module_db_fileds_rule_files where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
</mapper>
|
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.service;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity;
|
|
||||||
import com.hzya.frame.basedao.service.IBaseService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 模版数据库字段规则档案表(MdmModuleDbFiledsRuleFiles)表服务接口
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:30:14
|
|
||||||
*/
|
|
||||||
public interface IMdmModuleDbFiledsRuleFilesService extends IBaseService<MdmModuleDbFiledsRuleFilesEntity, String> {
|
|
||||||
}
|
|
|
@ -1,29 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.service.impl;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.entity.MdmModuleDbFiledsRuleFilesEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.dao.IMdmModuleDbFiledsRuleFilesDao;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRuleFiles.service.IMdmModuleDbFiledsRuleFilesService;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
|
|
||||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 模版数据库字段规则档案表(MdmModuleDbFiledsRuleFiles)表服务实现类
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:30:15
|
|
||||||
*/
|
|
||||||
@Service(value = "mdmModuleDbFiledsRuleFilesService")
|
|
||||||
public class MdmModuleDbFiledsRuleFilesServiceImpl extends BaseService<MdmModuleDbFiledsRuleFilesEntity, String> implements IMdmModuleDbFiledsRuleFilesService {
|
|
||||||
|
|
||||||
private IMdmModuleDbFiledsRuleFilesDao mdmModuleDbFiledsRuleFilesDao;
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
public void setMdmModuleDbFiledsRuleFilesDao(IMdmModuleDbFiledsRuleFilesDao dao) {
|
|
||||||
this.mdmModuleDbFiledsRuleFilesDao = dao;
|
|
||||||
this.dao = dao;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
* 主数据功能应用分发表(mdm_module_distribute: table)表数据库访问层
|
* 主数据功能应用分发表(mdm_module_distribute: table)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-06 15:27:41
|
* @since 2024-06-03 08:47:33
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleDistributeDao extends IBaseDao<MdmModuleDistributeEntity, String> {
|
public interface IMdmModuleDistributeDao extends IBaseDao<MdmModuleDistributeEntity, String> {
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
* 主数据功能应用分发表(MdmModuleDistribute)表数据库访问层
|
* 主数据功能应用分发表(MdmModuleDistribute)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-06 15:27:42
|
* @since 2024-06-03 08:47:33
|
||||||
*/
|
*/
|
||||||
@Repository(value = "MdmModuleDistributeDaoImpl")
|
@Repository(value = "MdmModuleDistributeDaoImpl")
|
||||||
public class MdmModuleDistributeDaoImpl extends MybatisGenericDao<MdmModuleDistributeEntity, String> implements IMdmModuleDistributeDao{
|
public class MdmModuleDistributeDaoImpl extends MybatisGenericDao<MdmModuleDistributeEntity, String> implements IMdmModuleDistributeDao{
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleDistribute.entity;
|
package com.hzya.frame.mdm.mdmModuleDistribute.entity;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity;
|
|
||||||
import com.hzya.frame.web.entity.BaseEntity;
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
/**
|
/**
|
||||||
* 主数据功能应用分发表(MdmModuleDistribute)实体类
|
* 主数据功能应用分发表(MdmModuleDistribute)实体类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-06 15:27:42
|
* @since 2024-06-03 08:47:33
|
||||||
*/
|
*/
|
||||||
public class MdmModuleDistributeEntity extends BaseEntity {
|
public class MdmModuleDistributeEntity extends BaseEntity {
|
||||||
|
|
||||||
|
@ -17,36 +14,17 @@ public class MdmModuleDistributeEntity extends BaseEntity {
|
||||||
private String mdmId;
|
private String mdmId;
|
||||||
/** 应用id */
|
/** 应用id */
|
||||||
private String appId;
|
private String appId;
|
||||||
|
/** 修改接口 */
|
||||||
|
private String updateApi;
|
||||||
/** 新增接口 */
|
/** 新增接口 */
|
||||||
private String addApi;
|
private String addApi;
|
||||||
/** 删除接口 */
|
/** 删除接口 */
|
||||||
private String deleteApi;
|
private String deleteApi;
|
||||||
/** 新增使用类型 */
|
/** 启用停用 0、停用1、启用 */
|
||||||
private String addType;
|
private String enabledState;
|
||||||
/** 删除使用类型 */
|
/** 公司id */
|
||||||
private String deleteType;
|
private String companyId;
|
||||||
/** 新增插件 */
|
|
||||||
private String addPlug;
|
|
||||||
/** 删除插件 */
|
|
||||||
private String deletePlug;
|
|
||||||
private List<MdmModuleDistributeDetailEntity> addList;
|
|
||||||
private List<MdmModuleDistributeDetailEntity> deleteList;
|
|
||||||
|
|
||||||
public List<MdmModuleDistributeDetailEntity> getAddList() {
|
|
||||||
return addList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAddList(List<MdmModuleDistributeDetailEntity> addList) {
|
|
||||||
this.addList = addList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmModuleDistributeDetailEntity> getDeleteList() {
|
|
||||||
return deleteList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDeleteList(List<MdmModuleDistributeDetailEntity> deleteList) {
|
|
||||||
this.deleteList = deleteList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMdmId() {
|
public String getMdmId() {
|
||||||
return mdmId;
|
return mdmId;
|
||||||
|
@ -64,6 +42,14 @@ public class MdmModuleDistributeEntity extends BaseEntity {
|
||||||
this.appId = appId;
|
this.appId = appId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getUpdateApi() {
|
||||||
|
return updateApi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateApi(String updateApi) {
|
||||||
|
this.updateApi = updateApi;
|
||||||
|
}
|
||||||
|
|
||||||
public String getAddApi() {
|
public String getAddApi() {
|
||||||
return addApi;
|
return addApi;
|
||||||
}
|
}
|
||||||
|
@ -80,36 +66,20 @@ public class MdmModuleDistributeEntity extends BaseEntity {
|
||||||
this.deleteApi = deleteApi;
|
this.deleteApi = deleteApi;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAddType() {
|
public String getEnabledState() {
|
||||||
return addType;
|
return enabledState;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAddType(String addType) {
|
public void setEnabledState(String enabledState) {
|
||||||
this.addType = addType;
|
this.enabledState = enabledState;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeleteType() {
|
public String getCompanyId() {
|
||||||
return deleteType;
|
return companyId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDeleteType(String deleteType) {
|
public void setCompanyId(String companyId) {
|
||||||
this.deleteType = deleteType;
|
this.companyId = companyId;
|
||||||
}
|
|
||||||
|
|
||||||
public String getAddPlug() {
|
|
||||||
return addPlug;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAddPlug(String addPlug) {
|
|
||||||
this.addPlug = addPlug;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDeletePlug() {
|
|
||||||
return deletePlug;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDeletePlug(String deletePlug) {
|
|
||||||
this.deletePlug = deletePlug;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
||||||
<result property="appId" column="app_id" jdbcType="VARCHAR"/>
|
<result property="appId" column="app_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="updateApi" column="update_api" jdbcType="VARCHAR"/>
|
||||||
<result property="addApi" column="add_api" jdbcType="VARCHAR"/>
|
<result property="addApi" column="add_api" jdbcType="VARCHAR"/>
|
||||||
<result property="deleteApi" column="delete_api" jdbcType="VARCHAR"/>
|
<result property="deleteApi" column="delete_api" jdbcType="VARCHAR"/>
|
||||||
<result property="addType" column="add_type" jdbcType="VARCHAR"/>
|
<result property="enabledState" column="enabled_state" jdbcType="VARCHAR"/>
|
||||||
<result property="deleteType" column="delete_type" jdbcType="VARCHAR"/>
|
|
||||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
@ -17,18 +17,17 @@
|
||||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||||
<result property="addPlug" column="add_plug" jdbcType="VARCHAR"/>
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||||
<result property="deletePlug" column="delete_plug" jdbcType="VARCHAR"/>
|
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<!-- 查询的字段-->
|
<!-- 查询的字段-->
|
||||||
<sql id = "MdmModuleDistributeEntity_Base_Column_List">
|
<sql id = "MdmModuleDistributeEntity_Base_Column_List">
|
||||||
id
|
id
|
||||||
,mdm_id
|
,mdm_id
|
||||||
,app_id
|
,app_id
|
||||||
|
,update_api
|
||||||
,add_api
|
,add_api
|
||||||
,delete_api
|
,delete_api
|
||||||
,add_type
|
,enabled_state
|
||||||
,delete_type
|
|
||||||
,sorts
|
,sorts
|
||||||
,create_user_id
|
,create_user_id
|
||||||
,create_time
|
,create_time
|
||||||
|
@ -36,8 +35,7 @@
|
||||||
,modify_time
|
,modify_time
|
||||||
,sts
|
,sts
|
||||||
,org_id
|
,org_id
|
||||||
,add_plug
|
,company_id
|
||||||
,delete_plug
|
|
||||||
</sql>
|
</sql>
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="entity_list_base" resultMap="get-MdmModuleDistributeEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity">
|
<select id="entity_list_base" resultMap="get-MdmModuleDistributeEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity">
|
||||||
|
@ -48,10 +46,10 @@
|
||||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="appId != null and appId != ''"> and app_id = #{appId} </if>
|
<if test="appId != null and appId != ''"> and app_id = #{appId} </if>
|
||||||
|
<if test="updateApi != null and updateApi != ''"> and update_api = #{updateApi} </if>
|
||||||
<if test="addApi != null and addApi != ''"> and add_api = #{addApi} </if>
|
<if test="addApi != null and addApi != ''"> and add_api = #{addApi} </if>
|
||||||
<if test="deleteApi != null and deleteApi != ''"> and delete_api = #{deleteApi} </if>
|
<if test="deleteApi != null and deleteApi != ''"> and delete_api = #{deleteApi} </if>
|
||||||
<if test="addType != null and addType != ''"> and add_type = #{addType} </if>
|
<if test="enabledState != null and enabledState != ''"> and enabled_state = #{enabledState} </if>
|
||||||
<if test="deleteType != null and deleteType != ''"> and delete_type = #{deleteType} </if>
|
|
||||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||||
|
@ -59,8 +57,7 @@
|
||||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
<if test="addPlug != null and addPlug != ''"> and add_plug = #{addPlug} </if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
<if test="deletePlug != null and deletePlug != ''"> and delete_plug = #{deletePlug} </if>
|
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
|
@ -74,10 +71,10 @@
|
||||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="appId != null and appId != ''"> and app_id = #{appId} </if>
|
<if test="appId != null and appId != ''"> and app_id = #{appId} </if>
|
||||||
|
<if test="updateApi != null and updateApi != ''"> and update_api = #{updateApi} </if>
|
||||||
<if test="addApi != null and addApi != ''"> and add_api = #{addApi} </if>
|
<if test="addApi != null and addApi != ''"> and add_api = #{addApi} </if>
|
||||||
<if test="deleteApi != null and deleteApi != ''"> and delete_api = #{deleteApi} </if>
|
<if test="deleteApi != null and deleteApi != ''"> and delete_api = #{deleteApi} </if>
|
||||||
<if test="addType != null and addType != ''"> and add_type = #{addType} </if>
|
<if test="enabledState != null and enabledState != ''"> and enabled_state = #{enabledState} </if>
|
||||||
<if test="deleteType != null and deleteType != ''"> and delete_type = #{deleteType} </if>
|
|
||||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||||
|
@ -85,8 +82,7 @@
|
||||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
<if test="addPlug != null and addPlug != ''"> and add_plug = #{addPlug} </if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
<if test="deletePlug != null and deletePlug != ''"> and delete_plug = #{deletePlug} </if>
|
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
|
@ -102,10 +98,10 @@
|
||||||
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||||
<if test="mdmId != null and mdmId != ''"> and mdm_id like concat('%',#{mdmId},'%') </if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id like concat('%',#{mdmId},'%') </if>
|
||||||
<if test="appId != null and appId != ''"> and app_id like concat('%',#{appId},'%') </if>
|
<if test="appId != null and appId != ''"> and app_id like concat('%',#{appId},'%') </if>
|
||||||
|
<if test="updateApi != null and updateApi != ''"> and update_api like concat('%',#{updateApi},'%') </if>
|
||||||
<if test="addApi != null and addApi != ''"> and add_api like concat('%',#{addApi},'%') </if>
|
<if test="addApi != null and addApi != ''"> and add_api like concat('%',#{addApi},'%') </if>
|
||||||
<if test="deleteApi != null and deleteApi != ''"> and delete_api like concat('%',#{deleteApi},'%') </if>
|
<if test="deleteApi != null and deleteApi != ''"> and delete_api like concat('%',#{deleteApi},'%') </if>
|
||||||
<if test="addType != null and addType != ''"> and add_type like concat('%',#{addType},'%') </if>
|
<if test="enabledState != null and enabledState != ''"> and enabled_state like concat('%',#{enabledState},'%') </if>
|
||||||
<if test="deleteType != null and deleteType != ''"> and delete_type like concat('%',#{deleteType},'%') </if>
|
|
||||||
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||||
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||||
|
@ -113,8 +109,7 @@
|
||||||
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||||
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||||
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||||
<if test="addPlug != null and addPlug != ''"> and add_plug like concat('%',#{addPlug},'%') </if>
|
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||||
<if test="deletePlug != null and deletePlug != ''"> and delete_plug like concat('%',#{deletePlug},'%') </if>
|
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
|
@ -130,10 +125,10 @@
|
||||||
<if test="id != null and id != ''"> or id = #{id} </if>
|
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||||
<if test="mdmId != null and mdmId != ''"> or mdm_id = #{mdmId} </if>
|
<if test="mdmId != null and mdmId != ''"> or mdm_id = #{mdmId} </if>
|
||||||
<if test="appId != null and appId != ''"> or app_id = #{appId} </if>
|
<if test="appId != null and appId != ''"> or app_id = #{appId} </if>
|
||||||
|
<if test="updateApi != null and updateApi != ''"> or update_api = #{updateApi} </if>
|
||||||
<if test="addApi != null and addApi != ''"> or add_api = #{addApi} </if>
|
<if test="addApi != null and addApi != ''"> or add_api = #{addApi} </if>
|
||||||
<if test="deleteApi != null and deleteApi != ''"> or delete_api = #{deleteApi} </if>
|
<if test="deleteApi != null and deleteApi != ''"> or delete_api = #{deleteApi} </if>
|
||||||
<if test="addType != null and addType != ''"> or add_type = #{addType} </if>
|
<if test="enabledState != null and enabledState != ''"> or enabled_state = #{enabledState} </if>
|
||||||
<if test="deleteType != null and deleteType != ''"> or delete_type = #{deleteType} </if>
|
|
||||||
<if test="sorts != null"> or sorts = #{sorts} </if>
|
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_time != null"> or create_time = #{create_time} </if>
|
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||||
|
@ -141,8 +136,7 @@
|
||||||
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||||
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||||
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||||
<if test="addPlug != null and addPlug != ''"> or add_plug = #{addPlug} </if>
|
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||||
<if test="deletePlug != null and deletePlug != ''"> or delete_plug = #{deletePlug} </if>
|
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
|
@ -150,16 +144,16 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--新增所有列-->
|
<!--新增所有列-->
|
||||||
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity" >
|
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity" >
|
||||||
insert into mdm_module_distribute(
|
insert into mdm_module_distribute(
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="id != null and id != ''"> id , </if>
|
<if test="id != null and id != ''"> id , </if>
|
||||||
<if test="mdmId != null and mdmId != ''"> mdm_id , </if>
|
<if test="mdmId != null and mdmId != ''"> mdm_id , </if>
|
||||||
<if test="appId != null and appId != ''"> app_id , </if>
|
<if test="appId != null and appId != ''"> app_id , </if>
|
||||||
|
<if test="updateApi != null and updateApi != ''"> update_api , </if>
|
||||||
<if test="addApi != null and addApi != ''"> add_api , </if>
|
<if test="addApi != null and addApi != ''"> add_api , </if>
|
||||||
<if test="deleteApi != null and deleteApi != ''"> delete_api , </if>
|
<if test="deleteApi != null and deleteApi != ''"> delete_api , </if>
|
||||||
<if test="addType != null and addType != ''"> add_type , </if>
|
<if test="enabledState != null and enabledState != ''"> enabled_state , </if>
|
||||||
<if test="deleteType != null and deleteType != ''"> delete_type , </if>
|
|
||||||
<if test="sorts != null"> sorts , </if>
|
<if test="sorts != null"> sorts , </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||||
<if test="create_time != null"> create_time , </if>
|
<if test="create_time != null"> create_time , </if>
|
||||||
|
@ -167,8 +161,7 @@
|
||||||
<if test="modify_time != null"> modify_time , </if>
|
<if test="modify_time != null"> modify_time , </if>
|
||||||
<if test="sts != null and sts != ''"> sts , </if>
|
<if test="sts != null and sts != ''"> sts , </if>
|
||||||
<if test="org_id != null and org_id != ''"> org_id , </if>
|
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||||
<if test="addPlug != null and addPlug != ''"> add_plug , </if>
|
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||||
<if test="deletePlug != null and deletePlug != ''"> delete_plug , </if>
|
|
||||||
<if test="sts == null ">sts,</if>
|
<if test="sts == null ">sts,</if>
|
||||||
</trim>
|
</trim>
|
||||||
)values(
|
)values(
|
||||||
|
@ -176,10 +169,10 @@
|
||||||
<if test="id != null and id != ''"> #{id} ,</if>
|
<if test="id != null and id != ''"> #{id} ,</if>
|
||||||
<if test="mdmId != null and mdmId != ''"> #{mdmId} ,</if>
|
<if test="mdmId != null and mdmId != ''"> #{mdmId} ,</if>
|
||||||
<if test="appId != null and appId != ''"> #{appId} ,</if>
|
<if test="appId != null and appId != ''"> #{appId} ,</if>
|
||||||
|
<if test="updateApi != null and updateApi != ''"> #{updateApi} ,</if>
|
||||||
<if test="addApi != null and addApi != ''"> #{addApi} ,</if>
|
<if test="addApi != null and addApi != ''"> #{addApi} ,</if>
|
||||||
<if test="deleteApi != null and deleteApi != ''"> #{deleteApi} ,</if>
|
<if test="deleteApi != null and deleteApi != ''"> #{deleteApi} ,</if>
|
||||||
<if test="addType != null and addType != ''"> #{addType} ,</if>
|
<if test="enabledState != null and enabledState != ''"> #{enabledState} ,</if>
|
||||||
<if test="deleteType != null and deleteType != ''"> #{deleteType} ,</if>
|
|
||||||
<if test="sorts != null"> #{sorts} ,</if>
|
<if test="sorts != null"> #{sorts} ,</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||||
<if test="create_time != null"> #{create_time} ,</if>
|
<if test="create_time != null"> #{create_time} ,</if>
|
||||||
|
@ -187,62 +180,57 @@
|
||||||
<if test="modify_time != null"> #{modify_time} ,</if>
|
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||||
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||||
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||||
<if test="addPlug != null and addPlug != ''"> #{addPlug} ,</if>
|
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||||
<if test="deletePlug != null and deletePlug != ''"> #{deletePlug} ,</if>
|
|
||||||
<if test="sts == null ">'Y',</if>
|
<if test="sts == null ">'Y',</if>
|
||||||
</trim>
|
</trim>
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<!-- 批量新增 -->
|
<!-- 批量新增 -->
|
||||||
<insert id="entityInsertBatch" >
|
<insert id="entityInsertBatch" >
|
||||||
insert into mdm_module_distribute(mdm_id, app_id, add_api, delete_api, add_type, delete_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, add_plug, delete_plug, sts)
|
insert into mdm_module_distribute(mdm_id, app_id, update_api, add_api, delete_api, enabled_state, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||||
values
|
values
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
(#{entity.mdmId},#{entity.appId},#{entity.addApi},#{entity.deleteApi},#{entity.addType},#{entity.deleteType},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.addPlug},#{entity.deletePlug}, 'Y')
|
(#{entity.mdmId},#{entity.appId},#{entity.updateApi},#{entity.addApi},#{entity.deleteApi},#{entity.enabledState},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
<!-- 批量新增或者修改-->
|
<!-- 批量新增或者修改-->
|
||||||
<insert id="entityInsertOrUpdateBatch" >
|
<insert id="entityInsertOrUpdateBatch" >
|
||||||
insert into mdm_module_distribute(mdm_id, app_id, add_api, delete_api, add_type, delete_type, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, add_plug, delete_plug)
|
insert into mdm_module_distribute(mdm_id, app_id, update_api, add_api, delete_api, enabled_state, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||||
values
|
values
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
(#{entity.mdmId},#{entity.appId},#{entity.addApi},#{entity.deleteApi},#{entity.addType},#{entity.deleteType},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.addPlug},#{entity.deletePlug})
|
(#{entity.mdmId},#{entity.appId},#{entity.updateApi},#{entity.addApi},#{entity.deleteApi},#{entity.enabledState},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||||
</foreach>
|
</foreach>
|
||||||
on duplicate key update
|
on duplicate key update
|
||||||
mdm_id = values(mdm_id),
|
mdm_id = values(mdm_id),
|
||||||
app_id = values(app_id),
|
app_id = values(app_id),
|
||||||
|
update_api = values(update_api),
|
||||||
add_api = values(add_api),
|
add_api = values(add_api),
|
||||||
delete_api = values(delete_api),
|
delete_api = values(delete_api),
|
||||||
add_type = values(add_type),
|
enabled_state = values(enabled_state),
|
||||||
delete_type = values(delete_type),
|
|
||||||
sorts = values(sorts),
|
|
||||||
create_user_id = values(create_user_id),
|
create_user_id = values(create_user_id),
|
||||||
create_time = values(create_time),
|
create_time = values(create_time),
|
||||||
modify_user_id = values(modify_user_id),
|
modify_user_id = values(modify_user_id),
|
||||||
modify_time = values(modify_time),
|
modify_time = values(modify_time),
|
||||||
sts = values(sts),
|
sts = values(sts),
|
||||||
org_id = values(org_id),
|
org_id = values(org_id),
|
||||||
add_plug = values(add_plug),
|
company_id = values(company_id)</insert>
|
||||||
delete_plug = values(delete_plug)</insert>
|
|
||||||
<!--通过主键修改方法-->
|
<!--通过主键修改方法-->
|
||||||
<update id="entity_update" parameterType = "com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity" >
|
<update id="entity_update" parameterType = "com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity" >
|
||||||
update mdm_module_distribute set
|
update mdm_module_distribute set
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="mdmId != null and mdmId != ''"> mdm_id = #{mdmId},</if>
|
<if test="mdmId != null and mdmId != ''"> mdm_id = #{mdmId},</if>
|
||||||
<if test="appId != null and appId != ''"> app_id = #{appId},</if>
|
<if test="appId != null and appId != ''"> app_id = #{appId},</if>
|
||||||
|
<if test="updateApi != null and updateApi != ''"> update_api = #{updateApi},</if>
|
||||||
<if test="addApi != null and addApi != ''"> add_api = #{addApi},</if>
|
<if test="addApi != null and addApi != ''"> add_api = #{addApi},</if>
|
||||||
<if test="deleteApi != null and deleteApi != ''"> delete_api = #{deleteApi},</if>
|
<if test="deleteApi != null and deleteApi != ''"> delete_api = #{deleteApi},</if>
|
||||||
<if test="addType != null and addType != ''"> add_type = #{addType},</if>
|
<if test="enabledState != null and enabledState != ''"> enabled_state = #{enabledState},</if>
|
||||||
<if test="deleteType != null and deleteType != ''"> delete_type = #{deleteType},</if>
|
|
||||||
<if test="sorts != null"> sorts = #{sorts},</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||||
<if test="create_time != null"> create_time = #{create_time},</if>
|
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||||
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||||
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||||
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||||
<if test="addPlug != null and addPlug != ''"> add_plug = #{addPlug},</if>
|
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||||
<if test="deletePlug != null and deletePlug != ''"> delete_plug = #{deletePlug},</if>
|
|
||||||
</trim>
|
</trim>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
@ -258,14 +246,13 @@ update mdm_module_distribute set sts= 'N' ,modify_time = #{modify_time},modify_
|
||||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="appId != null and appId != ''"> and app_id = #{appId} </if>
|
<if test="appId != null and appId != ''"> and app_id = #{appId} </if>
|
||||||
|
<if test="updateApi != null and updateApi != ''"> and update_api = #{updateApi} </if>
|
||||||
<if test="addApi != null and addApi != ''"> and add_api = #{addApi} </if>
|
<if test="addApi != null and addApi != ''"> and add_api = #{addApi} </if>
|
||||||
<if test="deleteApi != null and deleteApi != ''"> and delete_api = #{deleteApi} </if>
|
<if test="deleteApi != null and deleteApi != ''"> and delete_api = #{deleteApi} </if>
|
||||||
<if test="addType != null and addType != ''"> and add_type = #{addType} </if>
|
<if test="enabledState != null and enabledState != ''"> and enabled_state = #{enabledState} </if>
|
||||||
<if test="deleteType != null and deleteType != ''"> and delete_type = #{deleteType} </if>
|
|
||||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="addPlug != null and addPlug != ''"> and add_plug = #{addPlug} </if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
<if test="deletePlug != null and deletePlug != ''"> and delete_plug = #{deletePlug} </if>
|
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
</update>
|
</update>
|
||||||
|
|
|
@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService;
|
||||||
* 主数据功能应用分发表(MdmModuleDistribute)表服务接口
|
* 主数据功能应用分发表(MdmModuleDistribute)表服务接口
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-06 15:27:42
|
* @since 2024-06-03 08:47:33
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleDistributeService extends IBaseService<MdmModuleDistributeEntity, String>{
|
public interface IMdmModuleDistributeService extends IBaseService<MdmModuleDistributeEntity, String>{
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
* 主数据功能应用分发表(MdmModuleDistribute)表服务实现类
|
* 主数据功能应用分发表(MdmModuleDistribute)表服务实现类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-06 15:27:42
|
* @since 2024-06-03 08:47:33
|
||||||
*/
|
*/
|
||||||
@Service(value = "mdmModuleDistributeService")
|
@Service(value = "mdmModuleDistributeService")
|
||||||
public class MdmModuleDistributeServiceImpl extends BaseService<MdmModuleDistributeEntity, String> implements IMdmModuleDistributeService {
|
public class MdmModuleDistributeServiceImpl extends BaseService<MdmModuleDistributeEntity, String> implements IMdmModuleDistributeService {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
* 主数据功能应用分发明细表(mdm_module_distribute_detail: table)表数据库访问层
|
* 主数据功能应用分发明细表(mdm_module_distribute_detail: table)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-07 09:11:31
|
* @since 2024-06-03 08:48:18
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleDistributeDetailDao extends IBaseDao<MdmModuleDistributeDetailEntity, String> {
|
public interface IMdmModuleDistributeDetailDao extends IBaseDao<MdmModuleDistributeDetailEntity, String> {
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
* 主数据功能应用分发明细表(MdmModuleDistributeDetail)表数据库访问层
|
* 主数据功能应用分发明细表(MdmModuleDistributeDetail)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-07 09:11:31
|
* @since 2024-06-03 08:48:18
|
||||||
*/
|
*/
|
||||||
@Repository(value = "MdmModuleDistributeDetailDaoImpl")
|
@Repository(value = "MdmModuleDistributeDetailDaoImpl")
|
||||||
public class MdmModuleDistributeDetailDaoImpl extends MybatisGenericDao<MdmModuleDistributeDetailEntity, String> implements IMdmModuleDistributeDetailDao{
|
public class MdmModuleDistributeDetailDaoImpl extends MybatisGenericDao<MdmModuleDistributeDetailEntity, String> implements IMdmModuleDistributeDetailDao{
|
||||||
|
|
|
@ -6,7 +6,7 @@ import com.hzya.frame.web.entity.BaseEntity;
|
||||||
* 主数据功能应用分发明细表(MdmModuleDistributeDetail)实体类
|
* 主数据功能应用分发明细表(MdmModuleDistributeDetail)实体类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-07 09:11:31
|
* @since 2024-06-03 08:48:18
|
||||||
*/
|
*/
|
||||||
public class MdmModuleDistributeDetailEntity extends BaseEntity {
|
public class MdmModuleDistributeDetailEntity extends BaseEntity {
|
||||||
|
|
||||||
|
@ -16,24 +16,16 @@ public class MdmModuleDistributeDetailEntity extends BaseEntity {
|
||||||
private String distributeId;
|
private String distributeId;
|
||||||
/** 接口id */
|
/** 接口id */
|
||||||
private String apiId;
|
private String apiId;
|
||||||
/** 源API字段 */
|
/** 数据类型 1、新增2、修改3、删除 */
|
||||||
private String sourceField;
|
private String dataType;
|
||||||
/** 源API字段名 */
|
/** 字段名 */
|
||||||
private String sourceName;
|
private String filedName;
|
||||||
/** 目标API字段 */
|
/** 对比类型 1、等于 */
|
||||||
private String targetField;
|
private String compareType;
|
||||||
/** 目标API字段名 */
|
|
||||||
private String targetName;
|
|
||||||
/** 目标API字段默认值 */
|
/** 目标API字段默认值 */
|
||||||
private String defaultVaule;
|
private String filedVaule;
|
||||||
/** 源字段层级 */
|
/** 公司id */
|
||||||
private String sourceFieldPath;
|
private String companyId;
|
||||||
/** 目标字段层级 */
|
|
||||||
private String targetFieldPath;
|
|
||||||
private String targetPath;
|
|
||||||
private String sourcePath;
|
|
||||||
/** 连线信息 */
|
|
||||||
private String coordinate;
|
|
||||||
|
|
||||||
|
|
||||||
public String getMdmId() {
|
public String getMdmId() {
|
||||||
|
@ -60,84 +52,44 @@ public class MdmModuleDistributeDetailEntity extends BaseEntity {
|
||||||
this.apiId = apiId;
|
this.apiId = apiId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSourceField() {
|
public String getDataType() {
|
||||||
return sourceField;
|
return dataType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSourceField(String sourceField) {
|
public void setDataType(String dataType) {
|
||||||
this.sourceField = sourceField;
|
this.dataType = dataType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSourceName() {
|
public String getFiledName() {
|
||||||
return sourceName;
|
return filedName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSourceName(String sourceName) {
|
public void setFiledName(String filedName) {
|
||||||
this.sourceName = sourceName;
|
this.filedName = filedName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTargetField() {
|
public String getCompareType() {
|
||||||
return targetField;
|
return compareType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTargetField(String targetField) {
|
public void setCompareType(String compareType) {
|
||||||
this.targetField = targetField;
|
this.compareType = compareType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTargetName() {
|
public String getFiledVaule() {
|
||||||
return targetName;
|
return filedVaule;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTargetName(String targetName) {
|
public void setFiledVaule(String filedVaule) {
|
||||||
this.targetName = targetName;
|
this.filedVaule = filedVaule;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDefaultVaule() {
|
public String getCompanyId() {
|
||||||
return defaultVaule;
|
return companyId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDefaultVaule(String defaultVaule) {
|
public void setCompanyId(String companyId) {
|
||||||
this.defaultVaule = defaultVaule;
|
this.companyId = companyId;
|
||||||
}
|
|
||||||
|
|
||||||
public String getSourceFieldPath() {
|
|
||||||
return sourceFieldPath;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSourceFieldPath(String sourceFieldPath) {
|
|
||||||
this.sourceFieldPath = sourceFieldPath;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTargetFieldPath() {
|
|
||||||
return targetFieldPath;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTargetFieldPath(String targetFieldPath) {
|
|
||||||
this.targetFieldPath = targetFieldPath;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTargetPath() {
|
|
||||||
return targetPath;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTargetPath(String targetPath) {
|
|
||||||
this.targetPath = targetPath;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSourcePath() {
|
|
||||||
return sourcePath;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSourcePath(String sourcePath) {
|
|
||||||
this.sourcePath = sourcePath;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCoordinate() {
|
|
||||||
return coordinate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCoordinate(String coordinate) {
|
|
||||||
this.coordinate = coordinate;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,15 +7,10 @@
|
||||||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
||||||
<result property="distributeId" column="distribute_id" jdbcType="VARCHAR"/>
|
<result property="distributeId" column="distribute_id" jdbcType="VARCHAR"/>
|
||||||
<result property="apiId" column="api_id" jdbcType="VARCHAR"/>
|
<result property="apiId" column="api_id" jdbcType="VARCHAR"/>
|
||||||
<result property="sourceField" column="source_field" jdbcType="VARCHAR"/>
|
<result property="dataType" column="data_type" jdbcType="VARCHAR"/>
|
||||||
<result property="sourceName" column="source_name" jdbcType="VARCHAR"/>
|
<result property="filedName" column="filed_name" jdbcType="VARCHAR"/>
|
||||||
<result property="targetField" column="target_field" jdbcType="VARCHAR"/>
|
<result property="compareType" column="compare_type" jdbcType="VARCHAR"/>
|
||||||
<result property="targetName" column="target_name" jdbcType="VARCHAR"/>
|
<result property="filedVaule" column="filed_vaule" jdbcType="VARCHAR"/>
|
||||||
<result property="defaultVaule" column="default_vaule" jdbcType="VARCHAR"/>
|
|
||||||
<result property="sourceFieldPath" column="source_field_path" jdbcType="VARCHAR"/>
|
|
||||||
<result property="targetFieldPath" column="target_field_path" jdbcType="VARCHAR"/>
|
|
||||||
<result property="targetPath" column="target_path" jdbcType="VARCHAR"/>
|
|
||||||
<result property="sourcePath" column="source_path" jdbcType="VARCHAR"/>
|
|
||||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
@ -23,7 +18,7 @@
|
||||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||||
<result property="coordinate" column="coordinate" jdbcType="VARCHAR"/>
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<!-- 查询的字段-->
|
<!-- 查询的字段-->
|
||||||
<sql id = "MdmModuleDistributeDetailEntity_Base_Column_List">
|
<sql id = "MdmModuleDistributeDetailEntity_Base_Column_List">
|
||||||
|
@ -31,15 +26,10 @@
|
||||||
,mdm_id
|
,mdm_id
|
||||||
,distribute_id
|
,distribute_id
|
||||||
,api_id
|
,api_id
|
||||||
,source_field
|
,data_type
|
||||||
,source_name
|
,filed_name
|
||||||
,target_field
|
,compare_type
|
||||||
,target_name
|
,filed_vaule
|
||||||
,default_vaule
|
|
||||||
,source_field_path
|
|
||||||
,target_field_path
|
|
||||||
,target_path
|
|
||||||
,source_path
|
|
||||||
,sorts
|
,sorts
|
||||||
,create_user_id
|
,create_user_id
|
||||||
,create_time
|
,create_time
|
||||||
|
@ -47,7 +37,7 @@
|
||||||
,modify_time
|
,modify_time
|
||||||
,sts
|
,sts
|
||||||
,org_id
|
,org_id
|
||||||
,coordinate
|
,company_id
|
||||||
</sql>
|
</sql>
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="entity_list_base" resultMap="get-MdmModuleDistributeDetailEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
|
<select id="entity_list_base" resultMap="get-MdmModuleDistributeDetailEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
|
||||||
|
@ -59,15 +49,10 @@
|
||||||
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="distributeId != null and distributeId != ''"> and distribute_id = #{distributeId} </if>
|
<if test="distributeId != null and distributeId != ''"> and distribute_id = #{distributeId} </if>
|
||||||
<if test="apiId != null and apiId != ''"> and api_id = #{apiId} </if>
|
<if test="apiId != null and apiId != ''"> and api_id = #{apiId} </if>
|
||||||
<if test="sourceField != null and sourceField != ''"> and source_field = #{sourceField} </if>
|
<if test="dataType != null and dataType != ''"> and data_type = #{dataType} </if>
|
||||||
<if test="sourceName != null and sourceName != ''"> and source_name = #{sourceName} </if>
|
<if test="filedName != null and filedName != ''"> and filed_name = #{filedName} </if>
|
||||||
<if test="targetField != null and targetField != ''"> and target_field = #{targetField} </if>
|
<if test="compareType != null and compareType != ''"> and compare_type = #{compareType} </if>
|
||||||
<if test="targetName != null and targetName != ''"> and target_name = #{targetName} </if>
|
<if test="filedVaule != null and filedVaule != ''"> and filed_vaule = #{filedVaule} </if>
|
||||||
<if test="defaultVaule != null and defaultVaule != ''"> and default_vaule = #{defaultVaule} </if>
|
|
||||||
<if test="sourceFieldPath != null and sourceFieldPath != ''"> and source_field_path = #{sourceFieldPath} </if>
|
|
||||||
<if test="targetFieldPath != null and targetFieldPath != ''"> and target_field_path = #{targetFieldPath} </if>
|
|
||||||
<if test="targetPath != null and targetPath != ''"> and target_path = #{targetPath} </if>
|
|
||||||
<if test="sourcePath != null and sourcePath != ''"> and source_path = #{sourcePath} </if>
|
|
||||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||||
|
@ -75,7 +60,7 @@
|
||||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
<if test="coordinate != null and coordinate != ''"> and coordinate = #{coordinate} </if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
|
@ -90,15 +75,10 @@
|
||||||
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="distributeId != null and distributeId != ''"> and distribute_id = #{distributeId} </if>
|
<if test="distributeId != null and distributeId != ''"> and distribute_id = #{distributeId} </if>
|
||||||
<if test="apiId != null and apiId != ''"> and api_id = #{apiId} </if>
|
<if test="apiId != null and apiId != ''"> and api_id = #{apiId} </if>
|
||||||
<if test="sourceField != null and sourceField != ''"> and source_field = #{sourceField} </if>
|
<if test="dataType != null and dataType != ''"> and data_type = #{dataType} </if>
|
||||||
<if test="sourceName != null and sourceName != ''"> and source_name = #{sourceName} </if>
|
<if test="filedName != null and filedName != ''"> and filed_name = #{filedName} </if>
|
||||||
<if test="targetField != null and targetField != ''"> and target_field = #{targetField} </if>
|
<if test="compareType != null and compareType != ''"> and compare_type = #{compareType} </if>
|
||||||
<if test="targetName != null and targetName != ''"> and target_name = #{targetName} </if>
|
<if test="filedVaule != null and filedVaule != ''"> and filed_vaule = #{filedVaule} </if>
|
||||||
<if test="defaultVaule != null and defaultVaule != ''"> and default_vaule = #{defaultVaule} </if>
|
|
||||||
<if test="sourceFieldPath != null and sourceFieldPath != ''"> and source_field_path = #{sourceFieldPath} </if>
|
|
||||||
<if test="targetFieldPath != null and targetFieldPath != ''"> and target_field_path = #{targetFieldPath} </if>
|
|
||||||
<if test="targetPath != null and targetPath != ''"> and target_path = #{targetPath} </if>
|
|
||||||
<if test="sourcePath != null and sourcePath != ''"> and source_path = #{sourcePath} </if>
|
|
||||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||||
|
@ -106,7 +86,7 @@
|
||||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
<if test="coordinate != null and coordinate != ''"> and coordinate = #{coordinate} </if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
|
@ -123,15 +103,10 @@
|
||||||
<if test="mdmId != null and mdmId != ''"> and mdm_id like concat('%',#{mdmId},'%') </if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id like concat('%',#{mdmId},'%') </if>
|
||||||
<if test="distributeId != null and distributeId != ''"> and distribute_id like concat('%',#{distributeId},'%') </if>
|
<if test="distributeId != null and distributeId != ''"> and distribute_id like concat('%',#{distributeId},'%') </if>
|
||||||
<if test="apiId != null and apiId != ''"> and api_id like concat('%',#{apiId},'%') </if>
|
<if test="apiId != null and apiId != ''"> and api_id like concat('%',#{apiId},'%') </if>
|
||||||
<if test="sourceField != null and sourceField != ''"> and source_field like concat('%',#{sourceField},'%') </if>
|
<if test="dataType != null and dataType != ''"> and data_type like concat('%',#{dataType},'%') </if>
|
||||||
<if test="sourceName != null and sourceName != ''"> and source_name like concat('%',#{sourceName},'%') </if>
|
<if test="filedName != null and filedName != ''"> and filed_name like concat('%',#{filedName},'%') </if>
|
||||||
<if test="targetField != null and targetField != ''"> and target_field like concat('%',#{targetField},'%') </if>
|
<if test="compareType != null and compareType != ''"> and compare_type like concat('%',#{compareType},'%') </if>
|
||||||
<if test="targetName != null and targetName != ''"> and target_name like concat('%',#{targetName},'%') </if>
|
<if test="filedVaule != null and filedVaule != ''"> and filed_vaule like concat('%',#{filedVaule},'%') </if>
|
||||||
<if test="defaultVaule != null and defaultVaule != ''"> and default_vaule like concat('%',#{defaultVaule},'%') </if>
|
|
||||||
<if test="sourceFieldPath != null and sourceFieldPath != ''"> and source_field_path like concat('%',#{sourceFieldPath},'%') </if>
|
|
||||||
<if test="targetFieldPath != null and targetFieldPath != ''"> and target_field_path like concat('%',#{targetFieldPath},'%') </if>
|
|
||||||
<if test="targetPath != null and targetPath != ''"> and target_path like concat('%',#{targetPath},'%') </if>
|
|
||||||
<if test="sourcePath != null and sourcePath != ''"> and source_path like concat('%',#{sourcePath},'%') </if>
|
|
||||||
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||||
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||||
|
@ -139,7 +114,7 @@
|
||||||
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||||
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||||
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||||
<if test="coordinate != null and coordinate != ''"> and coordinate like concat('%',#{coordinate},'%') </if>
|
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
|
@ -156,15 +131,10 @@
|
||||||
<if test="mdmId != null and mdmId != ''"> or mdm_id = #{mdmId} </if>
|
<if test="mdmId != null and mdmId != ''"> or mdm_id = #{mdmId} </if>
|
||||||
<if test="distributeId != null and distributeId != ''"> or distribute_id = #{distributeId} </if>
|
<if test="distributeId != null and distributeId != ''"> or distribute_id = #{distributeId} </if>
|
||||||
<if test="apiId != null and apiId != ''"> or api_id = #{apiId} </if>
|
<if test="apiId != null and apiId != ''"> or api_id = #{apiId} </if>
|
||||||
<if test="sourceField != null and sourceField != ''"> or source_field = #{sourceField} </if>
|
<if test="dataType != null and dataType != ''"> or data_type = #{dataType} </if>
|
||||||
<if test="sourceName != null and sourceName != ''"> or source_name = #{sourceName} </if>
|
<if test="filedName != null and filedName != ''"> or filed_name = #{filedName} </if>
|
||||||
<if test="targetField != null and targetField != ''"> or target_field = #{targetField} </if>
|
<if test="compareType != null and compareType != ''"> or compare_type = #{compareType} </if>
|
||||||
<if test="targetName != null and targetName != ''"> or target_name = #{targetName} </if>
|
<if test="filedVaule != null and filedVaule != ''"> or filed_vaule = #{filedVaule} </if>
|
||||||
<if test="defaultVaule != null and defaultVaule != ''"> or default_vaule = #{defaultVaule} </if>
|
|
||||||
<if test="sourceFieldPath != null and sourceFieldPath != ''"> or source_field_path = #{sourceFieldPath} </if>
|
|
||||||
<if test="targetFieldPath != null and targetFieldPath != ''"> or target_field_path = #{targetFieldPath} </if>
|
|
||||||
<if test="targetPath != null and targetPath != ''"> or target_path = #{targetPath} </if>
|
|
||||||
<if test="sourcePath != null and sourcePath != ''"> or source_path = #{sourcePath} </if>
|
|
||||||
<if test="sorts != null"> or sorts = #{sorts} </if>
|
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_time != null"> or create_time = #{create_time} </if>
|
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||||
|
@ -172,7 +142,7 @@
|
||||||
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||||
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||||
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||||
<if test="coordinate != null and coordinate != ''"> or coordinate = #{coordinate} </if>
|
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
|
@ -180,22 +150,17 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--新增所有列-->
|
<!--新增所有列-->
|
||||||
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity" >
|
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity" >
|
||||||
insert into mdm_module_distribute_detail(
|
insert into mdm_module_distribute_detail(
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="id != null and id != ''"> id , </if>
|
<if test="id != null and id != ''"> id , </if>
|
||||||
<if test="mdmId != null and mdmId != ''"> mdm_id , </if>
|
<if test="mdmId != null and mdmId != ''"> mdm_id , </if>
|
||||||
<if test="distributeId != null and distributeId != ''"> distribute_id , </if>
|
<if test="distributeId != null and distributeId != ''"> distribute_id , </if>
|
||||||
<if test="apiId != null and apiId != ''"> api_id , </if>
|
<if test="apiId != null and apiId != ''"> api_id , </if>
|
||||||
<if test="sourceField != null and sourceField != ''"> source_field , </if>
|
<if test="dataType != null and dataType != ''"> data_type , </if>
|
||||||
<if test="sourceName != null and sourceName != ''"> source_name , </if>
|
<if test="filedName != null and filedName != ''"> filed_name , </if>
|
||||||
<if test="targetField != null and targetField != ''"> target_field , </if>
|
<if test="compareType != null and compareType != ''"> compare_type , </if>
|
||||||
<if test="targetName != null and targetName != ''"> target_name , </if>
|
<if test="filedVaule != null and filedVaule != ''"> filed_vaule , </if>
|
||||||
<if test="defaultVaule != null and defaultVaule != ''"> default_vaule , </if>
|
|
||||||
<if test="sourceFieldPath != null and sourceFieldPath != ''"> source_field_path , </if>
|
|
||||||
<if test="targetFieldPath != null and targetFieldPath != ''"> target_field_path , </if>
|
|
||||||
<if test="targetPath != null and targetPath != ''"> target_path , </if>
|
|
||||||
<if test="sourcePath != null and sourcePath != ''"> source_path , </if>
|
|
||||||
<if test="sorts != null"> sorts , </if>
|
<if test="sorts != null"> sorts , </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||||
<if test="create_time != null"> create_time , </if>
|
<if test="create_time != null"> create_time , </if>
|
||||||
|
@ -203,7 +168,7 @@
|
||||||
<if test="modify_time != null"> modify_time , </if>
|
<if test="modify_time != null"> modify_time , </if>
|
||||||
<if test="sts != null and sts != ''"> sts , </if>
|
<if test="sts != null and sts != ''"> sts , </if>
|
||||||
<if test="org_id != null and org_id != ''"> org_id , </if>
|
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||||
<if test="coordinate != null and coordinate != ''"> coordinate , </if>
|
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||||
<if test="sts == null ">sts,</if>
|
<if test="sts == null ">sts,</if>
|
||||||
</trim>
|
</trim>
|
||||||
)values(
|
)values(
|
||||||
|
@ -212,15 +177,10 @@
|
||||||
<if test="mdmId != null and mdmId != ''"> #{mdmId} ,</if>
|
<if test="mdmId != null and mdmId != ''"> #{mdmId} ,</if>
|
||||||
<if test="distributeId != null and distributeId != ''"> #{distributeId} ,</if>
|
<if test="distributeId != null and distributeId != ''"> #{distributeId} ,</if>
|
||||||
<if test="apiId != null and apiId != ''"> #{apiId} ,</if>
|
<if test="apiId != null and apiId != ''"> #{apiId} ,</if>
|
||||||
<if test="sourceField != null and sourceField != ''"> #{sourceField} ,</if>
|
<if test="dataType != null and dataType != ''"> #{dataType} ,</if>
|
||||||
<if test="sourceName != null and sourceName != ''"> #{sourceName} ,</if>
|
<if test="filedName != null and filedName != ''"> #{filedName} ,</if>
|
||||||
<if test="targetField != null and targetField != ''"> #{targetField} ,</if>
|
<if test="compareType != null and compareType != ''"> #{compareType} ,</if>
|
||||||
<if test="targetName != null and targetName != ''"> #{targetName} ,</if>
|
<if test="filedVaule != null and filedVaule != ''"> #{filedVaule} ,</if>
|
||||||
<if test="defaultVaule != null and defaultVaule != ''"> #{defaultVaule} ,</if>
|
|
||||||
<if test="sourceFieldPath != null and sourceFieldPath != ''"> #{sourceFieldPath} ,</if>
|
|
||||||
<if test="targetFieldPath != null and targetFieldPath != ''"> #{targetFieldPath} ,</if>
|
|
||||||
<if test="targetPath != null and targetPath != ''"> #{targetPath} ,</if>
|
|
||||||
<if test="sourcePath != null and sourcePath != ''"> #{sourcePath} ,</if>
|
|
||||||
<if test="sorts != null"> #{sorts} ,</if>
|
<if test="sorts != null"> #{sorts} ,</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||||
<if test="create_time != null"> #{create_time} ,</if>
|
<if test="create_time != null"> #{create_time} ,</if>
|
||||||
|
@ -228,47 +188,41 @@
|
||||||
<if test="modify_time != null"> #{modify_time} ,</if>
|
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||||
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||||
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||||
<if test="coordinate != null and coordinate != ''"> #{coordinate} ,</if>
|
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||||
<if test="sts == null ">'Y',</if>
|
<if test="sts == null ">'Y',</if>
|
||||||
</trim>
|
</trim>
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<!-- 批量新增 -->
|
<!-- 批量新增 -->
|
||||||
<insert id="entityInsertBatch" >
|
<insert id="entityInsertBatch" >
|
||||||
insert into mdm_module_distribute_detail(mdm_id, distribute_id, api_id, source_field, source_name, target_field, target_name, default_vaule, source_field_path, target_field_path, target_path, source_path, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, coordinate, sts)
|
insert into mdm_module_distribute_detail(mdm_id, distribute_id, api_id, data_type, filed_name, compare_type, filed_vaule, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||||
values
|
values
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
(#{entity.mdmId},#{entity.distributeId},#{entity.apiId},#{entity.sourceField},#{entity.sourceName},#{entity.targetField},#{entity.targetName},#{entity.defaultVaule},#{entity.sourceFieldPath},#{entity.targetFieldPath},#{entity.targetPath},#{entity.sourcePath},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.coordinate}, 'Y')
|
(#{entity.mdmId},#{entity.distributeId},#{entity.apiId},#{entity.dataType},#{entity.filedName},#{entity.compareType},#{entity.filedVaule},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
<!-- 批量新增或者修改-->
|
<!-- 批量新增或者修改-->
|
||||||
<insert id="entityInsertOrUpdateBatch" >
|
<insert id="entityInsertOrUpdateBatch" >
|
||||||
insert into mdm_module_distribute_detail(mdm_id, distribute_id, api_id, source_field, source_name, target_field, target_name, default_vaule, source_field_path, target_field_path, target_path, source_path, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, coordinate)
|
insert into mdm_module_distribute_detail(mdm_id, distribute_id, api_id, data_type, filed_name, compare_type, filed_vaule, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||||
values
|
values
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
(#{entity.mdmId},#{entity.distributeId},#{entity.apiId},#{entity.sourceField},#{entity.sourceName},#{entity.targetField},#{entity.targetName},#{entity.defaultVaule},#{entity.sourceFieldPath},#{entity.targetFieldPath},#{entity.targetPath},#{entity.sourcePath},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.coordinate})
|
(#{entity.mdmId},#{entity.distributeId},#{entity.apiId},#{entity.dataType},#{entity.filedName},#{entity.compareType},#{entity.filedVaule},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||||
</foreach>
|
</foreach>
|
||||||
on duplicate key update
|
on duplicate key update
|
||||||
mdm_id = values(mdm_id),
|
mdm_id = values(mdm_id),
|
||||||
distribute_id = values(distribute_id),
|
distribute_id = values(distribute_id),
|
||||||
api_id = values(api_id),
|
api_id = values(api_id),
|
||||||
source_field = values(source_field),
|
data_type = values(data_type),
|
||||||
source_name = values(source_name),
|
filed_name = values(filed_name),
|
||||||
target_field = values(target_field),
|
compare_type = values(compare_type),
|
||||||
target_name = values(target_name),
|
filed_vaule = values(filed_vaule),
|
||||||
default_vaule = values(default_vaule),
|
|
||||||
source_field_path = values(source_field_path),
|
|
||||||
target_field_path = values(target_field_path),
|
|
||||||
target_path = values(target_path),
|
|
||||||
source_path = values(source_path),
|
|
||||||
sorts = values(sorts),
|
|
||||||
create_user_id = values(create_user_id),
|
create_user_id = values(create_user_id),
|
||||||
create_time = values(create_time),
|
create_time = values(create_time),
|
||||||
modify_user_id = values(modify_user_id),
|
modify_user_id = values(modify_user_id),
|
||||||
modify_time = values(modify_time),
|
modify_time = values(modify_time),
|
||||||
sts = values(sts),
|
sts = values(sts),
|
||||||
org_id = values(org_id),
|
org_id = values(org_id),
|
||||||
coordinate = values(coordinate)</insert>
|
company_id = values(company_id)</insert>
|
||||||
<!--通过主键修改方法-->
|
<!--通过主键修改方法-->
|
||||||
<update id="entity_update" parameterType = "com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity" >
|
<update id="entity_update" parameterType = "com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity" >
|
||||||
update mdm_module_distribute_detail set
|
update mdm_module_distribute_detail set
|
||||||
|
@ -276,23 +230,17 @@ update mdm_module_distribute_detail set
|
||||||
<if test="mdmId != null and mdmId != ''"> mdm_id = #{mdmId},</if>
|
<if test="mdmId != null and mdmId != ''"> mdm_id = #{mdmId},</if>
|
||||||
<if test="distributeId != null and distributeId != ''"> distribute_id = #{distributeId},</if>
|
<if test="distributeId != null and distributeId != ''"> distribute_id = #{distributeId},</if>
|
||||||
<if test="apiId != null and apiId != ''"> api_id = #{apiId},</if>
|
<if test="apiId != null and apiId != ''"> api_id = #{apiId},</if>
|
||||||
<if test="sourceField != null and sourceField != ''"> source_field = #{sourceField},</if>
|
<if test="dataType != null and dataType != ''"> data_type = #{dataType},</if>
|
||||||
<if test="sourceName != null and sourceName != ''"> source_name = #{sourceName},</if>
|
<if test="filedName != null and filedName != ''"> filed_name = #{filedName},</if>
|
||||||
<if test="targetField != null and targetField != ''"> target_field = #{targetField},</if>
|
<if test="compareType != null and compareType != ''"> compare_type = #{compareType},</if>
|
||||||
<if test="targetName != null and targetName != ''"> target_name = #{targetName},</if>
|
<if test="filedVaule != null and filedVaule != ''"> filed_vaule = #{filedVaule},</if>
|
||||||
<if test="defaultVaule != null and defaultVaule != ''"> default_vaule = #{defaultVaule},</if>
|
|
||||||
<if test="sourceFieldPath != null and sourceFieldPath != ''"> source_field_path = #{sourceFieldPath},</if>
|
|
||||||
<if test="targetFieldPath != null and targetFieldPath != ''"> target_field_path = #{targetFieldPath},</if>
|
|
||||||
<if test="targetPath != null and targetPath != ''"> target_path = #{targetPath},</if>
|
|
||||||
<if test="sourcePath != null and sourcePath != ''"> source_path = #{sourcePath},</if>
|
|
||||||
<if test="sorts != null"> sorts = #{sorts},</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||||
<if test="create_time != null"> create_time = #{create_time},</if>
|
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||||
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||||
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||||
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||||
<if test="coordinate != null and coordinate != ''"> coordinate = #{coordinate},</if>
|
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||||
</trim>
|
</trim>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
@ -309,18 +257,13 @@ update mdm_module_distribute_detail set sts= 'N' ,modify_time = #{modify_time},
|
||||||
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="distributeId != null and distributeId != ''"> and distribute_id = #{distributeId} </if>
|
<if test="distributeId != null and distributeId != ''"> and distribute_id = #{distributeId} </if>
|
||||||
<if test="apiId != null and apiId != ''"> and api_id = #{apiId} </if>
|
<if test="apiId != null and apiId != ''"> and api_id = #{apiId} </if>
|
||||||
<if test="sourceField != null and sourceField != ''"> and source_field = #{sourceField} </if>
|
<if test="dataType != null and dataType != ''"> and data_type = #{dataType} </if>
|
||||||
<if test="sourceName != null and sourceName != ''"> and source_name = #{sourceName} </if>
|
<if test="filedName != null and filedName != ''"> and filed_name = #{filedName} </if>
|
||||||
<if test="targetField != null and targetField != ''"> and target_field = #{targetField} </if>
|
<if test="compareType != null and compareType != ''"> and compare_type = #{compareType} </if>
|
||||||
<if test="targetName != null and targetName != ''"> and target_name = #{targetName} </if>
|
<if test="filedVaule != null and filedVaule != ''"> and filed_vaule = #{filedVaule} </if>
|
||||||
<if test="defaultVaule != null and defaultVaule != ''"> and default_vaule = #{defaultVaule} </if>
|
|
||||||
<if test="sourceFieldPath != null and sourceFieldPath != ''"> and source_field_path = #{sourceFieldPath} </if>
|
|
||||||
<if test="targetFieldPath != null and targetFieldPath != ''"> and target_field_path = #{targetFieldPath} </if>
|
|
||||||
<if test="targetPath != null and targetPath != ''"> and target_path = #{targetPath} </if>
|
|
||||||
<if test="sourcePath != null and sourcePath != ''"> and source_path = #{sourcePath} </if>
|
|
||||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="coordinate != null and coordinate != ''"> and coordinate = #{coordinate} </if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
</update>
|
</update>
|
||||||
|
|
|
@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService;
|
||||||
* 主数据功能应用分发明细表(MdmModuleDistributeDetail)表服务接口
|
* 主数据功能应用分发明细表(MdmModuleDistributeDetail)表服务接口
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-07 09:11:31
|
* @since 2024-06-03 08:48:18
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleDistributeDetailService extends IBaseService<MdmModuleDistributeDetailEntity, String>{
|
public interface IMdmModuleDistributeDetailService extends IBaseService<MdmModuleDistributeDetailEntity, String>{
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
* 主数据功能应用分发明细表(MdmModuleDistributeDetail)表服务实现类
|
* 主数据功能应用分发明细表(MdmModuleDistributeDetail)表服务实现类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-07 09:11:31
|
* @since 2024-06-03 08:48:18
|
||||||
*/
|
*/
|
||||||
@Service(value = "mdmModuleDistributeDetailService")
|
@Service(value = "mdmModuleDistributeDetailService")
|
||||||
public class MdmModuleDistributeDetailServiceImpl extends BaseService<MdmModuleDistributeDetailEntity, String> implements IMdmModuleDistributeDetailService {
|
public class MdmModuleDistributeDetailServiceImpl extends BaseService<MdmModuleDistributeDetailEntity, String> implements IMdmModuleDistributeDetailService {
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleRole.dao;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity;
|
|
||||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据功能角色表(mdm_module_role: table)表数据库访问层
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:32:25
|
|
||||||
*/
|
|
||||||
public interface IMdmModuleRoleDao extends IBaseDao<MdmModuleRoleEntity, String> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleRole.dao.impl;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRole.dao.IMdmModuleRoleDao;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据功能角色表(MdmModuleRole)表数据库访问层
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:32:25
|
|
||||||
*/
|
|
||||||
@Repository(value = "MdmModuleRoleDaoImpl")
|
|
||||||
public class MdmModuleRoleDaoImpl extends MybatisGenericDao<MdmModuleRoleEntity, String> implements IMdmModuleRoleDao {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,52 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleRole.entity;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity;
|
|
||||||
import com.hzya.frame.web.entity.BaseEntity;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据功能角色表(MdmModuleRole)实体类
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:32:25
|
|
||||||
*/
|
|
||||||
public class MdmModuleRoleEntity extends BaseEntity {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据模版ID
|
|
||||||
*/
|
|
||||||
private String mdmId;
|
|
||||||
/**
|
|
||||||
* 角色id
|
|
||||||
*/
|
|
||||||
private String roleId;
|
|
||||||
|
|
||||||
//角色按钮
|
|
||||||
private List<MdmModuleRoleButtonEntity> mdmModuleRoleButtonEntities;
|
|
||||||
public String getMdmId() {
|
|
||||||
return mdmId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmId(String mdmId) {
|
|
||||||
this.mdmId = mdmId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRoleId() {
|
|
||||||
return roleId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRoleId(String roleId) {
|
|
||||||
this.roleId = roleId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MdmModuleRoleButtonEntity> getMdmModuleRoleButtonEntities() {
|
|
||||||
return mdmModuleRoleButtonEntities;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmModuleRoleButtonEntities(List<MdmModuleRoleButtonEntity> mdmModuleRoleButtonEntities) {
|
|
||||||
this.mdmModuleRoleButtonEntities = mdmModuleRoleButtonEntities;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,227 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.hzya.frame.mdm.mdmModuleRole.dao.impl.MdmModuleRoleDaoImpl">
|
|
||||||
|
|
||||||
<resultMap id="get-MdmModuleRoleEntity-result" type="com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity">
|
|
||||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="roleId" column="role_id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
|
||||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
|
||||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
|
||||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
|
||||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
|
||||||
</resultMap>
|
|
||||||
<!-- 查询的字段-->
|
|
||||||
<sql id="MdmModuleRoleEntity_Base_Column_List">
|
|
||||||
id
|
|
||||||
,mdm_id
|
|
||||||
,role_id
|
|
||||||
,sorts
|
|
||||||
,create_user_id
|
|
||||||
,create_time
|
|
||||||
,modify_user_id
|
|
||||||
,modify_time
|
|
||||||
,sts
|
|
||||||
,org_id
|
|
||||||
</sql>
|
|
||||||
<!-- 查询 采用==查询 -->
|
|
||||||
<select id="entity_list_base" resultMap="get-MdmModuleRoleEntity-result"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity">
|
|
||||||
select
|
|
||||||
<include refid="MdmModuleRoleEntity_Base_Column_List"/>
|
|
||||||
from mdm_module_role
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
|
||||||
<if test="roleId != null and roleId != ''">and role_id = #{roleId}</if>
|
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 查询符合条件的数量 -->
|
|
||||||
<select id="entity_count" resultType="Integer"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity">
|
|
||||||
select count(1) from mdm_module_role
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
|
||||||
<if test="roleId != null and roleId != ''">and role_id = #{roleId}</if>
|
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
|
||||||
<select id="entity_list_like" resultMap="get-MdmModuleRoleEntity-result"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity">
|
|
||||||
select
|
|
||||||
<include refid="MdmModuleRoleEntity_Base_Column_List"/>
|
|
||||||
from mdm_module_role
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id like concat('%',#{mdmId},'%')</if>
|
|
||||||
<if test="roleId != null and roleId != ''">and role_id like concat('%',#{roleId},'%')</if>
|
|
||||||
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
|
||||||
concat('%',#{create_user_id},'%')
|
|
||||||
</if>
|
|
||||||
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
|
|
||||||
concat('%',#{modify_user_id},'%')
|
|
||||||
</if>
|
|
||||||
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
|
|
||||||
<if test="org_id != null and org_id != ''">and org_id like concat('%',#{org_id},'%')</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 查询列表 字段采用or格式 -->
|
|
||||||
<select id="MdmModuleRoleentity_list_or" resultMap="get-MdmModuleRoleEntity-result"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity">
|
|
||||||
select
|
|
||||||
<include refid="MdmModuleRoleEntity_Base_Column_List"/>
|
|
||||||
from mdm_module_role
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">or id = #{id}</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">or mdm_id = #{mdmId}</if>
|
|
||||||
<if test="roleId != null and roleId != ''">or role_id = #{roleId}</if>
|
|
||||||
<if test="sorts != null">or sorts = #{sorts}</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
|
||||||
<if test="create_time != null">or create_time = #{create_time}</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
|
|
||||||
<if test="modify_time != null">or modify_time = #{modify_time}</if>
|
|
||||||
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
|
||||||
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!--新增所有列-->
|
|
||||||
<insert id="entity_insert" parameterType="com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity"
|
|
||||||
>
|
|
||||||
insert into mdm_module_role(
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="id != null and id != ''">id ,</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">mdm_id ,</if>
|
|
||||||
<if test="roleId != null and roleId != ''">role_id ,</if>
|
|
||||||
<if test="sorts != null">sorts ,</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
|
||||||
<if test="create_time != null">create_time ,</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
|
||||||
<if test="modify_time != null">modify_time ,</if>
|
|
||||||
<if test="sts != null and sts != ''">sts ,</if>
|
|
||||||
<if test="org_id != null and org_id != ''">org_id ,</if>
|
|
||||||
<if test="sts == null ">sts,</if>
|
|
||||||
</trim>
|
|
||||||
)values(
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="id != null and id != ''">#{id} ,</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">#{mdmId} ,</if>
|
|
||||||
<if test="roleId != null and roleId != ''">#{roleId} ,</if>
|
|
||||||
<if test="sorts != null">#{sorts} ,</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
|
||||||
<if test="create_time != null">#{create_time} ,</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
|
||||||
<if test="modify_time != null">#{modify_time} ,</if>
|
|
||||||
<if test="sts != null and sts != ''">#{sts} ,</if>
|
|
||||||
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
|
||||||
|
|
||||||
<if test="sts == null ">'Y',</if>
|
|
||||||
</trim>
|
|
||||||
)
|
|
||||||
</insert>
|
|
||||||
<!-- 批量新增 -->
|
|
||||||
<insert id="entityInsertBatch" >
|
|
||||||
insert into mdm_module_role(mdm_id, role_id, sorts, create_user_id, create_time, modify_user_id, modify_time,
|
|
||||||
sts, org_id, sts)
|
|
||||||
values
|
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
|
||||||
(#{entity.mdmId},#{entity.roleId},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},
|
|
||||||
'Y')
|
|
||||||
</foreach>
|
|
||||||
</insert>
|
|
||||||
<!-- 批量新增或者修改-->
|
|
||||||
<insert id="entityInsertOrUpdateBatch" >
|
|
||||||
insert into mdm_module_role(mdm_id, role_id, sorts, create_user_id, create_time, modify_user_id, modify_time,
|
|
||||||
sts, org_id)
|
|
||||||
values
|
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
|
||||||
(#{entity.mdmId},#{entity.roleId},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id})
|
|
||||||
</foreach>
|
|
||||||
on duplicate key update
|
|
||||||
mdm_id = values(mdm_id),
|
|
||||||
role_id = values(role_id),
|
|
||||||
sorts = values(sorts),
|
|
||||||
create_user_id = values(create_user_id),
|
|
||||||
create_time = values(create_time),
|
|
||||||
modify_user_id = values(modify_user_id),
|
|
||||||
modify_time = values(modify_time),
|
|
||||||
sts = values(sts),
|
|
||||||
org_id = values(org_id)
|
|
||||||
</insert>
|
|
||||||
<!--通过主键修改方法-->
|
|
||||||
<update id="entity_update" parameterType="com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity">
|
|
||||||
update mdm_module_role set
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="mdmId != null and mdmId != ''">mdm_id = #{mdmId},</if>
|
|
||||||
<if test="roleId != null and roleId != ''">role_id = #{roleId},</if>
|
|
||||||
<if test="sorts != null">sorts = #{sorts},</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
|
||||||
<if test="create_time != null">create_time = #{create_time},</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
|
|
||||||
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
|
||||||
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
|
||||||
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
<!-- 逻辑删除 -->
|
|
||||||
<update id="entity_logicDelete" parameterType="com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity">
|
|
||||||
update mdm_module_role set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
<!-- 多条件逻辑删除 -->
|
|
||||||
<update id="entity_logicDelete_Multi_Condition"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity">
|
|
||||||
update mdm_module_role set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
|
||||||
<if test="roleId != null and roleId != ''">and role_id = #{roleId}</if>
|
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
</update>
|
|
||||||
<!--通过主键删除-->
|
|
||||||
<delete id="entity_delete">
|
|
||||||
delete from mdm_module_role where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
</mapper>
|
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleRole.service;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity;
|
|
||||||
import com.hzya.frame.basedao.service.IBaseService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据功能角色表(MdmModuleRole)表服务接口
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:32:26
|
|
||||||
*/
|
|
||||||
public interface IMdmModuleRoleService extends IBaseService<MdmModuleRoleEntity, String> {
|
|
||||||
}
|
|
|
@ -1,29 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleRole.service.impl;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRole.entity.MdmModuleRoleEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRole.dao.IMdmModuleRoleDao;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRole.service.IMdmModuleRoleService;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
|
|
||||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据功能角色表(MdmModuleRole)表服务实现类
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:32:27
|
|
||||||
*/
|
|
||||||
@Service(value = "mdmModuleRoleService")
|
|
||||||
public class MdmModuleRoleServiceImpl extends BaseService<MdmModuleRoleEntity, String> implements IMdmModuleRoleService {
|
|
||||||
|
|
||||||
private IMdmModuleRoleDao mdmModuleRoleDao;
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
public void setMdmModuleRoleDao(IMdmModuleRoleDao dao) {
|
|
||||||
this.mdmModuleRoleDao = dao;
|
|
||||||
this.dao = dao;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleRoleButton.dao;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity;
|
|
||||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据功能角色按钮表(mdm_module_role_button: table)表数据库访问层
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:33:09
|
|
||||||
*/
|
|
||||||
public interface IMdmModuleRoleButtonDao extends IBaseDao<MdmModuleRoleButtonEntity, String> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleRoleButton.dao.impl;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRoleButton.dao.IMdmModuleRoleButtonDao;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据功能角色按钮表(MdmModuleRoleButton)表数据库访问层
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:33:10
|
|
||||||
*/
|
|
||||||
@Repository(value = "MdmModuleRoleButtonDaoImpl")
|
|
||||||
public class MdmModuleRoleButtonDaoImpl extends MybatisGenericDao<MdmModuleRoleButtonEntity, String> implements IMdmModuleRoleButtonDao {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,92 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleRoleButton.entity;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.hzya.frame.sys.userRole.entity.UserRole;
|
|
||||||
import com.hzya.frame.web.entity.BaseEntity;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据功能角色按钮表(MdmModuleRoleButton)实体类
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:33:10
|
|
||||||
*/
|
|
||||||
public class MdmModuleRoleButtonEntity extends BaseEntity {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据模版ID
|
|
||||||
*/
|
|
||||||
private String mdmId;
|
|
||||||
/**
|
|
||||||
* 模块角色id
|
|
||||||
*/
|
|
||||||
private String moduleRoleId;
|
|
||||||
/**
|
|
||||||
* 角色id
|
|
||||||
*/
|
|
||||||
private String roleId;
|
|
||||||
/**
|
|
||||||
* 按钮类型
|
|
||||||
*/
|
|
||||||
private String buttonType;
|
|
||||||
/**
|
|
||||||
* 按钮名
|
|
||||||
*/
|
|
||||||
private String buttonName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 角色ids
|
|
||||||
*/
|
|
||||||
private List<UserRole> roleIds;
|
|
||||||
|
|
||||||
public List<UserRole> getRoleIds() {
|
|
||||||
return roleIds;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRoleIds(List<UserRole> roleIds) {
|
|
||||||
this.roleIds = roleIds;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMdmId() {
|
|
||||||
return mdmId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmId(String mdmId) {
|
|
||||||
this.mdmId = mdmId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getModuleRoleId() {
|
|
||||||
return moduleRoleId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setModuleRoleId(String moduleRoleId) {
|
|
||||||
this.moduleRoleId = moduleRoleId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRoleId() {
|
|
||||||
return roleId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRoleId(String roleId) {
|
|
||||||
this.roleId = roleId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getButtonType() {
|
|
||||||
return buttonType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setButtonType(String buttonType) {
|
|
||||||
this.buttonType = buttonType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getButtonName() {
|
|
||||||
return buttonName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setButtonName(String buttonName) {
|
|
||||||
this.buttonName = buttonName;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,271 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.hzya.frame.mdm.mdmModuleRoleButton.dao.impl.MdmModuleRoleButtonDaoImpl">
|
|
||||||
|
|
||||||
<resultMap id="get-MdmModuleRoleButtonEntity-result"
|
|
||||||
type="com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity">
|
|
||||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="moduleRoleId" column="module_role_id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="roleId" column="role_id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="buttonType" column="button_type" jdbcType="VARCHAR"/>
|
|
||||||
<result property="buttonName" column="button_name" jdbcType="VARCHAR"/>
|
|
||||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
|
||||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
|
||||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
|
||||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
|
||||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
|
||||||
</resultMap>
|
|
||||||
<!-- 查询的字段-->
|
|
||||||
<sql id="MdmModuleRoleButtonEntity_Base_Column_List">
|
|
||||||
id
|
|
||||||
,mdm_id
|
|
||||||
,module_role_id
|
|
||||||
,role_id
|
|
||||||
,button_type
|
|
||||||
,button_name
|
|
||||||
,sorts
|
|
||||||
,create_user_id
|
|
||||||
,create_time
|
|
||||||
,modify_user_id
|
|
||||||
,modify_time
|
|
||||||
,sts
|
|
||||||
,org_id
|
|
||||||
</sql>
|
|
||||||
<!-- 查询 采用==查询 -->
|
|
||||||
<select id="entity_list_base" resultMap="get-MdmModuleRoleButtonEntity-result"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity">
|
|
||||||
select
|
|
||||||
<include refid="MdmModuleRoleButtonEntity_Base_Column_List"/>
|
|
||||||
from mdm_module_role_button
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
|
||||||
<if test="moduleRoleId != null and moduleRoleId != ''">and module_role_id = #{moduleRoleId}</if>
|
|
||||||
<if test="roleId != null and roleId != ''">and role_id = #{roleId}</if>
|
|
||||||
<if test="buttonType != null and buttonType != ''">and button_type = #{buttonType}</if>
|
|
||||||
<if test="buttonName != null and buttonName != ''">and button_name = #{buttonName}</if>
|
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
|
||||||
<if test="roleIds != null and roleIds.size > 0">
|
|
||||||
and (
|
|
||||||
<foreach collection="roleIds" index="index" item="item" separator="or">
|
|
||||||
role_id = #{item.roleId}
|
|
||||||
</foreach>
|
|
||||||
)
|
|
||||||
</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 查询符合条件的数量 -->
|
|
||||||
<select id="entity_count" resultType="Integer"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity">
|
|
||||||
select count(1) from mdm_module_role_button
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
|
||||||
<if test="moduleRoleId != null and moduleRoleId != ''">and module_role_id = #{moduleRoleId}</if>
|
|
||||||
<if test="roleId != null and roleId != ''">and role_id = #{roleId}</if>
|
|
||||||
<if test="buttonType != null and buttonType != ''">and button_type = #{buttonType}</if>
|
|
||||||
<if test="buttonName != null and buttonName != ''">and button_name = #{buttonName}</if>
|
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
|
||||||
<select id="entity_list_like" resultMap="get-MdmModuleRoleButtonEntity-result"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity">
|
|
||||||
select
|
|
||||||
<include refid="MdmModuleRoleButtonEntity_Base_Column_List"/>
|
|
||||||
from mdm_module_role_button
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id like concat('%',#{mdmId},'%')</if>
|
|
||||||
<if test="moduleRoleId != null and moduleRoleId != ''">and module_role_id like
|
|
||||||
concat('%',#{moduleRoleId},'%')
|
|
||||||
</if>
|
|
||||||
<if test="roleId != null and roleId != ''">and role_id like concat('%',#{roleId},'%')</if>
|
|
||||||
<if test="buttonType != null and buttonType != ''">and button_type like concat('%',#{buttonType},'%')</if>
|
|
||||||
<if test="buttonName != null and buttonName != ''">and button_name like concat('%',#{buttonName},'%')</if>
|
|
||||||
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
|
||||||
concat('%',#{create_user_id},'%')
|
|
||||||
</if>
|
|
||||||
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
|
|
||||||
concat('%',#{modify_user_id},'%')
|
|
||||||
</if>
|
|
||||||
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
|
|
||||||
<if test="org_id != null and org_id != ''">and org_id like concat('%',#{org_id},'%')</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 查询列表 字段采用or格式 -->
|
|
||||||
<select id="MdmModuleRoleButtonentity_list_or" resultMap="get-MdmModuleRoleButtonEntity-result"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity">
|
|
||||||
select
|
|
||||||
<include refid="MdmModuleRoleButtonEntity_Base_Column_List"/>
|
|
||||||
from mdm_module_role_button
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">or id = #{id}</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">or mdm_id = #{mdmId}</if>
|
|
||||||
<if test="moduleRoleId != null and moduleRoleId != ''">or module_role_id = #{moduleRoleId}</if>
|
|
||||||
<if test="roleId != null and roleId != ''">or role_id = #{roleId}</if>
|
|
||||||
<if test="buttonType != null and buttonType != ''">or button_type = #{buttonType}</if>
|
|
||||||
<if test="buttonName != null and buttonName != ''">or button_name = #{buttonName}</if>
|
|
||||||
<if test="sorts != null">or sorts = #{sorts}</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
|
||||||
<if test="create_time != null">or create_time = #{create_time}</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
|
|
||||||
<if test="modify_time != null">or modify_time = #{modify_time}</if>
|
|
||||||
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
|
||||||
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!--新增所有列-->
|
|
||||||
<insert id="entity_insert" parameterType="com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity"
|
|
||||||
>
|
|
||||||
insert into mdm_module_role_button(
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="id != null and id != ''">id ,</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">mdm_id ,</if>
|
|
||||||
<if test="moduleRoleId != null and moduleRoleId != ''">module_role_id ,</if>
|
|
||||||
<if test="roleId != null and roleId != ''">role_id ,</if>
|
|
||||||
<if test="buttonType != null and buttonType != ''">button_type ,</if>
|
|
||||||
<if test="buttonName != null and buttonName != ''">button_name ,</if>
|
|
||||||
<if test="sorts != null">sorts ,</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
|
||||||
<if test="create_time != null">create_time ,</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
|
||||||
<if test="modify_time != null">modify_time ,</if>
|
|
||||||
<if test="sts != null and sts != ''">sts ,</if>
|
|
||||||
<if test="org_id != null and org_id != ''">org_id ,</if>
|
|
||||||
<if test="sts == null ">sts,</if>
|
|
||||||
</trim>
|
|
||||||
)values(
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="id != null and id != ''">#{id} ,</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">#{mdmId} ,</if>
|
|
||||||
<if test="moduleRoleId != null and moduleRoleId != ''">#{moduleRoleId} ,</if>
|
|
||||||
<if test="roleId != null and roleId != ''">#{roleId} ,</if>
|
|
||||||
<if test="buttonType != null and buttonType != ''">#{buttonType} ,</if>
|
|
||||||
<if test="buttonName != null and buttonName != ''">#{buttonName} ,</if>
|
|
||||||
<if test="sorts != null">#{sorts} ,</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
|
||||||
<if test="create_time != null">#{create_time} ,</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
|
||||||
<if test="modify_time != null">#{modify_time} ,</if>
|
|
||||||
<if test="sts != null and sts != ''">#{sts} ,</if>
|
|
||||||
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
|
||||||
|
|
||||||
<if test="sts == null ">'Y',</if>
|
|
||||||
</trim>
|
|
||||||
)
|
|
||||||
</insert>
|
|
||||||
<!-- 批量新增 -->
|
|
||||||
<insert id="entityInsertBatch" >
|
|
||||||
insert into mdm_module_role_button(mdm_id, module_role_id, role_id, button_type, button_name, sorts,
|
|
||||||
create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
|
|
||||||
values
|
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
|
||||||
(#{entity.mdmId},#{entity.moduleRoleId},#{entity.roleId},#{entity.buttonType},#{entity.buttonName},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},
|
|
||||||
'Y')
|
|
||||||
</foreach>
|
|
||||||
</insert>
|
|
||||||
<!-- 批量新增或者修改-->
|
|
||||||
<insert id="entityInsertOrUpdateBatch" >
|
|
||||||
insert into mdm_module_role_button(mdm_id, module_role_id, role_id, button_type, button_name, sorts,
|
|
||||||
create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
|
||||||
values
|
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
|
||||||
(#{entity.mdmId},#{entity.moduleRoleId},#{entity.roleId},#{entity.buttonType},#{entity.buttonName},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id})
|
|
||||||
</foreach>
|
|
||||||
on duplicate key update
|
|
||||||
mdm_id = values(mdm_id),
|
|
||||||
module_role_id = values(module_role_id),
|
|
||||||
role_id = values(role_id),
|
|
||||||
button_type = values(button_type),
|
|
||||||
button_name = values(button_name),
|
|
||||||
sorts = values(sorts),
|
|
||||||
create_user_id = values(create_user_id),
|
|
||||||
create_time = values(create_time),
|
|
||||||
modify_user_id = values(modify_user_id),
|
|
||||||
modify_time = values(modify_time),
|
|
||||||
sts = values(sts),
|
|
||||||
org_id = values(org_id)
|
|
||||||
</insert>
|
|
||||||
<!--通过主键修改方法-->
|
|
||||||
<update id="entity_update" parameterType="com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity">
|
|
||||||
update mdm_module_role_button set
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="mdmId != null and mdmId != ''">mdm_id = #{mdmId},</if>
|
|
||||||
<if test="moduleRoleId != null and moduleRoleId != ''">module_role_id = #{moduleRoleId},</if>
|
|
||||||
<if test="roleId != null and roleId != ''">role_id = #{roleId},</if>
|
|
||||||
<if test="buttonType != null and buttonType != ''">button_type = #{buttonType},</if>
|
|
||||||
<if test="buttonName != null and buttonName != ''">button_name = #{buttonName},</if>
|
|
||||||
<if test="sorts != null">sorts = #{sorts},</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
|
||||||
<if test="create_time != null">create_time = #{create_time},</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
|
|
||||||
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
|
||||||
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
|
||||||
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
<!-- 逻辑删除 -->
|
|
||||||
<update id="entity_logicDelete"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity">
|
|
||||||
update mdm_module_role_button set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
<!-- 多条件逻辑删除 -->
|
|
||||||
<update id="entity_logicDelete_Multi_Condition"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity">
|
|
||||||
update mdm_module_role_button set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
|
||||||
<if test="moduleRoleId != null and moduleRoleId != ''">and module_role_id = #{moduleRoleId}</if>
|
|
||||||
<if test="roleId != null and roleId != ''">and role_id = #{roleId}</if>
|
|
||||||
<if test="buttonType != null and buttonType != ''">and button_type = #{buttonType}</if>
|
|
||||||
<if test="buttonName != null and buttonName != ''">and button_name = #{buttonName}</if>
|
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
</update>
|
|
||||||
<!--通过主键删除-->
|
|
||||||
<delete id="entity_delete">
|
|
||||||
delete from mdm_module_role_button where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
</mapper>
|
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleRoleButton.service;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity;
|
|
||||||
import com.hzya.frame.basedao.service.IBaseService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据功能角色按钮表(MdmModuleRoleButton)表服务接口
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:33:11
|
|
||||||
*/
|
|
||||||
public interface IMdmModuleRoleButtonService extends IBaseService<MdmModuleRoleButtonEntity, String> {
|
|
||||||
}
|
|
|
@ -1,29 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleRoleButton.service.impl;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRoleButton.entity.MdmModuleRoleButtonEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRoleButton.dao.IMdmModuleRoleButtonDao;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleRoleButton.service.IMdmModuleRoleButtonService;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
|
|
||||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据功能角色按钮表(MdmModuleRoleButton)表服务实现类
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:33:12
|
|
||||||
*/
|
|
||||||
@Service(value = "mdmModuleRoleButtonService")
|
|
||||||
public class MdmModuleRoleButtonServiceImpl extends BaseService<MdmModuleRoleButtonEntity, String> implements IMdmModuleRoleButtonService {
|
|
||||||
|
|
||||||
private IMdmModuleRoleButtonDao mdmModuleRoleButtonDao;
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
public void setMdmModuleRoleButtonDao(IMdmModuleRoleButtonDao dao) {
|
|
||||||
this.mdmModuleRoleButtonDao = dao;
|
|
||||||
this.dao = dao;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleUserView.dao;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity;
|
|
||||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据用户视图表(mdm_module_user_view: table)表数据库访问层
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:33:47
|
|
||||||
*/
|
|
||||||
public interface IMdmModuleUserViewDao extends IBaseDao<MdmModuleUserViewEntity, String> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleUserView.dao.impl;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleUserView.dao.IMdmModuleUserViewDao;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据用户视图表(MdmModuleUserView)表数据库访问层
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:33:47
|
|
||||||
*/
|
|
||||||
@Repository(value = "MdmModuleUserViewDaoImpl")
|
|
||||||
public class MdmModuleUserViewDaoImpl extends MybatisGenericDao<MdmModuleUserViewEntity, String> implements IMdmModuleUserViewDao {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,54 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleUserView.entity;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
import com.hzya.frame.web.entity.BaseEntity;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据用户视图表(MdmModuleUserView)实体类
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:33:48
|
|
||||||
*/
|
|
||||||
public class MdmModuleUserViewEntity extends BaseEntity {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据模版ID
|
|
||||||
*/
|
|
||||||
private String mdmId;
|
|
||||||
/**
|
|
||||||
* 用户id
|
|
||||||
*/
|
|
||||||
private String userId;
|
|
||||||
/**
|
|
||||||
* 视图明细id
|
|
||||||
*/
|
|
||||||
private String viewDetailId;
|
|
||||||
|
|
||||||
|
|
||||||
public String getMdmId() {
|
|
||||||
return mdmId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMdmId(String mdmId) {
|
|
||||||
this.mdmId = mdmId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUserId() {
|
|
||||||
return userId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUserId(String userId) {
|
|
||||||
this.userId = userId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getViewDetailId() {
|
|
||||||
return viewDetailId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setViewDetailId(String viewDetailId) {
|
|
||||||
this.viewDetailId = viewDetailId;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,241 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.hzya.frame.mdm.mdmModuleUserView.dao.impl.MdmModuleUserViewDaoImpl">
|
|
||||||
|
|
||||||
<resultMap id="get-MdmModuleUserViewEntity-result"
|
|
||||||
type="com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity">
|
|
||||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="userId" column="user_id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="viewDetailId" column="view_detail_id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
|
||||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
|
||||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
|
||||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
|
||||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
|
||||||
</resultMap>
|
|
||||||
<!-- 查询的字段-->
|
|
||||||
<sql id="MdmModuleUserViewEntity_Base_Column_List">
|
|
||||||
id
|
|
||||||
,mdm_id
|
|
||||||
,user_id
|
|
||||||
,view_detail_id
|
|
||||||
,sorts
|
|
||||||
,create_user_id
|
|
||||||
,create_time
|
|
||||||
,modify_user_id
|
|
||||||
,modify_time
|
|
||||||
,sts
|
|
||||||
,org_id
|
|
||||||
</sql>
|
|
||||||
<!-- 查询 采用==查询 -->
|
|
||||||
<select id="entity_list_base" resultMap="get-MdmModuleUserViewEntity-result"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity">
|
|
||||||
select
|
|
||||||
<include refid="MdmModuleUserViewEntity_Base_Column_List"/>
|
|
||||||
from mdm_module_user_view
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
|
||||||
<if test="userId != null and userId != ''">and user_id = #{userId}</if>
|
|
||||||
<if test="viewDetailId != null and viewDetailId != ''">and view_detail_id = #{viewDetailId}</if>
|
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 查询符合条件的数量 -->
|
|
||||||
<select id="entity_count" resultType="Integer"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity">
|
|
||||||
select count(1) from mdm_module_user_view
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
|
||||||
<if test="userId != null and userId != ''">and user_id = #{userId}</if>
|
|
||||||
<if test="viewDetailId != null and viewDetailId != ''">and view_detail_id = #{viewDetailId}</if>
|
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
|
||||||
<select id="entity_list_like" resultMap="get-MdmModuleUserViewEntity-result"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity">
|
|
||||||
select
|
|
||||||
<include refid="MdmModuleUserViewEntity_Base_Column_List"/>
|
|
||||||
from mdm_module_user_view
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id like concat('%',#{mdmId},'%')</if>
|
|
||||||
<if test="userId != null and userId != ''">and user_id like concat('%',#{userId},'%')</if>
|
|
||||||
<if test="viewDetailId != null and viewDetailId != ''">and view_detail_id like
|
|
||||||
concat('%',#{viewDetailId},'%')
|
|
||||||
</if>
|
|
||||||
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
|
||||||
concat('%',#{create_user_id},'%')
|
|
||||||
</if>
|
|
||||||
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
|
|
||||||
concat('%',#{modify_user_id},'%')
|
|
||||||
</if>
|
|
||||||
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
|
|
||||||
<if test="org_id != null and org_id != ''">and org_id like concat('%',#{org_id},'%')</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!-- 查询列表 字段采用or格式 -->
|
|
||||||
<select id="MdmModuleUserViewentity_list_or" resultMap="get-MdmModuleUserViewEntity-result"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity">
|
|
||||||
select
|
|
||||||
<include refid="MdmModuleUserViewEntity_Base_Column_List"/>
|
|
||||||
from mdm_module_user_view
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">or id = #{id}</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">or mdm_id = #{mdmId}</if>
|
|
||||||
<if test="userId != null and userId != ''">or user_id = #{userId}</if>
|
|
||||||
<if test="viewDetailId != null and viewDetailId != ''">or view_detail_id = #{viewDetailId}</if>
|
|
||||||
<if test="sorts != null">or sorts = #{sorts}</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
|
||||||
<if test="create_time != null">or create_time = #{create_time}</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
|
|
||||||
<if test="modify_time != null">or modify_time = #{modify_time}</if>
|
|
||||||
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
|
||||||
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!--新增所有列-->
|
|
||||||
<insert id="entity_insert" parameterType="com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity"
|
|
||||||
>
|
|
||||||
insert into mdm_module_user_view(
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="id != null and id != ''">id ,</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">mdm_id ,</if>
|
|
||||||
<if test="userId != null and userId != ''">user_id ,</if>
|
|
||||||
<if test="viewDetailId != null and viewDetailId != ''">view_detail_id ,</if>
|
|
||||||
<if test="sorts != null">sorts ,</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
|
||||||
<if test="create_time != null">create_time ,</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
|
||||||
<if test="modify_time != null">modify_time ,</if>
|
|
||||||
<if test="sts != null and sts != ''">sts ,</if>
|
|
||||||
<if test="org_id != null and org_id != ''">org_id ,</if>
|
|
||||||
<if test="sts == null ">sts,</if>
|
|
||||||
</trim>
|
|
||||||
)values(
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="id != null and id != ''">#{id} ,</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">#{mdmId} ,</if>
|
|
||||||
<if test="userId != null and userId != ''">#{userId} ,</if>
|
|
||||||
<if test="viewDetailId != null and viewDetailId != ''">#{viewDetailId} ,</if>
|
|
||||||
<if test="sorts != null">#{sorts} ,</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
|
||||||
<if test="create_time != null">#{create_time} ,</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
|
||||||
<if test="modify_time != null">#{modify_time} ,</if>
|
|
||||||
<if test="sts != null and sts != ''">#{sts} ,</if>
|
|
||||||
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
|
||||||
|
|
||||||
<if test="sts == null ">'Y',</if>
|
|
||||||
</trim>
|
|
||||||
)
|
|
||||||
</insert>
|
|
||||||
<!-- 批量新增 -->
|
|
||||||
<insert id="entityInsertBatch" >
|
|
||||||
insert into mdm_module_user_view(mdm_id, user_id, view_detail_id, sorts, create_user_id, create_time,
|
|
||||||
modify_user_id, modify_time, sts, org_id, sts)
|
|
||||||
values
|
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
|
||||||
(#{entity.mdmId},#{entity.userId},#{entity.viewDetailId},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},
|
|
||||||
'Y')
|
|
||||||
</foreach>
|
|
||||||
</insert>
|
|
||||||
<!-- 批量新增或者修改-->
|
|
||||||
<insert id="entityInsertOrUpdateBatch" >
|
|
||||||
insert into mdm_module_user_view(mdm_id, user_id, view_detail_id, sorts, create_user_id, create_time,
|
|
||||||
modify_user_id, modify_time, sts, org_id)
|
|
||||||
values
|
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
|
||||||
(#{entity.mdmId},#{entity.userId},#{entity.viewDetailId},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id})
|
|
||||||
</foreach>
|
|
||||||
on duplicate key update
|
|
||||||
mdm_id = values(mdm_id),
|
|
||||||
user_id = values(user_id),
|
|
||||||
view_detail_id = values(view_detail_id),
|
|
||||||
sorts = values(sorts),
|
|
||||||
create_user_id = values(create_user_id),
|
|
||||||
create_time = values(create_time),
|
|
||||||
modify_user_id = values(modify_user_id),
|
|
||||||
modify_time = values(modify_time),
|
|
||||||
sts = values(sts),
|
|
||||||
org_id = values(org_id)
|
|
||||||
</insert>
|
|
||||||
<!--通过主键修改方法-->
|
|
||||||
<update id="entity_update" parameterType="com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity">
|
|
||||||
update mdm_module_user_view set
|
|
||||||
<trim suffix="" suffixOverrides=",">
|
|
||||||
<if test="mdmId != null and mdmId != ''">mdm_id = #{mdmId},</if>
|
|
||||||
<if test="userId != null and userId != ''">user_id = #{userId},</if>
|
|
||||||
<if test="viewDetailId != null and viewDetailId != ''">view_detail_id = #{viewDetailId},</if>
|
|
||||||
<if test="sorts != null">sorts = #{sorts},</if>
|
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
|
||||||
<if test="create_time != null">create_time = #{create_time},</if>
|
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
|
|
||||||
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
|
||||||
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
|
||||||
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
<!-- 逻辑删除 -->
|
|
||||||
<update id="entity_logicDelete" parameterType="com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity">
|
|
||||||
update mdm_module_user_view set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
<!-- 多条件逻辑删除 -->
|
|
||||||
<update id="entity_logicDelete_Multi_Condition"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity">
|
|
||||||
update mdm_module_user_view set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
|
||||||
<trim prefix="where" prefixOverrides="and">
|
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
|
||||||
<if test="userId != null and userId != ''">and user_id = #{userId}</if>
|
|
||||||
<if test="viewDetailId != null and viewDetailId != ''">and view_detail_id = #{viewDetailId}</if>
|
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
|
||||||
and sts='Y'
|
|
||||||
</trim>
|
|
||||||
</update>
|
|
||||||
<!--通过主键删除-->
|
|
||||||
<delete id="entity_delete">
|
|
||||||
delete from mdm_module_user_view where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
</mapper>
|
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleUserView.service;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity;
|
|
||||||
import com.hzya.frame.basedao.service.IBaseService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据用户视图表(MdmModuleUserView)表服务接口
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:33:48
|
|
||||||
*/
|
|
||||||
public interface IMdmModuleUserViewService extends IBaseService<MdmModuleUserViewEntity, String> {
|
|
||||||
}
|
|
|
@ -1,29 +0,0 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleUserView.service.impl;
|
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleUserView.entity.MdmModuleUserViewEntity;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleUserView.dao.IMdmModuleUserViewDao;
|
|
||||||
import com.hzya.frame.mdm.mdmModuleUserView.service.IMdmModuleUserViewService;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
|
|
||||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主数据用户视图表(MdmModuleUserView)表服务实现类
|
|
||||||
*
|
|
||||||
* @author makejava
|
|
||||||
* @since 2023-10-17 15:33:49
|
|
||||||
*/
|
|
||||||
@Service(value = "mdmModuleUserViewService")
|
|
||||||
public class MdmModuleUserViewServiceImpl extends BaseService<MdmModuleUserViewEntity, String> implements IMdmModuleUserViewService {
|
|
||||||
|
|
||||||
private IMdmModuleUserViewDao mdmModuleUserViewDao;
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
public void setMdmModuleUserViewDao(IMdmModuleUserViewDao dao) {
|
|
||||||
this.mdmModuleUserViewDao = dao;
|
|
||||||
this.dao = dao;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
* 主数据视图表(mdm_module_view: table)表数据库访问层
|
* 主数据视图表(mdm_module_view: table)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:34:17
|
* @since 2024-06-03 08:48:37
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleViewDao extends IBaseDao<MdmModuleViewEntity, String> {
|
public interface IMdmModuleViewDao extends IBaseDao<MdmModuleViewEntity, String> {
|
||||||
|
|
||||||
|
|
|
@ -4,15 +4,14 @@ import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity;
|
||||||
import com.hzya.frame.mdm.mdmModuleView.dao.IMdmModuleViewDao;
|
import com.hzya.frame.mdm.mdmModuleView.dao.IMdmModuleViewDao;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主数据视图表(MdmModuleView)表数据库访问层
|
* 主数据视图表(MdmModuleView)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:34:17
|
* @since 2024-06-03 08:48:37
|
||||||
*/
|
*/
|
||||||
@Repository(value = "MdmModuleViewDaoImpl")
|
@Repository(value = "MdmModuleViewDaoImpl")
|
||||||
public class MdmModuleViewDaoImpl extends MybatisGenericDao<MdmModuleViewEntity, String> implements IMdmModuleViewDao {
|
public class MdmModuleViewDaoImpl extends MybatisGenericDao<MdmModuleViewEntity, String> implements IMdmModuleViewDao{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,33 +1,25 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleView.entity;
|
package com.hzya.frame.mdm.mdmModuleView.entity;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import com.hzya.frame.web.entity.BaseEntity;
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主数据视图表(MdmModuleView)实体类
|
* 主数据视图表(MdmModuleView)实体类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:34:17
|
* @since 2024-06-03 08:48:37
|
||||||
*/
|
*/
|
||||||
public class MdmModuleViewEntity extends BaseEntity {
|
public class MdmModuleViewEntity extends BaseEntity {
|
||||||
|
|
||||||
/**
|
/** 主数据模版ID */
|
||||||
* 主数据模版ID
|
private String mdmId;
|
||||||
*/
|
/** 显示类型 */
|
||||||
private String mdmId;
|
private String viewName;
|
||||||
/**
|
/** 显示字段 */
|
||||||
* 显示类型 1、树 2、列表
|
private String viewFiled;
|
||||||
*/
|
/** 上级id字段 */
|
||||||
private String viewName;
|
private String upIdFiled;
|
||||||
/**
|
/** 公司id */
|
||||||
* 显示字段
|
private String companyId;
|
||||||
*/
|
|
||||||
private String viewFiled;
|
|
||||||
/**
|
|
||||||
* 上级id字段
|
|
||||||
*/
|
|
||||||
private String upIdFiled;
|
|
||||||
|
|
||||||
|
|
||||||
public String getMdmId() {
|
public String getMdmId() {
|
||||||
|
@ -62,5 +54,13 @@ public class MdmModuleViewEntity extends BaseEntity {
|
||||||
this.upIdFiled = upIdFiled;
|
this.upIdFiled = upIdFiled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getCompanyId() {
|
||||||
|
return companyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCompanyId(String companyId) {
|
||||||
|
this.companyId = companyId;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,22 +2,23 @@
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.hzya.frame.mdm.mdmModuleView.dao.impl.MdmModuleViewDaoImpl">
|
<mapper namespace="com.hzya.frame.mdm.mdmModuleView.dao.impl.MdmModuleViewDaoImpl">
|
||||||
|
|
||||||
<resultMap id="get-MdmModuleViewEntity-result" type="com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity">
|
<resultMap id="get-MdmModuleViewEntity-result" type="com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity" >
|
||||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
||||||
<result property="viewName" column="view_name" jdbcType="VARCHAR"/>
|
<result property="viewName" column="view_name" jdbcType="VARCHAR"/>
|
||||||
<result property="viewFiled" column="view_filed" jdbcType="VARCHAR"/>
|
<result property="viewFiled" column="view_filed" jdbcType="VARCHAR"/>
|
||||||
<result property="upIdFiled" column="up_id_filed" jdbcType="VARCHAR"/>
|
<result property="upIdFiled" column="up_id_filed" jdbcType="VARCHAR"/>
|
||||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||||
</resultMap>
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
<!-- 查询的字段-->
|
<!-- 查询的字段-->
|
||||||
<sql id="MdmModuleViewEntity_Base_Column_List">
|
<sql id = "MdmModuleViewEntity_Base_Column_List">
|
||||||
id
|
id
|
||||||
,mdm_id
|
,mdm_id
|
||||||
,view_name
|
,view_name
|
||||||
|
@ -30,218 +31,211 @@
|
||||||
,modify_time
|
,modify_time
|
||||||
,sts
|
,sts
|
||||||
,org_id
|
,org_id
|
||||||
|
,company_id
|
||||||
</sql>
|
</sql>
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="entity_list_base" resultMap="get-MdmModuleViewEntity-result"
|
<select id="entity_list_base" resultMap="get-MdmModuleViewEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity">
|
select
|
||||||
select
|
<include refid="MdmModuleViewEntity_Base_Column_List" />
|
||||||
<include refid="MdmModuleViewEntity_Base_Column_List"/>
|
from mdm_module_view
|
||||||
from mdm_module_view
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
<if test="viewName != null and viewName != ''"> and view_name = #{viewName} </if>
|
||||||
<if test="viewName != null and viewName != ''">and view_name = #{viewName}</if>
|
<if test="viewFiled != null and viewFiled != ''"> and view_filed = #{viewFiled} </if>
|
||||||
<if test="viewFiled != null and viewFiled != ''">and view_filed = #{viewFiled}</if>
|
<if test="upIdFiled != null and upIdFiled != ''"> and up_id_filed = #{upIdFiled} </if>
|
||||||
<if test="upIdFiled != null and upIdFiled != ''">and up_id_filed = #{upIdFiled}</if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询符合条件的数量 -->
|
<!-- 查询符合条件的数量 -->
|
||||||
<select id="entity_count" resultType="Integer"
|
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity">
|
select count(1) from mdm_module_view
|
||||||
select count(1) from mdm_module_view
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
<if test="viewName != null and viewName != ''"> and view_name = #{viewName} </if>
|
||||||
<if test="viewName != null and viewName != ''">and view_name = #{viewName}</if>
|
<if test="viewFiled != null and viewFiled != ''"> and view_filed = #{viewFiled} </if>
|
||||||
<if test="viewFiled != null and viewFiled != ''">and view_filed = #{viewFiled}</if>
|
<if test="upIdFiled != null and upIdFiled != ''"> and up_id_filed = #{upIdFiled} </if>
|
||||||
<if test="upIdFiled != null and upIdFiled != ''">and up_id_filed = #{upIdFiled}</if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
<!-- 分页查询列表 采用like格式 -->
|
||||||
<select id="entity_list_like" resultMap="get-MdmModuleViewEntity-result"
|
<select id="entity_list_like" resultMap="get-MdmModuleViewEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity">
|
select
|
||||||
select
|
<include refid="MdmModuleViewEntity_Base_Column_List" />
|
||||||
<include refid="MdmModuleViewEntity_Base_Column_List"/>
|
from mdm_module_view
|
||||||
from mdm_module_view
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||||
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id like concat('%',#{mdmId},'%') </if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id like concat('%',#{mdmId},'%')</if>
|
<if test="viewName != null and viewName != ''"> and view_name like concat('%',#{viewName},'%') </if>
|
||||||
<if test="viewName != null and viewName != ''">and view_name like concat('%',#{viewName},'%')</if>
|
<if test="viewFiled != null and viewFiled != ''"> and view_filed like concat('%',#{viewFiled},'%') </if>
|
||||||
<if test="viewFiled != null and viewFiled != ''">and view_filed like concat('%',#{viewFiled},'%')</if>
|
<if test="upIdFiled != null and upIdFiled != ''"> and up_id_filed like concat('%',#{upIdFiled},'%') </if>
|
||||||
<if test="upIdFiled != null and upIdFiled != ''">and up_id_filed like concat('%',#{upIdFiled},'%')</if>
|
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||||
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||||
concat('%',#{create_user_id},'%')
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
||||||
</if>
|
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||||
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
|
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||||
concat('%',#{modify_user_id},'%')
|
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||||
</if>
|
|
||||||
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
|
|
||||||
<if test="org_id != null and org_id != ''">and org_id like concat('%',#{org_id},'%')</if>
|
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询列表 字段采用or格式 -->
|
<!-- 查询列表 字段采用or格式 -->
|
||||||
<select id="MdmModuleViewentity_list_or" resultMap="get-MdmModuleViewEntity-result"
|
<select id="MdmModuleViewentity_list_or" resultMap="get-MdmModuleViewEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity">
|
select
|
||||||
select
|
<include refid="MdmModuleViewEntity_Base_Column_List" />
|
||||||
<include refid="MdmModuleViewEntity_Base_Column_List"/>
|
from mdm_module_view
|
||||||
from mdm_module_view
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||||
<if test="id != null and id != ''">or id = #{id}</if>
|
<if test="mdmId != null and mdmId != ''"> or mdm_id = #{mdmId} </if>
|
||||||
<if test="mdmId != null and mdmId != ''">or mdm_id = #{mdmId}</if>
|
<if test="viewName != null and viewName != ''"> or view_name = #{viewName} </if>
|
||||||
<if test="viewName != null and viewName != ''">or view_name = #{viewName}</if>
|
<if test="viewFiled != null and viewFiled != ''"> or view_filed = #{viewFiled} </if>
|
||||||
<if test="viewFiled != null and viewFiled != ''">or view_filed = #{viewFiled}</if>
|
<if test="upIdFiled != null and upIdFiled != ''"> or up_id_filed = #{upIdFiled} </if>
|
||||||
<if test="upIdFiled != null and upIdFiled != ''">or up_id_filed = #{upIdFiled}</if>
|
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||||
<if test="sorts != null">or sorts = #{sorts}</if>
|
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||||
<if test="create_time != null">or create_time = #{create_time}</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
|
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||||
<if test="modify_time != null">or modify_time = #{modify_time}</if>
|
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||||
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||||
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
|
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--新增所有列-->
|
<!--新增所有列-->
|
||||||
<insert id="entity_insert" parameterType="com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity"
|
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity" >
|
||||||
>
|
insert into mdm_module_view(
|
||||||
insert into mdm_module_view(
|
<trim suffix="" suffixOverrides=",">
|
||||||
<trim suffix="" suffixOverrides=",">
|
<if test="id != null and id != ''"> id , </if>
|
||||||
<if test="id != null and id != ''">id ,</if>
|
<if test="mdmId != null and mdmId != ''"> mdm_id , </if>
|
||||||
<if test="mdmId != null and mdmId != ''">mdm_id ,</if>
|
<if test="viewName != null and viewName != ''"> view_name , </if>
|
||||||
<if test="viewName != null and viewName != ''">view_name ,</if>
|
<if test="viewFiled != null and viewFiled != ''"> view_filed , </if>
|
||||||
<if test="viewFiled != null and viewFiled != ''">view_filed ,</if>
|
<if test="upIdFiled != null and upIdFiled != ''"> up_id_filed , </if>
|
||||||
<if test="upIdFiled != null and upIdFiled != ''">up_id_filed ,</if>
|
<if test="sorts != null"> sorts , </if>
|
||||||
<if test="sorts != null">sorts ,</if>
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
<if test="create_time != null"> create_time , </if>
|
||||||
<if test="create_time != null">create_time ,</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
<if test="modify_time != null"> modify_time , </if>
|
||||||
<if test="modify_time != null">modify_time ,</if>
|
<if test="sts != null and sts != ''"> sts , </if>
|
||||||
<if test="sts != null and sts != ''">sts ,</if>
|
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||||
<if test="org_id != null and org_id != ''">org_id ,</if>
|
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||||
<if test="sts == null ">sts,</if>
|
<if test="sts == null ">sts,</if>
|
||||||
</trim>
|
</trim>
|
||||||
)values(
|
)values(
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="id != null and id != ''">#{id} ,</if>
|
<if test="id != null and id != ''"> #{id} ,</if>
|
||||||
<if test="mdmId != null and mdmId != ''">#{mdmId} ,</if>
|
<if test="mdmId != null and mdmId != ''"> #{mdmId} ,</if>
|
||||||
<if test="viewName != null and viewName != ''">#{viewName} ,</if>
|
<if test="viewName != null and viewName != ''"> #{viewName} ,</if>
|
||||||
<if test="viewFiled != null and viewFiled != ''">#{viewFiled} ,</if>
|
<if test="viewFiled != null and viewFiled != ''"> #{viewFiled} ,</if>
|
||||||
<if test="upIdFiled != null and upIdFiled != ''">#{upIdFiled} ,</if>
|
<if test="upIdFiled != null and upIdFiled != ''"> #{upIdFiled} ,</if>
|
||||||
<if test="sorts != null">#{sorts} ,</if>
|
<if test="sorts != null"> #{sorts} ,</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||||
<if test="create_time != null">#{create_time} ,</if>
|
<if test="create_time != null"> #{create_time} ,</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
||||||
<if test="modify_time != null">#{modify_time} ,</if>
|
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||||
<if test="sts != null and sts != ''">#{sts} ,</if>
|
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||||
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||||
|
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||||
<if test="sts == null ">'Y',</if>
|
<if test="sts == null ">'Y',</if>
|
||||||
</trim>
|
</trim>
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<!-- 批量新增 -->
|
<!-- 批量新增 -->
|
||||||
<insert id="entityInsertBatch" >
|
<insert id="entityInsertBatch" >
|
||||||
insert into mdm_module_view(mdm_id, view_name, view_filed, up_id_filed, sorts, create_user_id, create_time,
|
insert into mdm_module_view(mdm_id, view_name, view_filed, up_id_filed, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||||
modify_user_id, modify_time, sts, org_id, sts)
|
values
|
||||||
values
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
(#{entity.mdmId},#{entity.viewName},#{entity.viewFiled},#{entity.upIdFiled},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||||
(#{entity.mdmId},#{entity.viewName},#{entity.viewFiled},#{entity.upIdFiled},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},
|
</foreach>
|
||||||
'Y')
|
</insert>
|
||||||
</foreach>
|
<!-- 批量新增或者修改-->
|
||||||
</insert>
|
<insert id="entityInsertOrUpdateBatch" >
|
||||||
<!-- 批量新增或者修改-->
|
insert into mdm_module_view(mdm_id, view_name, view_filed, up_id_filed, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||||
<insert id="entityInsertOrUpdateBatch" >
|
values
|
||||||
insert into mdm_module_view(mdm_id, view_name, view_filed, up_id_filed, sorts, create_user_id, create_time,
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
modify_user_id, modify_time, sts, org_id)
|
(#{entity.mdmId},#{entity.viewName},#{entity.viewFiled},#{entity.upIdFiled},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||||
values
|
</foreach>
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
on duplicate key update
|
||||||
(#{entity.mdmId},#{entity.viewName},#{entity.viewFiled},#{entity.upIdFiled},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id})
|
mdm_id = values(mdm_id),
|
||||||
</foreach>
|
view_name = values(view_name),
|
||||||
on duplicate key update
|
view_filed = values(view_filed),
|
||||||
mdm_id = values(mdm_id),
|
up_id_filed = values(up_id_filed),
|
||||||
view_name = values(view_name),
|
create_user_id = values(create_user_id),
|
||||||
view_filed = values(view_filed),
|
create_time = values(create_time),
|
||||||
up_id_filed = values(up_id_filed),
|
modify_user_id = values(modify_user_id),
|
||||||
sorts = values(sorts),
|
modify_time = values(modify_time),
|
||||||
create_user_id = values(create_user_id),
|
sts = values(sts),
|
||||||
create_time = values(create_time),
|
org_id = values(org_id),
|
||||||
modify_user_id = values(modify_user_id),
|
company_id = values(company_id)</insert>
|
||||||
modify_time = values(modify_time),
|
<!--通过主键修改方法-->
|
||||||
sts = values(sts),
|
<update id="entity_update" parameterType = "com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity" >
|
||||||
org_id = values(org_id)
|
update mdm_module_view set
|
||||||
</insert>
|
<trim suffix="" suffixOverrides=",">
|
||||||
<!--通过主键修改方法-->
|
<if test="mdmId != null and mdmId != ''"> mdm_id = #{mdmId},</if>
|
||||||
<update id="entity_update" parameterType="com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity">
|
<if test="viewName != null and viewName != ''"> view_name = #{viewName},</if>
|
||||||
update mdm_module_view set
|
<if test="viewFiled != null and viewFiled != ''"> view_filed = #{viewFiled},</if>
|
||||||
<trim suffix="" suffixOverrides=",">
|
<if test="upIdFiled != null and upIdFiled != ''"> up_id_filed = #{upIdFiled},</if>
|
||||||
<if test="mdmId != null and mdmId != ''">mdm_id = #{mdmId},</if>
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||||
<if test="viewName != null and viewName != ''">view_name = #{viewName},</if>
|
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||||
<if test="viewFiled != null and viewFiled != ''">view_filed = #{viewFiled},</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||||
<if test="upIdFiled != null and upIdFiled != ''">up_id_filed = #{upIdFiled},</if>
|
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||||
<if test="sorts != null">sorts = #{sorts},</if>
|
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||||
<if test="create_time != null">create_time = #{create_time},</if>
|
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
|
</trim>
|
||||||
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
where id = #{id}
|
||||||
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
</update>
|
||||||
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
<!-- 逻辑删除 -->
|
||||||
</trim>
|
<update id="entity_logicDelete" parameterType = "com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity" >
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
<!-- 逻辑删除 -->
|
|
||||||
<update id="entity_logicDelete" parameterType="com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity">
|
|
||||||
update mdm_module_view set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
update mdm_module_view set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
<!-- 多条件逻辑删除 -->
|
<!-- 多条件逻辑删除 -->
|
||||||
<update id="entity_logicDelete_Multi_Condition"
|
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity" >
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity">
|
update mdm_module_view set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
update mdm_module_view set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
<if test="viewName != null and viewName != ''"> and view_name = #{viewName} </if>
|
||||||
<if test="viewName != null and viewName != ''">and view_name = #{viewName}</if>
|
<if test="viewFiled != null and viewFiled != ''"> and view_filed = #{viewFiled} </if>
|
||||||
<if test="viewFiled != null and viewFiled != ''">and view_filed = #{viewFiled}</if>
|
<if test="upIdFiled != null and upIdFiled != ''"> and up_id_filed = #{upIdFiled} </if>
|
||||||
<if test="upIdFiled != null and upIdFiled != ''">and up_id_filed = #{upIdFiled}</if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
</update>
|
</update>
|
||||||
<!--通过主键删除-->
|
<!--通过主键删除-->
|
||||||
<delete id="entity_delete">
|
<delete id="entity_delete">
|
||||||
delete from mdm_module_view where id = #{id}
|
delete from mdm_module_view where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,11 @@ package com.hzya.frame.mdm.mdmModuleView.service;
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity;
|
import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity;
|
||||||
import com.hzya.frame.basedao.service.IBaseService;
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主数据视图表(MdmModuleView)表服务接口
|
* 主数据视图表(MdmModuleView)表服务接口
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:34:18
|
* @since 2024-06-03 08:48:37
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleViewService extends IBaseService<MdmModuleViewEntity, String> {
|
public interface IMdmModuleViewService extends IBaseService<MdmModuleViewEntity, String>{
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,16 +5,13 @@ import com.hzya.frame.mdm.mdmModuleView.dao.IMdmModuleViewDao;
|
||||||
import com.hzya.frame.mdm.mdmModuleView.service.IMdmModuleViewService;
|
import com.hzya.frame.mdm.mdmModuleView.service.IMdmModuleViewService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主数据视图表(MdmModuleView)表服务实现类
|
* 主数据视图表(MdmModuleView)表服务实现类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:34:19
|
* @since 2024-06-03 08:48:37
|
||||||
*/
|
*/
|
||||||
@Service(value = "mdmModuleViewService")
|
@Service(value = "mdmModuleViewService")
|
||||||
public class MdmModuleViewServiceImpl extends BaseService<MdmModuleViewEntity, String> implements IMdmModuleViewService {
|
public class MdmModuleViewServiceImpl extends BaseService<MdmModuleViewEntity, String> implements IMdmModuleViewService {
|
||||||
|
@ -22,8 +19,8 @@ public class MdmModuleViewServiceImpl extends BaseService<MdmModuleViewEntity, S
|
||||||
private IMdmModuleViewDao mdmModuleViewDao;
|
private IMdmModuleViewDao mdmModuleViewDao;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public void setMdmModuleViewDao(IMdmModuleViewDao dao) {
|
public void setMdmModuleViewDao(IMdmModuleViewDao dao) {
|
||||||
this.mdmModuleViewDao = dao;
|
this.mdmModuleViewDao = dao;
|
||||||
this.dao = dao;
|
this.dao = dao;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
package com.hzya.frame.mdm.mdmModuleViewButton.dao;
|
||||||
|
|
||||||
|
import com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity;
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主数据视图按钮表(mdm_module_view_button: table)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-03 08:48:46
|
||||||
|
*/
|
||||||
|
public interface IMdmModuleViewButtonDao extends IBaseDao<MdmModuleViewButtonEntity, String> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.hzya.frame.mdm.mdmModuleViewButton.dao.impl;
|
||||||
|
|
||||||
|
import com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity;
|
||||||
|
import com.hzya.frame.mdm.mdmModuleViewButton.dao.IMdmModuleViewButtonDao;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
/**
|
||||||
|
* 主数据视图按钮表(MdmModuleViewButton)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-03 08:48:46
|
||||||
|
*/
|
||||||
|
@Repository(value = "MdmModuleViewButtonDaoImpl")
|
||||||
|
public class MdmModuleViewButtonDaoImpl extends MybatisGenericDao<MdmModuleViewButtonEntity, String> implements IMdmModuleViewButtonDao{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,66 @@
|
||||||
|
package com.hzya.frame.mdm.mdmModuleViewButton.entity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
/**
|
||||||
|
* 主数据视图按钮表(MdmModuleViewButton)实体类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-03 08:48:46
|
||||||
|
*/
|
||||||
|
public class MdmModuleViewButtonEntity extends BaseEntity {
|
||||||
|
|
||||||
|
/** 主数据模版ID */
|
||||||
|
private String mdmId;
|
||||||
|
/** 视图id */
|
||||||
|
private String viewId;
|
||||||
|
/** 类型1、新建2、重置3、查询4、修改 5、删除 6、查看 */
|
||||||
|
private String buttonType;
|
||||||
|
/** 按钮值 */
|
||||||
|
private String buttonValue;
|
||||||
|
/** 公司id */
|
||||||
|
private String companyId;
|
||||||
|
|
||||||
|
|
||||||
|
public String getMdmId() {
|
||||||
|
return mdmId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMdmId(String mdmId) {
|
||||||
|
this.mdmId = mdmId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getViewId() {
|
||||||
|
return viewId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setViewId(String viewId) {
|
||||||
|
this.viewId = viewId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getButtonType() {
|
||||||
|
return buttonType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setButtonType(String buttonType) {
|
||||||
|
this.buttonType = buttonType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getButtonValue() {
|
||||||
|
return buttonValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setButtonValue(String buttonValue) {
|
||||||
|
this.buttonValue = buttonValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCompanyId() {
|
||||||
|
return companyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCompanyId(String companyId) {
|
||||||
|
this.companyId = companyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,243 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.mdm.mdmModuleViewButton.dao.impl.MdmModuleViewButtonDaoImpl">
|
||||||
|
|
||||||
|
<resultMap id="get-MdmModuleViewButtonEntity-result" type="com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity" >
|
||||||
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="viewId" column="view_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="buttonType" column="button_type" jdbcType="VARCHAR"/>
|
||||||
|
<result property="buttonValue" column="button_value" jdbcType="VARCHAR"/>
|
||||||
|
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||||
|
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||||
|
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
<!-- 查询的字段-->
|
||||||
|
<sql id = "MdmModuleViewButtonEntity_Base_Column_List">
|
||||||
|
id
|
||||||
|
,mdm_id
|
||||||
|
,view_id
|
||||||
|
,button_type
|
||||||
|
,button_value
|
||||||
|
,sorts
|
||||||
|
,create_user_id
|
||||||
|
,create_time
|
||||||
|
,modify_user_id
|
||||||
|
,modify_time
|
||||||
|
,sts
|
||||||
|
,org_id
|
||||||
|
,company_id
|
||||||
|
</sql>
|
||||||
|
<!-- 查询 采用==查询 -->
|
||||||
|
<select id="entity_list_base" resultMap="get-MdmModuleViewButtonEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity">
|
||||||
|
select
|
||||||
|
<include refid="MdmModuleViewButtonEntity_Base_Column_List" />
|
||||||
|
from mdm_module_view_button
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
|
<if test="viewId != null and viewId != ''"> and view_id = #{viewId} </if>
|
||||||
|
<if test="buttonType != null and buttonType != ''"> and button_type = #{buttonType} </if>
|
||||||
|
<if test="buttonValue != null and buttonValue != ''"> and button_value = #{buttonValue} </if>
|
||||||
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||||
|
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||||
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||||
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
|
and sts='Y'
|
||||||
|
</trim>
|
||||||
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询符合条件的数量 -->
|
||||||
|
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity">
|
||||||
|
select count(1) from mdm_module_view_button
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
|
<if test="viewId != null and viewId != ''"> and view_id = #{viewId} </if>
|
||||||
|
<if test="buttonType != null and buttonType != ''"> and button_type = #{buttonType} </if>
|
||||||
|
<if test="buttonValue != null and buttonValue != ''"> and button_value = #{buttonValue} </if>
|
||||||
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||||
|
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||||
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||||
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
|
and sts='Y'
|
||||||
|
</trim>
|
||||||
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
|
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 分页查询列表 采用like格式 -->
|
||||||
|
<select id="entity_list_like" resultMap="get-MdmModuleViewButtonEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity">
|
||||||
|
select
|
||||||
|
<include refid="MdmModuleViewButtonEntity_Base_Column_List" />
|
||||||
|
from mdm_module_view_button
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||||
|
<if test="mdmId != null and mdmId != ''"> and mdm_id like concat('%',#{mdmId},'%') </if>
|
||||||
|
<if test="viewId != null and viewId != ''"> and view_id like concat('%',#{viewId},'%') </if>
|
||||||
|
<if test="buttonType != null and buttonType != ''"> and button_type like concat('%',#{buttonType},'%') </if>
|
||||||
|
<if test="buttonValue != null and buttonValue != ''"> and button_value like concat('%',#{buttonValue},'%') </if>
|
||||||
|
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||||
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||||
|
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||||
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
||||||
|
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||||
|
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||||
|
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||||
|
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||||
|
and sts='Y'
|
||||||
|
</trim>
|
||||||
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 查询列表 字段采用or格式 -->
|
||||||
|
<select id="MdmModuleViewButtonentity_list_or" resultMap="get-MdmModuleViewButtonEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity">
|
||||||
|
select
|
||||||
|
<include refid="MdmModuleViewButtonEntity_Base_Column_List" />
|
||||||
|
from mdm_module_view_button
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||||
|
<if test="mdmId != null and mdmId != ''"> or mdm_id = #{mdmId} </if>
|
||||||
|
<if test="viewId != null and viewId != ''"> or view_id = #{viewId} </if>
|
||||||
|
<if test="buttonType != null and buttonType != ''"> or button_type = #{buttonType} </if>
|
||||||
|
<if test="buttonValue != null and buttonValue != ''"> or button_value = #{buttonValue} </if>
|
||||||
|
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||||
|
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||||
|
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||||
|
<if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
|
||||||
|
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||||
|
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||||
|
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||||
|
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||||
|
and sts='Y'
|
||||||
|
</trim>
|
||||||
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!--新增所有列-->
|
||||||
|
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity" >
|
||||||
|
insert into mdm_module_view_button(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="id != null and id != ''"> id , </if>
|
||||||
|
<if test="mdmId != null and mdmId != ''"> mdm_id , </if>
|
||||||
|
<if test="viewId != null and viewId != ''"> view_id , </if>
|
||||||
|
<if test="buttonType != null and buttonType != ''"> button_type , </if>
|
||||||
|
<if test="buttonValue != null and buttonValue != ''"> button_value , </if>
|
||||||
|
<if test="sorts != null"> sorts , </if>
|
||||||
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||||
|
<if test="create_time != null"> create_time , </if>
|
||||||
|
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
||||||
|
<if test="modify_time != null"> modify_time , </if>
|
||||||
|
<if test="sts != null and sts != ''"> sts , </if>
|
||||||
|
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||||
|
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||||
|
<if test="sts == null ">sts,</if>
|
||||||
|
</trim>
|
||||||
|
)values(
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="id != null and id != ''"> #{id} ,</if>
|
||||||
|
<if test="mdmId != null and mdmId != ''"> #{mdmId} ,</if>
|
||||||
|
<if test="viewId != null and viewId != ''"> #{viewId} ,</if>
|
||||||
|
<if test="buttonType != null and buttonType != ''"> #{buttonType} ,</if>
|
||||||
|
<if test="buttonValue != null and buttonValue != ''"> #{buttonValue} ,</if>
|
||||||
|
<if test="sorts != null"> #{sorts} ,</if>
|
||||||
|
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||||
|
<if test="create_time != null"> #{create_time} ,</if>
|
||||||
|
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
||||||
|
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||||
|
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||||
|
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||||
|
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||||
|
<if test="sts == null ">'Y',</if>
|
||||||
|
</trim>
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<!-- 批量新增 -->
|
||||||
|
<insert id="entityInsertBatch" >
|
||||||
|
insert into mdm_module_view_button(mdm_id, view_id, button_type, button_value, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||||
|
values
|
||||||
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
|
(#{entity.mdmId},#{entity.viewId},#{entity.buttonType},#{entity.buttonValue},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||||
|
</foreach>
|
||||||
|
</insert>
|
||||||
|
<!-- 批量新增或者修改-->
|
||||||
|
<insert id="entityInsertOrUpdateBatch" >
|
||||||
|
insert into mdm_module_view_button(mdm_id, view_id, button_type, button_value, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||||
|
values
|
||||||
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
|
(#{entity.mdmId},#{entity.viewId},#{entity.buttonType},#{entity.buttonValue},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||||
|
</foreach>
|
||||||
|
on duplicate key update
|
||||||
|
mdm_id = values(mdm_id),
|
||||||
|
view_id = values(view_id),
|
||||||
|
button_type = values(button_type),
|
||||||
|
button_value = values(button_value),
|
||||||
|
create_user_id = values(create_user_id),
|
||||||
|
create_time = values(create_time),
|
||||||
|
modify_user_id = values(modify_user_id),
|
||||||
|
modify_time = values(modify_time),
|
||||||
|
sts = values(sts),
|
||||||
|
org_id = values(org_id),
|
||||||
|
company_id = values(company_id)</insert>
|
||||||
|
<!--通过主键修改方法-->
|
||||||
|
<update id="entity_update" parameterType = "com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity" >
|
||||||
|
update mdm_module_view_button set
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="mdmId != null and mdmId != ''"> mdm_id = #{mdmId},</if>
|
||||||
|
<if test="viewId != null and viewId != ''"> view_id = #{viewId},</if>
|
||||||
|
<if test="buttonType != null and buttonType != ''"> button_type = #{buttonType},</if>
|
||||||
|
<if test="buttonValue != null and buttonValue != ''"> button_value = #{buttonValue},</if>
|
||||||
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||||
|
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||||
|
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||||
|
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||||
|
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||||
|
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||||
|
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
<!-- 逻辑删除 -->
|
||||||
|
<update id="entity_logicDelete" parameterType = "com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity" >
|
||||||
|
update mdm_module_view_button set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
<!-- 多条件逻辑删除 -->
|
||||||
|
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity" >
|
||||||
|
update mdm_module_view_button set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
|
<if test="viewId != null and viewId != ''"> and view_id = #{viewId} </if>
|
||||||
|
<if test="buttonType != null and buttonType != ''"> and button_type = #{buttonType} </if>
|
||||||
|
<if test="buttonValue != null and buttonValue != ''"> and button_value = #{buttonValue} </if>
|
||||||
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
|
and sts='Y'
|
||||||
|
</trim>
|
||||||
|
</update>
|
||||||
|
<!--通过主键删除-->
|
||||||
|
<delete id="entity_delete">
|
||||||
|
delete from mdm_module_view_button where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.hzya.frame.mdm.mdmModuleViewButton.service;
|
||||||
|
|
||||||
|
import com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity;
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
/**
|
||||||
|
* 主数据视图按钮表(MdmModuleViewButton)表服务接口
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-03 08:48:46
|
||||||
|
*/
|
||||||
|
public interface IMdmModuleViewButtonService extends IBaseService<MdmModuleViewButtonEntity, String>{
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
package com.hzya.frame.mdm.mdmModuleViewButton.service.impl;
|
||||||
|
|
||||||
|
import com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity;
|
||||||
|
import com.hzya.frame.mdm.mdmModuleViewButton.dao.IMdmModuleViewButtonDao;
|
||||||
|
import com.hzya.frame.mdm.mdmModuleViewButton.service.IMdmModuleViewButtonService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
/**
|
||||||
|
* 主数据视图按钮表(MdmModuleViewButton)表服务实现类
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-03 08:48:46
|
||||||
|
*/
|
||||||
|
@Service(value = "mdmModuleViewButtonService")
|
||||||
|
public class MdmModuleViewButtonServiceImpl extends BaseService<MdmModuleViewButtonEntity, String> implements IMdmModuleViewButtonService {
|
||||||
|
|
||||||
|
private IMdmModuleViewButtonDao mdmModuleViewButtonDao;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public void setMdmModuleViewButtonDao(IMdmModuleViewButtonDao dao) {
|
||||||
|
this.mdmModuleViewButtonDao = dao;
|
||||||
|
this.dao = dao;
|
||||||
|
}
|
||||||
|
}
|
|
@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
* 主数据视图明细表(mdm_module_view_detail: table)表数据库访问层
|
* 主数据视图明细表(mdm_module_view_detail: table)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:34:58
|
* @since 2024-06-03 08:48:55
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleViewDetailDao extends IBaseDao<MdmModuleViewDetailEntity, String> {
|
public interface IMdmModuleViewDetailDao extends IBaseDao<MdmModuleViewDetailEntity, String> {
|
||||||
|
|
||||||
|
|
|
@ -4,15 +4,14 @@ import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity;
|
||||||
import com.hzya.frame.mdm.mdmModuleViewDetail.dao.IMdmModuleViewDetailDao;
|
import com.hzya.frame.mdm.mdmModuleViewDetail.dao.IMdmModuleViewDetailDao;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主数据视图明细表(MdmModuleViewDetail)表数据库访问层
|
* 主数据视图明细表(MdmModuleViewDetail)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:34:58
|
* @since 2024-06-03 08:48:55
|
||||||
*/
|
*/
|
||||||
@Repository(value = "MdmModuleViewDetailDaoImpl")
|
@Repository(value = "MdmModuleViewDetailDaoImpl")
|
||||||
public class MdmModuleViewDetailDaoImpl extends MybatisGenericDao<MdmModuleViewDetailEntity, String> implements IMdmModuleViewDetailDao {
|
public class MdmModuleViewDetailDaoImpl extends MybatisGenericDao<MdmModuleViewDetailEntity, String> implements IMdmModuleViewDetailDao{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,33 +1,25 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleViewDetail.entity;
|
package com.hzya.frame.mdm.mdmModuleViewDetail.entity;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import com.hzya.frame.web.entity.BaseEntity;
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主数据视图明细表(MdmModuleViewDetail)实体类
|
* 主数据视图明细表(MdmModuleViewDetail)实体类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:34:59
|
* @since 2024-06-03 08:48:55
|
||||||
*/
|
*/
|
||||||
public class MdmModuleViewDetailEntity extends BaseEntity {
|
public class MdmModuleViewDetailEntity extends BaseEntity {
|
||||||
|
|
||||||
/**
|
/** 主数据模版ID */
|
||||||
* 主数据模版ID
|
private String mdmId;
|
||||||
*/
|
/** 视图id */
|
||||||
private String mdmId;
|
private String viewId;
|
||||||
/**
|
/** 字段 */
|
||||||
* 视图id
|
private String viewFiled;
|
||||||
*/
|
/** 类型1、查询2、列表3、新增4、修改 5、查看 */
|
||||||
private String viewId;
|
private String viewType;
|
||||||
/**
|
/** 公司id */
|
||||||
* 字段 id
|
private String companyId;
|
||||||
*/
|
|
||||||
private String viewFiled;
|
|
||||||
/**
|
|
||||||
* 类型1、查询2、列表3、新增4、修改 5、查看
|
|
||||||
*/
|
|
||||||
private String viewType;
|
|
||||||
|
|
||||||
|
|
||||||
public String getMdmId() {
|
public String getMdmId() {
|
||||||
|
@ -62,5 +54,13 @@ public class MdmModuleViewDetailEntity extends BaseEntity {
|
||||||
this.viewType = viewType;
|
this.viewType = viewType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getCompanyId() {
|
||||||
|
return companyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCompanyId(String companyId) {
|
||||||
|
this.companyId = companyId;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,23 +2,23 @@
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.hzya.frame.mdm.mdmModuleViewDetail.dao.impl.MdmModuleViewDetailDaoImpl">
|
<mapper namespace="com.hzya.frame.mdm.mdmModuleViewDetail.dao.impl.MdmModuleViewDetailDaoImpl">
|
||||||
|
|
||||||
<resultMap id="get-MdmModuleViewDetailEntity-result"
|
<resultMap id="get-MdmModuleViewDetailEntity-result" type="com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity" >
|
||||||
type="com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity">
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
||||||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
<result property="viewId" column="view_id" jdbcType="VARCHAR"/>
|
||||||
<result property="viewId" column="view_id" jdbcType="VARCHAR"/>
|
<result property="viewFiled" column="view_filed" jdbcType="VARCHAR"/>
|
||||||
<result property="viewFiled" column="view_filed" jdbcType="VARCHAR"/>
|
<result property="viewType" column="view_type" jdbcType="VARCHAR"/>
|
||||||
<result property="viewType" column="view_type" jdbcType="VARCHAR"/>
|
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<!-- 查询的字段-->
|
<!-- 查询的字段-->
|
||||||
<sql id="MdmModuleViewDetailEntity_Base_Column_List">
|
<sql id = "MdmModuleViewDetailEntity_Base_Column_List">
|
||||||
id
|
id
|
||||||
,mdm_id
|
,mdm_id
|
||||||
,view_id
|
,view_id
|
||||||
|
@ -31,219 +31,211 @@
|
||||||
,modify_time
|
,modify_time
|
||||||
,sts
|
,sts
|
||||||
,org_id
|
,org_id
|
||||||
|
,company_id
|
||||||
</sql>
|
</sql>
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="entity_list_base" resultMap="get-MdmModuleViewDetailEntity-result"
|
<select id="entity_list_base" resultMap="get-MdmModuleViewDetailEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity">
|
select
|
||||||
select
|
<include refid="MdmModuleViewDetailEntity_Base_Column_List" />
|
||||||
<include refid="MdmModuleViewDetailEntity_Base_Column_List"/>
|
from mdm_module_view_detail
|
||||||
from mdm_module_view_detail
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
<if test="viewId != null and viewId != ''"> and view_id = #{viewId} </if>
|
||||||
<if test="viewId != null and viewId != ''">and view_id = #{viewId}</if>
|
<if test="viewFiled != null and viewFiled != ''"> and view_filed = #{viewFiled} </if>
|
||||||
<if test="viewFiled != null and viewFiled != ''">and view_filed = #{viewFiled}</if>
|
<if test="viewType != null and viewType != ''"> and view_type = #{viewType} </if>
|
||||||
<if test="viewType != null and viewType != ''">and view_type = #{viewType}</if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询符合条件的数量 -->
|
<!-- 查询符合条件的数量 -->
|
||||||
<select id="entity_count" resultType="Integer"
|
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity">
|
select count(1) from mdm_module_view_detail
|
||||||
select count(1) from mdm_module_view_detail
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
<if test="viewId != null and viewId != ''"> and view_id = #{viewId} </if>
|
||||||
<if test="viewId != null and viewId != ''">and view_id = #{viewId}</if>
|
<if test="viewFiled != null and viewFiled != ''"> and view_filed = #{viewFiled} </if>
|
||||||
<if test="viewFiled != null and viewFiled != ''">and view_filed = #{viewFiled}</if>
|
<if test="viewType != null and viewType != ''"> and view_type = #{viewType} </if>
|
||||||
<if test="viewType != null and viewType != ''">and view_type = #{viewType}</if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
<!-- 分页查询列表 采用like格式 -->
|
||||||
<select id="entity_list_like" resultMap="get-MdmModuleViewDetailEntity-result"
|
<select id="entity_list_like" resultMap="get-MdmModuleViewDetailEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity">
|
select
|
||||||
select
|
<include refid="MdmModuleViewDetailEntity_Base_Column_List" />
|
||||||
<include refid="MdmModuleViewDetailEntity_Base_Column_List"/>
|
from mdm_module_view_detail
|
||||||
from mdm_module_view_detail
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||||
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id like concat('%',#{mdmId},'%') </if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id like concat('%',#{mdmId},'%')</if>
|
<if test="viewId != null and viewId != ''"> and view_id like concat('%',#{viewId},'%') </if>
|
||||||
<if test="viewId != null and viewId != ''">and view_id like concat('%',#{viewId},'%')</if>
|
<if test="viewFiled != null and viewFiled != ''"> and view_filed like concat('%',#{viewFiled},'%') </if>
|
||||||
<if test="viewFiled != null and viewFiled != ''">and view_filed like concat('%',#{viewFiled},'%')</if>
|
<if test="viewType != null and viewType != ''"> and view_type like concat('%',#{viewType},'%') </if>
|
||||||
<if test="viewType != null and viewType != ''">and view_type like concat('%',#{viewType},'%')</if>
|
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||||
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||||
concat('%',#{create_user_id},'%')
|
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
||||||
</if>
|
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||||
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
|
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||||
concat('%',#{modify_user_id},'%')
|
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||||
</if>
|
|
||||||
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
|
|
||||||
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
|
|
||||||
<if test="org_id != null and org_id != ''">and org_id like concat('%',#{org_id},'%')</if>
|
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询列表 字段采用or格式 -->
|
<!-- 查询列表 字段采用or格式 -->
|
||||||
<select id="MdmModuleViewDetailentity_list_or" resultMap="get-MdmModuleViewDetailEntity-result"
|
<select id="MdmModuleViewDetailentity_list_or" resultMap="get-MdmModuleViewDetailEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity">
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity">
|
select
|
||||||
select
|
<include refid="MdmModuleViewDetailEntity_Base_Column_List" />
|
||||||
<include refid="MdmModuleViewDetailEntity_Base_Column_List"/>
|
from mdm_module_view_detail
|
||||||
from mdm_module_view_detail
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||||
<if test="id != null and id != ''">or id = #{id}</if>
|
<if test="mdmId != null and mdmId != ''"> or mdm_id = #{mdmId} </if>
|
||||||
<if test="mdmId != null and mdmId != ''">or mdm_id = #{mdmId}</if>
|
<if test="viewId != null and viewId != ''"> or view_id = #{viewId} </if>
|
||||||
<if test="viewId != null and viewId != ''">or view_id = #{viewId}</if>
|
<if test="viewFiled != null and viewFiled != ''"> or view_filed = #{viewFiled} </if>
|
||||||
<if test="viewFiled != null and viewFiled != ''">or view_filed = #{viewFiled}</if>
|
<if test="viewType != null and viewType != ''"> or view_type = #{viewType} </if>
|
||||||
<if test="viewType != null and viewType != ''">or view_type = #{viewType}</if>
|
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||||
<if test="sorts != null">or sorts = #{sorts}</if>
|
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||||
<if test="create_time != null">or create_time = #{create_time}</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
|
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||||
<if test="modify_time != null">or modify_time = #{modify_time}</if>
|
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||||
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||||
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
|
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--新增所有列-->
|
<!--新增所有列-->
|
||||||
<insert id="entity_insert" parameterType="com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity"
|
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity" >
|
||||||
>
|
insert into mdm_module_view_detail(
|
||||||
insert into mdm_module_view_detail(
|
<trim suffix="" suffixOverrides=",">
|
||||||
<trim suffix="" suffixOverrides=",">
|
<if test="id != null and id != ''"> id , </if>
|
||||||
<if test="id != null and id != ''">id ,</if>
|
<if test="mdmId != null and mdmId != ''"> mdm_id , </if>
|
||||||
<if test="mdmId != null and mdmId != ''">mdm_id ,</if>
|
<if test="viewId != null and viewId != ''"> view_id , </if>
|
||||||
<if test="viewId != null and viewId != ''">view_id ,</if>
|
<if test="viewFiled != null and viewFiled != ''"> view_filed , </if>
|
||||||
<if test="viewFiled != null and viewFiled != ''">view_filed ,</if>
|
<if test="viewType != null and viewType != ''"> view_type , </if>
|
||||||
<if test="viewType != null and viewType != ''">view_type ,</if>
|
<if test="sorts != null"> sorts , </if>
|
||||||
<if test="sorts != null">sorts ,</if>
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
<if test="create_time != null"> create_time , </if>
|
||||||
<if test="create_time != null">create_time ,</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
<if test="modify_time != null"> modify_time , </if>
|
||||||
<if test="modify_time != null">modify_time ,</if>
|
<if test="sts != null and sts != ''"> sts , </if>
|
||||||
<if test="sts != null and sts != ''">sts ,</if>
|
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||||
<if test="org_id != null and org_id != ''">org_id ,</if>
|
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||||
<if test="sts == null ">sts,</if>
|
<if test="sts == null ">sts,</if>
|
||||||
</trim>
|
</trim>
|
||||||
)values(
|
)values(
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="id != null and id != ''">#{id} ,</if>
|
<if test="id != null and id != ''"> #{id} ,</if>
|
||||||
<if test="mdmId != null and mdmId != ''">#{mdmId} ,</if>
|
<if test="mdmId != null and mdmId != ''"> #{mdmId} ,</if>
|
||||||
<if test="viewId != null and viewId != ''">#{viewId} ,</if>
|
<if test="viewId != null and viewId != ''"> #{viewId} ,</if>
|
||||||
<if test="viewFiled != null and viewFiled != ''">#{viewFiled} ,</if>
|
<if test="viewFiled != null and viewFiled != ''"> #{viewFiled} ,</if>
|
||||||
<if test="viewType != null and viewType != ''">#{viewType} ,</if>
|
<if test="viewType != null and viewType != ''"> #{viewType} ,</if>
|
||||||
<if test="sorts != null">#{sorts} ,</if>
|
<if test="sorts != null"> #{sorts} ,</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||||
<if test="create_time != null">#{create_time} ,</if>
|
<if test="create_time != null"> #{create_time} ,</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
||||||
<if test="modify_time != null">#{modify_time} ,</if>
|
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||||
<if test="sts != null and sts != ''">#{sts} ,</if>
|
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||||
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||||
|
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||||
<if test="sts == null ">'Y',</if>
|
<if test="sts == null ">'Y',</if>
|
||||||
</trim>
|
</trim>
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<!-- 批量新增 -->
|
<!-- 批量新增 -->
|
||||||
<insert id="entityInsertBatch" >
|
<insert id="entityInsertBatch" >
|
||||||
insert into mdm_module_view_detail(mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time,
|
insert into mdm_module_view_detail(mdm_id, view_id, view_filed, view_type, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||||
modify_user_id, modify_time, sts, org_id, sts)
|
values
|
||||||
values
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
(#{entity.mdmId},#{entity.viewId},#{entity.viewFiled},#{entity.viewType},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||||
(#{entity.mdmId},#{entity.viewId},#{entity.viewFiled},#{entity.viewType},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},
|
</foreach>
|
||||||
'Y')
|
</insert>
|
||||||
</foreach>
|
<!-- 批量新增或者修改-->
|
||||||
</insert>
|
<insert id="entityInsertOrUpdateBatch" >
|
||||||
<!-- 批量新增或者修改-->
|
insert into mdm_module_view_detail(mdm_id, view_id, view_filed, view_type, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||||
<insert id="entityInsertOrUpdateBatch" >
|
values
|
||||||
insert into mdm_module_view_detail(mdm_id, view_id, view_filed, view_type, sorts, create_user_id, create_time,
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
modify_user_id, modify_time, sts, org_id)
|
(#{entity.mdmId},#{entity.viewId},#{entity.viewFiled},#{entity.viewType},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||||
values
|
</foreach>
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
on duplicate key update
|
||||||
(#{entity.mdmId},#{entity.viewId},#{entity.viewFiled},#{entity.viewType},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id})
|
mdm_id = values(mdm_id),
|
||||||
</foreach>
|
view_id = values(view_id),
|
||||||
on duplicate key update
|
view_filed = values(view_filed),
|
||||||
mdm_id = values(mdm_id),
|
view_type = values(view_type),
|
||||||
view_id = values(view_id),
|
create_user_id = values(create_user_id),
|
||||||
view_filed = values(view_filed),
|
create_time = values(create_time),
|
||||||
view_type = values(view_type),
|
modify_user_id = values(modify_user_id),
|
||||||
sorts = values(sorts),
|
modify_time = values(modify_time),
|
||||||
create_user_id = values(create_user_id),
|
sts = values(sts),
|
||||||
create_time = values(create_time),
|
org_id = values(org_id),
|
||||||
modify_user_id = values(modify_user_id),
|
company_id = values(company_id)</insert>
|
||||||
modify_time = values(modify_time),
|
<!--通过主键修改方法-->
|
||||||
sts = values(sts),
|
<update id="entity_update" parameterType = "com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity" >
|
||||||
org_id = values(org_id)
|
update mdm_module_view_detail set
|
||||||
</insert>
|
<trim suffix="" suffixOverrides=",">
|
||||||
<!--通过主键修改方法-->
|
<if test="mdmId != null and mdmId != ''"> mdm_id = #{mdmId},</if>
|
||||||
<update id="entity_update" parameterType="com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity">
|
<if test="viewId != null and viewId != ''"> view_id = #{viewId},</if>
|
||||||
update mdm_module_view_detail set
|
<if test="viewFiled != null and viewFiled != ''"> view_filed = #{viewFiled},</if>
|
||||||
<trim suffix="" suffixOverrides=",">
|
<if test="viewType != null and viewType != ''"> view_type = #{viewType},</if>
|
||||||
<if test="mdmId != null and mdmId != ''">mdm_id = #{mdmId},</if>
|
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||||
<if test="viewId != null and viewId != ''">view_id = #{viewId},</if>
|
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||||
<if test="viewFiled != null and viewFiled != ''">view_filed = #{viewFiled},</if>
|
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||||
<if test="viewType != null and viewType != ''">view_type = #{viewType},</if>
|
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||||
<if test="sorts != null">sorts = #{sorts},</if>
|
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||||
<if test="create_time != null">create_time = #{create_time},</if>
|
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
|
</trim>
|
||||||
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
where id = #{id}
|
||||||
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
</update>
|
||||||
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
<!-- 逻辑删除 -->
|
||||||
</trim>
|
<update id="entity_logicDelete" parameterType = "com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity" >
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
<!-- 逻辑删除 -->
|
|
||||||
<update id="entity_logicDelete"
|
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity">
|
|
||||||
update mdm_module_view_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
update mdm_module_view_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
<!-- 多条件逻辑删除 -->
|
<!-- 多条件逻辑删除 -->
|
||||||
<update id="entity_logicDelete_Multi_Condition"
|
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity" >
|
||||||
parameterType="com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity">
|
update mdm_module_view_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
update mdm_module_view_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
<if test="viewId != null and viewId != ''"> and view_id = #{viewId} </if>
|
||||||
<if test="viewId != null and viewId != ''">and view_id = #{viewId}</if>
|
<if test="viewFiled != null and viewFiled != ''"> and view_filed = #{viewFiled} </if>
|
||||||
<if test="viewFiled != null and viewFiled != ''">and view_filed = #{viewFiled}</if>
|
<if test="viewType != null and viewType != ''"> and view_type = #{viewType} </if>
|
||||||
<if test="viewType != null and viewType != ''">and view_type = #{viewType}</if>
|
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
</update>
|
</update>
|
||||||
<!--通过主键删除-->
|
<!--通过主键删除-->
|
||||||
<delete id="entity_delete">
|
<delete id="entity_delete">
|
||||||
delete from mdm_module_view_detail where id = #{id}
|
delete from mdm_module_view_detail where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,11 @@ package com.hzya.frame.mdm.mdmModuleViewDetail.service;
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity;
|
import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity;
|
||||||
import com.hzya.frame.basedao.service.IBaseService;
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主数据视图明细表(MdmModuleViewDetail)表服务接口
|
* 主数据视图明细表(MdmModuleViewDetail)表服务接口
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:35:00
|
* @since 2024-06-03 08:48:55
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleViewDetailService extends IBaseService<MdmModuleViewDetailEntity, String> {
|
public interface IMdmModuleViewDetailService extends IBaseService<MdmModuleViewDetailEntity, String>{
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,16 +5,13 @@ import com.hzya.frame.mdm.mdmModuleViewDetail.dao.IMdmModuleViewDetailDao;
|
||||||
import com.hzya.frame.mdm.mdmModuleViewDetail.service.IMdmModuleViewDetailService;
|
import com.hzya.frame.mdm.mdmModuleViewDetail.service.IMdmModuleViewDetailService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主数据视图明细表(MdmModuleViewDetail)表服务实现类
|
* 主数据视图明细表(MdmModuleViewDetail)表服务实现类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-10-17 15:35:00
|
* @since 2024-06-03 08:48:55
|
||||||
*/
|
*/
|
||||||
@Service(value = "mdmModuleViewDetailService")
|
@Service(value = "mdmModuleViewDetailService")
|
||||||
public class MdmModuleViewDetailServiceImpl extends BaseService<MdmModuleViewDetailEntity, String> implements IMdmModuleViewDetailService {
|
public class MdmModuleViewDetailServiceImpl extends BaseService<MdmModuleViewDetailEntity, String> implements IMdmModuleViewDetailService {
|
||||||
|
@ -22,8 +19,8 @@ public class MdmModuleViewDetailServiceImpl extends BaseService<MdmModuleViewDet
|
||||||
private IMdmModuleViewDetailDao mdmModuleViewDetailDao;
|
private IMdmModuleViewDetailDao mdmModuleViewDetailDao;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public void setMdmModuleViewDetailDao(IMdmModuleViewDetailDao dao) {
|
public void setMdmModuleViewDetailDao(IMdmModuleViewDetailDao dao) {
|
||||||
this.mdmModuleViewDetailDao = dao;
|
this.mdmModuleViewDetailDao = dao;
|
||||||
this.dao = dao;
|
this.dao = dao;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
* 模版数据表编码规则表(mdm_table_code_rule: table)表数据库访问层
|
* 模版数据表编码规则表(mdm_table_code_rule: table)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-06 16:12:34
|
* @since 2024-06-03 10:56:13
|
||||||
*/
|
*/
|
||||||
public interface IMdmTableCodeRuleDao extends IBaseDao<MdmTableCodeRuleEntity, String> {
|
public interface IMdmTableCodeRuleDao extends IBaseDao<MdmTableCodeRuleEntity, String> {
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
* 模版数据表编码规则表(MdmTableCodeRule)表数据库访问层
|
* 模版数据表编码规则表(MdmTableCodeRule)表数据库访问层
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-06 16:12:35
|
* @since 2024-06-03 10:56:13
|
||||||
*/
|
*/
|
||||||
@Repository(value = "MdmTableCodeRuleDaoImpl")
|
@Repository(value = "MdmTableCodeRuleDaoImpl")
|
||||||
public class MdmTableCodeRuleDaoImpl extends MybatisGenericDao<MdmTableCodeRuleEntity, String> implements IMdmTableCodeRuleDao{
|
public class MdmTableCodeRuleDaoImpl extends MybatisGenericDao<MdmTableCodeRuleEntity, String> implements IMdmTableCodeRuleDao{
|
||||||
|
|
|
@ -6,7 +6,7 @@ import com.hzya.frame.web.entity.BaseEntity;
|
||||||
* 模版数据表编码规则表(MdmTableCodeRule)实体类
|
* 模版数据表编码规则表(MdmTableCodeRule)实体类
|
||||||
*
|
*
|
||||||
* @author makejava
|
* @author makejava
|
||||||
* @since 2023-11-06 16:12:35
|
* @since 2024-06-03 10:56:13
|
||||||
*/
|
*/
|
||||||
public class MdmTableCodeRuleEntity extends BaseEntity {
|
public class MdmTableCodeRuleEntity extends BaseEntity {
|
||||||
|
|
||||||
|
@ -16,12 +16,14 @@ public class MdmTableCodeRuleEntity extends BaseEntity {
|
||||||
private String dbId;
|
private String dbId;
|
||||||
/** 规则 */
|
/** 规则 */
|
||||||
private String dbName;
|
private String dbName;
|
||||||
/** 类型 1、连接符号 2、字符串 3、日期 4、流水号 */
|
/** 类型 1、固定值 2、日期 3、流水 */
|
||||||
private String dbType;
|
private String dbType;
|
||||||
/** 备注 */
|
/** 备注 */
|
||||||
private String remark;
|
private String remark;
|
||||||
/** 规则值 */
|
/** 规则值 */
|
||||||
private String dbValue;
|
private String dbValue;
|
||||||
|
/** 公司id */
|
||||||
|
private String companyId;
|
||||||
|
|
||||||
|
|
||||||
public String getMdmId() {
|
public String getMdmId() {
|
||||||
|
@ -72,5 +74,13 @@ public class MdmTableCodeRuleEntity extends BaseEntity {
|
||||||
this.dbValue = dbValue;
|
this.dbValue = dbValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getCompanyId() {
|
||||||
|
return companyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCompanyId(String companyId) {
|
||||||
|
this.companyId = companyId;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue