主数据修改
This commit is contained in:
parent
fe32e653d8
commit
e223dbd22d
|
@ -73,7 +73,6 @@ public interface IBaseDao<E extends Serializable, PK extends Serializable> {
|
|||
* @return
|
||||
*/
|
||||
int delete(String paramString, Object paramObject);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
* @param paramString sqlMapperID
|
||||
|
@ -178,6 +177,8 @@ public interface IBaseDao<E extends Serializable, PK extends Serializable> {
|
|||
*/
|
||||
Integer getCount(E paramE);
|
||||
|
||||
Integer getCount(String statement,Object baseEntity);
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param paramString mapperID
|
||||
|
|
|
@ -276,6 +276,11 @@ public abstract class MybatisGenericDao<E extends Serializable, PK extends Seria
|
|||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getCount(String statement,Object baseEntity) {
|
||||
Integer totalCount = this.sqlSession.selectOne(statement, baseEntity);
|
||||
return totalCount;
|
||||
}
|
||||
public List<E> query(Object baseEntity) {
|
||||
|
||||
Assert.notNull(baseEntity, "query baseEntity :不能为NULL");
|
||||
|
|
|
@ -2,6 +2,7 @@ package com.hzya.frame.mdm.entity;
|
|||
|
||||
|
||||
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity;
|
||||
import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -12,6 +13,8 @@ public class MdmDto {
|
|||
private Long mdmCode;
|
||||
//单据编码规则
|
||||
private List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntityList;
|
||||
//字段规则
|
||||
private List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRuleEntities;
|
||||
//主数据主表
|
||||
private MdmModuleDbEntity mainMdmModuleDb;
|
||||
//主数据子表
|
||||
|
@ -20,6 +23,8 @@ public class MdmDto {
|
|||
|
||||
//id
|
||||
private String id;
|
||||
//id
|
||||
private String fieldId;
|
||||
//3、新增4、修改 5、查看
|
||||
private String showType;
|
||||
//分页
|
||||
|
@ -201,5 +206,21 @@ public class MdmDto {
|
|||
public void setUpId(String upId) {
|
||||
this.upId = upId;
|
||||
}
|
||||
|
||||
public List<MdmModuleDbFiledsRuleEntity> getMdmModuleDbFiledsRuleEntities() {
|
||||
return mdmModuleDbFiledsRuleEntities;
|
||||
}
|
||||
|
||||
public void setMdmModuleDbFiledsRuleEntities(List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRuleEntities) {
|
||||
this.mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleEntities;
|
||||
}
|
||||
|
||||
public String getFieldId() {
|
||||
return fieldId;
|
||||
}
|
||||
|
||||
public void setFieldId(String fieldId) {
|
||||
this.fieldId = fieldId;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,10 @@ import java.util.List;
|
|||
public class MdmModuleViewVo {
|
||||
|
||||
|
||||
/** 主数据模版ID */
|
||||
private String mdmId;
|
||||
/** 类型1、查询2、列表3、新增4、修改 5、查看 */
|
||||
private String viewType;
|
||||
//模版
|
||||
private MdmModuleViewEntity mdmModuleViewEntity;
|
||||
//新增
|
||||
|
@ -131,6 +135,20 @@ public class MdmModuleViewVo {
|
|||
this.dbButtonFiled = dbButtonFiled;
|
||||
}
|
||||
|
||||
public String getMdmId() {
|
||||
return mdmId;
|
||||
}
|
||||
|
||||
public void setMdmId(String mdmId) {
|
||||
this.mdmId = mdmId;
|
||||
}
|
||||
|
||||
public String getViewType() {
|
||||
return viewType;
|
||||
}
|
||||
|
||||
public void setViewType(String viewType) {
|
||||
this.viewType = viewType;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ 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.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
|
||||
import com.hzya.frame.sys.entity.FormmainDeleteDto;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
@ -26,6 +27,7 @@ public interface IMdmModuleDao extends IBaseDao<MdmModuleEntity, String> {
|
|||
Integer checkTable(Map<String, String> maps);
|
||||
Integer createTable(Map<String, Object> maps);
|
||||
Integer alterTable(Map<String, Object> maps);
|
||||
Integer alterTableField(MdmModuleDbFiledsEntity entity);
|
||||
Integer alterTableName(Map<String, String> maps);
|
||||
List<HashMap<String, Object>> queryMdmShowData(MdmQuery entity);
|
||||
List<HashMap<String, Object>> queryTemplateDataMore(MdmDto entity);
|
||||
|
@ -39,5 +41,11 @@ public interface IMdmModuleDao extends IBaseDao<MdmModuleEntity, String> {
|
|||
|
||||
List<HashMap<String, Object>> queryDataAll(MdmDto entity);
|
||||
|
||||
Integer deleteMdmModuleEntity(MdmModuleEntity entity);
|
||||
|
||||
Integer queryMainCount(MdmQuery mdmQuery);
|
||||
|
||||
Integer deleteTable(Map<String, Object> maps);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ 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.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
|
||||
import com.hzya.frame.sys.entity.FormmainDeleteDto;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
|
@ -45,6 +46,19 @@ public class MdmModuleDaoImpl extends MybatisGenericDao<MdmModuleEntity, String>
|
|||
List<HashMap<String, Object>> o = (List<HashMap<String, Object>>) super.selectList(getSqlIdPrifx() + "queryDataAll", entity);
|
||||
return o;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer deleteMdmModuleEntity(MdmModuleEntity entity) {
|
||||
Integer o = (Integer) super.delete(getSqlIdPrifx() + "deleteMdmModuleEntity", entity);
|
||||
return o;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer queryMainCount(MdmQuery entity) {
|
||||
Integer o = (Integer) super.getCount(getSqlIdPrifx() + "queryMainCount", entity);
|
||||
return o;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer checkData(Map<String, String> maps) {
|
||||
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "checkData", maps);
|
||||
|
@ -105,11 +119,22 @@ public class MdmModuleDaoImpl extends MybatisGenericDao<MdmModuleEntity, String>
|
|||
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "createTable", maps);
|
||||
return o;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer deleteTable(Map<String, Object> maps) {
|
||||
Integer o = (Integer) super.delete(getSqlIdPrifx() + "deleteTable", maps);
|
||||
return o;
|
||||
}
|
||||
@Override
|
||||
public Integer alterTable(Map<String, Object> maps) {
|
||||
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "alterTable", maps);
|
||||
return o;
|
||||
}
|
||||
@Override
|
||||
public Integer alterTableField(MdmModuleDbFiledsEntity entity) {
|
||||
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "alterTableField", entity);
|
||||
return o;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer alterTableName(Map<String, String> maps) {
|
||||
|
|
|
@ -2,26 +2,26 @@
|
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.mdm.mdmModule.dao.impl.MdmModuleDaoImpl">
|
||||
|
||||
<resultMap id="get-MdmModuleEntity-result" type="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity" >
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="mdmName" column="mdm_name" jdbcType="VARCHAR"/>
|
||||
<result property="mdmLogo" column="mdm_logo" jdbcType="VARCHAR"/>
|
||||
<result property="mdmCode" column="mdm_code" jdbcType="INTEGER"/>
|
||||
<result property="mdmType" column="mdm_type" jdbcType="VARCHAR"/>
|
||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||
<result property="createUser" column="createUser" jdbcType="VARCHAR"/>
|
||||
<result property="modifyUser" column="modifyUser" 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>
|
||||
<resultMap id="get-MdmModuleEntity-result" type="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="mdmName" column="mdm_name" jdbcType="VARCHAR"/>
|
||||
<result property="mdmLogo" column="mdm_logo" jdbcType="VARCHAR"/>
|
||||
<result property="mdmCode" column="mdm_code" jdbcType="INTEGER"/>
|
||||
<result property="mdmType" column="mdm_type" jdbcType="VARCHAR"/>
|
||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||
<result property="createUser" column="createUser" jdbcType="VARCHAR"/>
|
||||
<result property="modifyUser" column="modifyUser" 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 = "MdmModuleEntity_Base_Column_List">
|
||||
<sql id="MdmModuleEntity_Base_Column_List">
|
||||
id
|
||||
,mdm_name
|
||||
,mdm_logo
|
||||
|
@ -40,227 +40,243 @@
|
|||
<!--通过ID获取数据 -->
|
||||
<select id="entity_get" resultMap="get-MdmModuleEntity-result">
|
||||
select
|
||||
<include refid="MdmModuleEntity_Base_Column_List" />
|
||||
<include refid="MdmModuleEntity_Base_Column_List"/>
|
||||
from mdm_module where id = #{ id } and sts='Y'
|
||||
</select>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-MdmModuleEntity-result" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||
select
|
||||
<include refid="MdmModuleEntity_Base_Column_List" />
|
||||
from mdm_module
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="mdmName != null and mdmName != ''"> and mdm_name = #{mdmName} </if>
|
||||
<if test="mdmLogo != null and mdmLogo != ''"> and mdm_logo = #{mdmLogo} </if>
|
||||
<if test="mdmCode != null"> and mdm_code = #{mdmCode} </if>
|
||||
<if test="mdmType != null and mdmType != ''"> and mdm_type = #{mdmType} </if>
|
||||
<if test="remark != null and remark != ''"> and remark = #{remark} </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>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-MdmModuleEntity-result"
|
||||
parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||
select
|
||||
<include refid="MdmModuleEntity_Base_Column_List"/>
|
||||
from mdm_module
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''">and id = #{id}</if>
|
||||
<if test="mdmName != null and mdmName != ''">and mdm_name = #{mdmName}</if>
|
||||
<if test="mdmLogo != null and mdmLogo != ''">and mdm_logo = #{mdmLogo}</if>
|
||||
<if test="mdmCode != null">and mdm_code = #{mdmCode}</if>
|
||||
<if test="mdmType != null and mdmType != ''">and mdm_type = #{mdmType}</if>
|
||||
<if test="remark != null and remark != ''">and remark = #{remark}</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.mdmModule.entity.MdmModuleEntity">
|
||||
select count(1) from mdm_module
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="mdmName != null and mdmName != ''"> and mdm_name = #{mdmName} </if>
|
||||
<if test="mdmLogo != null and mdmLogo != ''"> and mdm_logo = #{mdmLogo} </if>
|
||||
<if test="mdmCode != null"> and mdm_code = #{mdmCode} </if>
|
||||
<if test="mdmType != null and mdmType != ''"> and mdm_type = #{mdmType} </if>
|
||||
<if test="remark != null and remark != ''"> and remark = #{remark} </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>
|
||||
</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.mdmModule.entity.MdmModuleEntity">
|
||||
select count(1) from mdm_module
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''">and id = #{id}</if>
|
||||
<if test="mdmName != null and mdmName != ''">and mdm_name = #{mdmName}</if>
|
||||
<if test="mdmLogo != null and mdmLogo != ''">and mdm_logo = #{mdmLogo}</if>
|
||||
<if test="mdmCode != null">and mdm_code = #{mdmCode}</if>
|
||||
<if test="mdmType != null and mdmType != ''">and mdm_type = #{mdmType}</if>
|
||||
<if test="remark != null and remark != ''">and remark = #{remark}</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>
|
||||
</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-MdmModuleEntity-result" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||
select
|
||||
<include refid="MdmModuleEntity_Base_Column_List" />
|
||||
from mdm_module
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||
<if test="mdmName != null and mdmName != ''"> and mdm_name like concat('%',#{mdmName},'%') </if>
|
||||
<if test="mdmLogo != null and mdmLogo != ''"> and mdm_logo like concat('%',#{mdmLogo},'%') </if>
|
||||
<if test="mdmCode != null"> and mdm_code like concat('%',#{mdmCode},'%') </if>
|
||||
<if test="mdmType != null and mdmType != ''"> and mdm_type like concat('%',#{mdmType},'%') </if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%',#{remark},'%') </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>
|
||||
<select id="entity_list_like" resultMap="get-MdmModuleEntity-result"
|
||||
parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||
select
|
||||
<include refid="MdmModuleEntity_Base_Column_List"/>
|
||||
from mdm_module
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
||||
<if test="mdmName != null and mdmName != ''">and mdm_name like concat('%',#{mdmName},'%')</if>
|
||||
<if test="mdmLogo != null and mdmLogo != ''">and mdm_logo like concat('%',#{mdmLogo},'%')</if>
|
||||
<if test="mdmCode != null">and mdm_code like concat('%',#{mdmCode},'%')</if>
|
||||
<if test="mdmType != null and mdmType != ''">and mdm_type like concat('%',#{mdmType},'%')</if>
|
||||
<if test="remark != null and remark != ''">and remark like concat('%',#{remark},'%')</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>
|
||||
</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="MdmModuleentity_list_or" resultMap="get-MdmModuleEntity-result" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||
select
|
||||
<include refid="MdmModuleEntity_Base_Column_List" />
|
||||
from mdm_module
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||
<if test="mdmName != null and mdmName != ''"> or mdm_name = #{mdmName} </if>
|
||||
<if test="mdmLogo != null and mdmLogo != ''"> or mdm_logo = #{mdmLogo} </if>
|
||||
<if test="mdmCode != null"> or mdm_code = #{mdmCode} </if>
|
||||
<if test="mdmType != null and mdmType != ''"> or mdm_type = #{mdmType} </if>
|
||||
<if test="remark != null and remark != ''"> or remark = #{remark} </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>
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="MdmModuleentity_list_or" resultMap="get-MdmModuleEntity-result"
|
||||
parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||
select
|
||||
<include refid="MdmModuleEntity_Base_Column_List"/>
|
||||
from mdm_module
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''">or id = #{id}</if>
|
||||
<if test="mdmName != null and mdmName != ''">or mdm_name = #{mdmName}</if>
|
||||
<if test="mdmLogo != null and mdmLogo != ''">or mdm_logo = #{mdmLogo}</if>
|
||||
<if test="mdmCode != null">or mdm_code = #{mdmCode}</if>
|
||||
<if test="mdmType != null and mdmType != ''">or mdm_type = #{mdmType}</if>
|
||||
<if test="remark != null and remark != ''">or remark = #{remark}</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>
|
||||
</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.mdmModule.entity.MdmModuleEntity" >
|
||||
insert into mdm_module(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
<if test="mdmName != null and mdmName != ''"> mdm_name , </if>
|
||||
<if test="mdmLogo != null and mdmLogo != ''"> mdm_logo , </if>
|
||||
<if test="mdmCode != null"> mdm_code , </if>
|
||||
<if test="mdmCode == null"> mdm_code , </if>
|
||||
<if test="mdmType != null and mdmType != ''"> mdm_type , </if>
|
||||
<if test="remark != null and remark != ''"> remark , </if>
|
||||
<if test="sorts != null"> sorts , </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||
<if test="create_time != null"> create_time , </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
||||
<if test="modify_time != null"> modify_time , </if>
|
||||
<if test="sts != null and sts != ''"> sts , </if>
|
||||
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> #{id} ,</if>
|
||||
<if test="mdmName != null and mdmName != ''"> #{mdmName} ,</if>
|
||||
<if test="mdmLogo != null and mdmLogo != ''"> #{mdmLogo} ,</if>
|
||||
<if test="mdmCode != null"> #{mdmCode} ,</if>
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||
insert into mdm_module(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id ,</if>
|
||||
<if test="mdmName != null and mdmName != ''">mdm_name ,</if>
|
||||
<if test="mdmLogo != null and mdmLogo != ''">mdm_logo ,</if>
|
||||
<if test="mdmCode != null">mdm_code ,</if>
|
||||
<if test="mdmCode == null">mdm_code ,</if>
|
||||
<if test="mdmType != null and mdmType != ''">mdm_type ,</if>
|
||||
<if test="remark != null and remark != ''">remark ,</if>
|
||||
<if test="sorts != null">sorts ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
||||
<if test="create_time != null">create_time ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
||||
<if test="modify_time != null">modify_time ,</if>
|
||||
<if test="sts != null and sts != ''">sts ,</if>
|
||||
<if test="org_id != null and org_id != ''">org_id ,</if>
|
||||
<if test="companyId != null and companyId != ''">company_id ,</if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">#{id} ,</if>
|
||||
<if test="mdmName != null and mdmName != ''">#{mdmName} ,</if>
|
||||
<if test="mdmLogo != null and mdmLogo != ''">#{mdmLogo} ,</if>
|
||||
<if test="mdmCode != null">#{mdmCode} ,</if>
|
||||
<if test="mdmCode == null ">(SELECT IFNULL(MAX(b.mdm_code)+1,10001) AS mdmCode FROM mdm_module b ),</if>
|
||||
<if test="mdmType != null and mdmType != ''"> #{mdmType} ,</if>
|
||||
<if test="remark != null and remark != ''"> #{remark} ,</if>
|
||||
<if test="sorts != null"> #{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||
<if test="create_time != null"> #{create_time} ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
||||
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into mdm_module(mdm_name, mdm_logo, mdm_code, mdm_type, remark, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.mdmName},#{entity.mdmLogo},#{entity.mdmCode},#{entity.mdmType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into mdm_module(mdm_name, mdm_logo, mdm_code, mdm_type, remark, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.mdmName},#{entity.mdmLogo},#{entity.mdmCode},#{entity.mdmType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
mdm_name = values(mdm_name),
|
||||
mdm_logo = values(mdm_logo),
|
||||
mdm_code = values(mdm_code),
|
||||
mdm_type = values(mdm_type),
|
||||
remark = values(remark),
|
||||
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.mdmModule.entity.MdmModuleEntity" >
|
||||
update mdm_module set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="mdmName != null and mdmName != ''"> mdm_name = #{mdmName},</if>
|
||||
<if test="mdmLogo != null and mdmLogo != ''"> mdm_logo = #{mdmLogo},</if>
|
||||
<if test="mdmCode != null"> mdm_code = #{mdmCode},</if>
|
||||
<if test="mdmType != null and mdmType != ''"> mdm_type = #{mdmType},</if>
|
||||
<if test="remark != null and remark != ''"> remark = #{remark},</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.mdmModule.entity.MdmModuleEntity" >
|
||||
<if test="mdmType != null and mdmType != ''">#{mdmType} ,</if>
|
||||
<if test="remark != null and remark != ''">#{remark} ,</if>
|
||||
<if test="sorts != null">#{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
||||
<if test="create_time != null">#{create_time} ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
||||
<if test="modify_time != null">#{modify_time} ,</if>
|
||||
<if test="sts != null and sts != ''">#{sts} ,</if>
|
||||
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
||||
<if test="companyId != null and companyId != ''">#{companyId} ,</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch">
|
||||
insert into mdm_module(mdm_name, mdm_logo, mdm_code, mdm_type, remark, create_user_id, create_time,
|
||||
modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.mdmName},#{entity.mdmLogo},#{entity.mdmCode},#{entity.mdmType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},
|
||||
'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch">
|
||||
insert into mdm_module(mdm_name, mdm_logo, mdm_code, mdm_type, remark, create_user_id, create_time,
|
||||
modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.mdmName},#{entity.mdmLogo},#{entity.mdmCode},#{entity.mdmType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
mdm_name = values(mdm_name),
|
||||
mdm_logo = values(mdm_logo),
|
||||
mdm_code = values(mdm_code),
|
||||
mdm_type = values(mdm_type),
|
||||
remark = values(remark),
|
||||
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.mdmModule.entity.MdmModuleEntity">
|
||||
update mdm_module set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="mdmName != null and mdmName != ''">mdm_name = #{mdmName},</if>
|
||||
<if test="mdmLogo != null and mdmLogo != ''">mdm_logo = #{mdmLogo},</if>
|
||||
<if test="mdmCode != null">mdm_code = #{mdmCode},</if>
|
||||
<if test="mdmType != null and mdmType != ''">mdm_type = #{mdmType},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</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.mdmModule.entity.MdmModuleEntity">
|
||||
update mdm_module 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.mdmModule.entity.MdmModuleEntity" >
|
||||
update mdm_module 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="mdmName != null and mdmName != ''"> and mdm_name = #{mdmName} </if>
|
||||
<if test="mdmLogo != null and mdmLogo != ''"> and mdm_logo = #{mdmLogo} </if>
|
||||
<if test="mdmCode != null"> and mdm_code = #{mdmCode} </if>
|
||||
<if test="mdmType != null and mdmType != ''"> and mdm_type = #{mdmType} </if>
|
||||
<if test="remark != null and remark != ''"> and remark = #{remark} </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>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="entity_logicDelete_Multi_Condition" parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||
update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''">and id = #{id}</if>
|
||||
<if test="mdmName != null and mdmName != ''">and mdm_name = #{mdmName}</if>
|
||||
<if test="mdmLogo != null and mdmLogo != ''">and mdm_logo = #{mdmLogo}</if>
|
||||
<if test="mdmCode != null">and mdm_code = #{mdmCode}</if>
|
||||
<if test="mdmType != null and mdmType != ''">and mdm_type = #{mdmType}</if>
|
||||
<if test="remark != null and remark != ''">and remark = #{remark}</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">
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete from mdm_module where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTable" >
|
||||
DROP TABLE ${tableName}
|
||||
</delete>
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="queryMdm" resultMap="get-MdmModuleEntity-result" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||
<select id="queryMdm" resultMap="get-MdmModuleEntity-result"
|
||||
parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||
select
|
||||
a.id as id,
|
||||
a.mdm_name as mdm_name,
|
||||
|
@ -292,7 +308,7 @@ update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #
|
|||
<!--通过ID获取数据 -->
|
||||
<select id="getByMdmCode" resultMap="get-MdmModuleEntity-result">
|
||||
select
|
||||
<include refid="MdmModuleEntity_Base_Column_List" />
|
||||
<include refid="MdmModuleEntity_Base_Column_List"/>
|
||||
from mdm_module where mdm_code = #{ mdmCode } and sts='Y'
|
||||
</select>
|
||||
<!--通过ID获取数据 -->
|
||||
|
@ -307,35 +323,73 @@ update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #
|
|||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="createTable" resultType="java.lang.Integer">
|
||||
CREATE TABLE ${tableName} (
|
||||
<foreach collection="databaseFields" item="item" index="index">
|
||||
<choose>
|
||||
<when test="item.enName == 'id'.toString()">
|
||||
`id` varchar(50) NOT NULL COMMENT '唯一标识码',
|
||||
</when>
|
||||
<when test="item.enName == 'sorts'.toString()">
|
||||
`sorts` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '排序',
|
||||
</when>
|
||||
<otherwise >
|
||||
<choose>
|
||||
<when test="item.filedType == '1'.toString()">
|
||||
${item.enName} bigint(${item.filedLength}) DEFAULT NULL COMMENT #{item.chName},
|
||||
</when>
|
||||
<when test="item.filedType == '2'.toString()">
|
||||
${item.enName} decimal(${item.filedLength}) DEFAULT NULL COMMENT #{item.chName},
|
||||
</when>
|
||||
<when test="item.filedType == '3'.toString()">
|
||||
${item.enName} varchar(${item.filedLength}) DEFAULT NULL COMMENT #{item.chName},
|
||||
</when>
|
||||
<when test="item.filedType == '4'.toString()">
|
||||
${item.enName} datetime DEFAULT NULL COMMENT #{item.chName},
|
||||
</when>
|
||||
</choose>
|
||||
</otherwise>
|
||||
</choose>
|
||||
</foreach>
|
||||
<choose>
|
||||
<when test="tableType == '1'.toString()">
|
||||
`id` varchar(50) NOT NULL COMMENT '唯一标识码',
|
||||
`document_rule` varchar(50) DEFAULT NULL COMMENT '单据规则',
|
||||
`document_rule_num` bigint DEFAULT NULL COMMENT '单据规则流水号',
|
||||
`data_status` varchar(1) DEFAULT NULL COMMENT '数据状态 Y正常 N删除 F修改',
|
||||
`add_status` varchar(1) DEFAULT NULL COMMENT '新增数据状态 0待下发 1已下发',
|
||||
`update_status` varchar(1) DEFAULT NULL COMMENT '修改数据状态 0待下发 1已下发',
|
||||
`delete_status` varchar(1) DEFAULT NULL COMMENT '删除数据状态 0待下发 1已下发',
|
||||
`sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序',
|
||||
`create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id',
|
||||
`modify_time` datetime DEFAULT NULL COMMENT '修改时间',
|
||||
`sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)',
|
||||
`org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID',
|
||||
`company_id` varchar(50) DEFAULT NULL COMMENT '公司id',
|
||||
</when>
|
||||
<when test="tableType == '2'.toString()">
|
||||
`id` varchar(50) NOT NULL COMMENT '唯一标识码',
|
||||
`formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id',
|
||||
`data_status` varchar(1) DEFAULT NULL COMMENT '数据状态 Y正常 N删除 F修改',
|
||||
`sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序',
|
||||
`create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id',
|
||||
`modify_time` datetime DEFAULT NULL COMMENT '修改时间',
|
||||
`sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)',
|
||||
`org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID',
|
||||
`company_id` varchar(50) DEFAULT NULL COMMENT '公司id',
|
||||
</when>
|
||||
<when test="tableType == '3'.toString()">
|
||||
`id` varchar(50) NOT NULL COMMENT '唯一标识码',
|
||||
`formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id',
|
||||
`source_name` varchar(255) DEFAULT NULL COMMENT '来源名称',
|
||||
`code` varchar(255) DEFAULT NULL COMMENT '编码',
|
||||
`source_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '源数据',
|
||||
`option_type` varchar(255) DEFAULT NULL COMMENT '操作类型',
|
||||
`option_name` varchar(255) DEFAULT NULL COMMENT '操作人',
|
||||
`sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序',
|
||||
`create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id',
|
||||
`modify_time` datetime DEFAULT NULL COMMENT '修改时间',
|
||||
`sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)',
|
||||
`org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID',
|
||||
`company_id` varchar(50) DEFAULT NULL COMMENT '公司id',
|
||||
</when>
|
||||
<when test="tableType == '4'.toString()">
|
||||
`id` varchar(50) NOT NULL COMMENT '唯一标识码',
|
||||
`formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id',
|
||||
`target_app` varchar(255) DEFAULT NULL COMMENT '目标应用',
|
||||
`target_api` varchar(255) DEFAULT NULL COMMENT '目标api',
|
||||
`source_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '源数据',
|
||||
`option_type` varchar(255) DEFAULT NULL COMMENT '操作类型',
|
||||
`sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序',
|
||||
`create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id',
|
||||
`modify_time` datetime DEFAULT NULL COMMENT '修改时间',
|
||||
`sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)',
|
||||
`org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID',
|
||||
`company_id` varchar(50) DEFAULT NULL COMMENT '公司id',
|
||||
</when>
|
||||
</choose>
|
||||
PRIMARY KEY (`sorts`,`id`) USING BTREE
|
||||
) ENGINE = INNODB DEFAULT CHARSET = utf8mb4 COMMENT = #{tableRemark}
|
||||
</select>
|
||||
|
@ -343,6 +397,8 @@ update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
<!--通过ID获取数据 -->
|
||||
<select id="alterTable" resultType="java.lang.Integer">
|
||||
ALTER TABLE ${tableName}
|
||||
|
@ -400,6 +456,77 @@ update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #
|
|||
</trim>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="alterTableField" resultType="java.lang.Integer">
|
||||
|
||||
ALTER TABLE ${dbName}
|
||||
<choose>
|
||||
<when test="filedType == '1'.toString()">
|
||||
<choose>
|
||||
<when test="dataType == '1'.toString()">
|
||||
MODIFY COLUMN ${enName} bigint(${filedLength}) DEFAULT NULL COMMENT
|
||||
#{chName}
|
||||
</when>
|
||||
<when test="dataType == '3'.toString()">
|
||||
drop COLUMN ${enName}
|
||||
</when>
|
||||
<otherwise>
|
||||
add COLUMN ${enName} bigint(${filedLength}) DEFAULT NULL COMMENT
|
||||
#{chName}
|
||||
</otherwise>
|
||||
</choose>
|
||||
</when>
|
||||
<when test="filedType == '3'.toString()">
|
||||
<choose>
|
||||
<when test="dataType == '1'.toString()">
|
||||
MODIFY COLUMN ${enName} varchar(${filedLength}) DEFAULT NULL
|
||||
COMMENT #{chName}
|
||||
</when>
|
||||
<when test="dataType == '3'.toString()">
|
||||
drop COLUMN ${enName}
|
||||
</when>
|
||||
<otherwise>
|
||||
add COLUMN ${enName} varchar(${filedLength}) DEFAULT NULL COMMENT
|
||||
#{chName}
|
||||
</otherwise>
|
||||
</choose>
|
||||
</when>
|
||||
|
||||
<when test="filedType == '2'.toString()">
|
||||
<choose>
|
||||
<when test="dataType == '1'.toString()">
|
||||
MODIFY COLUMN ${enName} decimal(${filedLength}) DEFAULT NULL COMMENT
|
||||
#{chName}
|
||||
</when>
|
||||
<when test="dataType == '3'.toString()">
|
||||
drop COLUMN ${enName}
|
||||
</when>
|
||||
<otherwise>
|
||||
add COLUMN ${enName} decimal(${filedLength}) DEFAULT NULL COMMENT
|
||||
#{chName}
|
||||
</otherwise>
|
||||
</choose>
|
||||
</when>
|
||||
<when test="filedType == '4'.toString()">
|
||||
<choose>
|
||||
<when test="dataType == '1'.toString()">
|
||||
MODIFY COLUMN ${enName} datetime DEFAULT NULL COMMENT #{chName}
|
||||
</when>
|
||||
<when test="dataType == '3'.toString()">
|
||||
drop COLUMN ${enName}
|
||||
</when>
|
||||
<otherwise>
|
||||
add COLUMN ${enName} datetime DEFAULT NULL COMMENT #{chName}
|
||||
</otherwise>
|
||||
</choose>
|
||||
</when>
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!--通过ID获取数据 -->
|
||||
<select id="alterTableName" resultType="java.lang.Integer">
|
||||
ALTER TABLE ${tableName} COMMENT = #{tableRemark}
|
||||
|
@ -496,7 +623,7 @@ update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #
|
|||
order by sorts asc
|
||||
</select>
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="checkData" resultType="Integer" >
|
||||
<select id="checkData" resultType="Integer">
|
||||
SELECT
|
||||
count(*)
|
||||
from
|
||||
|
@ -657,5 +784,15 @@ update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #
|
|||
order by sorts asc
|
||||
</select>
|
||||
|
||||
<!--通过mdmCode删除-->
|
||||
<delete id="deleteMdmModuleEntity" parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||
delete from mdm_module where mdm_code = #{mdmCode}
|
||||
</delete>
|
||||
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="queryMainCount" resultType="Integer" parameterType="com.hzya.frame.mdm.entity.MdmQuery">
|
||||
select count(1) from ${tableName} where sts='Y'
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
package com.hzya.frame.mdm.mdmModule.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
|
||||
/**
|
||||
* 主数据模版(MdmModule)表服务接口
|
||||
*
|
||||
|
@ -9,4 +12,334 @@ import com.hzya.frame.basedao.service.IBaseService;
|
|||
* @since 2024-06-03 08:46:29
|
||||
*/
|
||||
public interface IMdmModuleService extends IBaseService<MdmModuleEntity, String>{
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 查询所有主数据
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity queryMdm(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 删除主数据
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity deleteMdm(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-基本信息获取
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity getMdm(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-基本信息新增
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity saveMdm(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-基本信息修改(同步修改菜单名称)
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity updateMdm(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据源-单据规则获取
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity getMdmTableCodeRule(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据源-单据规则新增或修改
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity saveOrUpdateMdmTableCodeRule(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据源-数据表获取
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity queryMdmDb(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据源-数据表新增
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity saveMdmDb(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据源-数据表修改
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity updateMdmDb(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据源-数据表删除
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity deleteMdmDb(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据源-数据表字段获取
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity queryMdmDbField(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据源-数据表字段新增
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity saveMdmDbField(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据源-数据表字段修改
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity updateMdmDbField(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据源-数据表字段删除
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity deleteMdmDbField(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据源-数据表字段规则获取
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity queryMdmDbFieldRule(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据源-数据表字段规则修改
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity updateMdmDbFieldRule(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-显示信息-显示类型获取
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity queryMdmView(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-显示信息-显示类型保存
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity saveMdmView(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-显示信息-显示类型修改
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity updateMdmView(JSONObject jsonObject);
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-显示信息-显示字段获取
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity queryMdmViewField(JSONObject jsonObject);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-显示信息-显示字段设置保存
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity saveOrUpdateMdmViewField(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-显示信息-显示按钮获取
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity queryMdmViewButton(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-显示信息-显示按钮保存
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity saveOrUpdateMdmViewButton(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据来源-列表获取
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity queryMdmSource(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据来源保存
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity saveMdmSource(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据来源获取
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity getMdmSource(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据来源修改
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity updateMdmSource(JSONObject jsonObject);
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-数据来源删除
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity deleteMdmSource(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-分发设置-列表获取
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity queryMdmDistribute(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-分发设置保存
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity saveMdmDistribute(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-分发设置获取
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity getMdmDistribute(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-分发设置修改
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity updateMdmDistribute(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-分发设置删除
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity deleteMdmDistribute(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-写入日志-列表获取
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity queryMdmOptionLogPage(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-下发日志-列表获取
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity queryMdmDistributeLogPage(JSONObject jsonObject);
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -17,5 +17,7 @@ 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);
|
||||
|
||||
int deleteMdmModuleDb(MdmModuleDbEntity mdmModuleDbEntity);
|
||||
}
|
||||
|
||||
|
|
|
@ -37,5 +37,11 @@ public class MdmModuleDbDaoImpl extends MybatisGenericDao<MdmModuleDbEntity, Str
|
|||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteMdmModuleDb(MdmModuleDbEntity entity) {
|
||||
Integer o = (Integer) super.delete(getSqlIdPrifx() + "deleteMdmModuleDb", entity);
|
||||
return o;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -2,23 +2,23 @@
|
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.mdm.mdmModuleDb.dao.impl.MdmModuleDbDaoImpl">
|
||||
|
||||
<resultMap id="get-MdmModuleDbEntity-result" type="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity" >
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
||||
<result property="dbName" column="db_name" jdbcType="VARCHAR"/>
|
||||
<result property="dbType" column="db_type" jdbcType="VARCHAR"/>
|
||||
<result property="remark" column="remark" 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>
|
||||
<resultMap id="get-MdmModuleDbEntity-result" type="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
||||
<result property="dbName" column="db_name" jdbcType="VARCHAR"/>
|
||||
<result property="dbType" column="db_type" jdbcType="VARCHAR"/>
|
||||
<result property="remark" column="remark" 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 = "MdmModuleDbEntity_Base_Column_List">
|
||||
<sql id="MdmModuleDbEntity_Base_Column_List">
|
||||
id
|
||||
,mdm_id
|
||||
,db_name
|
||||
|
@ -33,209 +33,222 @@
|
|||
,org_id
|
||||
,company_id
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-MdmModuleDbEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||
select
|
||||
<include refid="MdmModuleDbEntity_Base_Column_List" />
|
||||
from mdm_module_db
|
||||
<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="dbName != null and dbName != ''"> and db_name = #{dbName} </if>
|
||||
<if test="dbType != null and dbType != ''"> and db_type = #{dbType} </if>
|
||||
<if test="remark != null and remark != ''"> and remark = #{remark} </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>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-MdmModuleDbEntity-result"
|
||||
parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||
select
|
||||
<include refid="MdmModuleDbEntity_Base_Column_List"/>
|
||||
from mdm_module_db
|
||||
<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="dbName != null and dbName != ''">and db_name = #{dbName}</if>
|
||||
<if test="dbType != null and dbType != ''">and db_type = #{dbType}</if>
|
||||
<if test="remark != null and remark != ''">and remark = #{remark}</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.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||
select count(1) from mdm_module_db
|
||||
<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="dbName != null and dbName != ''"> and db_name = #{dbName} </if>
|
||||
<if test="dbType != null and dbType != ''"> and db_type = #{dbType} </if>
|
||||
<if test="remark != null and remark != ''"> and remark = #{remark} </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>
|
||||
</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.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||
select count(1) from mdm_module_db
|
||||
<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="dbName != null and dbName != ''">and db_name = #{dbName}</if>
|
||||
<if test="dbType != null and dbType != ''">and db_type = #{dbType}</if>
|
||||
<if test="remark != null and remark != ''">and remark = #{remark}</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>
|
||||
</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-MdmModuleDbEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||
select
|
||||
<include refid="MdmModuleDbEntity_Base_Column_List" />
|
||||
from mdm_module_db
|
||||
<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="dbName != null and dbName != ''"> and db_name like concat('%',#{dbName},'%') </if>
|
||||
<if test="dbType != null and dbType != ''"> and db_type like concat('%',#{dbType},'%') </if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%',#{remark},'%') </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>
|
||||
<select id="entity_list_like" resultMap="get-MdmModuleDbEntity-result"
|
||||
parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||
select
|
||||
<include refid="MdmModuleDbEntity_Base_Column_List"/>
|
||||
from mdm_module_db
|
||||
<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="dbName != null and dbName != ''">and db_name like concat('%',#{dbName},'%')</if>
|
||||
<if test="dbType != null and dbType != ''">and db_type like concat('%',#{dbType},'%')</if>
|
||||
<if test="remark != null and remark != ''">and remark like concat('%',#{remark},'%')</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>
|
||||
</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="MdmModuleDbentity_list_or" resultMap="get-MdmModuleDbEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||
select
|
||||
<include refid="MdmModuleDbEntity_Base_Column_List" />
|
||||
from mdm_module_db
|
||||
<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="dbName != null and dbName != ''"> or db_name = #{dbName} </if>
|
||||
<if test="dbType != null and dbType != ''"> or db_type = #{dbType} </if>
|
||||
<if test="remark != null and remark != ''"> or remark = #{remark} </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>
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="MdmModuleDbentity_list_or" resultMap="get-MdmModuleDbEntity-result"
|
||||
parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||
select
|
||||
<include refid="MdmModuleDbEntity_Base_Column_List"/>
|
||||
from mdm_module_db
|
||||
<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="dbName != null and dbName != ''">or db_name = #{dbName}</if>
|
||||
<if test="dbType != null and dbType != ''">or db_type = #{dbType}</if>
|
||||
<if test="remark != null and remark != ''">or remark = #{remark}</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>
|
||||
</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.mdmModuleDb.entity.MdmModuleDbEntity" >
|
||||
insert into mdm_module_db(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
<if test="mdmId != null and mdmId != ''"> mdm_id , </if>
|
||||
<if test="dbName != null and dbName != ''"> db_name , </if>
|
||||
<if test="dbType != null and dbType != ''"> db_type , </if>
|
||||
<if test="remark != null and remark != ''"> remark , </if>
|
||||
<if test="sorts != null"> sorts , </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||
<if test="create_time != null"> create_time , </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
||||
<if test="modify_time != null"> modify_time , </if>
|
||||
<if test="sts != null and sts != ''"> sts , </if>
|
||||
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> #{id} ,</if>
|
||||
<if test="mdmId != null and mdmId != ''"> #{mdmId} ,</if>
|
||||
<if test="dbName != null and dbName != ''"> #{dbName} ,</if>
|
||||
<if test="dbType != null and dbType != ''"> #{dbType} ,</if>
|
||||
<if test="remark != null and remark != ''"> #{remark} ,</if>
|
||||
<if test="sorts != null"> #{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||
<if test="create_time != null"> #{create_time} ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
||||
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into mdm_module_db(mdm_id, db_name, db_type, remark, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.mdmId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into mdm_module_db(mdm_id, db_name, db_type, remark, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.mdmId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
mdm_id = values(mdm_id),
|
||||
db_name = values(db_name),
|
||||
db_type = values(db_type),
|
||||
remark = values(remark),
|
||||
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.mdmModuleDb.entity.MdmModuleDbEntity" >
|
||||
update mdm_module_db set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="mdmId != null and mdmId != ''"> mdm_id = #{mdmId},</if>
|
||||
<if test="dbName != null and dbName != ''"> db_name = #{dbName},</if>
|
||||
<if test="dbType != null and dbType != ''"> db_type = #{dbType},</if>
|
||||
<if test="remark != null and remark != ''"> remark = #{remark},</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.mdmModuleDb.entity.MdmModuleDbEntity" >
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||
insert into mdm_module_db(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id ,</if>
|
||||
<if test="mdmId != null and mdmId != ''">mdm_id ,</if>
|
||||
<if test="dbName != null and dbName != ''">db_name ,</if>
|
||||
<if test="dbType != null and dbType != ''">db_type ,</if>
|
||||
<if test="remark != null and remark != ''">remark ,</if>
|
||||
<if test="sorts != null">sorts ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
||||
<if test="create_time != null">create_time ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
||||
<if test="modify_time != null">modify_time ,</if>
|
||||
<if test="sts != null and sts != ''">sts ,</if>
|
||||
<if test="org_id != null and org_id != ''">org_id ,</if>
|
||||
<if test="companyId != null and companyId != ''">company_id ,</if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">#{id} ,</if>
|
||||
<if test="mdmId != null and mdmId != ''">#{mdmId} ,</if>
|
||||
<if test="dbName != null and dbName != ''">#{dbName} ,</if>
|
||||
<if test="dbType != null and dbType != ''">#{dbType} ,</if>
|
||||
<if test="remark != null and remark != ''">#{remark} ,</if>
|
||||
<if test="sorts != null">#{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
||||
<if test="create_time != null">#{create_time} ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
||||
<if test="modify_time != null">#{modify_time} ,</if>
|
||||
<if test="sts != null and sts != ''">#{sts} ,</if>
|
||||
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
||||
<if test="companyId != null and companyId != ''">#{companyId} ,</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch">
|
||||
insert into mdm_module_db(mdm_id, db_name, db_type, remark, create_user_id, create_time, modify_user_id,
|
||||
modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.mdmId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},
|
||||
'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch">
|
||||
insert into mdm_module_db(mdm_id, db_name, db_type, remark, create_user_id, create_time, modify_user_id,
|
||||
modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.mdmId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
mdm_id = values(mdm_id),
|
||||
db_name = values(db_name),
|
||||
db_type = values(db_type),
|
||||
remark = values(remark),
|
||||
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.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||
update mdm_module_db set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="mdmId != null and mdmId != ''">mdm_id = #{mdmId},</if>
|
||||
<if test="dbName != null and dbName != ''">db_name = #{dbName},</if>
|
||||
<if test="dbType != null and dbType != ''">db_type = #{dbType},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</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.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||
update mdm_module_db 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.mdmModuleDb.entity.MdmModuleDbEntity" >
|
||||
update mdm_module_db 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="dbName != null and dbName != ''"> and db_name = #{dbName} </if>
|
||||
<if test="dbType != null and dbType != ''"> and db_type = #{dbType} </if>
|
||||
<if test="remark != null and remark != ''"> and remark = #{remark} </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>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="entity_logicDelete_Multi_Condition"
|
||||
parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||
update mdm_module_db set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
<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="dbName != null and dbName != ''">and db_name = #{dbName}</if>
|
||||
<if test="dbType != null and dbType != ''">and db_type = #{dbType}</if>
|
||||
<if test="remark != null and remark != ''">and remark = #{remark}</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">
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete from mdm_module_db where id = #{id}
|
||||
</delete>
|
||||
<select id="getServiceDataById" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
||||
|
@ -299,5 +312,9 @@ update mdm_module_db set sts= 'N' ,modify_time = #{modify_time},modify_user_id
|
|||
order by sorts asc
|
||||
</select>
|
||||
|
||||
<!--通过mdmCode删除-->
|
||||
<delete id="deleteMdmModuleDb" parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||
delete from mdm_module_db where mdm_id = #{mdmId}
|
||||
</delete>
|
||||
</mapper>
|
||||
|
||||
|
|
|
@ -11,5 +11,6 @@ import com.hzya.frame.basedao.dao.IBaseDao;
|
|||
*/
|
||||
public interface IMdmModuleDbFiledsDao extends IBaseDao<MdmModuleDbFiledsEntity, String> {
|
||||
|
||||
int deleteMdmModuleDbFileds(MdmModuleDbFiledsEntity entity);
|
||||
}
|
||||
|
||||
|
|
|
@ -12,6 +12,11 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
|||
*/
|
||||
@Repository(value = "MdmModuleDbFiledsDaoImpl")
|
||||
public class MdmModuleDbFiledsDaoImpl extends MybatisGenericDao<MdmModuleDbFiledsEntity, String> implements IMdmModuleDbFiledsDao{
|
||||
|
||||
|
||||
@Override
|
||||
public int deleteMdmModuleDbFileds(MdmModuleDbFiledsEntity entity) {
|
||||
Integer o = (Integer) super.delete(getSqlIdPrifx() + "deleteMdmModuleDbFileds", entity);
|
||||
return o;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,6 +5,8 @@ import java.util.List;
|
|||
|
||||
import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity;
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
import org.apache.poi.ss.formula.functions.T;
|
||||
|
||||
/**
|
||||
* 模版数据库字段表(MdmModuleDbFileds)实体类
|
||||
*
|
||||
|
@ -13,6 +15,8 @@ import com.hzya.frame.web.entity.BaseEntity;
|
|||
*/
|
||||
public class MdmModuleDbFiledsEntity extends BaseEntity {
|
||||
|
||||
/** 主数据模版ID */
|
||||
private String dbName;
|
||||
/** 主数据模版ID */
|
||||
private String mdmId;
|
||||
/** 模版数据库id */
|
||||
|
@ -51,6 +55,8 @@ public class MdmModuleDbFiledsEntity extends BaseEntity {
|
|||
private String roleValue;
|
||||
private List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRules;
|
||||
|
||||
//1、查询2、列表3、新增4、修改 5、查看
|
||||
private String fieldType;
|
||||
public String getMdmId() {
|
||||
return mdmId;
|
||||
}
|
||||
|
@ -186,5 +192,21 @@ public class MdmModuleDbFiledsEntity extends BaseEntity {
|
|||
public void setRoleValue(String roleValue) {
|
||||
this.roleValue = roleValue;
|
||||
}
|
||||
|
||||
public String getDbName() {
|
||||
return dbName;
|
||||
}
|
||||
|
||||
public void setDbName(String dbName) {
|
||||
this.dbName = dbName;
|
||||
}
|
||||
|
||||
public String getFieldType() {
|
||||
return fieldType;
|
||||
}
|
||||
|
||||
public void setFieldType(String fieldType) {
|
||||
this.fieldType = fieldType;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -326,6 +326,9 @@ update mdm_module_db_fileds set sts= 'N' ,modify_time = #{modify_time},modify_u
|
|||
<delete id="entity_delete">
|
||||
delete from mdm_module_db_fileds where id = #{id}
|
||||
</delete>
|
||||
|
||||
<!--通过mdmCode删除-->
|
||||
<delete id="deleteMdmModuleDbFileds" parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||
delete from mdm_module_db_fileds where mdm_id = #{mdmId}
|
||||
</delete>
|
||||
</mapper>
|
||||
|
||||
|
|
|
@ -11,5 +11,6 @@ import com.hzya.frame.basedao.dao.IBaseDao;
|
|||
*/
|
||||
public interface IMdmModuleDbFiledsRuleDao extends IBaseDao<MdmModuleDbFiledsRuleEntity, String> {
|
||||
|
||||
Integer queryUserMdm(MdmModuleDbFiledsRuleEntity queryCount);
|
||||
}
|
||||
|
||||
|
|
|
@ -12,6 +12,11 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
|||
*/
|
||||
@Repository(value = "MdmModuleDbFiledsRuleDaoImpl")
|
||||
public class MdmModuleDbFiledsRuleDaoImpl extends MybatisGenericDao<MdmModuleDbFiledsRuleEntity, String> implements IMdmModuleDbFiledsRuleDao{
|
||||
|
||||
|
||||
@Override
|
||||
public Integer queryUserMdm(MdmModuleDbFiledsRuleEntity queryCount) {
|
||||
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "queryUserMdm", queryCount);
|
||||
return o;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -283,5 +283,15 @@ update mdm_module_db_fileds_rule set sts= 'N' ,modify_time = #{modify_time},mod
|
|||
delete from mdm_module_db_fileds_rule where id = #{id}
|
||||
</delete>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="queryUserMdm" resultType="Integer" parameterType = "com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity">
|
||||
select count(1) from mdm_module_db_fileds_rule
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="mdmId != null and mdmId != ''"> and mdm_id != #{mdmId} </if>
|
||||
<if test="ruleCode != null and ruleCode != ''"> and rule_code = #{ruleCode} </if>
|
||||
<if test="ruleValue != null and ruleValue != ''"> and rule_value = #{ruleValue} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
|
|
|
@ -8,272 +8,264 @@ import com.hzya.frame.web.entity.JsonResultEntity;
|
|||
*/
|
||||
public interface IMdmService {
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据列表查询接口分页
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity queryMdmPage(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据列表查询接口列表
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity queryMdmList(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据新增
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity addMdm(JSONObject jsonObject);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据基本信息获取
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity queryMdmModule(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据基本信息修改
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity doSaveMdmModule(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据设置查询数据源
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
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 saveMdmModuleDb(JSONObject jsonObject);
|
||||
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据设置查询显示信息
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity queryMdmModuleView(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据设置修改显示信息
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity doSaveMdmModuleView(JSONObject jsonObject);
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据列表查询接口分页
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity queryMdmPage(JSONObject jsonObject);
|
||||
//
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据设置查询权限配置
|
||||
// * @Description 主数据列表查询接口列表
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity queryMdmModuleRule(JSONObject jsonObject);
|
||||
//JsonResultEntity queryMdmList(JSONObject jsonObject);
|
||||
//
|
||||
//
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据设置保存权限配置
|
||||
// * @Description 主数据新增
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity doSaveMdmModuleRule(JSONObject jsonObject);
|
||||
//JsonResultEntity addMdm(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 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 主数据业务数据
|
||||
// * @Description 主数据基本信息获取
|
||||
// * @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);
|
||||
//JsonResultEntity queryMdmModule(JSONObject jsonObject);
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据基本信息修改
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity doSaveMdmModule(JSONObject jsonObject);
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据设置查询数据源
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//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 saveMdmModuleDb(JSONObject jsonObject);
|
||||
//
|
||||
//
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据设置查询显示信息
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity queryMdmModuleView(JSONObject jsonObject);
|
||||
//
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 主数据设置修改显示信息
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity doSaveMdmModuleView(JSONObject jsonObject);
|
||||
////
|
||||
/////**
|
||||
//// * @param jsonObject
|
||||
//// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
//// * @Author lvleigang
|
||||
//// * @Description 主数据设置查询权限配置
|
||||
//// * @Date 9:40 上午 2023/10/18
|
||||
//// **/
|
||||
////JsonResultEntity queryMdmModuleRule(JSONObject jsonObject);
|
||||
////
|
||||
/////**
|
||||
//// * @param jsonObject
|
||||
//// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
//// * @Author lvleigang
|
||||
//// * @Description 主数据设置保存权限配置
|
||||
//// * @Date 9:40 上午 2023/10/18
|
||||
//// **/
|
||||
////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 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 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 queryMdmShowDistribute(JSONObject jsonObject);
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
|
@ -281,59 +273,67 @@ public interface IMdmService {
|
|||
// * @Description 主数据业务数据树结构
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//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 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);
|
||||
//JsonResultEntity queryMdmShowTreeData(JSONObject jsonObject);
|
||||
/////**
|
||||
//// * @param jsonObject
|
||||
//// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
//// * @Author lvleigang
|
||||
//// * @Description 主数据业务数据树结构
|
||||
//// * @Date 9:40 上午 2023/10/18
|
||||
//// **/
|
||||
////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 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 处理分发数据
|
||||
// * @Description 主数据删除业务数据
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity doMdmDistribute(JSONObject jsonObject);
|
||||
//JsonResultEntity deleteMdmShowDetailsData(JSONObject jsonObject);
|
||||
/////**
|
||||
//// * @param jsonObject
|
||||
//// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
//// * @Author lvleigang
|
||||
//// * @Description 处理分发数据
|
||||
//// * @Date 9:40 上午 2023/10/18
|
||||
//// **/
|
||||
////JsonResultEntity doMdmDistribute(JSONObject jsonObject);
|
||||
//
|
||||
|
||||
}
|
||||
|
|
|
@ -13,6 +13,8 @@ import com.hzya.frame.mdm.mdmModuleViewButton.entity.MdmModuleViewButtonEntity;
|
|||
import com.hzya.frame.mdm.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity;
|
||||
import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.springframework.cache.annotation.CacheEvict;
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
@ -21,7 +23,6 @@ import java.util.List;
|
|||
*/
|
||||
public interface IMdmServiceCache {
|
||||
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 获取模版主表
|
||||
|
@ -30,14 +31,24 @@ public interface IMdmServiceCache {
|
|||
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||
**/
|
||||
MdmModuleEntity getMdmModuleEntity(Long mdmCode);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 获取模版单据编码规则
|
||||
* @Description 修改模版主表
|
||||
* @Date 10:13 上午 2024/6/3
|
||||
* @param mdmTableCodeRuleEntity
|
||||
* @param entity
|
||||
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||
**/
|
||||
List<MdmTableCodeRuleEntity> queryMdmTableCodeRuleEntity(MdmTableCodeRuleEntity mdmTableCodeRuleEntity);
|
||||
void updateMdmModuleEntity(MdmModuleEntity entity);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 删除模版主表
|
||||
* @Date 10:13 上午 2024/6/3
|
||||
* @param entity
|
||||
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||
**/
|
||||
void deleteMdmModuleEntity(MdmModuleEntity entity);
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 获取模版表数据
|
||||
|
@ -46,6 +57,26 @@ public interface IMdmServiceCache {
|
|||
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||
**/
|
||||
List<MdmModuleDbEntity> queryMdmModuleDb(MdmModuleDbEntity queryDb);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 修改模版表数据
|
||||
* @Date 4:23 下午 2024/6/11
|
||||
* @param mdmId
|
||||
* @param mdmModuleDbEntities
|
||||
* @return void
|
||||
**/
|
||||
void saveOrUpdateMdmModuleDb(String mdmId, List<MdmModuleDbEntity> mdmModuleDbEntities);
|
||||
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 删除模版表数据
|
||||
* @Date 4:23 下午 2024/6/11
|
||||
* @param mdmId
|
||||
* @return void
|
||||
**/
|
||||
void deleteMdmModuleDb(String mdmId,String dbID);
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 获取模版字段表数据
|
||||
|
@ -55,38 +86,21 @@ public interface IMdmServiceCache {
|
|||
**/
|
||||
List<MdmModuleDbFiledsEntity> queryMdmModuleDbFileds(MdmModuleDbFiledsEntity queryDbFiled);
|
||||
|
||||
void updateMdmModuleEntity(MdmModuleEntity entity);
|
||||
|
||||
|
||||
List<MdmModuleDbFiledsRuleEntity> queryMdmModuleDbFiledsRule(MdmModuleDbFiledsRuleEntity queryDbFiledRule);
|
||||
|
||||
void saveMdmTableCodeRule(String mdmid, List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntities);
|
||||
|
||||
void saveMdmModuleDb(String id, List<MdmModuleDbEntity> mdmModuleDbEntities);
|
||||
|
||||
void saveMdmModuleDbFileds(String id, List<MdmModuleDbFiledsEntity> mdmModuleDbFiledsEntities);
|
||||
|
||||
void saveMdmModuleDbFiledsRule(String id, List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRuleEntities);
|
||||
|
||||
List<MdmModuleViewDetailEntity> queryMdmModuleViewDetail(MdmModuleViewDetailEntity mdmModuleViewDetailEntity);
|
||||
|
||||
List<MdmModuleViewEntity> queryMdmModuleView(MdmModuleViewEntity mdmModuleViewEntity);
|
||||
|
||||
List<MdmModuleViewButtonEntity> queryMdmModuleViewButton(MdmModuleViewButtonEntity mdmModuleViewButtonEntity);
|
||||
|
||||
void saveMdmModuleView(String id, MdmModuleViewEntity mdmModuleViewEntity);
|
||||
|
||||
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);
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 修改数据源db的字段
|
||||
* @Date 4:25 下午 2024/6/11
|
||||
* @param mdmId
|
||||
* @param mdmModuleDbFiledsEntities
|
||||
* @return void
|
||||
**/
|
||||
void saveOrUpdateMdmModuleDbFileds(String mdmId, List<MdmModuleDbFiledsEntity> mdmModuleDbFiledsEntities);
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 删除数据源db的字段
|
||||
* @Date 4:25 下午 2024/6/11
|
||||
* @param mdmId
|
||||
* @return void
|
||||
**/
|
||||
void deleteMdmModuleDbFileds(String mdmId,String dbID);
|
||||
}
|
||||
|
|
|
@ -73,27 +73,53 @@ public class MdmServiceCache implements IMdmServiceCache {
|
|||
@Resource
|
||||
private IMdmTableCodeRuleDao mdmTableCodeRuleDao;
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 缓存主数据
|
||||
* @Date 4:03 下午 2024/6/11
|
||||
* @param mdmCode
|
||||
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||
**/
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmModule",key = "#mdmCode")
|
||||
public MdmModuleEntity getMdmModuleEntity(Long mdmCode) {
|
||||
MdmModuleEntity entity = mdmModuleDao.getByMdmCode(mdmCode);
|
||||
return entity;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 缓存删除主数据
|
||||
* @Date 4:03 下午 2024/6/11
|
||||
* @param entity
|
||||
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||
**/
|
||||
@Override
|
||||
@CacheEvict(cacheNames="mdmModule",key = "#entity.mdmCode")
|
||||
public void updateMdmModuleEntity(MdmModuleEntity entity) {
|
||||
mdmModuleDao.update(entity);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param entity
|
||||
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||
* @Author lvleigang
|
||||
* @Description 删除模版主表
|
||||
* @Date 10:13 上午 2024/6/3
|
||||
**/
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmTableCodeRule",key = "#entity.mdmId")
|
||||
public List<MdmTableCodeRuleEntity> queryMdmTableCodeRuleEntity(MdmTableCodeRuleEntity entity) {
|
||||
List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntityList = mdmTableCodeRuleDao.queryBase(entity);
|
||||
return mdmTableCodeRuleEntityList;
|
||||
@CacheEvict(cacheNames="mdmModule",key = "#entity.mdmCode")
|
||||
public void deleteMdmModuleEntity(MdmModuleEntity entity) {
|
||||
entity.setUpdate();
|
||||
mdmModuleDao.logicRemoveMultiCondition(entity);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 缓存主数据DB
|
||||
* @Date 4:03 下午 2024/6/11
|
||||
* @param entity
|
||||
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||
**/
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmModuleDb",key = "#entity.mdmId")
|
||||
public List<MdmModuleDbEntity> queryMdmModuleDb(MdmModuleDbEntity entity) {
|
||||
|
@ -101,38 +127,17 @@ public class MdmServiceCache implements IMdmServiceCache {
|
|||
return mdmModuleDbEntities;
|
||||
}
|
||||
|
||||
@Override
|
||||
@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 = "#entity.mdmId")
|
||||
public List<MdmModuleDbFiledsRuleEntity> queryMdmModuleDbFiledsRule(MdmModuleDbFiledsRuleEntity entity) {
|
||||
List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleDao.queryBase(entity);
|
||||
return mdmModuleDbFiledsRuleEntities;
|
||||
}
|
||||
|
||||
@Override
|
||||
@CacheEvict(cacheNames="mdmTableCodeRule",key = "#mdmId")
|
||||
public void saveMdmTableCodeRule(String mdmId, List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntities) {
|
||||
MdmTableCodeRuleEntity mdmTableCodeRuleEntity = new MdmTableCodeRuleEntity();
|
||||
mdmTableCodeRuleEntity.setMdmId(mdmId);
|
||||
mdmTableCodeRuleEntity.setSts("Y");
|
||||
mdmTableCodeRuleEntity.setUpdate();
|
||||
mdmTableCodeRuleDao.logicRemoveMultiCondition(mdmTableCodeRuleEntity);
|
||||
if(mdmTableCodeRuleEntities != null && mdmTableCodeRuleEntities.size() > 0){
|
||||
for (int i = 0; i < mdmTableCodeRuleEntities.size(); i++) {
|
||||
mdmTableCodeRuleDao.save(mdmTableCodeRuleEntities.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 修改模版表数据
|
||||
* @Date 4:23 下午 2024/6/11
|
||||
* @param mdmId
|
||||
* @param mdmModuleDbEntities
|
||||
* @return void
|
||||
**/
|
||||
@Override
|
||||
@CacheEvict(cacheNames="mdmModuleDb",key = "#mdmId")
|
||||
public void saveMdmModuleDb(String mdmId, List<MdmModuleDbEntity> mdmModuleDbEntities) {
|
||||
public void saveOrUpdateMdmModuleDb(String mdmId, List<MdmModuleDbEntity> mdmModuleDbEntities) {
|
||||
if(mdmModuleDbEntities != null && mdmModuleDbEntities.size() > 0){
|
||||
for (int i = 0; i < mdmModuleDbEntities.size(); i++) {
|
||||
if("1".equals(mdmModuleDbEntities.get(i).getDataType())){
|
||||
|
@ -143,204 +148,318 @@ public class MdmServiceCache implements IMdmServiceCache {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mdmId
|
||||
* @return void
|
||||
* @Author lvleigang
|
||||
* @Description 删除模版表数据
|
||||
* @Date 4:23 下午 2024/6/11
|
||||
**/
|
||||
@Override
|
||||
@CacheEvict(cacheNames="mdmModuleDb",key = "#mdmId")
|
||||
public void deleteMdmModuleDb(String mdmId,String dbID) {
|
||||
MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity();
|
||||
mdmModuleDbEntity.setMdmId(mdmId);
|
||||
mdmModuleDbEntity.setId(dbID);
|
||||
mdmModuleDbEntity.setUpdate();
|
||||
mdmModuleDbDao.logicRemoveMultiCondition(mdmModuleDbEntity);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 缓存主数据DB的所有字段
|
||||
* @Date 4:11 下午 2024/6/11
|
||||
* @param entity
|
||||
* @return java.util.List<com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity>
|
||||
**/
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmModuleDbFileds",key = "#entity.mdmId")
|
||||
public List<MdmModuleDbFiledsEntity> queryMdmModuleDbFileds(MdmModuleDbFiledsEntity entity) {
|
||||
List<MdmModuleDbFiledsEntity> mdmModuleDbFiledsEntities = mdmModuleDbFiledsDao.queryBase(entity);
|
||||
return mdmModuleDbFiledsEntities;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 修改数据源db的字段
|
||||
* @Date 4:25 下午 2024/6/11
|
||||
* @param mdmId
|
||||
* @param mdmModuleDbFiledsEntities
|
||||
* @return void
|
||||
**/
|
||||
@Override
|
||||
@CacheEvict(cacheNames="mdmModuleDbFileds",key = "#mdmId")
|
||||
public void saveMdmModuleDbFileds(String mdmId, List<MdmModuleDbFiledsEntity> mdmModuleDbFiledsEntities) {
|
||||
public void saveOrUpdateMdmModuleDbFileds(String mdmId, List<MdmModuleDbFiledsEntity> mdmModuleDbFiledsEntities) {
|
||||
if(mdmModuleDbFiledsEntities != null && mdmModuleDbFiledsEntities.size() > 0){
|
||||
for (int i = 0; i < mdmModuleDbFiledsEntities.size(); i++) {
|
||||
if("1".equals(mdmModuleDbFiledsEntities.get(i).getDataType())){
|
||||
mdmModuleDbFiledsDao.save(mdmModuleDbFiledsEntities.get(i));
|
||||
}else {
|
||||
}else if ("2".equals(mdmModuleDbFiledsEntities.get(i).getDataType())) {
|
||||
mdmModuleDbFiledsDao.update(mdmModuleDbFiledsEntities.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@Override
|
||||
@CacheEvict(cacheNames="mdmModuleDbFiledsRule",key = "#mdmId")
|
||||
public void saveMdmModuleDbFiledsRule(String mdmId, List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRuleEntities) {
|
||||
MdmModuleDbFiledsRuleEntity mdmModuleDbFiledsRuleEntity = new MdmModuleDbFiledsRuleEntity();
|
||||
mdmModuleDbFiledsRuleEntity.setMdmId(mdmId);
|
||||
mdmModuleDbFiledsRuleEntity.setSts("Y");
|
||||
mdmModuleDbFiledsRuleEntity.setUpdate();
|
||||
mdmModuleDbFiledsRuleDao.logicRemoveMultiCondition(mdmModuleDbFiledsRuleEntity);
|
||||
if(mdmModuleDbFiledsRuleEntities != null && mdmModuleDbFiledsRuleEntities.size() > 0){
|
||||
for (int i = 0; i < mdmModuleDbFiledsRuleEntities.size(); i++) {
|
||||
if("1".equals(mdmModuleDbFiledsRuleEntities.get(i).getDataType())){
|
||||
mdmModuleDbFiledsRuleDao.save(mdmModuleDbFiledsRuleEntities.get(i));
|
||||
}else {
|
||||
mdmModuleDbFiledsRuleDao.update(mdmModuleDbFiledsRuleEntities.get(i));
|
||||
}else if ("3".equals(mdmModuleDbFiledsEntities.get(i).getDataType())) {
|
||||
mdmModuleDbFiledsDao.logicRemoveMultiCondition(mdmModuleDbFiledsEntities.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mdmId
|
||||
* @return void
|
||||
* @Author lvleigang
|
||||
* @Description 删除数据源db的字段
|
||||
* @Date 4:25 下午 2024/6/11
|
||||
**/
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmModuleViewDetail",key = "#entity.mdmId")
|
||||
public List<MdmModuleViewDetailEntity> queryMdmModuleViewDetail(MdmModuleViewDetailEntity entity) {
|
||||
List<MdmModuleViewDetailEntity> mdmModuleViewDetailEntities = mdmModuleViewDetailDao.queryBase(entity);
|
||||
return mdmModuleViewDetailEntities;
|
||||
@CacheEvict(cacheNames="mdmModuleDbFileds",key = "#mdmId")
|
||||
public void deleteMdmModuleDbFileds(String mdmId,String dbID) {
|
||||
MdmModuleDbFiledsEntity entity = new MdmModuleDbFiledsEntity();
|
||||
entity.setMdmId(mdmId);
|
||||
entity.setDbId(dbID);
|
||||
entity.setUpdate();
|
||||
mdmModuleDbFiledsDao.logicRemoveMultiCondition(entity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmModuleView",key = "#entity.mdmId")
|
||||
public List<MdmModuleViewEntity> queryMdmModuleView(MdmModuleViewEntity entity) {
|
||||
List<MdmModuleViewEntity> moduleViewEntities = mdmModuleViewDao.queryBase(entity);
|
||||
return moduleViewEntities;
|
||||
}
|
||||
//
|
||||
///**
|
||||
// * @Author lvleigang
|
||||
// * @Description 缓存主数据DB的所有字段的规则
|
||||
// * @Date 4:11 下午 2024/6/11
|
||||
// * @param entity
|
||||
// * @return java.util.List<com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity>
|
||||
// **/
|
||||
//@Override
|
||||
//@Cacheable(cacheNames="mdmModuleDbFiledsRule",key = "#entity.mdmId")
|
||||
//public List<MdmModuleDbFiledsRuleEntity> queryMdmModuleDbFiledsRule(MdmModuleDbFiledsRuleEntity entity) {
|
||||
// List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleDao.queryBase(entity);
|
||||
// return mdmModuleDbFiledsRuleEntities;
|
||||
//}
|
||||
//
|
||||
//@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="mdmTableCodeRule",key = "#entity.mdmId")
|
||||
//public List<MdmTableCodeRuleEntity> queryMdmTableCodeRuleEntity(MdmTableCodeRuleEntity entity) {
|
||||
// List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntityList = mdmTableCodeRuleDao.queryBase(entity);
|
||||
// return mdmTableCodeRuleEntityList;
|
||||
//}
|
||||
//
|
||||
//
|
||||
//
|
||||
//@Override
|
||||
//@CacheEvict(cacheNames="mdmTableCodeRule",key = "#mdmId")
|
||||
//public void saveMdmTableCodeRule(String mdmId, List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntities) {
|
||||
// MdmTableCodeRuleEntity mdmTableCodeRuleEntity = new MdmTableCodeRuleEntity();
|
||||
// mdmTableCodeRuleEntity.setMdmId(mdmId);
|
||||
// mdmTableCodeRuleEntity.setSts("Y");
|
||||
// mdmTableCodeRuleEntity.setUpdate();
|
||||
// mdmTableCodeRuleDao.logicRemoveMultiCondition(mdmTableCodeRuleEntity);
|
||||
// if(mdmTableCodeRuleEntities != null && mdmTableCodeRuleEntities.size() > 0){
|
||||
// for (int i = 0; i < mdmTableCodeRuleEntities.size(); i++) {
|
||||
// mdmTableCodeRuleDao.save(mdmTableCodeRuleEntities.get(i));
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//
|
||||
|
||||
|
||||
//@Override
|
||||
//@CacheEvict(cacheNames="mdmModuleDbFiledsRule",key = "#mdmId")
|
||||
//public void saveMdmModuleDbFiledsRule(String mdmId, List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRuleEntities) {
|
||||
// MdmModuleDbFiledsRuleEntity mdmModuleDbFiledsRuleEntity = new MdmModuleDbFiledsRuleEntity();
|
||||
// mdmModuleDbFiledsRuleEntity.setMdmId(mdmId);
|
||||
// mdmModuleDbFiledsRuleEntity.setSts("Y");
|
||||
// mdmModuleDbFiledsRuleEntity.setUpdate();
|
||||
// mdmModuleDbFiledsRuleDao.logicRemoveMultiCondition(mdmModuleDbFiledsRuleEntity);
|
||||
// if(mdmModuleDbFiledsRuleEntities != null && mdmModuleDbFiledsRuleEntities.size() > 0){
|
||||
// for (int i = 0; i < mdmModuleDbFiledsRuleEntities.size(); i++) {
|
||||
// if("1".equals(mdmModuleDbFiledsRuleEntities.get(i).getDataType())){
|
||||
// mdmModuleDbFiledsRuleDao.save(mdmModuleDbFiledsRuleEntities.get(i));
|
||||
// }else {
|
||||
// mdmModuleDbFiledsRuleDao.update(mdmModuleDbFiledsRuleEntities.get(i));
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//
|
||||
//@Override
|
||||
//@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 = "#entity.mdmId")
|
||||
//public List<MdmModuleViewEntity> queryMdmModuleView(MdmModuleViewEntity entity) {
|
||||
// List<MdmModuleViewEntity> moduleViewEntities = mdmModuleViewDao.queryBase(entity);
|
||||
// return moduleViewEntities;
|
||||
//}
|
||||
//
|
||||
//@Override
|
||||
//@Cacheable(cacheNames="mdmModuleViewButton",key = "#entity.mdmId")
|
||||
//public List<MdmModuleViewButtonEntity> queryMdmModuleViewButton(MdmModuleViewButtonEntity entity) {
|
||||
// List<MdmModuleViewButtonEntity> mdmModuleViewButtonEntities = mdmModuleViewButtonDao.queryBase(entity);
|
||||
// return mdmModuleViewButtonEntities;
|
||||
//}
|
||||
//
|
||||
//@Override
|
||||
//@CacheEvict(cacheNames="mdmModuleView",key = "#mdmId")
|
||||
//public void saveMdmModuleView(String mdmId, MdmModuleViewEntity mdmModuleViewEntity) {
|
||||
// mdmModuleViewDao.update(mdmModuleViewEntity);
|
||||
//}
|
||||
//
|
||||
//@Override
|
||||
//@CacheEvict(cacheNames="mdmModuleViewDetail",key = "#mdmId")
|
||||
//public void saveMdmModuleViewDetail(String mdmId, List<MdmModuleViewDetailEntity> mdmModuleViewDetailEntities) {
|
||||
// MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity();
|
||||
// mdmModuleViewDetailEntity.setMdmId(mdmId);
|
||||
// mdmModuleViewDetailEntity.setUpdate();
|
||||
// mdmModuleViewDetailDao.logicRemoveMultiCondition(mdmModuleViewDetailEntity);
|
||||
// if(mdmModuleViewDetailEntities != null && mdmModuleViewDetailEntities.size() > 0){
|
||||
// for (int i = 0; i < mdmModuleViewDetailEntities.size(); i++) {
|
||||
// if("1".equals(mdmModuleViewDetailEntities.get(i).getDataType())){
|
||||
// mdmModuleViewDetailDao.save(mdmModuleViewDetailEntities.get(i));
|
||||
// }else {
|
||||
// mdmModuleViewDetailDao.update(mdmModuleViewDetailEntities.get(i));
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//
|
||||
//@Override
|
||||
//@CacheEvict(cacheNames="mdmModuleViewButton",key = "#mdmId")
|
||||
//public void saveMdmModuleViewButton(String mdmId, List<MdmModuleViewButtonEntity> mdmModuleViewButtonEntities) {
|
||||
// MdmModuleViewButtonEntity mdmModuleViewButtonEntity = new MdmModuleViewButtonEntity();
|
||||
// mdmModuleViewButtonEntity.setMdmId(mdmId);
|
||||
// mdmModuleViewButtonEntity.setUpdate();
|
||||
// mdmModuleViewButtonDao.logicRemoveMultiCondition(mdmModuleViewButtonEntity);
|
||||
// if(mdmModuleViewButtonEntities != null && mdmModuleViewButtonEntities.size() > 0){
|
||||
// for (int i = 0; i < mdmModuleViewButtonEntities.size(); i++) {
|
||||
// if("1".equals(mdmModuleViewButtonEntities.get(i).getDataType())){
|
||||
// mdmModuleViewButtonDao.save(mdmModuleViewButtonEntities.get(i));
|
||||
// }else {
|
||||
// mdmModuleViewButtonDao.update(mdmModuleViewButtonEntities.get(i));
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//
|
||||
//@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);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
@Override
|
||||
@Cacheable(cacheNames="mdmModuleViewButton",key = "#entity.mdmId")
|
||||
public List<MdmModuleViewButtonEntity> queryMdmModuleViewButton(MdmModuleViewButtonEntity entity) {
|
||||
List<MdmModuleViewButtonEntity> mdmModuleViewButtonEntities = mdmModuleViewButtonDao.queryBase(entity);
|
||||
return mdmModuleViewButtonEntities;
|
||||
}
|
||||
|
||||
@Override
|
||||
@CacheEvict(cacheNames="mdmModuleView",key = "#mdmId")
|
||||
public void saveMdmModuleView(String mdmId, MdmModuleViewEntity mdmModuleViewEntity) {
|
||||
mdmModuleViewDao.update(mdmModuleViewEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@CacheEvict(cacheNames="mdmModuleViewDetail",key = "#mdmId")
|
||||
public void saveMdmModuleViewDetail(String mdmId, List<MdmModuleViewDetailEntity> mdmModuleViewDetailEntities) {
|
||||
MdmModuleViewDetailEntity mdmModuleViewDetailEntity = new MdmModuleViewDetailEntity();
|
||||
mdmModuleViewDetailEntity.setMdmId(mdmId);
|
||||
mdmModuleViewDetailEntity.setUpdate();
|
||||
mdmModuleViewDetailDao.logicRemoveMultiCondition(mdmModuleViewDetailEntity);
|
||||
if(mdmModuleViewDetailEntities != null && mdmModuleViewDetailEntities.size() > 0){
|
||||
for (int i = 0; i < mdmModuleViewDetailEntities.size(); i++) {
|
||||
if("1".equals(mdmModuleViewDetailEntities.get(i).getDataType())){
|
||||
mdmModuleViewDetailDao.save(mdmModuleViewDetailEntities.get(i));
|
||||
}else {
|
||||
mdmModuleViewDetailDao.update(mdmModuleViewDetailEntities.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@CacheEvict(cacheNames="mdmModuleViewButton",key = "#mdmId")
|
||||
public void saveMdmModuleViewButton(String mdmId, List<MdmModuleViewButtonEntity> mdmModuleViewButtonEntities) {
|
||||
MdmModuleViewButtonEntity mdmModuleViewButtonEntity = new MdmModuleViewButtonEntity();
|
||||
mdmModuleViewButtonEntity.setMdmId(mdmId);
|
||||
mdmModuleViewButtonEntity.setUpdate();
|
||||
mdmModuleViewButtonDao.logicRemoveMultiCondition(mdmModuleViewButtonEntity);
|
||||
if(mdmModuleViewButtonEntities != null && mdmModuleViewButtonEntities.size() > 0){
|
||||
for (int i = 0; i < mdmModuleViewButtonEntities.size(); i++) {
|
||||
if("1".equals(mdmModuleViewButtonEntities.get(i).getDataType())){
|
||||
mdmModuleViewButtonDao.save(mdmModuleViewButtonEntities.get(i));
|
||||
}else {
|
||||
mdmModuleViewButtonDao.update(mdmModuleViewButtonEntities.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@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