主数据修改
This commit is contained in:
parent
fe32e653d8
commit
e223dbd22d
|
@ -73,7 +73,6 @@ public interface IBaseDao<E extends Serializable, PK extends Serializable> {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
int delete(String paramString, Object paramObject);
|
int delete(String paramString, Object paramObject);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改
|
* 修改
|
||||||
* @param paramString sqlMapperID
|
* @param paramString sqlMapperID
|
||||||
|
@ -178,6 +177,8 @@ public interface IBaseDao<E extends Serializable, PK extends Serializable> {
|
||||||
*/
|
*/
|
||||||
Integer getCount(E paramE);
|
Integer getCount(E paramE);
|
||||||
|
|
||||||
|
Integer getCount(String statement,Object baseEntity);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页查询
|
* 分页查询
|
||||||
* @param paramString mapperID
|
* @param paramString mapperID
|
||||||
|
|
|
@ -276,6 +276,11 @@ public abstract class MybatisGenericDao<E extends Serializable, PK extends Seria
|
||||||
return list;
|
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) {
|
public List<E> query(Object baseEntity) {
|
||||||
|
|
||||||
Assert.notNull(baseEntity, "query baseEntity :不能为NULL");
|
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.mdmModuleDb.entity.MdmModuleDbEntity;
|
||||||
|
import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity;
|
||||||
import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity;
|
import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -12,6 +13,8 @@ public class MdmDto {
|
||||||
private Long mdmCode;
|
private Long mdmCode;
|
||||||
//单据编码规则
|
//单据编码规则
|
||||||
private List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntityList;
|
private List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntityList;
|
||||||
|
//字段规则
|
||||||
|
private List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRuleEntities;
|
||||||
//主数据主表
|
//主数据主表
|
||||||
private MdmModuleDbEntity mainMdmModuleDb;
|
private MdmModuleDbEntity mainMdmModuleDb;
|
||||||
//主数据子表
|
//主数据子表
|
||||||
|
@ -20,6 +23,8 @@ public class MdmDto {
|
||||||
|
|
||||||
//id
|
//id
|
||||||
private String id;
|
private String id;
|
||||||
|
//id
|
||||||
|
private String fieldId;
|
||||||
//3、新增4、修改 5、查看
|
//3、新增4、修改 5、查看
|
||||||
private String showType;
|
private String showType;
|
||||||
//分页
|
//分页
|
||||||
|
@ -201,5 +206,21 @@ public class MdmDto {
|
||||||
public void setUpId(String upId) {
|
public void setUpId(String upId) {
|
||||||
this.upId = 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 {
|
public class MdmModuleViewVo {
|
||||||
|
|
||||||
|
|
||||||
|
/** 主数据模版ID */
|
||||||
|
private String mdmId;
|
||||||
|
/** 类型1、查询2、列表3、新增4、修改 5、查看 */
|
||||||
|
private String viewType;
|
||||||
//模版
|
//模版
|
||||||
private MdmModuleViewEntity mdmModuleViewEntity;
|
private MdmModuleViewEntity mdmModuleViewEntity;
|
||||||
//新增
|
//新增
|
||||||
|
@ -131,6 +135,20 @@ public class MdmModuleViewVo {
|
||||||
this.dbButtonFiled = dbButtonFiled;
|
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.entity.MdmQuery;
|
||||||
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
||||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
|
||||||
import com.hzya.frame.sys.entity.FormmainDeleteDto;
|
import com.hzya.frame.sys.entity.FormmainDeleteDto;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -26,6 +27,7 @@ public interface IMdmModuleDao extends IBaseDao<MdmModuleEntity, String> {
|
||||||
Integer checkTable(Map<String, String> maps);
|
Integer checkTable(Map<String, String> maps);
|
||||||
Integer createTable(Map<String, Object> maps);
|
Integer createTable(Map<String, Object> maps);
|
||||||
Integer alterTable(Map<String, Object> maps);
|
Integer alterTable(Map<String, Object> maps);
|
||||||
|
Integer alterTableField(MdmModuleDbFiledsEntity entity);
|
||||||
Integer alterTableName(Map<String, String> maps);
|
Integer alterTableName(Map<String, String> maps);
|
||||||
List<HashMap<String, Object>> queryMdmShowData(MdmQuery entity);
|
List<HashMap<String, Object>> queryMdmShowData(MdmQuery entity);
|
||||||
List<HashMap<String, Object>> queryTemplateDataMore(MdmDto 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);
|
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.entity.MdmQuery;
|
||||||
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
||||||
import com.hzya.frame.mdm.mdmModule.dao.IMdmModuleDao;
|
import com.hzya.frame.mdm.mdmModule.dao.IMdmModuleDao;
|
||||||
|
import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
|
||||||
import com.hzya.frame.sys.entity.FormmainDeleteDto;
|
import com.hzya.frame.sys.entity.FormmainDeleteDto;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
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);
|
List<HashMap<String, Object>> o = (List<HashMap<String, Object>>) super.selectList(getSqlIdPrifx() + "queryDataAll", entity);
|
||||||
return o;
|
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
|
@Override
|
||||||
public Integer checkData(Map<String, String> maps) {
|
public Integer checkData(Map<String, String> maps) {
|
||||||
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "checkData", 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);
|
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "createTable", maps);
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Integer deleteTable(Map<String, Object> maps) {
|
||||||
|
Integer o = (Integer) super.delete(getSqlIdPrifx() + "deleteTable", maps);
|
||||||
|
return o;
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
public Integer alterTable(Map<String, Object> maps) {
|
public Integer alterTable(Map<String, Object> maps) {
|
||||||
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "alterTable", maps);
|
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "alterTable", maps);
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public Integer alterTableField(MdmModuleDbFiledsEntity entity) {
|
||||||
|
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "alterTableField", entity);
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer alterTableName(Map<String, String> maps) {
|
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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.hzya.frame.mdm.mdmModule.dao.impl.MdmModuleDaoImpl">
|
<mapper namespace="com.hzya.frame.mdm.mdmModule.dao.impl.MdmModuleDaoImpl">
|
||||||
|
|
||||||
<resultMap id="get-MdmModuleEntity-result" type="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity" >
|
<resultMap id="get-MdmModuleEntity-result" type="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
<result property="mdmName" column="mdm_name" jdbcType="VARCHAR"/>
|
<result property="mdmName" column="mdm_name" jdbcType="VARCHAR"/>
|
||||||
<result property="mdmLogo" column="mdm_logo" jdbcType="VARCHAR"/>
|
<result property="mdmLogo" column="mdm_logo" jdbcType="VARCHAR"/>
|
||||||
<result property="mdmCode" column="mdm_code" jdbcType="INTEGER"/>
|
<result property="mdmCode" column="mdm_code" jdbcType="INTEGER"/>
|
||||||
<result property="mdmType" column="mdm_type" jdbcType="VARCHAR"/>
|
<result property="mdmType" column="mdm_type" jdbcType="VARCHAR"/>
|
||||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||||
<result property="createUser" column="createUser" jdbcType="VARCHAR"/>
|
<result property="createUser" column="createUser" jdbcType="VARCHAR"/>
|
||||||
<result property="modifyUser" column="modifyUser" jdbcType="VARCHAR"/>
|
<result property="modifyUser" column="modifyUser" jdbcType="VARCHAR"/>
|
||||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<!-- 查询的字段-->
|
<!-- 查询的字段-->
|
||||||
<sql id = "MdmModuleEntity_Base_Column_List">
|
<sql id="MdmModuleEntity_Base_Column_List">
|
||||||
id
|
id
|
||||||
,mdm_name
|
,mdm_name
|
||||||
,mdm_logo
|
,mdm_logo
|
||||||
|
@ -40,227 +40,243 @@
|
||||||
<!--通过ID获取数据 -->
|
<!--通过ID获取数据 -->
|
||||||
<select id="entity_get" resultMap="get-MdmModuleEntity-result">
|
<select id="entity_get" resultMap="get-MdmModuleEntity-result">
|
||||||
select
|
select
|
||||||
<include refid="MdmModuleEntity_Base_Column_List" />
|
<include refid="MdmModuleEntity_Base_Column_List"/>
|
||||||
from mdm_module where id = #{ id } and sts='Y'
|
from mdm_module where id = #{ id } and sts='Y'
|
||||||
</select>
|
</select>
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="entity_list_base" resultMap="get-MdmModuleEntity-result" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
<select id="entity_list_base" resultMap="get-MdmModuleEntity-result"
|
||||||
select
|
parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||||
<include refid="MdmModuleEntity_Base_Column_List" />
|
select
|
||||||
from mdm_module
|
<include refid="MdmModuleEntity_Base_Column_List"/>
|
||||||
<trim prefix="where" prefixOverrides="and">
|
from mdm_module
|
||||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="mdmName != null and mdmName != ''"> and mdm_name = #{mdmName} </if>
|
<if test="id != null and id != ''">and id = #{id}</if>
|
||||||
<if test="mdmLogo != null and mdmLogo != ''"> and mdm_logo = #{mdmLogo} </if>
|
<if test="mdmName != null and mdmName != ''">and mdm_name = #{mdmName}</if>
|
||||||
<if test="mdmCode != null"> and mdm_code = #{mdmCode} </if>
|
<if test="mdmLogo != null and mdmLogo != ''">and mdm_logo = #{mdmLogo}</if>
|
||||||
<if test="mdmType != null and mdmType != ''"> and mdm_type = #{mdmType} </if>
|
<if test="mdmCode != null">and mdm_code = #{mdmCode}</if>
|
||||||
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
<if test="mdmType != null and mdmType != ''">and mdm_type = #{mdmType}</if>
|
||||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
<if test="create_time != null">and create_time = #{create_time}</if>
|
||||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
||||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
||||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
||||||
|
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询符合条件的数量 -->
|
<!-- 查询符合条件的数量 -->
|
||||||
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
<select id="entity_count" resultType="Integer" parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||||
select count(1) from mdm_module
|
select count(1) from mdm_module
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
<if test="id != null and id != ''">and id = #{id}</if>
|
||||||
<if test="mdmName != null and mdmName != ''"> and mdm_name = #{mdmName} </if>
|
<if test="mdmName != null and mdmName != ''">and mdm_name = #{mdmName}</if>
|
||||||
<if test="mdmLogo != null and mdmLogo != ''"> and mdm_logo = #{mdmLogo} </if>
|
<if test="mdmLogo != null and mdmLogo != ''">and mdm_logo = #{mdmLogo}</if>
|
||||||
<if test="mdmCode != null"> and mdm_code = #{mdmCode} </if>
|
<if test="mdmCode != null">and mdm_code = #{mdmCode}</if>
|
||||||
<if test="mdmType != null and mdmType != ''"> and mdm_type = #{mdmType} </if>
|
<if test="mdmType != null and mdmType != ''">and mdm_type = #{mdmType}</if>
|
||||||
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
||||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
||||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
<if test="create_time != null">and create_time = #{create_time}</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
||||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
||||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
||||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
<!-- 分页查询列表 采用like格式 -->
|
||||||
<select id="entity_list_like" resultMap="get-MdmModuleEntity-result" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
<select id="entity_list_like" resultMap="get-MdmModuleEntity-result"
|
||||||
select
|
parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||||
<include refid="MdmModuleEntity_Base_Column_List" />
|
select
|
||||||
from mdm_module
|
<include refid="MdmModuleEntity_Base_Column_List"/>
|
||||||
<trim prefix="where" prefixOverrides="and">
|
from mdm_module
|
||||||
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="mdmName != null and mdmName != ''"> and mdm_name like concat('%',#{mdmName},'%') </if>
|
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
||||||
<if test="mdmLogo != null and mdmLogo != ''"> and mdm_logo like concat('%',#{mdmLogo},'%') </if>
|
<if test="mdmName != null and mdmName != ''">and mdm_name like concat('%',#{mdmName},'%')</if>
|
||||||
<if test="mdmCode != null"> and mdm_code like concat('%',#{mdmCode},'%') </if>
|
<if test="mdmLogo != null and mdmLogo != ''">and mdm_logo like concat('%',#{mdmLogo},'%')</if>
|
||||||
<if test="mdmType != null and mdmType != ''"> and mdm_type like concat('%',#{mdmType},'%') </if>
|
<if test="mdmCode != null">and mdm_code like concat('%',#{mdmCode},'%')</if>
|
||||||
<if test="remark != null and remark != ''"> and remark like concat('%',#{remark},'%') </if>
|
<if test="mdmType != null and mdmType != ''">and mdm_type like concat('%',#{mdmType},'%')</if>
|
||||||
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
<if test="remark != null and remark != ''">and remark like concat('%',#{remark},'%')</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
||||||
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
concat('%',#{create_user_id},'%')
|
||||||
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
</if>
|
||||||
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
||||||
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
|
||||||
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
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'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询列表 字段采用or格式 -->
|
<!-- 查询列表 字段采用or格式 -->
|
||||||
<select id="MdmModuleentity_list_or" resultMap="get-MdmModuleEntity-result" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
<select id="MdmModuleentity_list_or" resultMap="get-MdmModuleEntity-result"
|
||||||
select
|
parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||||
<include refid="MdmModuleEntity_Base_Column_List" />
|
select
|
||||||
from mdm_module
|
<include refid="MdmModuleEntity_Base_Column_List"/>
|
||||||
<trim prefix="where" prefixOverrides="and">
|
from mdm_module
|
||||||
<if test="id != null and id != ''"> or id = #{id} </if>
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="mdmName != null and mdmName != ''"> or mdm_name = #{mdmName} </if>
|
<if test="id != null and id != ''">or id = #{id}</if>
|
||||||
<if test="mdmLogo != null and mdmLogo != ''"> or mdm_logo = #{mdmLogo} </if>
|
<if test="mdmName != null and mdmName != ''">or mdm_name = #{mdmName}</if>
|
||||||
<if test="mdmCode != null"> or mdm_code = #{mdmCode} </if>
|
<if test="mdmLogo != null and mdmLogo != ''">or mdm_logo = #{mdmLogo}</if>
|
||||||
<if test="mdmType != null and mdmType != ''"> or mdm_type = #{mdmType} </if>
|
<if test="mdmCode != null">or mdm_code = #{mdmCode}</if>
|
||||||
<if test="remark != null and remark != ''"> or remark = #{remark} </if>
|
<if test="mdmType != null and mdmType != ''">or mdm_type = #{mdmType}</if>
|
||||||
<if test="sorts != null"> or sorts = #{sorts} </if>
|
<if test="remark != null and remark != ''">or remark = #{remark}</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
<if test="sorts != null">or sorts = #{sorts}</if>
|
||||||
<if test="create_time != null"> or create_time = #{create_time} </if>
|
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
|
<if test="create_time != null">or create_time = #{create_time}</if>
|
||||||
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
|
||||||
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
<if test="modify_time != null">or modify_time = #{modify_time}</if>
|
||||||
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
||||||
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
|
||||||
|
<if test="companyId != null and companyId != ''">or company_id = #{companyId}</if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--新增所有列-->
|
<!--新增所有列-->
|
||||||
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity" >
|
<insert id="entity_insert" parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||||
insert into mdm_module(
|
insert into mdm_module(
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="id != null and id != ''"> id , </if>
|
<if test="id != null and id != ''">id ,</if>
|
||||||
<if test="mdmName != null and mdmName != ''"> mdm_name , </if>
|
<if test="mdmName != null and mdmName != ''">mdm_name ,</if>
|
||||||
<if test="mdmLogo != null and mdmLogo != ''"> mdm_logo , </if>
|
<if test="mdmLogo != null and mdmLogo != ''">mdm_logo ,</if>
|
||||||
<if test="mdmCode != null"> mdm_code , </if>
|
<if test="mdmCode != null">mdm_code ,</if>
|
||||||
<if test="mdmCode == null"> mdm_code , </if>
|
<if test="mdmCode == null">mdm_code ,</if>
|
||||||
<if test="mdmType != null and mdmType != ''"> mdm_type , </if>
|
<if test="mdmType != null and mdmType != ''">mdm_type ,</if>
|
||||||
<if test="remark != null and remark != ''"> remark , </if>
|
<if test="remark != null and remark != ''">remark ,</if>
|
||||||
<if test="sorts != null"> sorts , </if>
|
<if test="sorts != null">sorts ,</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
||||||
<if test="create_time != null"> create_time , </if>
|
<if test="create_time != null">create_time ,</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
||||||
<if test="modify_time != null"> modify_time , </if>
|
<if test="modify_time != null">modify_time ,</if>
|
||||||
<if test="sts != null and sts != ''"> sts , </if>
|
<if test="sts != null and sts != ''">sts ,</if>
|
||||||
<if test="org_id != null and org_id != ''"> org_id , </if>
|
<if test="org_id != null and org_id != ''">org_id ,</if>
|
||||||
<if test="companyId != null and companyId != ''"> company_id , </if>
|
<if test="companyId != null and companyId != ''">company_id ,</if>
|
||||||
<if test="sts == null ">sts,</if>
|
<if test="sts == null ">sts,</if>
|
||||||
</trim>
|
</trim>
|
||||||
)values(
|
)values(
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="id != null and id != ''"> #{id} ,</if>
|
<if test="id != null and id != ''">#{id} ,</if>
|
||||||
<if test="mdmName != null and mdmName != ''"> #{mdmName} ,</if>
|
<if test="mdmName != null and mdmName != ''">#{mdmName} ,</if>
|
||||||
<if test="mdmLogo != null and mdmLogo != ''"> #{mdmLogo} ,</if>
|
<if test="mdmLogo != null and mdmLogo != ''">#{mdmLogo} ,</if>
|
||||||
<if test="mdmCode != null"> #{mdmCode} ,</if>
|
<if test="mdmCode != null">#{mdmCode} ,</if>
|
||||||
<if test="mdmCode == null ">(SELECT IFNULL(MAX(b.mdm_code)+1,10001) AS mdmCode FROM mdm_module b ),</if>
|
<if test="mdmCode == null ">(SELECT IFNULL(MAX(b.mdm_code)+1,10001) AS mdmCode FROM mdm_module b ),</if>
|
||||||
<if test="mdmType != null and mdmType != ''"> #{mdmType} ,</if>
|
<if test="mdmType != null and mdmType != ''">#{mdmType} ,</if>
|
||||||
<if test="remark != null and remark != ''"> #{remark} ,</if>
|
<if test="remark != null and remark != ''">#{remark} ,</if>
|
||||||
<if test="sorts != null"> #{sorts} ,</if>
|
<if test="sorts != null">#{sorts} ,</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
||||||
<if test="create_time != null"> #{create_time} ,</if>
|
<if test="create_time != null">#{create_time} ,</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
||||||
<if test="modify_time != null"> #{modify_time} ,</if>
|
<if test="modify_time != null">#{modify_time} ,</if>
|
||||||
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
<if test="sts != null and sts != ''">#{sts} ,</if>
|
||||||
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
||||||
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
<if test="companyId != null and companyId != ''">#{companyId} ,</if>
|
||||||
<if test="sts == null ">'Y',</if>
|
<if test="sts == null ">'Y',</if>
|
||||||
</trim>
|
</trim>
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<!-- 批量新增 -->
|
<!-- 批量新增 -->
|
||||||
<insert id="entityInsertBatch" >
|
<insert id="entityInsertBatch">
|
||||||
insert into mdm_module(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)
|
insert into mdm_module(mdm_name, mdm_logo, mdm_code, mdm_type, remark, create_user_id, create_time,
|
||||||
values
|
modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
values
|
||||||
(#{entity.mdmName},#{entity.mdmLogo},#{entity.mdmCode},#{entity.mdmType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
</foreach>
|
(#{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},
|
||||||
</insert>
|
'Y')
|
||||||
<!-- 批量新增或者修改-->
|
</foreach>
|
||||||
<insert id="entityInsertOrUpdateBatch" >
|
</insert>
|
||||||
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
|
<insert id="entityInsertOrUpdateBatch">
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
insert into mdm_module(mdm_name, mdm_logo, mdm_code, mdm_type, remark, create_user_id, create_time,
|
||||||
(#{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})
|
modify_user_id, modify_time, sts, org_id, company_id)
|
||||||
</foreach>
|
values
|
||||||
on duplicate key update
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
mdm_name = values(mdm_name),
|
(#{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})
|
||||||
mdm_logo = values(mdm_logo),
|
</foreach>
|
||||||
mdm_code = values(mdm_code),
|
on duplicate key update
|
||||||
mdm_type = values(mdm_type),
|
mdm_name = values(mdm_name),
|
||||||
remark = values(remark),
|
mdm_logo = values(mdm_logo),
|
||||||
create_user_id = values(create_user_id),
|
mdm_code = values(mdm_code),
|
||||||
create_time = values(create_time),
|
mdm_type = values(mdm_type),
|
||||||
modify_user_id = values(modify_user_id),
|
remark = values(remark),
|
||||||
modify_time = values(modify_time),
|
create_user_id = values(create_user_id),
|
||||||
sts = values(sts),
|
create_time = values(create_time),
|
||||||
org_id = values(org_id),
|
modify_user_id = values(modify_user_id),
|
||||||
company_id = values(company_id)</insert>
|
modify_time = values(modify_time),
|
||||||
<!--通过主键修改方法-->
|
sts = values(sts),
|
||||||
<update id="entity_update" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity" >
|
org_id = values(org_id),
|
||||||
update mdm_module set
|
company_id = values(company_id)
|
||||||
<trim suffix="" suffixOverrides=",">
|
</insert>
|
||||||
<if test="mdmName != null and mdmName != ''"> mdm_name = #{mdmName},</if>
|
<!--通过主键修改方法-->
|
||||||
<if test="mdmLogo != null and mdmLogo != ''"> mdm_logo = #{mdmLogo},</if>
|
<update id="entity_update" parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||||
<if test="mdmCode != null"> mdm_code = #{mdmCode},</if>
|
update mdm_module set
|
||||||
<if test="mdmType != null and mdmType != ''"> mdm_type = #{mdmType},</if>
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="remark != null and remark != ''"> remark = #{remark},</if>
|
<if test="mdmName != null and mdmName != ''">mdm_name = #{mdmName},</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
<if test="mdmLogo != null and mdmLogo != ''">mdm_logo = #{mdmLogo},</if>
|
||||||
<if test="create_time != null"> create_time = #{create_time},</if>
|
<if test="mdmCode != null">mdm_code = #{mdmCode},</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
<if test="mdmType != null and mdmType != ''">mdm_type = #{mdmType},</if>
|
||||||
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||||
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
||||||
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
<if test="create_time != null">create_time = #{create_time},</if>
|
||||||
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
|
||||||
</trim>
|
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
||||||
where id = #{id}
|
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
||||||
</update>
|
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
||||||
<!-- 逻辑删除 -->
|
<if test="companyId != null and companyId != ''">company_id = #{companyId},</if>
|
||||||
<update id="entity_logicDelete" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity" >
|
</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}
|
update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
<!-- 多条件逻辑删除 -->
|
<!-- 多条件逻辑删除 -->
|
||||||
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity" >
|
<update id="entity_logicDelete_Multi_Condition" parameterType="com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity">
|
||||||
update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
<if test="id != null and id != ''">and id = #{id}</if>
|
||||||
<if test="mdmName != null and mdmName != ''"> and mdm_name = #{mdmName} </if>
|
<if test="mdmName != null and mdmName != ''">and mdm_name = #{mdmName}</if>
|
||||||
<if test="mdmLogo != null and mdmLogo != ''"> and mdm_logo = #{mdmLogo} </if>
|
<if test="mdmLogo != null and mdmLogo != ''">and mdm_logo = #{mdmLogo}</if>
|
||||||
<if test="mdmCode != null"> and mdm_code = #{mdmCode} </if>
|
<if test="mdmCode != null">and mdm_code = #{mdmCode}</if>
|
||||||
<if test="mdmType != null and mdmType != ''"> and mdm_type = #{mdmType} </if>
|
<if test="mdmType != null and mdmType != ''">and mdm_type = #{mdmType}</if>
|
||||||
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
||||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
</update>
|
</update>
|
||||||
<!--通过主键删除-->
|
<!--通过主键删除-->
|
||||||
<delete id="entity_delete">
|
<delete id="entity_delete">
|
||||||
delete from mdm_module where id = #{id}
|
delete from mdm_module where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteTable" >
|
||||||
|
DROP TABLE ${tableName}
|
||||||
|
</delete>
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
<!-- 分页查询列表 采用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
|
select
|
||||||
a.id as id,
|
a.id as id,
|
||||||
a.mdm_name as mdm_name,
|
a.mdm_name as mdm_name,
|
||||||
|
@ -292,7 +308,7 @@ update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #
|
||||||
<!--通过ID获取数据 -->
|
<!--通过ID获取数据 -->
|
||||||
<select id="getByMdmCode" resultMap="get-MdmModuleEntity-result">
|
<select id="getByMdmCode" resultMap="get-MdmModuleEntity-result">
|
||||||
select
|
select
|
||||||
<include refid="MdmModuleEntity_Base_Column_List" />
|
<include refid="MdmModuleEntity_Base_Column_List"/>
|
||||||
from mdm_module where mdm_code = #{ mdmCode } and sts='Y'
|
from mdm_module where mdm_code = #{ mdmCode } and sts='Y'
|
||||||
</select>
|
</select>
|
||||||
<!--通过ID获取数据 -->
|
<!--通过ID获取数据 -->
|
||||||
|
@ -307,35 +323,73 @@ update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<select id="createTable" resultType="java.lang.Integer">
|
<select id="createTable" resultType="java.lang.Integer">
|
||||||
CREATE TABLE ${tableName} (
|
CREATE TABLE ${tableName} (
|
||||||
<foreach collection="databaseFields" item="item" index="index">
|
<choose>
|
||||||
<choose>
|
<when test="tableType == '1'.toString()">
|
||||||
<when test="item.enName == 'id'.toString()">
|
`id` varchar(50) NOT NULL COMMENT '唯一标识码',
|
||||||
`id` varchar(50) NOT NULL COMMENT '唯一标识码',
|
`document_rule` varchar(50) DEFAULT NULL COMMENT '单据规则',
|
||||||
</when>
|
`document_rule_num` bigint DEFAULT NULL COMMENT '单据规则流水号',
|
||||||
<when test="item.enName == 'sorts'.toString()">
|
`data_status` varchar(1) DEFAULT NULL COMMENT '数据状态 Y正常 N删除 F修改',
|
||||||
`sorts` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '排序',
|
`add_status` varchar(1) DEFAULT NULL COMMENT '新增数据状态 0待下发 1已下发',
|
||||||
</when>
|
`update_status` varchar(1) DEFAULT NULL COMMENT '修改数据状态 0待下发 1已下发',
|
||||||
<otherwise >
|
`delete_status` varchar(1) DEFAULT NULL COMMENT '删除数据状态 0待下发 1已下发',
|
||||||
<choose>
|
`sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序',
|
||||||
<when test="item.filedType == '1'.toString()">
|
`create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id',
|
||||||
${item.enName} bigint(${item.filedLength}) DEFAULT NULL COMMENT #{item.chName},
|
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||||
</when>
|
`modify_user_id` varchar(50) DEFAULT NULL COMMENT '修改人id',
|
||||||
<when test="item.filedType == '2'.toString()">
|
`modify_time` datetime DEFAULT NULL COMMENT '修改时间',
|
||||||
${item.enName} decimal(${item.filedLength}) DEFAULT NULL COMMENT #{item.chName},
|
`sts` varchar(1) DEFAULT NULL COMMENT '状态(Y正常N删除)',
|
||||||
</when>
|
`org_id` varchar(50) DEFAULT NULL COMMENT '组织机构ID',
|
||||||
<when test="item.filedType == '3'.toString()">
|
`company_id` varchar(50) DEFAULT NULL COMMENT '公司id',
|
||||||
${item.enName} varchar(${item.filedLength}) DEFAULT NULL COMMENT #{item.chName},
|
</when>
|
||||||
</when>
|
<when test="tableType == '2'.toString()">
|
||||||
<when test="item.filedType == '4'.toString()">
|
`id` varchar(50) NOT NULL COMMENT '唯一标识码',
|
||||||
${item.enName} datetime DEFAULT NULL COMMENT #{item.chName},
|
`formmain_id` varchar(50) DEFAULT NULL COMMENT 'formmain_id',
|
||||||
</when>
|
`data_status` varchar(1) DEFAULT NULL COMMENT '数据状态 Y正常 N删除 F修改',
|
||||||
</choose>
|
`sorts` bigint NOT NULL AUTO_INCREMENT COMMENT '排序',
|
||||||
</otherwise>
|
`create_user_id` varchar(50) DEFAULT NULL COMMENT '创建人id',
|
||||||
</choose>
|
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||||
</foreach>
|
`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
|
PRIMARY KEY (`sorts`,`id`) USING BTREE
|
||||||
) ENGINE = INNODB DEFAULT CHARSET = utf8mb4 COMMENT = #{tableRemark}
|
) ENGINE = INNODB DEFAULT CHARSET = utf8mb4 COMMENT = #{tableRemark}
|
||||||
</select>
|
</select>
|
||||||
|
@ -343,6 +397,8 @@ update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--通过ID获取数据 -->
|
<!--通过ID获取数据 -->
|
||||||
<select id="alterTable" resultType="java.lang.Integer">
|
<select id="alterTable" resultType="java.lang.Integer">
|
||||||
ALTER TABLE ${tableName}
|
ALTER TABLE ${tableName}
|
||||||
|
@ -400,6 +456,77 @@ update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #
|
||||||
</trim>
|
</trim>
|
||||||
</select>
|
</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获取数据 -->
|
<!--通过ID获取数据 -->
|
||||||
<select id="alterTableName" resultType="java.lang.Integer">
|
<select id="alterTableName" resultType="java.lang.Integer">
|
||||||
ALTER TABLE ${tableName} COMMENT = #{tableRemark}
|
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
|
order by sorts asc
|
||||||
</select>
|
</select>
|
||||||
<!-- 查询符合条件的数量 -->
|
<!-- 查询符合条件的数量 -->
|
||||||
<select id="checkData" resultType="Integer" >
|
<select id="checkData" resultType="Integer">
|
||||||
SELECT
|
SELECT
|
||||||
count(*)
|
count(*)
|
||||||
from
|
from
|
||||||
|
@ -657,5 +784,15 @@ update mdm_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #
|
||||||
order by sorts asc
|
order by sorts asc
|
||||||
</select>
|
</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>
|
</mapper>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
package com.hzya.frame.mdm.mdmModule.service;
|
package com.hzya.frame.mdm.mdmModule.service;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
||||||
import com.hzya.frame.basedao.service.IBaseService;
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主数据模版(MdmModule)表服务接口
|
* 主数据模版(MdmModule)表服务接口
|
||||||
*
|
*
|
||||||
|
@ -9,4 +12,334 @@ import com.hzya.frame.basedao.service.IBaseService;
|
||||||
* @since 2024-06-03 08:46:29
|
* @since 2024-06-03 08:46:29
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleService extends IBaseService<MdmModuleEntity, String>{
|
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);
|
HashMap<String, Object> getServiceDataById(Map<String, Object> queryData);
|
||||||
List<HashMap<String, Object>> getServiceByFormmainId(Map<String, Object> queryData);
|
List<HashMap<String, Object>> getServiceByFormmainId(Map<String, Object> queryData);
|
||||||
List<HashMap<String, Object>> getServiceByDistributeId(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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.hzya.frame.mdm.mdmModuleDb.dao.impl.MdmModuleDbDaoImpl">
|
<mapper namespace="com.hzya.frame.mdm.mdmModuleDb.dao.impl.MdmModuleDbDaoImpl">
|
||||||
|
|
||||||
<resultMap id="get-MdmModuleDbEntity-result" type="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity" >
|
<resultMap id="get-MdmModuleDbEntity-result" type="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
||||||
<result property="dbName" column="db_name" jdbcType="VARCHAR"/>
|
<result property="dbName" column="db_name" jdbcType="VARCHAR"/>
|
||||||
<result property="dbType" column="db_type" jdbcType="VARCHAR"/>
|
<result property="dbType" column="db_type" jdbcType="VARCHAR"/>
|
||||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<!-- 查询的字段-->
|
<!-- 查询的字段-->
|
||||||
<sql id = "MdmModuleDbEntity_Base_Column_List">
|
<sql id="MdmModuleDbEntity_Base_Column_List">
|
||||||
id
|
id
|
||||||
,mdm_id
|
,mdm_id
|
||||||
,db_name
|
,db_name
|
||||||
|
@ -33,209 +33,222 @@
|
||||||
,org_id
|
,org_id
|
||||||
,company_id
|
,company_id
|
||||||
</sql>
|
</sql>
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="entity_list_base" resultMap="get-MdmModuleDbEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
<select id="entity_list_base" resultMap="get-MdmModuleDbEntity-result"
|
||||||
select
|
parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||||
<include refid="MdmModuleDbEntity_Base_Column_List" />
|
select
|
||||||
from mdm_module_db
|
<include refid="MdmModuleDbEntity_Base_Column_List"/>
|
||||||
<trim prefix="where" prefixOverrides="and">
|
from mdm_module_db
|
||||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
<if test="id != null and id != ''">and id = #{id}</if>
|
||||||
<if test="dbName != null and dbName != ''"> and db_name = #{dbName} </if>
|
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
||||||
<if test="dbType != null and dbType != ''"> and db_type = #{dbType} </if>
|
<if test="dbName != null and dbName != ''">and db_name = #{dbName}</if>
|
||||||
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
<if test="dbType != null and dbType != ''">and db_type = #{dbType}</if>
|
||||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
<if test="create_time != null">and create_time = #{create_time}</if>
|
||||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
||||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
||||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
||||||
|
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询符合条件的数量 -->
|
<!-- 查询符合条件的数量 -->
|
||||||
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
<select id="entity_count" resultType="Integer"
|
||||||
select count(1) from mdm_module_db
|
parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
select count(1) from mdm_module_db
|
||||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
<if test="id != null and id != ''">and id = #{id}</if>
|
||||||
<if test="dbName != null and dbName != ''"> and db_name = #{dbName} </if>
|
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
||||||
<if test="dbType != null and dbType != ''"> and db_type = #{dbType} </if>
|
<if test="dbName != null and dbName != ''">and db_name = #{dbName}</if>
|
||||||
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
<if test="dbType != null and dbType != ''">and db_type = #{dbType}</if>
|
||||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
<if test="create_time != null">and create_time = #{create_time}</if>
|
||||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
||||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
||||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
||||||
|
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 分页查询列表 采用like格式 -->
|
<!-- 分页查询列表 采用like格式 -->
|
||||||
<select id="entity_list_like" resultMap="get-MdmModuleDbEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
<select id="entity_list_like" resultMap="get-MdmModuleDbEntity-result"
|
||||||
select
|
parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||||
<include refid="MdmModuleDbEntity_Base_Column_List" />
|
select
|
||||||
from mdm_module_db
|
<include refid="MdmModuleDbEntity_Base_Column_List"/>
|
||||||
<trim prefix="where" prefixOverrides="and">
|
from mdm_module_db
|
||||||
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="mdmId != null and mdmId != ''"> and mdm_id like concat('%',#{mdmId},'%') </if>
|
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
||||||
<if test="dbName != null and dbName != ''"> and db_name like concat('%',#{dbName},'%') </if>
|
<if test="mdmId != null and mdmId != ''">and mdm_id like concat('%',#{mdmId},'%')</if>
|
||||||
<if test="dbType != null and dbType != ''"> and db_type like concat('%',#{dbType},'%') </if>
|
<if test="dbName != null and dbName != ''">and db_name like concat('%',#{dbName},'%')</if>
|
||||||
<if test="remark != null and remark != ''"> and remark like concat('%',#{remark},'%') </if>
|
<if test="dbType != null and dbType != ''">and db_type like concat('%',#{dbType},'%')</if>
|
||||||
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
<if test="remark != null and remark != ''">and remark like concat('%',#{remark},'%')</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
||||||
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
concat('%',#{create_user_id},'%')
|
||||||
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
</if>
|
||||||
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
||||||
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
|
||||||
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
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'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询列表 字段采用or格式 -->
|
<!-- 查询列表 字段采用or格式 -->
|
||||||
<select id="MdmModuleDbentity_list_or" resultMap="get-MdmModuleDbEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
<select id="MdmModuleDbentity_list_or" resultMap="get-MdmModuleDbEntity-result"
|
||||||
select
|
parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||||
<include refid="MdmModuleDbEntity_Base_Column_List" />
|
select
|
||||||
from mdm_module_db
|
<include refid="MdmModuleDbEntity_Base_Column_List"/>
|
||||||
<trim prefix="where" prefixOverrides="and">
|
from mdm_module_db
|
||||||
<if test="id != null and id != ''"> or id = #{id} </if>
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="mdmId != null and mdmId != ''"> or mdm_id = #{mdmId} </if>
|
<if test="id != null and id != ''">or id = #{id}</if>
|
||||||
<if test="dbName != null and dbName != ''"> or db_name = #{dbName} </if>
|
<if test="mdmId != null and mdmId != ''">or mdm_id = #{mdmId}</if>
|
||||||
<if test="dbType != null and dbType != ''"> or db_type = #{dbType} </if>
|
<if test="dbName != null and dbName != ''">or db_name = #{dbName}</if>
|
||||||
<if test="remark != null and remark != ''"> or remark = #{remark} </if>
|
<if test="dbType != null and dbType != ''">or db_type = #{dbType}</if>
|
||||||
<if test="sorts != null"> or sorts = #{sorts} </if>
|
<if test="remark != null and remark != ''">or remark = #{remark}</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
<if test="sorts != null">or sorts = #{sorts}</if>
|
||||||
<if test="create_time != null"> or create_time = #{create_time} </if>
|
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
|
<if test="create_time != null">or create_time = #{create_time}</if>
|
||||||
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
|
||||||
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
<if test="modify_time != null">or modify_time = #{modify_time}</if>
|
||||||
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
||||||
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
|
||||||
|
<if test="companyId != null and companyId != ''">or company_id = #{companyId}</if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--新增所有列-->
|
<!--新增所有列-->
|
||||||
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity" >
|
<insert id="entity_insert" parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||||
insert into mdm_module_db(
|
insert into mdm_module_db(
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="id != null and id != ''"> id , </if>
|
<if test="id != null and id != ''">id ,</if>
|
||||||
<if test="mdmId != null and mdmId != ''"> mdm_id , </if>
|
<if test="mdmId != null and mdmId != ''">mdm_id ,</if>
|
||||||
<if test="dbName != null and dbName != ''"> db_name , </if>
|
<if test="dbName != null and dbName != ''">db_name ,</if>
|
||||||
<if test="dbType != null and dbType != ''"> db_type , </if>
|
<if test="dbType != null and dbType != ''">db_type ,</if>
|
||||||
<if test="remark != null and remark != ''"> remark , </if>
|
<if test="remark != null and remark != ''">remark ,</if>
|
||||||
<if test="sorts != null"> sorts , </if>
|
<if test="sorts != null">sorts ,</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
||||||
<if test="create_time != null"> create_time , </if>
|
<if test="create_time != null">create_time ,</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
||||||
<if test="modify_time != null"> modify_time , </if>
|
<if test="modify_time != null">modify_time ,</if>
|
||||||
<if test="sts != null and sts != ''"> sts , </if>
|
<if test="sts != null and sts != ''">sts ,</if>
|
||||||
<if test="org_id != null and org_id != ''"> org_id , </if>
|
<if test="org_id != null and org_id != ''">org_id ,</if>
|
||||||
<if test="companyId != null and companyId != ''"> company_id , </if>
|
<if test="companyId != null and companyId != ''">company_id ,</if>
|
||||||
<if test="sts == null ">sts,</if>
|
<if test="sts == null ">sts,</if>
|
||||||
</trim>
|
</trim>
|
||||||
)values(
|
)values(
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="id != null and id != ''"> #{id} ,</if>
|
<if test="id != null and id != ''">#{id} ,</if>
|
||||||
<if test="mdmId != null and mdmId != ''"> #{mdmId} ,</if>
|
<if test="mdmId != null and mdmId != ''">#{mdmId} ,</if>
|
||||||
<if test="dbName != null and dbName != ''"> #{dbName} ,</if>
|
<if test="dbName != null and dbName != ''">#{dbName} ,</if>
|
||||||
<if test="dbType != null and dbType != ''"> #{dbType} ,</if>
|
<if test="dbType != null and dbType != ''">#{dbType} ,</if>
|
||||||
<if test="remark != null and remark != ''"> #{remark} ,</if>
|
<if test="remark != null and remark != ''">#{remark} ,</if>
|
||||||
<if test="sorts != null"> #{sorts} ,</if>
|
<if test="sorts != null">#{sorts} ,</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
||||||
<if test="create_time != null"> #{create_time} ,</if>
|
<if test="create_time != null">#{create_time} ,</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
||||||
<if test="modify_time != null"> #{modify_time} ,</if>
|
<if test="modify_time != null">#{modify_time} ,</if>
|
||||||
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
<if test="sts != null and sts != ''">#{sts} ,</if>
|
||||||
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
||||||
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
<if test="companyId != null and companyId != ''">#{companyId} ,</if>
|
||||||
<if test="sts == null ">'Y',</if>
|
<if test="sts == null ">'Y',</if>
|
||||||
</trim>
|
</trim>
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<!-- 批量新增 -->
|
<!-- 批量新增 -->
|
||||||
<insert id="entityInsertBatch" >
|
<insert id="entityInsertBatch">
|
||||||
insert into mdm_module_db(mdm_id, db_name, db_type, remark, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
insert into mdm_module_db(mdm_id, db_name, db_type, remark, create_user_id, create_time, modify_user_id,
|
||||||
values
|
modify_time, sts, org_id, company_id, sts)
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
values
|
||||||
(#{entity.mdmId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
</foreach>
|
(#{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},
|
||||||
</insert>
|
'Y')
|
||||||
<!-- 批量新增或者修改-->
|
</foreach>
|
||||||
<insert id="entityInsertOrUpdateBatch" >
|
</insert>
|
||||||
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
|
<insert id="entityInsertOrUpdateBatch">
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
insert into mdm_module_db(mdm_id, db_name, db_type, remark, create_user_id, create_time, modify_user_id,
|
||||||
(#{entity.mdmId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
modify_time, sts, org_id, company_id)
|
||||||
</foreach>
|
values
|
||||||
on duplicate key update
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
mdm_id = values(mdm_id),
|
(#{entity.mdmId},#{entity.dbName},#{entity.dbType},#{entity.remark},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||||
db_name = values(db_name),
|
</foreach>
|
||||||
db_type = values(db_type),
|
on duplicate key update
|
||||||
remark = values(remark),
|
mdm_id = values(mdm_id),
|
||||||
create_user_id = values(create_user_id),
|
db_name = values(db_name),
|
||||||
create_time = values(create_time),
|
db_type = values(db_type),
|
||||||
modify_user_id = values(modify_user_id),
|
remark = values(remark),
|
||||||
modify_time = values(modify_time),
|
create_user_id = values(create_user_id),
|
||||||
sts = values(sts),
|
create_time = values(create_time),
|
||||||
org_id = values(org_id),
|
modify_user_id = values(modify_user_id),
|
||||||
company_id = values(company_id)</insert>
|
modify_time = values(modify_time),
|
||||||
<!--通过主键修改方法-->
|
sts = values(sts),
|
||||||
<update id="entity_update" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity" >
|
org_id = values(org_id),
|
||||||
update mdm_module_db set
|
company_id = values(company_id)
|
||||||
<trim suffix="" suffixOverrides=",">
|
</insert>
|
||||||
<if test="mdmId != null and mdmId != ''"> mdm_id = #{mdmId},</if>
|
<!--通过主键修改方法-->
|
||||||
<if test="dbName != null and dbName != ''"> db_name = #{dbName},</if>
|
<update id="entity_update" parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||||
<if test="dbType != null and dbType != ''"> db_type = #{dbType},</if>
|
update mdm_module_db set
|
||||||
<if test="remark != null and remark != ''"> remark = #{remark},</if>
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
<if test="mdmId != null and mdmId != ''">mdm_id = #{mdmId},</if>
|
||||||
<if test="create_time != null"> create_time = #{create_time},</if>
|
<if test="dbName != null and dbName != ''">db_name = #{dbName},</if>
|
||||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
<if test="dbType != null and dbType != ''">db_type = #{dbType},</if>
|
||||||
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||||
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
||||||
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
<if test="create_time != null">create_time = #{create_time},</if>
|
||||||
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
|
||||||
</trim>
|
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
||||||
where id = #{id}
|
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
||||||
</update>
|
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
||||||
<!-- 逻辑删除 -->
|
<if test="companyId != null and companyId != ''">company_id = #{companyId},</if>
|
||||||
<update id="entity_logicDelete" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity" >
|
</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}
|
update mdm_module_db set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
<!-- 多条件逻辑删除 -->
|
<!-- 多条件逻辑删除 -->
|
||||||
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity" >
|
<update id="entity_logicDelete_Multi_Condition"
|
||||||
update mdm_module_db set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||||
<trim prefix="where" prefixOverrides="and">
|
update mdm_module_db set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
<if test="id != null and id != ''">and id = #{id}</if>
|
||||||
<if test="dbName != null and dbName != ''"> and db_name = #{dbName} </if>
|
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
||||||
<if test="dbType != null and dbType != ''"> and db_type = #{dbType} </if>
|
<if test="dbName != null and dbName != ''">and db_name = #{dbName}</if>
|
||||||
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
<if test="dbType != null and dbType != ''">and db_type = #{dbType}</if>
|
||||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
||||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||||
|
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
</update>
|
</update>
|
||||||
<!--通过主键删除-->
|
<!--通过主键删除-->
|
||||||
<delete id="entity_delete">
|
<delete id="entity_delete">
|
||||||
delete from mdm_module_db where id = #{id}
|
delete from mdm_module_db where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
<select id="getServiceDataById" resultType="java.util.HashMap" parameterType="java.util.HashMap">
|
<select 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
|
order by sorts asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<!--通过mdmCode删除-->
|
||||||
|
<delete id="deleteMdmModuleDb" parameterType="com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity">
|
||||||
|
delete from mdm_module_db where mdm_id = #{mdmId}
|
||||||
|
</delete>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
|
|
@ -11,5 +11,6 @@ import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleDbFiledsDao extends IBaseDao<MdmModuleDbFiledsEntity, String> {
|
public interface IMdmModuleDbFiledsDao extends IBaseDao<MdmModuleDbFiledsEntity, String> {
|
||||||
|
|
||||||
|
int deleteMdmModuleDbFileds(MdmModuleDbFiledsEntity entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,5 +13,10 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
@Repository(value = "MdmModuleDbFiledsDaoImpl")
|
@Repository(value = "MdmModuleDbFiledsDaoImpl")
|
||||||
public class MdmModuleDbFiledsDaoImpl extends MybatisGenericDao<MdmModuleDbFiledsEntity, String> implements IMdmModuleDbFiledsDao{
|
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.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity;
|
||||||
import com.hzya.frame.web.entity.BaseEntity;
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
import org.apache.poi.ss.formula.functions.T;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模版数据库字段表(MdmModuleDbFileds)实体类
|
* 模版数据库字段表(MdmModuleDbFileds)实体类
|
||||||
*
|
*
|
||||||
|
@ -13,6 +15,8 @@ import com.hzya.frame.web.entity.BaseEntity;
|
||||||
*/
|
*/
|
||||||
public class MdmModuleDbFiledsEntity extends BaseEntity {
|
public class MdmModuleDbFiledsEntity extends BaseEntity {
|
||||||
|
|
||||||
|
/** 主数据模版ID */
|
||||||
|
private String dbName;
|
||||||
/** 主数据模版ID */
|
/** 主数据模版ID */
|
||||||
private String mdmId;
|
private String mdmId;
|
||||||
/** 模版数据库id */
|
/** 模版数据库id */
|
||||||
|
@ -51,6 +55,8 @@ public class MdmModuleDbFiledsEntity extends BaseEntity {
|
||||||
private String roleValue;
|
private String roleValue;
|
||||||
private List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRules;
|
private List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRules;
|
||||||
|
|
||||||
|
//1、查询2、列表3、新增4、修改 5、查看
|
||||||
|
private String fieldType;
|
||||||
public String getMdmId() {
|
public String getMdmId() {
|
||||||
return mdmId;
|
return mdmId;
|
||||||
}
|
}
|
||||||
|
@ -186,5 +192,21 @@ public class MdmModuleDbFiledsEntity extends BaseEntity {
|
||||||
public void setRoleValue(String roleValue) {
|
public void setRoleValue(String roleValue) {
|
||||||
this.roleValue = 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 id="entity_delete">
|
||||||
delete from mdm_module_db_fileds where id = #{id}
|
delete from mdm_module_db_fileds where id = #{id}
|
||||||
</delete>
|
</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>
|
</mapper>
|
||||||
|
|
||||||
|
|
|
@ -11,5 +11,6 @@ import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleDbFiledsRuleDao extends IBaseDao<MdmModuleDbFiledsRuleEntity, String> {
|
public interface IMdmModuleDbFiledsRuleDao extends IBaseDao<MdmModuleDbFiledsRuleEntity, String> {
|
||||||
|
|
||||||
|
Integer queryUserMdm(MdmModuleDbFiledsRuleEntity queryCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,5 +13,10 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
@Repository(value = "MdmModuleDbFiledsRuleDaoImpl")
|
@Repository(value = "MdmModuleDbFiledsRuleDaoImpl")
|
||||||
public class MdmModuleDbFiledsRuleDaoImpl extends MybatisGenericDao<MdmModuleDbFiledsRuleEntity, String> implements IMdmModuleDbFiledsRuleDao{
|
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 from mdm_module_db_fileds_rule where id = #{id}
|
||||||
</delete>
|
</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>
|
</mapper>
|
||||||
|
|
||||||
|
|
|
@ -8,272 +8,264 @@ import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
*/
|
*/
|
||||||
public interface IMdmService {
|
public interface IMdmService {
|
||||||
|
|
||||||
/**
|
///**
|
||||||
* @param jsonObject
|
// * @param jsonObject
|
||||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||||
* @Author lvleigang
|
// * @Author lvleigang
|
||||||
* @Description 主数据列表查询接口分页
|
// * @Description 主数据列表查询接口分页
|
||||||
* @Date 9:40 上午 2023/10/18
|
// * @Date 9:40 上午 2023/10/18
|
||||||
**/
|
// **/
|
||||||
JsonResultEntity queryMdmPage(JSONObject jsonObject);
|
//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
|
// * @param jsonObject
|
||||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||||
// * @Author lvleigang
|
// * @Author lvleigang
|
||||||
// * @Description 主数据设置查询权限配置
|
// * @Description 主数据列表查询接口列表
|
||||||
// * @Date 9:40 上午 2023/10/18
|
// * @Date 9:40 上午 2023/10/18
|
||||||
// **/
|
// **/
|
||||||
//JsonResultEntity queryMdmModuleRule(JSONObject jsonObject);
|
//JsonResultEntity queryMdmList(JSONObject jsonObject);
|
||||||
|
//
|
||||||
//
|
//
|
||||||
///**
|
///**
|
||||||
// * @param jsonObject
|
// * @param jsonObject
|
||||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||||
// * @Author lvleigang
|
// * @Author lvleigang
|
||||||
// * @Description 主数据设置保存权限配置
|
// * @Description 主数据新增
|
||||||
// * @Date 9:40 上午 2023/10/18
|
// * @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
|
// * @param jsonObject
|
||||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||||
// * @Author lvleigang
|
// * @Author lvleigang
|
||||||
// * @Description 主数据业务数据
|
// * @Description 主数据基本信息获取
|
||||||
// * @Date 9:40 上午 2023/10/18
|
// * @Date 9:40 上午 2023/10/18
|
||||||
// **/
|
// **/
|
||||||
//JsonResultEntity queryMdmShowDistribute(JSONObject jsonObject);
|
//JsonResultEntity queryMdmModule(JSONObject jsonObject);
|
||||||
/**
|
///**
|
||||||
* @param jsonObject
|
// * @param jsonObject
|
||||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||||
* @Author lvleigang
|
// * @Author lvleigang
|
||||||
* @Description 主数据业务数据树结构
|
// * @Description 主数据基本信息修改
|
||||||
* @Date 9:40 上午 2023/10/18
|
// * @Date 9:40 上午 2023/10/18
|
||||||
**/
|
// **/
|
||||||
JsonResultEntity queryMdmShowTreeData(JSONObject jsonObject);
|
//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
|
// * @param jsonObject
|
||||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||||
|
@ -281,59 +273,67 @@ public interface IMdmService {
|
||||||
// * @Description 主数据业务数据树结构
|
// * @Description 主数据业务数据树结构
|
||||||
// * @Date 9:40 上午 2023/10/18
|
// * @Date 9:40 上午 2023/10/18
|
||||||
// **/
|
// **/
|
||||||
//JsonResultEntity queryMdmOptionData(JSONObject jsonObject);
|
//JsonResultEntity queryMdmShowTreeData(JSONObject jsonObject);
|
||||||
//
|
/////**
|
||||||
/**
|
//// * @param jsonObject
|
||||||
* @param jsonObject
|
//// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
//// * @Author lvleigang
|
||||||
* @Author lvleigang
|
//// * @Description 主数据业务数据树结构
|
||||||
* @Description 主数据详情 区分类型 新增、修改、查看
|
//// * @Date 9:40 上午 2023/10/18
|
||||||
* @Date 9:40 上午 2023/10/18
|
//// **/
|
||||||
**/
|
////JsonResultEntity queryMdmOptionData(JSONObject jsonObject);
|
||||||
JsonResultEntity queryMdmShowDetails(JSONObject jsonObject);
|
////
|
||||||
//
|
///**
|
||||||
/**
|
// * @param jsonObject
|
||||||
* @param jsonObject
|
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
// * @Author lvleigang
|
||||||
* @Author lvleigang
|
// * @Description 主数据详情 区分类型 新增、修改、查看
|
||||||
* @Description 主数据详情数据 区分类型 新增、修改、查看
|
// * @Date 9:40 上午 2023/10/18
|
||||||
* @Date 9:40 上午 2023/10/18
|
// **/
|
||||||
**/
|
//JsonResultEntity queryMdmShowDetails(JSONObject jsonObject);
|
||||||
JsonResultEntity queryMdmShowDetailsData(JSONObject jsonObject);
|
////
|
||||||
//
|
///**
|
||||||
/**
|
// * @param jsonObject
|
||||||
* @param jsonObject
|
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
// * @Author lvleigang
|
||||||
* @Author lvleigang
|
// * @Description 主数据详情数据 区分类型 新增、修改、查看
|
||||||
* @Description 主数据详情数据修改
|
// * @Date 9:40 上午 2023/10/18
|
||||||
* @Date 9:40 上午 2023/10/18
|
// **/
|
||||||
**/
|
//JsonResultEntity queryMdmShowDetailsData(JSONObject jsonObject);
|
||||||
JsonResultEntity updateMdmShowDetailsData(JSONObject jsonObject);
|
////
|
||||||
/**
|
///**
|
||||||
* @param jsonObject
|
// * @param jsonObject
|
||||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||||
* @Author lvleigang
|
// * @Author lvleigang
|
||||||
* @Description 主数据详情数据新增
|
// * @Description 主数据详情数据修改
|
||||||
* @Date 9:40 上午 2023/10/18
|
// * @Date 9:40 上午 2023/10/18
|
||||||
**/
|
// **/
|
||||||
JsonResultEntity saveMdmShowDetailsData(JSONObject jsonObject);
|
//JsonResultEntity updateMdmShowDetailsData(JSONObject jsonObject);
|
||||||
|
///**
|
||||||
/**
|
// * @param jsonObject
|
||||||
* @param jsonObject
|
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
// * @Author lvleigang
|
||||||
* @Author lvleigang
|
// * @Description 主数据详情数据新增
|
||||||
* @Description 主数据删除业务数据
|
// * @Date 9:40 上午 2023/10/18
|
||||||
* @Date 9:40 上午 2023/10/18
|
// **/
|
||||||
**/
|
//JsonResultEntity saveMdmShowDetailsData(JSONObject jsonObject);
|
||||||
JsonResultEntity deleteMdmShowDetailsData(JSONObject jsonObject);
|
|
||||||
//
|
//
|
||||||
///**
|
///**
|
||||||
// * @param jsonObject
|
// * @param jsonObject
|
||||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||||
// * @Author lvleigang
|
// * @Author lvleigang
|
||||||
// * @Description 处理分发数据
|
// * @Description 主数据删除业务数据
|
||||||
// * @Date 9:40 上午 2023/10/18
|
// * @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.mdmModuleViewDetail.entity.MdmModuleViewDetailEntity;
|
||||||
import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity;
|
import com.hzya.frame.mdm.mdmTableCodeRule.entity.MdmTableCodeRuleEntity;
|
||||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
import org.springframework.cache.annotation.CacheEvict;
|
||||||
|
import org.springframework.cache.annotation.Cacheable;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -21,7 +23,6 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
public interface IMdmServiceCache {
|
public interface IMdmServiceCache {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author lvleigang
|
* @Author lvleigang
|
||||||
* @Description 获取模版主表
|
* @Description 获取模版主表
|
||||||
|
@ -30,14 +31,24 @@ public interface IMdmServiceCache {
|
||||||
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||||
**/
|
**/
|
||||||
MdmModuleEntity getMdmModuleEntity(Long mdmCode);
|
MdmModuleEntity getMdmModuleEntity(Long mdmCode);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author lvleigang
|
* @Author lvleigang
|
||||||
* @Description 获取模版单据编码规则
|
* @Description 修改模版主表
|
||||||
* @Date 10:13 上午 2024/6/3
|
* @Date 10:13 上午 2024/6/3
|
||||||
* @param mdmTableCodeRuleEntity
|
* @param entity
|
||||||
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
* @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
|
* @Author lvleigang
|
||||||
* @Description 获取模版表数据
|
* @Description 获取模版表数据
|
||||||
|
@ -46,6 +57,26 @@ public interface IMdmServiceCache {
|
||||||
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||||
**/
|
**/
|
||||||
List<MdmModuleDbEntity> queryMdmModuleDb(MdmModuleDbEntity queryDb);
|
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
|
* @Author lvleigang
|
||||||
* @Description 获取模版字段表数据
|
* @Description 获取模版字段表数据
|
||||||
|
@ -55,38 +86,21 @@ public interface IMdmServiceCache {
|
||||||
**/
|
**/
|
||||||
List<MdmModuleDbFiledsEntity> queryMdmModuleDbFileds(MdmModuleDbFiledsEntity queryDbFiled);
|
List<MdmModuleDbFiledsEntity> queryMdmModuleDbFileds(MdmModuleDbFiledsEntity queryDbFiled);
|
||||||
|
|
||||||
void updateMdmModuleEntity(MdmModuleEntity entity);
|
/**
|
||||||
|
* @Author lvleigang
|
||||||
|
* @Description 修改数据源db的字段
|
||||||
List<MdmModuleDbFiledsRuleEntity> queryMdmModuleDbFiledsRule(MdmModuleDbFiledsRuleEntity queryDbFiledRule);
|
* @Date 4:25 下午 2024/6/11
|
||||||
|
* @param mdmId
|
||||||
void saveMdmTableCodeRule(String mdmid, List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntities);
|
* @param mdmModuleDbFiledsEntities
|
||||||
|
* @return void
|
||||||
void saveMdmModuleDb(String id, List<MdmModuleDbEntity> mdmModuleDbEntities);
|
**/
|
||||||
|
void saveOrUpdateMdmModuleDbFileds(String mdmId, List<MdmModuleDbFiledsEntity> mdmModuleDbFiledsEntities);
|
||||||
void saveMdmModuleDbFileds(String id, List<MdmModuleDbFiledsEntity> mdmModuleDbFiledsEntities);
|
/**
|
||||||
|
* @Author lvleigang
|
||||||
void saveMdmModuleDbFiledsRule(String id, List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRuleEntities);
|
* @Description 删除数据源db的字段
|
||||||
|
* @Date 4:25 下午 2024/6/11
|
||||||
List<MdmModuleViewDetailEntity> queryMdmModuleViewDetail(MdmModuleViewDetailEntity mdmModuleViewDetailEntity);
|
* @param mdmId
|
||||||
|
* @return void
|
||||||
List<MdmModuleViewEntity> queryMdmModuleView(MdmModuleViewEntity mdmModuleViewEntity);
|
**/
|
||||||
|
void deleteMdmModuleDbFileds(String mdmId,String dbID);
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,27 +73,53 @@ public class MdmServiceCache implements IMdmServiceCache {
|
||||||
@Resource
|
@Resource
|
||||||
private IMdmTableCodeRuleDao mdmTableCodeRuleDao;
|
private IMdmTableCodeRuleDao mdmTableCodeRuleDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author lvleigang
|
||||||
|
* @Description 缓存主数据
|
||||||
|
* @Date 4:03 下午 2024/6/11
|
||||||
|
* @param mdmCode
|
||||||
|
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||||
|
**/
|
||||||
@Override
|
@Override
|
||||||
@Cacheable(cacheNames="mdmModule",key = "#mdmCode")
|
@Cacheable(cacheNames="mdmModule",key = "#mdmCode")
|
||||||
public MdmModuleEntity getMdmModuleEntity(Long mdmCode) {
|
public MdmModuleEntity getMdmModuleEntity(Long mdmCode) {
|
||||||
MdmModuleEntity entity = mdmModuleDao.getByMdmCode(mdmCode);
|
MdmModuleEntity entity = mdmModuleDao.getByMdmCode(mdmCode);
|
||||||
return entity;
|
return entity;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @Author lvleigang
|
||||||
|
* @Description 缓存删除主数据
|
||||||
|
* @Date 4:03 下午 2024/6/11
|
||||||
|
* @param entity
|
||||||
|
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||||
|
**/
|
||||||
@Override
|
@Override
|
||||||
@CacheEvict(cacheNames="mdmModule",key = "#entity.mdmCode")
|
@CacheEvict(cacheNames="mdmModule",key = "#entity.mdmCode")
|
||||||
public void updateMdmModuleEntity(MdmModuleEntity entity) {
|
public void updateMdmModuleEntity(MdmModuleEntity entity) {
|
||||||
mdmModuleDao.update(entity);
|
mdmModuleDao.update(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param entity
|
||||||
|
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||||
|
* @Author lvleigang
|
||||||
|
* @Description 删除模版主表
|
||||||
|
* @Date 10:13 上午 2024/6/3
|
||||||
|
**/
|
||||||
@Override
|
@Override
|
||||||
@Cacheable(cacheNames="mdmTableCodeRule",key = "#entity.mdmId")
|
@CacheEvict(cacheNames="mdmModule",key = "#entity.mdmCode")
|
||||||
public List<MdmTableCodeRuleEntity> queryMdmTableCodeRuleEntity(MdmTableCodeRuleEntity entity) {
|
public void deleteMdmModuleEntity(MdmModuleEntity entity) {
|
||||||
List<MdmTableCodeRuleEntity> mdmTableCodeRuleEntityList = mdmTableCodeRuleDao.queryBase(entity);
|
entity.setUpdate();
|
||||||
return mdmTableCodeRuleEntityList;
|
mdmModuleDao.logicRemoveMultiCondition(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author lvleigang
|
||||||
|
* @Description 缓存主数据DB
|
||||||
|
* @Date 4:03 下午 2024/6/11
|
||||||
|
* @param entity
|
||||||
|
* @return com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity
|
||||||
|
**/
|
||||||
@Override
|
@Override
|
||||||
@Cacheable(cacheNames="mdmModuleDb",key = "#entity.mdmId")
|
@Cacheable(cacheNames="mdmModuleDb",key = "#entity.mdmId")
|
||||||
public List<MdmModuleDbEntity> queryMdmModuleDb(MdmModuleDbEntity entity) {
|
public List<MdmModuleDbEntity> queryMdmModuleDb(MdmModuleDbEntity entity) {
|
||||||
|
@ -101,38 +127,17 @@ public class MdmServiceCache implements IMdmServiceCache {
|
||||||
return mdmModuleDbEntities;
|
return mdmModuleDbEntities;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/**
|
||||||
@Cacheable(cacheNames="mdmModuleDbFileds",key = "#entity.mdmId")
|
* @Author lvleigang
|
||||||
public List<MdmModuleDbFiledsEntity> queryMdmModuleDbFileds(MdmModuleDbFiledsEntity entity) {
|
* @Description 修改模版表数据
|
||||||
List<MdmModuleDbFiledsEntity> mdmModuleDbFiledsEntities = mdmModuleDbFiledsDao.queryBase(entity);
|
* @Date 4:23 下午 2024/6/11
|
||||||
return mdmModuleDbFiledsEntities;
|
* @param mdmId
|
||||||
}
|
* @param mdmModuleDbEntities
|
||||||
|
* @return void
|
||||||
@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));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@CacheEvict(cacheNames="mdmModuleDb",key = "#mdmId")
|
@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){
|
if(mdmModuleDbEntities != null && mdmModuleDbEntities.size() > 0){
|
||||||
for (int i = 0; i < mdmModuleDbEntities.size(); i++) {
|
for (int i = 0; i < mdmModuleDbEntities.size(); i++) {
|
||||||
if("1".equals(mdmModuleDbEntities.get(i).getDataType())){
|
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
|
@Override
|
||||||
@CacheEvict(cacheNames="mdmModuleDbFileds",key = "#mdmId")
|
@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){
|
if(mdmModuleDbFiledsEntities != null && mdmModuleDbFiledsEntities.size() > 0){
|
||||||
for (int i = 0; i < mdmModuleDbFiledsEntities.size(); i++) {
|
for (int i = 0; i < mdmModuleDbFiledsEntities.size(); i++) {
|
||||||
if("1".equals(mdmModuleDbFiledsEntities.get(i).getDataType())){
|
if("1".equals(mdmModuleDbFiledsEntities.get(i).getDataType())){
|
||||||
mdmModuleDbFiledsDao.save(mdmModuleDbFiledsEntities.get(i));
|
mdmModuleDbFiledsDao.save(mdmModuleDbFiledsEntities.get(i));
|
||||||
}else {
|
}else if ("2".equals(mdmModuleDbFiledsEntities.get(i).getDataType())) {
|
||||||
mdmModuleDbFiledsDao.update(mdmModuleDbFiledsEntities.get(i));
|
mdmModuleDbFiledsDao.update(mdmModuleDbFiledsEntities.get(i));
|
||||||
}
|
}else if ("3".equals(mdmModuleDbFiledsEntities.get(i).getDataType())) {
|
||||||
}
|
mdmModuleDbFiledsDao.logicRemoveMultiCondition(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));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param mdmId
|
||||||
|
* @return void
|
||||||
|
* @Author lvleigang
|
||||||
|
* @Description 删除数据源db的字段
|
||||||
|
* @Date 4:25 下午 2024/6/11
|
||||||
|
**/
|
||||||
@Override
|
@Override
|
||||||
@Cacheable(cacheNames="mdmModuleViewDetail",key = "#entity.mdmId")
|
@CacheEvict(cacheNames="mdmModuleDbFileds",key = "#mdmId")
|
||||||
public List<MdmModuleViewDetailEntity> queryMdmModuleViewDetail(MdmModuleViewDetailEntity entity) {
|
public void deleteMdmModuleDbFileds(String mdmId,String dbID) {
|
||||||
List<MdmModuleViewDetailEntity> mdmModuleViewDetailEntities = mdmModuleViewDetailDao.queryBase(entity);
|
MdmModuleDbFiledsEntity entity = new MdmModuleDbFiledsEntity();
|
||||||
return mdmModuleViewDetailEntities;
|
entity.setMdmId(mdmId);
|
||||||
|
entity.setDbId(dbID);
|
||||||
|
entity.setUpdate();
|
||||||
|
mdmModuleDbFiledsDao.logicRemoveMultiCondition(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
//
|
||||||
@Cacheable(cacheNames="mdmModuleView",key = "#entity.mdmId")
|
///**
|
||||||
public List<MdmModuleViewEntity> queryMdmModuleView(MdmModuleViewEntity entity) {
|
// * @Author lvleigang
|
||||||
List<MdmModuleViewEntity> moduleViewEntities = mdmModuleViewDao.queryBase(entity);
|
// * @Description 缓存主数据DB的所有字段的规则
|
||||||
return moduleViewEntities;
|
// * @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