主数据新建类

This commit is contained in:
lvleigang 2024-06-03 08:49:43 +08:00
parent 4d9fdcae7a
commit 2741e28ba1
46 changed files with 486 additions and 170 deletions

View File

@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao;
* 主数据模版(mdm_module: table)表数据库访问层
*
* @author makejava
* @since 2024-05-30 16:56:53
* @since 2024-06-03 08:46:29
*/
public interface IMdmModuleDao extends IBaseDao<MdmModuleEntity, String> {

View File

@ -1,145 +1,17 @@
package com.hzya.frame.mdm.mdmModule.dao.impl;
import com.hzya.frame.mdm.entity.MdmDataDto;
import com.hzya.frame.mdm.entity.MdmDistributeEntity;
import com.hzya.frame.mdm.entity.MdmDto;
import com.hzya.frame.mdm.entity.MdmQuery;
import com.hzya.frame.mdm.entity.MdmVo;
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
import com.hzya.frame.mdm.mdmModule.dao.IMdmModuleDao;
import com.hzya.frame.sys.entity.FormmainDeleteDto;
import com.hzya.frame.sys.entity.ModuleDto;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 主数据模版(MdmModule)表数据库访问层
*
* @author makejava
* @since 2023-10-17 15:25:42
* @since 2024-06-03 08:46:29
*/
@Repository(value = "MdmModuleDaoImpl")
public class MdmModuleDaoImpl extends MybatisGenericDao<MdmModuleEntity, String> implements IMdmModuleDao {
@Override
public List<MdmVo> queryMdm(MdmDto entity) {
List<MdmVo> o = (List<MdmVo>) super.selectList(getSqlIdPrifx() + "queryMdm", entity);
return o;
}
@Override
public Integer checkTable(Map<String, String> maps) {
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "checkTable", maps);
return o;
}
@Override
public Integer createTable(Map<String, Object> maps) {
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "createTable", maps);
return o;
}
@Override
public Integer createTableDistribute(Map<String, Object> maps) {
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "createTableDistribute", maps);
return o;
}
@Override
public Integer alterTable(Map<String, Object> maps) {
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "alterTable", maps);
return o;
}
@Override
public Integer alterTableName(Map<String, String> maps) {
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "alterTableName", maps);
return o;
}
@Override
public Integer checkData(Map<String, String> maps) {
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "checkData", maps);
return o;
}
@Override
public List<HashMap<String, Object>> querySelectData(MdmDto entity) {
List<HashMap<String, Object>> o = (List<HashMap<String, Object>>) super.selectList(getSqlIdPrifx() + "querySelectData", entity);
return o;
}
@Override
public List<HashMap<String, Object>> queryTemplateDataMore(MdmDto entity) {
List<HashMap<String, Object>> o = (List<HashMap<String, Object>>) super.selectList(getSqlIdPrifx() + "queryTemplateDataMore", entity);
return o;
}
@Override
public List<HashMap<String, Object>> queryMdmShowData(MdmQuery entity) {
List<HashMap<String, Object>> o = (List<HashMap<String, Object>>) super.selectList(getSqlIdPrifx() + "queryMdmShowData", entity);
return o;
}
@Override
public List<HashMap<String, Object>> queryDataAll(MdmDto entity) {
List<HashMap<String, Object>> o = (List<HashMap<String, Object>>) super.selectList(getSqlIdPrifx() + "queryDataAll", entity);
return o;
}
@Override
public List<HashMap<String, Object>> queryTemplateData(ModuleDto entity) {
List<HashMap<String, Object>> o = (List<HashMap<String, Object>>) super.selectList(getSqlIdPrifx() + "queryTemplateData", entity);
return o;
}
@Override
public Integer updateForm(MdmDataDto mdmDataDto) {
Integer o = super.update(getSqlIdPrifx() + "updateForm", mdmDataDto);
return o;
}
@Override
public Integer saveForm(MdmDataDto mdmDataDto) {
Integer o = super.update(getSqlIdPrifx() + "saveForm", mdmDataDto);
return o;
}
@Override
public Integer deleteTemplateById(FormmainDeleteDto entity) {
Integer o = super.delete(getSqlIdPrifx() + "deleteTemplateById", entity);
return o;
}
@Override
public Integer deleteChilder(FormmainDeleteDto entity) {
Integer o = super.delete(getSqlIdPrifx() + "deleteChilder", entity);
return o;
}
@Override
public Integer saveDistribute(MdmDistributeEntity mdmDistributeEntity) {
Integer o = super.insert(getSqlIdPrifx() + "saveDistribute", mdmDistributeEntity);
return o;
}
@Override
public Integer updateDistribute(MdmDistributeEntity mdmDistributeEntity) {
Integer o = super.update(getSqlIdPrifx() + "updateDistribute", mdmDistributeEntity);
return o;
}
@Override
public HashMap<String, Object> queryTemplateDataOne(MdmDto entity) {
HashMap<String, Object> o = (HashMap<String, Object>) super.selectOne(getSqlIdPrifx() + "queryTemplateDataOne", entity);
return o;
}
public class MdmModuleDaoImpl extends MybatisGenericDao<MdmModuleEntity, String> implements IMdmModuleDao{
}

View File

@ -6,7 +6,7 @@ import com.hzya.frame.web.entity.BaseEntity;
* 主数据模版(MdmModule)实体类
*
* @author makejava
* @since 2024-05-30 16:56:53
* @since 2024-06-03 08:46:29
*/
public class MdmModuleEntity extends BaseEntity {

View File

@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService;
* 主数据模版(MdmModule)表服务接口
*
* @author makejava
* @since 2024-05-30 16:56:54
* @since 2024-06-03 08:46:29
*/
public interface IMdmModuleService extends IBaseService<MdmModuleEntity, String>{
}

View File

@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService;
* 主数据模版(MdmModule)表服务实现类
*
* @author makejava
* @since 2024-05-30 16:56:54
* @since 2024-06-03 08:46:29
*/
@Service(value = "mdmModuleService")
public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> implements IMdmModuleService {

View File

@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao;
* 模版数据库表(mdm_module_db: table)表数据库访问层
*
* @author makejava
* @since 2024-05-30 16:58:05
* @since 2024-06-03 08:46:48
*/
public interface IMdmModuleDbDao extends IBaseDao<MdmModuleDbEntity, String> {

View File

@ -8,7 +8,7 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
* 模版数据库表(MdmModuleDb)表数据库访问层
*
* @author makejava
* @since 2024-05-30 16:58:05
* @since 2024-06-03 08:46:50
*/
@Repository(value = "MdmModuleDbDaoImpl")
public class MdmModuleDbDaoImpl extends MybatisGenericDao<MdmModuleDbEntity, String> implements IMdmModuleDbDao{

View File

@ -6,7 +6,7 @@ import com.hzya.frame.web.entity.BaseEntity;
* 模版数据库表(MdmModuleDb)实体类
*
* @author makejava
* @since 2024-05-30 16:58:05
* @since 2024-06-03 08:46:50
*/
public class MdmModuleDbEntity extends BaseEntity {

View File

@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService;
* 模版数据库表(MdmModuleDb)表服务接口
*
* @author makejava
* @since 2024-05-30 16:58:05
* @since 2024-06-03 08:46:51
*/
public interface IMdmModuleDbService extends IBaseService<MdmModuleDbEntity, String>{
}

View File

@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService;
* 模版数据库表(MdmModuleDb)表服务实现类
*
* @author makejava
* @since 2024-05-30 16:58:05
* @since 2024-06-03 08:46:52
*/
@Service(value = "mdmModuleDbService")
public class MdmModuleDbServiceImpl extends BaseService<MdmModuleDbEntity, String> implements IMdmModuleDbService {

View File

@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao;
* 模版数据库字段表(mdm_module_db_fileds: table)表数据库访问层
*
* @author makejava
* @since 2024-05-30 16:59:05
* @since 2024-06-03 08:47:01
*/
public interface IMdmModuleDbFiledsDao extends IBaseDao<MdmModuleDbFiledsEntity, String> {

View File

@ -8,7 +8,7 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
* 模版数据库字段表(MdmModuleDbFileds)表数据库访问层
*
* @author makejava
* @since 2024-05-30 16:59:05
* @since 2024-06-03 08:47:01
*/
@Repository(value = "MdmModuleDbFiledsDaoImpl")
public class MdmModuleDbFiledsDaoImpl extends MybatisGenericDao<MdmModuleDbFiledsEntity, String> implements IMdmModuleDbFiledsDao{

View File

@ -6,7 +6,7 @@ import com.hzya.frame.web.entity.BaseEntity;
* 模版数据库字段表(MdmModuleDbFileds)实体类
*
* @author makejava
* @since 2024-05-30 16:59:05
* @since 2024-06-03 08:47:01
*/
public class MdmModuleDbFiledsEntity extends BaseEntity {

View File

@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService;
* 模版数据库字段表(MdmModuleDbFileds)表服务接口
*
* @author makejava
* @since 2024-05-30 16:59:05
* @since 2024-06-03 08:47:01
*/
public interface IMdmModuleDbFiledsService extends IBaseService<MdmModuleDbFiledsEntity, String>{
}

View File

@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService;
* 模版数据库字段表(MdmModuleDbFileds)表服务实现类
*
* @author makejava
* @since 2024-05-30 16:59:05
* @since 2024-06-03 08:47:01
*/
@Service(value = "mdmModuleDbFiledsService")
public class MdmModuleDbFiledsServiceImpl extends BaseService<MdmModuleDbFiledsEntity, String> implements IMdmModuleDbFiledsService {

View File

@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao;
* 模版数据库字段规则表(mdm_module_db_fileds_rule: table)表数据库访问层
*
* @author makejava
* @since 2024-05-30 16:59:59
* @since 2024-06-03 08:47:10
*/
public interface IMdmModuleDbFiledsRuleDao extends IBaseDao<MdmModuleDbFiledsRuleEntity, String> {

View File

@ -8,7 +8,7 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
* 模版数据库字段规则表(MdmModuleDbFiledsRule)表数据库访问层
*
* @author makejava
* @since 2024-05-30 16:59:59
* @since 2024-06-03 08:47:10
*/
@Repository(value = "MdmModuleDbFiledsRuleDaoImpl")
public class MdmModuleDbFiledsRuleDaoImpl extends MybatisGenericDao<MdmModuleDbFiledsRuleEntity, String> implements IMdmModuleDbFiledsRuleDao{

View File

@ -6,7 +6,7 @@ import com.hzya.frame.web.entity.BaseEntity;
* 模版数据库字段规则表(MdmModuleDbFiledsRule)实体类
*
* @author makejava
* @since 2024-05-30 16:59:59
* @since 2024-06-03 08:47:10
*/
public class MdmModuleDbFiledsRuleEntity extends BaseEntity {

View File

@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService;
* 模版数据库字段规则表(MdmModuleDbFiledsRule)表服务接口
*
* @author makejava
* @since 2024-05-30 16:59:59
* @since 2024-06-03 08:47:10
*/
public interface IMdmModuleDbFiledsRuleService extends IBaseService<MdmModuleDbFiledsRuleEntity, String>{
}

View File

@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService;
* 模版数据库字段规则表(MdmModuleDbFiledsRule)表服务实现类
*
* @author makejava
* @since 2024-05-30 16:59:59
* @since 2024-06-03 08:47:10
*/
@Service(value = "mdmModuleDbFiledsRuleService")
public class MdmModuleDbFiledsRuleServiceImpl extends BaseService<MdmModuleDbFiledsRuleEntity, String> implements IMdmModuleDbFiledsRuleService {

View File

@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao;
* 主数据功能应用分发表(mdm_module_distribute: table)表数据库访问层
*
* @author makejava
* @since 2024-05-30 17:02:43
* @since 2024-06-03 08:47:33
*/
public interface IMdmModuleDistributeDao extends IBaseDao<MdmModuleDistributeEntity, String> {

View File

@ -8,7 +8,7 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
* 主数据功能应用分发表(MdmModuleDistribute)表数据库访问层
*
* @author makejava
* @since 2024-05-30 17:02:43
* @since 2024-06-03 08:47:33
*/
@Repository(value = "MdmModuleDistributeDaoImpl")
public class MdmModuleDistributeDaoImpl extends MybatisGenericDao<MdmModuleDistributeEntity, String> implements IMdmModuleDistributeDao{

View File

@ -6,7 +6,7 @@ import com.hzya.frame.web.entity.BaseEntity;
* 主数据功能应用分发表(MdmModuleDistribute)实体类
*
* @author makejava
* @since 2024-05-30 17:02:43
* @since 2024-06-03 08:47:33
*/
public class MdmModuleDistributeEntity extends BaseEntity {

View File

@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService;
* 主数据功能应用分发表(MdmModuleDistribute)表服务接口
*
* @author makejava
* @since 2024-05-30 17:02:44
* @since 2024-06-03 08:47:33
*/
public interface IMdmModuleDistributeService extends IBaseService<MdmModuleDistributeEntity, String>{
}

View File

@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService;
* 主数据功能应用分发表(MdmModuleDistribute)表服务实现类
*
* @author makejava
* @since 2024-05-30 17:02:44
* @since 2024-06-03 08:47:33
*/
@Service(value = "mdmModuleDistributeService")
public class MdmModuleDistributeServiceImpl extends BaseService<MdmModuleDistributeEntity, String> implements IMdmModuleDistributeService {

View File

@ -0,0 +1,15 @@
package com.hzya.frame.mdm.mdmModuleDistributeDetail.dao;
import com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* 主数据功能应用分发明细表(mdm_module_distribute_detail: table)表数据库访问层
*
* @author makejava
* @since 2024-06-03 08:48:18
*/
public interface IMdmModuleDistributeDetailDao extends IBaseDao<MdmModuleDistributeDetailEntity, String> {
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.mdm.mdmModuleDistributeDetail.dao.impl;
import com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity;
import com.hzya.frame.mdm.mdmModuleDistributeDetail.dao.IMdmModuleDistributeDetailDao;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* 主数据功能应用分发明细表(MdmModuleDistributeDetail)表数据库访问层
*
* @author makejava
* @since 2024-06-03 08:48:18
*/
@Repository(value = "MdmModuleDistributeDetailDaoImpl")
public class MdmModuleDistributeDetailDaoImpl extends MybatisGenericDao<MdmModuleDistributeDetailEntity, String> implements IMdmModuleDistributeDetailDao{
}

View File

@ -0,0 +1,96 @@
package com.hzya.frame.mdm.mdmModuleDistributeDetail.entity;
import java.util.Date;
import com.hzya.frame.web.entity.BaseEntity;
/**
* 主数据功能应用分发明细表(MdmModuleDistributeDetail)实体类
*
* @author makejava
* @since 2024-06-03 08:48:18
*/
public class MdmModuleDistributeDetailEntity extends BaseEntity {
/** 主数据模版ID */
private String mdmId;
/** 应用分发id */
private String distributeId;
/** 接口id */
private String apiId;
/** 数据类型 1、新增2、修改3、删除 */
private String dataType;
/** 字段名 */
private String filedName;
/** 对比类型 1、等于 */
private String compareType;
/** 目标API字段默认值 */
private String filedVaule;
/** 公司id */
private String companyId;
public String getMdmId() {
return mdmId;
}
public void setMdmId(String mdmId) {
this.mdmId = mdmId;
}
public String getDistributeId() {
return distributeId;
}
public void setDistributeId(String distributeId) {
this.distributeId = distributeId;
}
public String getApiId() {
return apiId;
}
public void setApiId(String apiId) {
this.apiId = apiId;
}
public String getDataType() {
return dataType;
}
public void setDataType(String dataType) {
this.dataType = dataType;
}
public String getFiledName() {
return filedName;
}
public void setFiledName(String filedName) {
this.filedName = filedName;
}
public String getCompareType() {
return compareType;
}
public void setCompareType(String compareType) {
this.compareType = compareType;
}
public String getFiledVaule() {
return filedVaule;
}
public void setFiledVaule(String filedVaule) {
this.filedVaule = filedVaule;
}
public String getCompanyId() {
return companyId;
}
public void setCompanyId(String companyId) {
this.companyId = companyId;
}
}

View File

@ -0,0 +1,278 @@
<?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.mdmModuleDistributeDetail.dao.impl.MdmModuleDistributeDetailDaoImpl">
<resultMap id="get-MdmModuleDistributeDetailEntity-result" type="com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity" >
<result property="id" column="id" jdbcType="VARCHAR"/>
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
<result property="distributeId" column="distribute_id" jdbcType="VARCHAR"/>
<result property="apiId" column="api_id" jdbcType="VARCHAR"/>
<result property="dataType" column="data_type" jdbcType="VARCHAR"/>
<result property="filedName" column="filed_name" jdbcType="VARCHAR"/>
<result property="compareType" column="compare_type" jdbcType="VARCHAR"/>
<result property="filedVaule" column="filed_vaule" 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 = "MdmModuleDistributeDetailEntity_Base_Column_List">
id
,mdm_id
,distribute_id
,api_id
,data_type
,filed_name
,compare_type
,filed_vaule
,sorts
,create_user_id
,create_time
,modify_user_id
,modify_time
,sts
,org_id
,company_id
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-MdmModuleDistributeDetailEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
select
<include refid="MdmModuleDistributeDetailEntity_Base_Column_List" />
from mdm_module_distribute_detail
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
<if test="distributeId != null and distributeId != ''"> and distribute_id = #{distributeId} </if>
<if test="apiId != null and apiId != ''"> and api_id = #{apiId} </if>
<if test="dataType != null and dataType != ''"> and data_type = #{dataType} </if>
<if test="filedName != null and filedName != ''"> and filed_name = #{filedName} </if>
<if test="compareType != null and compareType != ''"> and compare_type = #{compareType} </if>
<if test="filedVaule != null and filedVaule != ''"> and filed_vaule = #{filedVaule} </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.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
select count(1) from mdm_module_distribute_detail
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
<if test="distributeId != null and distributeId != ''"> and distribute_id = #{distributeId} </if>
<if test="apiId != null and apiId != ''"> and api_id = #{apiId} </if>
<if test="dataType != null and dataType != ''"> and data_type = #{dataType} </if>
<if test="filedName != null and filedName != ''"> and filed_name = #{filedName} </if>
<if test="compareType != null and compareType != ''"> and compare_type = #{compareType} </if>
<if test="filedVaule != null and filedVaule != ''"> and filed_vaule = #{filedVaule} </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-MdmModuleDistributeDetailEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
select
<include refid="MdmModuleDistributeDetailEntity_Base_Column_List" />
from mdm_module_distribute_detail
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
<if test="mdmId != null and mdmId != ''"> and mdm_id like concat('%',#{mdmId},'%') </if>
<if test="distributeId != null and distributeId != ''"> and distribute_id like concat('%',#{distributeId},'%') </if>
<if test="apiId != null and apiId != ''"> and api_id like concat('%',#{apiId},'%') </if>
<if test="dataType != null and dataType != ''"> and data_type like concat('%',#{dataType},'%') </if>
<if test="filedName != null and filedName != ''"> and filed_name like concat('%',#{filedName},'%') </if>
<if test="compareType != null and compareType != ''"> and compare_type like concat('%',#{compareType},'%') </if>
<if test="filedVaule != null and filedVaule != ''"> and filed_vaule like concat('%',#{filedVaule},'%') </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="MdmModuleDistributeDetailentity_list_or" resultMap="get-MdmModuleDistributeDetailEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
select
<include refid="MdmModuleDistributeDetailEntity_Base_Column_List" />
from mdm_module_distribute_detail
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> or id = #{id} </if>
<if test="mdmId != null and mdmId != ''"> or mdm_id = #{mdmId} </if>
<if test="distributeId != null and distributeId != ''"> or distribute_id = #{distributeId} </if>
<if test="apiId != null and apiId != ''"> or api_id = #{apiId} </if>
<if test="dataType != null and dataType != ''"> or data_type = #{dataType} </if>
<if test="filedName != null and filedName != ''"> or filed_name = #{filedName} </if>
<if test="compareType != null and compareType != ''"> or compare_type = #{compareType} </if>
<if test="filedVaule != null and filedVaule != ''"> or filed_vaule = #{filedVaule} </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.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity" keyProperty="id" useGeneratedKeys="true">
insert into mdm_module_distribute_detail(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''"> id , </if>
<if test="mdmId != null and mdmId != ''"> mdm_id , </if>
<if test="distributeId != null and distributeId != ''"> distribute_id , </if>
<if test="apiId != null and apiId != ''"> api_id , </if>
<if test="dataType != null and dataType != ''"> data_type , </if>
<if test="filedName != null and filedName != ''"> filed_name , </if>
<if test="compareType != null and compareType != ''"> compare_type , </if>
<if test="filedVaule != null and filedVaule != ''"> filed_vaule , </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="mdmId != null and mdmId != ''"> #{mdmId} ,</if>
<if test="distributeId != null and distributeId != ''"> #{distributeId} ,</if>
<if test="apiId != null and apiId != ''"> #{apiId} ,</if>
<if test="dataType != null and dataType != ''"> #{dataType} ,</if>
<if test="filedName != null and filedName != ''"> #{filedName} ,</if>
<if test="compareType != null and compareType != ''"> #{compareType} ,</if>
<if test="filedVaule != null and filedVaule != ''"> #{filedVaule} ,</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 mdm_module_distribute_detail a WHERE a.sts = 'Y' ),</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
insert into mdm_module_distribute_detail(mdm_id, distribute_id, api_id, data_type, filed_name, compare_type, filed_vaule, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.mdmId},#{entity.distributeId},#{entity.apiId},#{entity.dataType},#{entity.filedName},#{entity.compareType},#{entity.filedVaule},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into mdm_module_distribute_detail(mdm_id, distribute_id, api_id, data_type, filed_name, compare_type, filed_vaule, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.mdmId},#{entity.distributeId},#{entity.apiId},#{entity.dataType},#{entity.filedName},#{entity.compareType},#{entity.filedVaule},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
</foreach>
on duplicate key update
mdm_id = values(mdm_id),
distribute_id = values(distribute_id),
api_id = values(api_id),
data_type = values(data_type),
filed_name = values(filed_name),
compare_type = values(compare_type),
filed_vaule = values(filed_vaule),
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.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity" >
update mdm_module_distribute_detail set
<trim suffix="" suffixOverrides=",">
<if test="mdmId != null and mdmId != ''"> mdm_id = #{mdmId},</if>
<if test="distributeId != null and distributeId != ''"> distribute_id = #{distributeId},</if>
<if test="apiId != null and apiId != ''"> api_id = #{apiId},</if>
<if test="dataType != null and dataType != ''"> data_type = #{dataType},</if>
<if test="filedName != null and filedName != ''"> filed_name = #{filedName},</if>
<if test="compareType != null and compareType != ''"> compare_type = #{compareType},</if>
<if test="filedVaule != null and filedVaule != ''"> filed_vaule = #{filedVaule},</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.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity" >
update mdm_module_distribute_detail 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.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity" >
update mdm_module_distribute_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
<if test="distributeId != null and distributeId != ''"> and distribute_id = #{distributeId} </if>
<if test="apiId != null and apiId != ''"> and api_id = #{apiId} </if>
<if test="dataType != null and dataType != ''"> and data_type = #{dataType} </if>
<if test="filedName != null and filedName != ''"> and filed_name = #{filedName} </if>
<if test="compareType != null and compareType != ''"> and compare_type = #{compareType} </if>
<if test="filedVaule != null and filedVaule != ''"> and filed_vaule = #{filedVaule} </if>
<if test="sorts != null"> and sorts = #{sorts} </if>
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from mdm_module_distribute_detail where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,12 @@
package com.hzya.frame.mdm.mdmModuleDistributeDetail.service;
import com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity;
import com.hzya.frame.basedao.service.IBaseService;
/**
* 主数据功能应用分发明细表(MdmModuleDistributeDetail)表服务接口
*
* @author makejava
* @since 2024-06-03 08:48:18
*/
public interface IMdmModuleDistributeDetailService extends IBaseService<MdmModuleDistributeDetailEntity, String>{
}

View File

@ -0,0 +1,26 @@
package com.hzya.frame.mdm.mdmModuleDistributeDetail.service.impl;
import com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity;
import com.hzya.frame.mdm.mdmModuleDistributeDetail.dao.IMdmModuleDistributeDetailDao;
import com.hzya.frame.mdm.mdmModuleDistributeDetail.service.IMdmModuleDistributeDetailService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* 主数据功能应用分发明细表(MdmModuleDistributeDetail)表服务实现类
*
* @author makejava
* @since 2024-06-03 08:48:18
*/
@Service(value = "mdmModuleDistributeDetailService")
public class MdmModuleDistributeDetailServiceImpl extends BaseService<MdmModuleDistributeDetailEntity, String> implements IMdmModuleDistributeDetailService {
private IMdmModuleDistributeDetailDao mdmModuleDistributeDetailDao;
@Autowired
public void setMdmModuleDistributeDetailDao(IMdmModuleDistributeDetailDao dao) {
this.mdmModuleDistributeDetailDao = dao;
this.dao = dao;
}
}

View File

@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao;
* 主数据视图表(mdm_module_view: table)表数据库访问层
*
* @author makejava
* @since 2024-05-30 17:03:24
* @since 2024-06-03 08:48:37
*/
public interface IMdmModuleViewDao extends IBaseDao<MdmModuleViewEntity, String> {

View File

@ -8,7 +8,7 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
* 主数据视图表(MdmModuleView)表数据库访问层
*
* @author makejava
* @since 2024-05-30 17:03:24
* @since 2024-06-03 08:48:37
*/
@Repository(value = "MdmModuleViewDaoImpl")
public class MdmModuleViewDaoImpl extends MybatisGenericDao<MdmModuleViewEntity, String> implements IMdmModuleViewDao{

View File

@ -6,7 +6,7 @@ import com.hzya.frame.web.entity.BaseEntity;
* 主数据视图表(MdmModuleView)实体类
*
* @author makejava
* @since 2024-05-30 17:03:24
* @since 2024-06-03 08:48:37
*/
public class MdmModuleViewEntity extends BaseEntity {

View File

@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService;
* 主数据视图表(MdmModuleView)表服务接口
*
* @author makejava
* @since 2024-05-30 17:03:24
* @since 2024-06-03 08:48:37
*/
public interface IMdmModuleViewService extends IBaseService<MdmModuleViewEntity, String>{
}

View File

@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService;
* 主数据视图表(MdmModuleView)表服务实现类
*
* @author makejava
* @since 2024-05-30 17:03:24
* @since 2024-06-03 08:48:37
*/
@Service(value = "mdmModuleViewService")
public class MdmModuleViewServiceImpl extends BaseService<MdmModuleViewEntity, String> implements IMdmModuleViewService {

View File

@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao;
* 主数据视图按钮表(mdm_module_view_button: table)表数据库访问层
*
* @author makejava
* @since 2024-05-30 17:05:15
* @since 2024-06-03 08:48:46
*/
public interface IMdmModuleViewButtonDao extends IBaseDao<MdmModuleViewButtonEntity, String> {

View File

@ -8,7 +8,7 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
* 主数据视图按钮表(MdmModuleViewButton)表数据库访问层
*
* @author makejava
* @since 2024-05-30 17:05:15
* @since 2024-06-03 08:48:46
*/
@Repository(value = "MdmModuleViewButtonDaoImpl")
public class MdmModuleViewButtonDaoImpl extends MybatisGenericDao<MdmModuleViewButtonEntity, String> implements IMdmModuleViewButtonDao{

View File

@ -6,7 +6,7 @@ import com.hzya.frame.web.entity.BaseEntity;
* 主数据视图按钮表(MdmModuleViewButton)实体类
*
* @author makejava
* @since 2024-05-30 17:05:15
* @since 2024-06-03 08:48:46
*/
public class MdmModuleViewButtonEntity extends BaseEntity {

View File

@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService;
* 主数据视图按钮表(MdmModuleViewButton)表服务接口
*
* @author makejava
* @since 2024-05-30 17:05:15
* @since 2024-06-03 08:48:46
*/
public interface IMdmModuleViewButtonService extends IBaseService<MdmModuleViewButtonEntity, String>{
}

View File

@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService;
* 主数据视图按钮表(MdmModuleViewButton)表服务实现类
*
* @author makejava
* @since 2024-05-30 17:05:15
* @since 2024-06-03 08:48:46
*/
@Service(value = "mdmModuleViewButtonService")
public class MdmModuleViewButtonServiceImpl extends BaseService<MdmModuleViewButtonEntity, String> implements IMdmModuleViewButtonService {

View File

@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao;
* 主数据视图明细表(mdm_module_view_detail: table)表数据库访问层
*
* @author makejava
* @since 2024-05-30 17:04:17
* @since 2024-06-03 08:48:55
*/
public interface IMdmModuleViewDetailDao extends IBaseDao<MdmModuleViewDetailEntity, String> {

View File

@ -8,7 +8,7 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
* 主数据视图明细表(MdmModuleViewDetail)表数据库访问层
*
* @author makejava
* @since 2024-05-30 17:04:17
* @since 2024-06-03 08:48:55
*/
@Repository(value = "MdmModuleViewDetailDaoImpl")
public class MdmModuleViewDetailDaoImpl extends MybatisGenericDao<MdmModuleViewDetailEntity, String> implements IMdmModuleViewDetailDao{

View File

@ -6,7 +6,7 @@ import com.hzya.frame.web.entity.BaseEntity;
* 主数据视图明细表(MdmModuleViewDetail)实体类
*
* @author makejava
* @since 2024-05-30 17:04:17
* @since 2024-06-03 08:48:55
*/
public class MdmModuleViewDetailEntity extends BaseEntity {

View File

@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService;
* 主数据视图明细表(MdmModuleViewDetail)表服务接口
*
* @author makejava
* @since 2024-05-30 17:04:17
* @since 2024-06-03 08:48:55
*/
public interface IMdmModuleViewDetailService extends IBaseService<MdmModuleViewDetailEntity, String>{
}

View File

@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService;
* 主数据视图明细表(MdmModuleViewDetail)表服务实现类
*
* @author makejava
* @since 2024-05-30 17:04:17
* @since 2024-06-03 08:48:55
*/
@Service(value = "mdmModuleViewDetailService")
public class MdmModuleViewDetailServiceImpl extends BaseService<MdmModuleViewDetailEntity, String> implements IMdmModuleViewDetailService {