Merge branch 'dev' of http://192.168.2.237:3000/root/kangarooDataCenterV3 into hecan
This commit is contained in:
commit
d2e75c67c0
|
@ -0,0 +1,69 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.hzya.frame.mdm.entity;
|
||||
|
||||
|
||||
import com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity;
|
||||
import java.util.List;
|
||||
|
||||
public class MdmDistributeDto {
|
||||
|
||||
|
||||
//主数据编码
|
||||
private Long mdmCode;
|
||||
|
||||
private List<MdmModuleDistributeEntity> mdmModuleDistributeEntities;
|
||||
|
||||
public List<MdmModuleDistributeEntity> getMdmModuleDistributeEntities() {
|
||||
return mdmModuleDistributeEntities;
|
||||
}
|
||||
|
||||
public void setMdmModuleDistributeEntities(List<MdmModuleDistributeEntity> mdmModuleDistributeEntities) {
|
||||
this.mdmModuleDistributeEntities = mdmModuleDistributeEntities;
|
||||
}
|
||||
|
||||
public Long getMdmCode() {
|
||||
return mdmCode;
|
||||
}
|
||||
|
||||
public void setMdmCode(Long mdmCode) {
|
||||
this.mdmCode = mdmCode;
|
||||
}
|
||||
}
|
||||
|
|
@ -17,6 +17,39 @@ public class MdmDto {
|
|||
//主数据子表
|
||||
private List<MdmModuleDbEntity> sublistMdmModuleDb;
|
||||
|
||||
|
||||
//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 String mdmType;
|
||||
//描述
|
||||
private String remark;
|
||||
//描述
|
||||
private String[] ids;
|
||||
|
||||
private String tableName;
|
||||
private String value;
|
||||
|
||||
private String label;
|
||||
private String lableValue;
|
||||
|
||||
private String upId;
|
||||
|
||||
public Long getMdmCode() {
|
||||
return mdmCode;
|
||||
}
|
||||
|
@ -48,5 +81,125 @@ public class MdmDto {
|
|||
public void setSublistMdmModuleDb(List<MdmModuleDbEntity> sublistMdmModuleDb) {
|
||||
this.sublistMdmModuleDb = sublistMdmModuleDb;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getShowType() {
|
||||
return showType;
|
||||
}
|
||||
|
||||
public void setShowType(String showType) {
|
||||
this.showType = showType;
|
||||
}
|
||||
|
||||
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 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 getMdmName() {
|
||||
return mdmName;
|
||||
}
|
||||
|
||||
public void setMdmName(String mdmName) {
|
||||
this.mdmName = mdmName;
|
||||
}
|
||||
|
||||
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[] getIds() {
|
||||
return ids;
|
||||
}
|
||||
|
||||
public void setIds(String[] ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getTableName() {
|
||||
return tableName;
|
||||
}
|
||||
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public String getLableValue() {
|
||||
return lableValue;
|
||||
}
|
||||
|
||||
public void setLableValue(String lableValue) {
|
||||
this.lableValue = lableValue;
|
||||
}
|
||||
|
||||
public String getUpId() {
|
||||
return upId;
|
||||
}
|
||||
|
||||
public void setUpId(String upId) {
|
||||
this.upId = upId;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,69 @@
|
|||
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;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
package com.hzya.frame.mdm.entity;
|
||||
|
||||
|
||||
import com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class MdmSourceDto {
|
||||
|
||||
|
||||
//主数据编码
|
||||
private Long mdmCode;
|
||||
|
||||
private List<MdmModuleSourceEntity> mdmModuleSourceEntities;
|
||||
|
||||
|
||||
public List<MdmModuleSourceEntity> getMdmModuleSourceEntities() {
|
||||
return mdmModuleSourceEntities;
|
||||
}
|
||||
|
||||
public void setMdmModuleSourceEntities(List<MdmModuleSourceEntity> mdmModuleSourceEntities) {
|
||||
this.mdmModuleSourceEntities = mdmModuleSourceEntities;
|
||||
}
|
||||
|
||||
public Long getMdmCode() {
|
||||
return mdmCode;
|
||||
}
|
||||
|
||||
public void setMdmCode(Long mdmCode) {
|
||||
this.mdmCode = mdmCode;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
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;
|
||||
|
||||
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 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,8 +1,13 @@
|
|||
package com.hzya.frame.mdm.mdmModule.dao;
|
||||
|
||||
import com.hzya.frame.mdm.entity.MdmDataDto;
|
||||
import com.hzya.frame.mdm.entity.MdmDto;
|
||||
import com.hzya.frame.mdm.entity.MdmQuery;
|
||||
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.sys.entity.FormmainDeleteDto;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -22,5 +27,17 @@ public interface IMdmModuleDao extends IBaseDao<MdmModuleEntity, String> {
|
|||
Integer createTable(Map<String, Object> maps);
|
||||
Integer alterTable(Map<String, Object> maps);
|
||||
Integer alterTableName(Map<String, String> maps);
|
||||
List<HashMap<String, Object>> queryMdmShowData(MdmQuery entity);
|
||||
List<HashMap<String, Object>> queryTemplateDataMore(MdmDto entity);
|
||||
HashMap<String, Object> queryTemplateDataOne(MdmDto entity);
|
||||
Integer checkData(Map<String, String> map);
|
||||
Integer updateForm(MdmDataDto mdmDataDto);
|
||||
Integer saveForm(MdmDataDto mdmDataDto);
|
||||
Integer deleteTemplateById(FormmainDeleteDto formmainDeleteDto);
|
||||
Integer deleteChilder(FormmainDeleteDto formmainDeleteDto);
|
||||
List<HashMap<String, Object>> querySelectData(MdmDto entity);
|
||||
|
||||
List<HashMap<String, Object>> queryDataAll(MdmDto entity);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,10 +1,15 @@
|
|||
package com.hzya.frame.mdm.mdmModule.dao.impl;
|
||||
|
||||
import com.hzya.frame.mdm.entity.MdmDataDto;
|
||||
import com.hzya.frame.mdm.entity.MdmDto;
|
||||
import com.hzya.frame.mdm.entity.MdmQuery;
|
||||
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
||||
import com.hzya.frame.mdm.mdmModule.dao.IMdmModuleDao;
|
||||
import com.hzya.frame.sys.entity.FormmainDeleteDto;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -25,7 +30,7 @@ public class MdmModuleDaoImpl extends MybatisGenericDao<MdmModuleEntity, String>
|
|||
|
||||
@Override
|
||||
public MdmModuleEntity getByMdmCode(Long mdmCode) {
|
||||
MdmModuleEntity mdmModuleEntity = (MdmModuleEntity) super.query(getSqlIdPrifx() + "getByMdmCode",mdmCode);
|
||||
MdmModuleEntity mdmModuleEntity = (MdmModuleEntity) super.selectOne(getSqlIdPrifx() + "getByMdmCode",mdmCode);
|
||||
return mdmModuleEntity;
|
||||
}
|
||||
|
||||
|
@ -35,8 +40,66 @@ public class MdmModuleDaoImpl extends MybatisGenericDao<MdmModuleEntity, String>
|
|||
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 Integer checkData(Map<String, String> maps) {
|
||||
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "checkData", maps);
|
||||
return o;
|
||||
|
||||
}
|
||||
@Override
|
||||
public Integer updateForm(MdmDataDto mdmDataDto) {
|
||||
Integer o = super.update(getSqlIdPrifx() + "updateForm", mdmDataDto);
|
||||
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 Integer deleteChilder(FormmainDeleteDto entity) {
|
||||
Integer o = super.delete(getSqlIdPrifx() + "deleteChilder", entity);
|
||||
return o;
|
||||
|
||||
}
|
||||
@Override
|
||||
public Integer deleteTemplateById(FormmainDeleteDto entity) {
|
||||
Integer o = super.delete(getSqlIdPrifx() + "deleteTemplateById", entity);
|
||||
return o;
|
||||
|
||||
}
|
||||
@Override
|
||||
public Integer saveForm(MdmDataDto mdmDataDto) {
|
||||
Integer o = super.update(getSqlIdPrifx() + "saveForm", mdmDataDto);
|
||||
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 HashMap<String, Object> queryTemplateDataOne(MdmDto entity) {
|
||||
HashMap<String, Object> o = (HashMap<String, Object>) super.selectOne(getSqlIdPrifx() + "queryTemplateDataOne", 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 Integer createTable(Map<String, Object> maps) {
|
||||
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "createTable", maps);
|
||||
|
|
|
@ -404,5 +404,258 @@ update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #
|
|||
<select id="alterTableName" resultType="java.lang.Integer">
|
||||
ALTER TABLE ${tableName} COMMENT = #{tableRemark}
|
||||
</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">
|
||||
<trim suffixOverrides=",">
|
||||
<foreach collection="returnField" item="returnField">
|
||||
a.${returnField} as ${returnField} ,
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
<if test="returnField == null or returnField.size == 0">
|
||||
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>
|
||||
<!-- 分页查询列表 采用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="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="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>
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<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>
|
||||
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>
|
||||
|
||||
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="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="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>
|
||||
|
||||
</mapper>
|
||||
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
package com.hzya.frame.mdm.mdmModuleDb.dao;
|
||||
|
||||
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 模版数据库表(mdm_module_db: table)表数据库访问层
|
||||
|
@ -10,6 +14,8 @@ import com.hzya.frame.basedao.dao.IBaseDao;
|
|||
* @since 2024-06-03 08:46:48
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
@ -4,6 +4,11 @@ import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
|||
import com.hzya.frame.mdm.mdmModuleDb.dao.IMdmModuleDbDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 模版数据库表(MdmModuleDb)表数据库访问层
|
||||
*
|
||||
|
@ -12,6 +17,25 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
|||
*/
|
||||
@Repository(value = "MdmModuleDbDaoImpl")
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -238,6 +238,66 @@ update mdm_module_db set sts= 'N' ,modify_time = #{modify_time},modify_user_id
|
|||
<delete id="entity_delete">
|
||||
delete from mdm_module_db where id = #{id}
|
||||
</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>
|
||||
|
||||
</mapper>
|
||||
|
||||
|
|
|
@ -41,6 +41,14 @@ public class MdmModuleDbFiledsEntity extends BaseEntity {
|
|||
private String companyId;
|
||||
/** 数据类型 1、新增 2、修改 */
|
||||
private String dataType;
|
||||
/**
|
||||
* roletype
|
||||
*/
|
||||
private String roletype;
|
||||
/**
|
||||
* roletype
|
||||
*/
|
||||
private String roleValue;
|
||||
private List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRules;
|
||||
|
||||
public String getMdmId() {
|
||||
|
@ -162,5 +170,21 @@ public class MdmModuleDbFiledsEntity extends BaseEntity {
|
|||
public void setDataType(String dataType) {
|
||||
this.dataType = dataType;
|
||||
}
|
||||
|
||||
public String getRoletype() {
|
||||
return roletype;
|
||||
}
|
||||
|
||||
public void setRoletype(String roletype) {
|
||||
this.roletype = roletype;
|
||||
}
|
||||
|
||||
public String getRoleValue() {
|
||||
return roleValue;
|
||||
}
|
||||
|
||||
public void setRoleValue(String roleValue) {
|
||||
this.roleValue = roleValue;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
package com.hzya.frame.mdm.mdmModuleDistribute.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity;
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
/**
|
||||
* 主数据功能应用分发表(MdmModuleDistribute)实体类
|
||||
|
@ -24,7 +27,7 @@ public class MdmModuleDistributeEntity extends BaseEntity {
|
|||
private String enabledState;
|
||||
/** 公司id */
|
||||
private String companyId;
|
||||
|
||||
private List<MdmModuleDistributeDetailEntity> mdmModuleDistributeDetailEntities;
|
||||
|
||||
public String getMdmId() {
|
||||
return mdmId;
|
||||
|
@ -82,5 +85,12 @@ public class MdmModuleDistributeEntity extends BaseEntity {
|
|||
this.companyId = companyId;
|
||||
}
|
||||
|
||||
public List<MdmModuleDistributeDetailEntity> getMdmModuleDistributeDetailEntities() {
|
||||
return mdmModuleDistributeDetailEntities;
|
||||
}
|
||||
|
||||
public void setMdmModuleDistributeDetailEntities(List<MdmModuleDistributeDetailEntity> mdmModuleDistributeDetailEntities) {
|
||||
this.mdmModuleDistributeDetailEntities = mdmModuleDistributeDetailEntities;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.mdm.mdmModuleOptionLog.dao;
|
||||
|
||||
import com.hzya.frame.mdm.mdmModuleOptionLog.entity.MdmModuleOptionLogEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
/**
|
||||
* 主数据模版(mdm_module_option_log: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-05 16:10:31
|
||||
*/
|
||||
public interface IMdmModuleOptionLogDao extends IBaseDao<MdmModuleOptionLogEntity, String> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.mdm.mdmModuleOptionLog.dao.impl;
|
||||
|
||||
import com.hzya.frame.mdm.mdmModuleOptionLog.entity.MdmModuleOptionLogEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleOptionLog.dao.IMdmModuleOptionLogDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
/**
|
||||
* 主数据模版(MdmModuleOptionLog)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-05 16:10:31
|
||||
*/
|
||||
@Repository(value = "MdmModuleOptionLogDaoImpl")
|
||||
public class MdmModuleOptionLogDaoImpl extends MybatisGenericDao<MdmModuleOptionLogEntity, String> implements IMdmModuleOptionLogDao{
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,104 @@
|
|||
package com.hzya.frame.mdm.mdmModuleOptionLog.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
/**
|
||||
* 主数据模版(MdmModuleOptionLog)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-05 16:10:32
|
||||
*/
|
||||
public class MdmModuleOptionLogEntity extends BaseEntity {
|
||||
//主数据表名
|
||||
private String tableName;
|
||||
//主数据编码
|
||||
private Long mdmCode;
|
||||
/** 主表id */
|
||||
private String formmainId;
|
||||
/** 来源名称 */
|
||||
private String sourceName;
|
||||
/** 编码 */
|
||||
private String code;
|
||||
/** source_data */
|
||||
private String sourceData;
|
||||
/** 操作类型 */
|
||||
private String optionType;
|
||||
/** 操作人 */
|
||||
private String optionName;
|
||||
/** 公司id */
|
||||
private String companyId;
|
||||
|
||||
|
||||
public String getFormmainId() {
|
||||
return formmainId;
|
||||
}
|
||||
|
||||
public void setFormmainId(String formmainId) {
|
||||
this.formmainId = formmainId;
|
||||
}
|
||||
|
||||
public String getSourceName() {
|
||||
return sourceName;
|
||||
}
|
||||
|
||||
public void setSourceName(String sourceName) {
|
||||
this.sourceName = sourceName;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getSourceData() {
|
||||
return sourceData;
|
||||
}
|
||||
|
||||
public void setSourceData(String sourceData) {
|
||||
this.sourceData = sourceData;
|
||||
}
|
||||
|
||||
public String getOptionType() {
|
||||
return optionType;
|
||||
}
|
||||
|
||||
public void setOptionType(String optionType) {
|
||||
this.optionType = optionType;
|
||||
}
|
||||
|
||||
public String getOptionName() {
|
||||
return optionName;
|
||||
}
|
||||
|
||||
public void setOptionName(String optionName) {
|
||||
this.optionName = optionName;
|
||||
}
|
||||
|
||||
public String getCompanyId() {
|
||||
return companyId;
|
||||
}
|
||||
|
||||
public void setCompanyId(String companyId) {
|
||||
this.companyId = companyId;
|
||||
}
|
||||
|
||||
public String getTableName() {
|
||||
return tableName;
|
||||
}
|
||||
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName;
|
||||
}
|
||||
|
||||
public Long getMdmCode() {
|
||||
return mdmCode;
|
||||
}
|
||||
|
||||
public void setMdmCode(Long mdmCode) {
|
||||
this.mdmCode = mdmCode;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,272 @@
|
|||
<?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.mdmModuleOptionLog.dao.impl.MdmModuleOptionLogDaoImpl">
|
||||
|
||||
<resultMap id="get-MdmModuleOptionLogEntity-result" type="com.hzya.frame.mdm.mdmModuleOptionLog.entity.MdmModuleOptionLogEntity" >
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="formmainId" column="formmain_id" jdbcType="VARCHAR"/>
|
||||
<result property="sourceName" column="source_name" jdbcType="VARCHAR"/>
|
||||
<result property="code" column="code" jdbcType="VARCHAR"/>
|
||||
<result property="sourceData" column="source_data" jdbcType="VARCHAR"/>
|
||||
<result property="optionType" column="option_type" jdbcType="VARCHAR"/>
|
||||
<result property="optionName" column="option_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"/>
|
||||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "MdmModuleOptionLogEntity_Base_Column_List">
|
||||
id
|
||||
,formmain_id
|
||||
,source_name
|
||||
,code
|
||||
,source_data
|
||||
,option_type
|
||||
,option_name
|
||||
,sorts
|
||||
,create_user_id
|
||||
,create_time
|
||||
,modify_user_id
|
||||
,modify_time
|
||||
,sts
|
||||
,org_id
|
||||
,company_id
|
||||
</sql>
|
||||
<select id="entity_get" resultMap="get-MdmModuleOptionLogEntity-result">
|
||||
select
|
||||
<include refid="MdmModuleOptionLogEntity_Base_Column_List" />
|
||||
from ${tableName} where id = #{ id } and sts='Y'
|
||||
</select>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-MdmModuleOptionLogEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleOptionLog.entity.MdmModuleOptionLogEntity">
|
||||
select
|
||||
<include refid="MdmModuleOptionLogEntity_Base_Column_List" />
|
||||
from ${tableName}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="formmainId != null and formmainId != ''"> and formmain_id = #{formmainId} </if>
|
||||
<if test="sourceName != null and sourceName != ''"> and source_name = #{sourceName} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="sourceData != null and sourceData != ''"> and source_data = #{sourceData} </if>
|
||||
<if test="optionType != null and optionType != ''"> and option_type = #{optionType} </if>
|
||||
<if test="optionName != null and optionName != ''"> and option_name = #{optionName} </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.mdmModuleOptionLog.entity.MdmModuleOptionLogEntity">
|
||||
select count(1) from ${tableName}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="formmainId != null and formmainId != ''"> and formmain_id = #{formmainId} </if>
|
||||
<if test="sourceName != null and sourceName != ''"> and source_name = #{sourceName} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="sourceData != null and sourceData != ''"> and source_data = #{sourceData} </if>
|
||||
<if test="optionType != null and optionType != ''"> and option_type = #{optionType} </if>
|
||||
<if test="optionName != null and optionName != ''"> and option_name = #{optionName} </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-MdmModuleOptionLogEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleOptionLog.entity.MdmModuleOptionLogEntity">
|
||||
select
|
||||
<include refid="MdmModuleOptionLogEntity_Base_Column_List" />
|
||||
from ${tableName}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||
<if test="formmainId != null and formmainId != ''"> and formmain_id like concat('%',#{formmainId},'%') </if>
|
||||
<if test="sourceName != null and sourceName != ''"> and source_name like concat('%',#{sourceName},'%') </if>
|
||||
<if test="code != null and code != ''"> and code like concat('%',#{code},'%') </if>
|
||||
<if test="sourceData != null and sourceData != ''"> and source_data like concat('%',#{sourceData},'%') </if>
|
||||
<if test="optionType != null and optionType != ''"> and option_type like concat('%',#{optionType},'%') </if>
|
||||
<if test="optionName != null and optionName != ''"> and option_name like concat('%',#{optionName},'%') </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="MdmModuleOptionLogentity_list_or" resultMap="get-MdmModuleOptionLogEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleOptionLog.entity.MdmModuleOptionLogEntity">
|
||||
select
|
||||
<include refid="MdmModuleOptionLogEntity_Base_Column_List" />
|
||||
from ${tableName}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||
<if test="formmainId != null and formmainId != ''"> or formmain_id = #{formmainId} </if>
|
||||
<if test="sourceName != null and sourceName != ''"> or source_name = #{sourceName} </if>
|
||||
<if test="code != null and code != ''"> or code = #{code} </if>
|
||||
<if test="sourceData != null and sourceData != ''"> or source_data = #{sourceData} </if>
|
||||
<if test="optionType != null and optionType != ''"> or option_type = #{optionType} </if>
|
||||
<if test="optionName != null and optionName != ''"> or option_name = #{optionName} </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.mdmModuleOptionLog.entity.MdmModuleOptionLogEntity" >
|
||||
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="sourceName != null and sourceName != ''"> source_name , </if>
|
||||
<if test="code != null and code != ''"> code , </if>
|
||||
<if test="sourceData != null and sourceData != ''"> source_data , </if>
|
||||
<if test="optionType != null and optionType != ''"> option_type , </if>
|
||||
<if test="optionName != null and optionName != ''"> option_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="companyId != null and companyId != ''"> company_id , </if>
|
||||
<if test="sorts == null ">sorts,</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="sourceName != null and sourceName != ''"> #{sourceName} ,</if>
|
||||
<if test="code != null and code != ''"> #{code} ,</if>
|
||||
<if test="sourceData != null and sourceData != ''"> #{sourceData} ,</if>
|
||||
<if test="optionType != null and optionType != ''"> #{optionType} ,</if>
|
||||
<if test="optionName != null and optionName != ''"> #{optionName} ,</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="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from ${tableName} a WHERE a.sts = 'Y' ),</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into ${tableName}(formmain_id, source_name, code, source_data, option_type, option_name, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.formmainId},#{entity.sourceName},#{entity.code},#{entity.sourceData},#{entity.optionType},#{entity.optionName},#{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 ${tableName}(formmain_id, source_name, code, source_data, option_type, option_name, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.formmainId},#{entity.sourceName},#{entity.code},#{entity.sourceData},#{entity.optionType},#{entity.optionName},#{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
|
||||
formmain_id = values(formmain_id),
|
||||
source_name = values(source_name),
|
||||
code = values(code),
|
||||
source_data = values(source_data),
|
||||
option_type = values(option_type),
|
||||
option_name = values(option_name),
|
||||
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.mdmModuleOptionLog.entity.MdmModuleOptionLogEntity" >
|
||||
update ${tableName} set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="formmainId != null and formmainId != ''"> formmain_id = #{formmainId},</if>
|
||||
<if test="sourceName != null and sourceName != ''"> source_name = #{sourceName},</if>
|
||||
<if test="code != null and code != ''"> code = #{code},</if>
|
||||
<if test="sourceData != null and sourceData != ''"> source_data = #{sourceData},</if>
|
||||
<if test="optionType != null and optionType != ''"> option_type = #{optionType},</if>
|
||||
<if test="optionName != null and optionName != ''"> option_name = #{optionName},</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.mdmModuleOptionLog.entity.MdmModuleOptionLogEntity" >
|
||||
update ${tableName} 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.mdmModuleOptionLog.entity.MdmModuleOptionLogEntity" >
|
||||
update ${tableName} 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="formmainId != null and formmainId != ''"> and formmain_id = #{formmainId} </if>
|
||||
<if test="sourceName != null and sourceName != ''"> and source_name = #{sourceName} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="sourceData != null and sourceData != ''"> and source_data = #{sourceData} </if>
|
||||
<if test="optionType != null and optionType != ''"> and option_type = #{optionType} </if>
|
||||
<if test="optionName != null and optionName != ''"> and option_name = #{optionName} </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 ${tableName} where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.mdm.mdmModuleSendLog.dao;
|
||||
|
||||
import com.hzya.frame.mdm.mdmModuleSendLog.entity.MdmModuleSendLogEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
/**
|
||||
* 主数据模版(mdm_module_send_log: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-05 16:11:09
|
||||
*/
|
||||
public interface IMdmModuleSendLogDao extends IBaseDao<MdmModuleSendLogEntity, String> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.mdm.mdmModuleSendLog.dao.impl;
|
||||
|
||||
import com.hzya.frame.mdm.mdmModuleSendLog.entity.MdmModuleSendLogEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleSendLog.dao.IMdmModuleSendLogDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
/**
|
||||
* 主数据模版(MdmModuleSendLog)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-05 16:11:09
|
||||
*/
|
||||
@Repository(value = "MdmModuleSendLogDaoImpl")
|
||||
public class MdmModuleSendLogDaoImpl extends MybatisGenericDao<MdmModuleSendLogEntity, String> implements IMdmModuleSendLogDao{
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
package com.hzya.frame.mdm.mdmModuleSendLog.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
/**
|
||||
* 主数据模版(MdmModuleSendLog)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-05 16:11:10
|
||||
*/
|
||||
public class MdmModuleSendLogEntity extends BaseEntity {
|
||||
//主数据表名
|
||||
private String tableName;
|
||||
//主数据编码
|
||||
private Long mdmCode;
|
||||
/** 主表id */
|
||||
private String formmainId;
|
||||
/** 目标应用 */
|
||||
private String targetApp;
|
||||
/** 目标api */
|
||||
private String targetApi;
|
||||
/** 源数据 */
|
||||
private String sourceData;
|
||||
/** 操作类型 */
|
||||
private String optionType;
|
||||
/** 公司id */
|
||||
private String companyId;
|
||||
|
||||
|
||||
public String getFormmainId() {
|
||||
return formmainId;
|
||||
}
|
||||
|
||||
public void setFormmainId(String formmainId) {
|
||||
this.formmainId = formmainId;
|
||||
}
|
||||
|
||||
public String getTargetApp() {
|
||||
return targetApp;
|
||||
}
|
||||
|
||||
public void setTargetApp(String targetApp) {
|
||||
this.targetApp = targetApp;
|
||||
}
|
||||
|
||||
public String getTargetApi() {
|
||||
return targetApi;
|
||||
}
|
||||
|
||||
public void setTargetApi(String targetApi) {
|
||||
this.targetApi = targetApi;
|
||||
}
|
||||
|
||||
public String getSourceData() {
|
||||
return sourceData;
|
||||
}
|
||||
|
||||
public void setSourceData(String sourceData) {
|
||||
this.sourceData = sourceData;
|
||||
}
|
||||
|
||||
public String getOptionType() {
|
||||
return optionType;
|
||||
}
|
||||
|
||||
public void setOptionType(String optionType) {
|
||||
this.optionType = optionType;
|
||||
}
|
||||
|
||||
public String getCompanyId() {
|
||||
return companyId;
|
||||
}
|
||||
|
||||
public void setCompanyId(String companyId) {
|
||||
this.companyId = companyId;
|
||||
}
|
||||
|
||||
public String getTableName() {
|
||||
return tableName;
|
||||
}
|
||||
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName;
|
||||
}
|
||||
|
||||
public Long getMdmCode() {
|
||||
return mdmCode;
|
||||
}
|
||||
|
||||
public void setMdmCode(Long mdmCode) {
|
||||
this.mdmCode = mdmCode;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,262 @@
|
|||
<?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.mdmModuleSendLog.dao.impl.MdmModuleSendLogDaoImpl">
|
||||
|
||||
<resultMap id="get-MdmModuleSendLogEntity-result" type="com.hzya.frame.mdm.mdmModuleSendLog.entity.MdmModuleSendLogEntity" >
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="formmainId" column="formmain_id" jdbcType="VARCHAR"/>
|
||||
<result property="targetApp" column="target_app" jdbcType="VARCHAR"/>
|
||||
<result property="targetApi" column="target_api" jdbcType="VARCHAR"/>
|
||||
<result property="sourceData" column="source_data" jdbcType="VARCHAR"/>
|
||||
<result property="optionType" column="option_type" 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 = "MdmModuleSendLogEntity_Base_Column_List">
|
||||
id
|
||||
,formmain_id
|
||||
,target_app
|
||||
,target_api
|
||||
,source_data
|
||||
,option_type
|
||||
,sorts
|
||||
,create_user_id
|
||||
,create_time
|
||||
,modify_user_id
|
||||
,modify_time
|
||||
,sts
|
||||
,org_id
|
||||
,company_id
|
||||
</sql>
|
||||
<!--通过ID获取数据 -->
|
||||
<select id="entity_get" resultMap="get-MdmModuleSendLogEntity-result">
|
||||
select
|
||||
<include refid="MdmModuleSendLogEntity_Base_Column_List" />
|
||||
from ${tableName} where id = #{ id } and sts='Y'
|
||||
</select>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-MdmModuleSendLogEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleSendLog.entity.MdmModuleSendLogEntity">
|
||||
select
|
||||
<include refid="MdmModuleSendLogEntity_Base_Column_List" />
|
||||
from ${tableName}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="formmainId != null and formmainId != ''"> and formmain_id = #{formmainId} </if>
|
||||
<if test="targetApp != null and targetApp != ''"> and target_app = #{targetApp} </if>
|
||||
<if test="targetApi != null and targetApi != ''"> and target_api = #{targetApi} </if>
|
||||
<if test="sourceData != null and sourceData != ''"> and source_data = #{sourceData} </if>
|
||||
<if test="optionType != null and optionType != ''"> and option_type = #{optionType} </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.mdmModuleSendLog.entity.MdmModuleSendLogEntity">
|
||||
select count(1) from ${tableName}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="formmainId != null and formmainId != ''"> and formmain_id = #{formmainId} </if>
|
||||
<if test="targetApp != null and targetApp != ''"> and target_app = #{targetApp} </if>
|
||||
<if test="targetApi != null and targetApi != ''"> and target_api = #{targetApi} </if>
|
||||
<if test="sourceData != null and sourceData != ''"> and source_data = #{sourceData} </if>
|
||||
<if test="optionType != null and optionType != ''"> and option_type = #{optionType} </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-MdmModuleSendLogEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleSendLog.entity.MdmModuleSendLogEntity">
|
||||
select
|
||||
<include refid="MdmModuleSendLogEntity_Base_Column_List" />
|
||||
from ${tableName}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||
<if test="formmainId != null and formmainId != ''"> and formmain_id like concat('%',#{formmainId},'%') </if>
|
||||
<if test="targetApp != null and targetApp != ''"> and target_app like concat('%',#{targetApp},'%') </if>
|
||||
<if test="targetApi != null and targetApi != ''"> and target_api like concat('%',#{targetApi},'%') </if>
|
||||
<if test="sourceData != null and sourceData != ''"> and source_data like concat('%',#{sourceData},'%') </if>
|
||||
<if test="optionType != null and optionType != ''"> and option_type like concat('%',#{optionType},'%') </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="MdmModuleSendLogentity_list_or" resultMap="get-MdmModuleSendLogEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleSendLog.entity.MdmModuleSendLogEntity">
|
||||
select
|
||||
<include refid="MdmModuleSendLogEntity_Base_Column_List" />
|
||||
from ${tableName}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||
<if test="formmainId != null and formmainId != ''"> or formmain_id = #{formmainId} </if>
|
||||
<if test="targetApp != null and targetApp != ''"> or target_app = #{targetApp} </if>
|
||||
<if test="targetApi != null and targetApi != ''"> or target_api = #{targetApi} </if>
|
||||
<if test="sourceData != null and sourceData != ''"> or source_data = #{sourceData} </if>
|
||||
<if test="optionType != null and optionType != ''"> or option_type = #{optionType} </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.mdmModuleSendLog.entity.MdmModuleSendLogEntity" >
|
||||
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="targetApp != null and targetApp != ''"> target_app , </if>
|
||||
<if test="targetApi != null and targetApi != ''"> target_api , </if>
|
||||
<if test="sourceData != null and sourceData != ''"> source_data , </if>
|
||||
<if test="optionType != null and optionType != ''"> option_type , </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="sorts == null ">sorts,</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="targetApp != null and targetApp != ''"> #{targetApp} ,</if>
|
||||
<if test="targetApi != null and targetApi != ''"> #{targetApi} ,</if>
|
||||
<if test="sourceData != null and sourceData != ''"> #{sourceData} ,</if>
|
||||
<if test="optionType != null and optionType != ''"> #{optionType} ,</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="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from ${tableName} a WHERE a.sts = 'Y' ),</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into ${tableName}(formmain_id, target_app, target_api, source_data, option_type, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.formmainId},#{entity.targetApp},#{entity.targetApi},#{entity.sourceData},#{entity.optionType},#{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 ${tableName}(formmain_id, target_app, target_api, source_data, option_type, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.formmainId},#{entity.targetApp},#{entity.targetApi},#{entity.sourceData},#{entity.optionType},#{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
|
||||
formmain_id = values(formmain_id),
|
||||
target_app = values(target_app),
|
||||
target_api = values(target_api),
|
||||
source_data = values(source_data),
|
||||
option_type = values(option_type),
|
||||
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.mdmModuleSendLog.entity.MdmModuleSendLogEntity" >
|
||||
update ${tableName} set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="formmainId != null and formmainId != ''"> formmain_id = #{formmainId},</if>
|
||||
<if test="targetApp != null and targetApp != ''"> target_app = #{targetApp},</if>
|
||||
<if test="targetApi != null and targetApi != ''"> target_api = #{targetApi},</if>
|
||||
<if test="sourceData != null and sourceData != ''"> source_data = #{sourceData},</if>
|
||||
<if test="optionType != null and optionType != ''"> option_type = #{optionType},</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.mdmModuleSendLog.entity.MdmModuleSendLogEntity" >
|
||||
update ${tableName} 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.mdmModuleSendLog.entity.MdmModuleSendLogEntity" >
|
||||
update ${tableName} 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="formmainId != null and formmainId != ''"> and formmain_id = #{formmainId} </if>
|
||||
<if test="targetApp != null and targetApp != ''"> and target_app = #{targetApp} </if>
|
||||
<if test="targetApi != null and targetApi != ''"> and target_api = #{targetApi} </if>
|
||||
<if test="sourceData != null and sourceData != ''"> and source_data = #{sourceData} </if>
|
||||
<if test="optionType != null and optionType != ''"> and option_type = #{optionType} </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 ${tableName} where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -141,7 +141,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity" >
|
||||
insert into mdm_module_source(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -181,7 +181,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into mdm_module_source(mdm_id, source_type, source_name, source_code, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -189,7 +189,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into mdm_module_source(mdm_id, source_type, source_name, source_code, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
|
@ -50,7 +50,7 @@ public interface IMdmService {
|
|||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据基本信息保存
|
||||
* @Description 主数据基本信息修改
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity doSaveMdmModule(JSONObject jsonObject);
|
||||
|
@ -63,31 +63,31 @@ public interface IMdmService {
|
|||
**/
|
||||
JsonResultEntity queryMdmModuleDb(JSONObject jsonObject);
|
||||
//
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据设置查询数据源的服务
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity queryMdmModuleServer(JSONObject jsonObject);
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据设置查询数据源字段的服务
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity queryMdmModuleServerFiled(JSONObject jsonObject);
|
||||
//
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据设置查询主表字段
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity queryMdmModuleServerMainFiled(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据设置查询数据源的服务
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity queryMdmModuleServer(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据设置查询数据源字段的服务
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity queryMdmModuleServerFiled(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据设置查询主表字段
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity queryMdmModuleServerMainFiled(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
|
@ -135,57 +135,128 @@ public interface IMdmService {
|
|||
//JsonResultEntity doSaveMdmModuleRule(JSONObject jsonObject);
|
||||
//
|
||||
//
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据设置查询分发设置
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity queryMdmModuleDistribute(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据设置查询分发设置
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity queryMdmModuleDistribute(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据设置保存分发设置
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity doSaveMdmModuleDistribute(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据设置查询数据来源
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity queryMdmModuleSource(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据设置保存数据来源
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity doSaveMdmModuleSource(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 查询下发日志
|
||||
* @Date 11:52 上午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity querySendEntityPage(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 获取下发日志
|
||||
* @Date 2:36 下午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity getSendEntity(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 删除下发日志
|
||||
* @Date 2:37 下午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity deleteSendEntity(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 查询操作日志
|
||||
* @Date 11:52 上午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity queryOptionEntityPage(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 获取操作日志
|
||||
* @Date 2:36 下午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity getOptionEntity(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 删除操作日志
|
||||
* @Date 2:37 下午 2024/3/27
|
||||
**/
|
||||
JsonResultEntity deleteOptionEntity(JSONObject jsonObject);
|
||||
//
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据设置保存分发设置
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity doSaveMdmModuleDistribute(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据列表显示 树、查询条件、列表字段、按钮
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity queryMdmShow(JSONObject jsonObject);
|
||||
//
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据列表显示 树、查询条件、列表字段、按钮
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity queryMdmShow(JSONObject jsonObject);
|
||||
//
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据查询所有字段
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity queryMdmShowAll(JSONObject jsonObject);
|
||||
///**
|
||||
// * @Author lvleigang
|
||||
// * @Description 查询模版数据(list 或者 分页)
|
||||
// * @Date 1:33 下午 2023/7/12
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// **/
|
||||
//JsonResultEntity queryTemplateData(JSONObject jsonObject);
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据列表显示 业务数据
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity queryMdmShowData(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据查询所有字段
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity queryMdmShowAll(JSONObject jsonObject);
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 查询模版数据(list 或者 分页)
|
||||
* @Date 1:33 下午 2023/7/12
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity queryTemplateData(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据列表显示 业务数据
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity queryMdmShowData(JSONObject jsonObject);
|
||||
//
|
||||
///**
|
||||
// * @param jsonObject
|
||||
|
@ -195,14 +266,14 @@ public interface IMdmService {
|
|||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity queryMdmShowDistribute(JSONObject jsonObject);
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据业务数据树结构
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity queryMdmShowTreeData(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据业务数据树结构
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity queryMdmShowTreeData(JSONObject jsonObject);
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
|
@ -212,49 +283,49 @@ public interface IMdmService {
|
|||
// **/
|
||||
//JsonResultEntity queryMdmOptionData(JSONObject jsonObject);
|
||||
//
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据详情 区分类型 新增、修改、查看
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity queryMdmShowDetails(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据详情 区分类型 新增、修改、查看
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity queryMdmShowDetails(JSONObject jsonObject);
|
||||
//
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据详情数据 区分类型 新增、修改、查看
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity queryMdmShowDetailsData(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据详情数据 区分类型 新增、修改、查看
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity queryMdmShowDetailsData(JSONObject jsonObject);
|
||||
//
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据详情数据修改
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity updateMdmShowDetailsData(JSONObject jsonObject);
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据详情数据新增
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity saveMdmShowDetailsData(JSONObject jsonObject);
|
||||
//
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据删除业务数据
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity deleteMdmShowDetailsData(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据详情数据修改
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity updateMdmShowDetailsData(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据详情数据新增
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity saveMdmShowDetailsData(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据删除业务数据
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity deleteMdmShowDetailsData(JSONObject jsonObject);
|
||||
//
|
||||
///**
|
||||
// * @param jsonObject
|
||||
|
|
|
@ -5,6 +5,9 @@ import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
|||
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity;
|
||||
|
@ -27,14 +30,33 @@ public interface IMdmServiceCache {
|
|||
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||
**/
|
||||
MdmModuleEntity getMdmModuleEntity(Long mdmCode);
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 获取模版单据编码规则
|
||||
* @Date 10:13 上午 2024/6/3
|
||||
* @param mdmTableCodeRuleEntity
|
||||
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||
**/
|
||||
List<MdmTableCodeRuleEntity> queryMdmTableCodeRuleEntity(MdmTableCodeRuleEntity mdmTableCodeRuleEntity);
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 获取模版表数据
|
||||
* @Date 10:13 上午 2024/6/3
|
||||
* @param queryDb
|
||||
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||
**/
|
||||
List<MdmModuleDbEntity> queryMdmModuleDb(MdmModuleDbEntity queryDb);
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 获取模版字段表数据
|
||||
* @Date 10:13 上午 2024/6/3
|
||||
* @param queryDbFiled
|
||||
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||
**/
|
||||
List<MdmModuleDbFiledsEntity> queryMdmModuleDbFileds(MdmModuleDbFiledsEntity queryDbFiled);
|
||||
|
||||
void updateMdmModuleEntity(MdmModuleEntity entity);
|
||||
|
||||
List<MdmTableCodeRuleEntity> queryMdmTableCodeRuleEntity(MdmTableCodeRuleEntity mdmTableCodeRuleEntity);
|
||||
|
||||
List<MdmModuleDbEntity> queryMdmModuleDb(MdmModuleDbEntity queryDb);
|
||||
|
||||
List<MdmModuleDbFiledsEntity> queryMdmModuleDbFileds(MdmModuleDbFiledsEntity queryDbFiled);
|
||||
|
||||
List<MdmModuleDbFiledsRuleEntity> queryMdmModuleDbFiledsRule(MdmModuleDbFiledsRuleEntity queryDbFiledRule);
|
||||
|
||||
|
@ -57,4 +79,14 @@ public interface IMdmServiceCache {
|
|||
void saveMdmModuleViewDetail(String id, List<MdmModuleViewDetailEntity> mdmModuleViewDetailEntities);
|
||||
|
||||
void saveMdmModuleViewButton(String id, List<MdmModuleViewButtonEntity> mdmModuleViewButtonEntities);
|
||||
|
||||
List<MdmModuleDistributeEntity> queryMdmModuleDistribute(String id,MdmModuleDistributeEntity mdmModuleDistributeEntity);
|
||||
|
||||
void saveMdmModuleDistribute(String id, List<MdmModuleDistributeEntity> mdmModuleDistributeEntities);
|
||||
|
||||
List<MdmModuleSourceEntity> queryMdmModuleSource(MdmModuleSourceEntity mdmModuleSourceEntity);
|
||||
|
||||
void saveMdmModuleSource(String id, List<MdmModuleSourceEntity> mdmModuleSourceEntities);
|
||||
|
||||
List<MdmModuleDistributeDetailEntity> queryMdmModuleDistributeDetail(MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity);
|
||||
}
|
||||
|
|
|
@ -13,7 +13,11 @@ import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
|
|||
import com.hzya.frame.mdm.mdmModuleDbFiledsRule.dao.IMdmModuleDbFiledsRuleDao;
|
||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleDistribute.dao.IMdmModuleDistributeDao;
|
||||
import com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleDistributeDetail.dao.IMdmModuleDistributeDetailDao;
|
||||
import com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleSource.dao.IMdmModuleSourceDao;
|
||||
import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleView.dao.IMdmModuleViewDao;
|
||||
import com.hzya.frame.mdm.mdmModuleView.entity.MdmModuleViewEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleViewButton.dao.IMdmModuleViewButtonDao;
|
||||
|
@ -25,6 +29,7 @@ import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity;
|
|||
import com.hzya.frame.mdm.service.IMdmService;
|
||||
import com.hzya.frame.mdm.service.IMdmServiceCache;
|
||||
import com.hzya.frame.sysnew.integtationTask.entity.IntegrationTaskEntity;
|
||||
import com.hzya.frame.uuid.UUIDUtils;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -34,6 +39,7 @@ import org.springframework.cache.annotation.Cacheable;
|
|||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -57,6 +63,8 @@ public class MdmServiceCache implements IMdmServiceCache {
|
|||
@Resource
|
||||
private IMdmModuleDistributeDetailDao mdmModuleDistributeDetailDao;
|
||||
@Resource
|
||||
private IMdmModuleSourceDao mdmModuleSourceDao;
|
||||
@Resource
|
||||
private IMdmModuleViewDao mdmModuleViewDao;
|
||||
@Resource
|
||||
private IMdmModuleViewButtonDao mdmModuleViewButtonDao;
|
||||
|
@ -79,7 +87,7 @@ public class MdmServiceCache implements IMdmServiceCache {
|
|||
}
|
||||
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmTableCodeRule",key = "#mdmId")
|
||||
@Cacheable(cacheNames="mdmTableCodeRule",key = "#entity.mdmId")
|
||||
public List<MdmTableCodeRuleEntity> queryMdmTableCodeRuleEntity(MdmTableCodeRuleEntity entity) {
|
||||
List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntityList = mdmTableCodeRuleDao.queryBase(entity);
|
||||
return mdmTableCodeRuleEntityList;
|
||||
|
@ -87,21 +95,21 @@ public class MdmServiceCache implements IMdmServiceCache {
|
|||
|
||||
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmModuleDb",key = "#mdmId")
|
||||
@Cacheable(cacheNames="mdmModuleDb",key = "#entity.mdmId")
|
||||
public List<MdmModuleDbEntity> queryMdmModuleDb(MdmModuleDbEntity entity) {
|
||||
List<MdmModuleDbEntity> mdmModuleDbEntities = mdmModuleDbDao.queryBase(entity);
|
||||
return mdmModuleDbEntities;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmModuleDbFileds",key = "#mdmId")
|
||||
@Cacheable(cacheNames="mdmModuleDbFileds",key = "#entity.mdmId")
|
||||
public List<MdmModuleDbFiledsEntity> queryMdmModuleDbFileds(MdmModuleDbFiledsEntity entity) {
|
||||
List<MdmModuleDbFiledsEntity> mdmModuleDbFiledsEntities = mdmModuleDbFiledsDao.queryBase(entity);
|
||||
return mdmModuleDbFiledsEntities;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmModuleDbFiledsRule",key = "#mdmId")
|
||||
@Cacheable(cacheNames="mdmModuleDbFiledsRule",key = "#entity.mdmId")
|
||||
public List<MdmModuleDbFiledsRuleEntity> queryMdmModuleDbFiledsRule(MdmModuleDbFiledsRuleEntity entity) {
|
||||
List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleDao.queryBase(entity);
|
||||
return mdmModuleDbFiledsRuleEntities;
|
||||
|
@ -168,23 +176,23 @@ public class MdmServiceCache implements IMdmServiceCache {
|
|||
}
|
||||
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmModuleViewDetail",key = "#mdmId")
|
||||
public List<MdmModuleViewDetailEntity> queryMdmModuleViewDetail(MdmModuleViewDetailEntity mdmModuleViewDetailEntity) {
|
||||
List<MdmModuleViewDetailEntity> mdmModuleViewDetailEntities = mdmModuleViewDetailDao.queryBase(mdmModuleViewDetailEntity);
|
||||
@Cacheable(cacheNames="mdmModuleViewDetail",key = "#entity.mdmId")
|
||||
public List<MdmModuleViewDetailEntity> queryMdmModuleViewDetail(MdmModuleViewDetailEntity entity) {
|
||||
List<MdmModuleViewDetailEntity> mdmModuleViewDetailEntities = mdmModuleViewDetailDao.queryBase(entity);
|
||||
return mdmModuleViewDetailEntities;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmModuleView",key = "#mdmId")
|
||||
public List<MdmModuleViewEntity> queryMdmModuleView(MdmModuleViewEntity mdmModuleViewEntity) {
|
||||
List<MdmModuleViewEntity> moduleViewEntities = mdmModuleViewDao.queryBase(mdmModuleViewEntity);
|
||||
@Cacheable(cacheNames="mdmModuleView",key = "#entity.mdmId")
|
||||
public List<MdmModuleViewEntity> queryMdmModuleView(MdmModuleViewEntity entity) {
|
||||
List<MdmModuleViewEntity> moduleViewEntities = mdmModuleViewDao.queryBase(entity);
|
||||
return moduleViewEntities;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmModuleViewButton",key = "#mdmId")
|
||||
public List<MdmModuleViewButtonEntity> queryMdmModuleViewButton(MdmModuleViewButtonEntity mdmModuleViewButtonEntity) {
|
||||
List<MdmModuleViewButtonEntity> mdmModuleViewButtonEntities = mdmModuleViewButtonDao.queryBase(mdmModuleViewButtonEntity);
|
||||
@Cacheable(cacheNames="mdmModuleViewButton",key = "#entity.mdmId")
|
||||
public List<MdmModuleViewButtonEntity> queryMdmModuleViewButton(MdmModuleViewButtonEntity entity) {
|
||||
List<MdmModuleViewButtonEntity> mdmModuleViewButtonEntities = mdmModuleViewButtonDao.queryBase(entity);
|
||||
return mdmModuleViewButtonEntities;
|
||||
}
|
||||
|
||||
|
@ -229,5 +237,110 @@ public class MdmServiceCache implements IMdmServiceCache {
|
|||
}
|
||||
}
|
||||
}
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmModuleDistribute",key = "#mdmId")
|
||||
public List<MdmModuleDistributeEntity> queryMdmModuleDistribute(String mdmId,MdmModuleDistributeEntity mdmModuleDistributeEntity) {
|
||||
List<MdmModuleDistributeEntity> mdmModuleDistributeEntities = mdmModuleDistributeDao.queryBase(mdmModuleDistributeEntity);
|
||||
//查询模块下的应用列表
|
||||
MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = new MdmModuleDistributeDetailEntity();
|
||||
mdmModuleDistributeDetailEntity.setSts("Y");
|
||||
mdmModuleDistributeDetailEntity.setMdmId(mdmId);
|
||||
List<MdmModuleDistributeDetailEntity> mdmModuleDistributeDetailEntities = mdmModuleDistributeDetailDao.queryBase(mdmModuleDistributeDetailEntity);
|
||||
|
||||
if(mdmModuleDistributeEntities != null && mdmModuleDistributeEntities.size() > 0){
|
||||
for (int i = 0; i < mdmModuleDistributeEntities.size(); i++) {
|
||||
List<MdmModuleDistributeDetailEntity> moduleDistributeDetailEntities = new ArrayList<>();
|
||||
if(mdmModuleDistributeDetailEntities != null && mdmModuleDistributeDetailEntities.size() > 0){
|
||||
for (int i1 = 0; i1 < mdmModuleDistributeDetailEntities.size(); i1++) {
|
||||
if(mdmModuleDistributeEntities.get(i).getId().equals(mdmModuleDistributeDetailEntities.get(i1).getDistributeId())){
|
||||
moduleDistributeDetailEntities.add(mdmModuleDistributeDetailEntities.get(i1));
|
||||
}
|
||||
}
|
||||
}
|
||||
mdmModuleDistributeEntities.get(i).setMdmModuleDistributeDetailEntities(moduleDistributeDetailEntities);
|
||||
}
|
||||
}
|
||||
return mdmModuleDistributeEntities;
|
||||
}
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmModuleDistributeDetail",key = "#entity.mdmId")
|
||||
public List<MdmModuleDistributeDetailEntity> queryMdmModuleDistributeDetail(MdmModuleDistributeDetailEntity entity){
|
||||
List<MdmModuleDistributeDetailEntity> mdmModuleDistributeDetailEntities = mdmModuleDistributeDetailDao.queryBase(entity);
|
||||
return mdmModuleDistributeDetailEntities;
|
||||
}
|
||||
|
||||
@Override
|
||||
@CacheEvict(cacheNames="mdmModuleDistribute",key = "#mdmId")
|
||||
public void saveMdmModuleDistribute(String mdmId, List<MdmModuleDistributeEntity> mdmModuleDistributeEntities) {
|
||||
//先删除
|
||||
MdmModuleDistributeEntity mdmModuleDistributeEntity = new MdmModuleDistributeEntity();
|
||||
mdmModuleDistributeEntity.setMdmId(mdmId);
|
||||
mdmModuleDistributeEntity.setUpdate();
|
||||
mdmModuleDistributeDao.logicRemoveMultiCondition(mdmModuleDistributeEntity);
|
||||
//保存主数据
|
||||
if (mdmModuleDistributeEntities != null && mdmModuleDistributeEntities.size() > 0) {
|
||||
for (int i = 0; i < mdmModuleDistributeEntities.size(); i++) {
|
||||
MdmModuleDistributeEntity moduleDistributeEntity = mdmModuleDistributeEntities.get(i);
|
||||
moduleDistributeEntity.setMdmId(mdmId);
|
||||
if (moduleDistributeEntity.getId() != null && !"".equals(moduleDistributeEntity.getId())) {
|
||||
moduleDistributeEntity.setUpdate();
|
||||
//修改
|
||||
mdmModuleDistributeDao.update(moduleDistributeEntity);
|
||||
} else {
|
||||
//新增
|
||||
moduleDistributeEntity.setCreate();
|
||||
mdmModuleDistributeDao.save(moduleDistributeEntity);
|
||||
}
|
||||
if(moduleDistributeEntity.getMdmModuleDistributeDetailEntities() != null && moduleDistributeEntity.getMdmModuleDistributeDetailEntities().size() > 0){
|
||||
for (int i1 = 0; i1 < moduleDistributeEntity.getMdmModuleDistributeDetailEntities().size(); i1++) {
|
||||
MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = moduleDistributeEntity.getMdmModuleDistributeDetailEntities().get(i1);
|
||||
mdmModuleDistributeDetailEntity.setMdmId(mdmId);
|
||||
mdmModuleDistributeDetailEntity.setDistributeId(moduleDistributeEntity.getId());
|
||||
if (mdmModuleDistributeDetailEntity.getId() != null && !"".equals(mdmModuleDistributeDetailEntity.getId())) {
|
||||
mdmModuleDistributeDetailEntity.setUpdate();
|
||||
//修改
|
||||
mdmModuleDistributeDetailDao.update(mdmModuleDistributeDetailEntity);
|
||||
} else {
|
||||
//新增
|
||||
mdmModuleDistributeDetailEntity.setCreate();
|
||||
mdmModuleDistributeDetailDao.save(mdmModuleDistributeDetailEntity);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmModuleSource",key = "#entity.mdmId")
|
||||
public List<MdmModuleSourceEntity> queryMdmModuleSource(MdmModuleSourceEntity entity) {
|
||||
List<MdmModuleSourceEntity> mdmModuleSourceEntities = mdmModuleSourceDao.queryBase(entity);
|
||||
return mdmModuleSourceEntities;
|
||||
}
|
||||
|
||||
@Override
|
||||
@CacheEvict(cacheNames="mdmModuleSource",key = "#mdmId")
|
||||
public void saveMdmModuleSource(String mdmId, List<MdmModuleSourceEntity> mdmModuleSourceEntities) {
|
||||
//先删除
|
||||
MdmModuleSourceEntity mdmModuleSourceEntity = new MdmModuleSourceEntity();
|
||||
mdmModuleSourceEntity.setMdmId(mdmId);
|
||||
mdmModuleSourceEntity.setUpdate();
|
||||
mdmModuleSourceDao.logicRemoveMultiCondition(mdmModuleSourceEntity);
|
||||
//保存主数据
|
||||
if (mdmModuleSourceEntities != null && mdmModuleSourceEntities.size() > 0) {
|
||||
for (int i = 0; i < mdmModuleSourceEntities.size(); i++) {
|
||||
MdmModuleSourceEntity mdmModuleSourceEntity1 = mdmModuleSourceEntities.get(i);
|
||||
mdmModuleSourceEntity1.setMdmId(mdmId);
|
||||
if (mdmModuleSourceEntity1.getId() != null && !"".equals(mdmModuleSourceEntity1.getId())) {
|
||||
mdmModuleSourceEntity1.setUpdate();
|
||||
//修改
|
||||
mdmModuleSourceDao.update(mdmModuleSourceEntity1);
|
||||
} else {
|
||||
//新增
|
||||
mdmModuleSourceEntity1.setCreate();
|
||||
mdmModuleSourceDao.save(mdmModuleSourceEntity1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue