This commit is contained in:
parent
9054c6b9ee
commit
3a9fcceb61
|
@ -1,7 +1,9 @@
|
||||||
package com.hzya.frame.mdm.mdmModuleSource.dao;
|
package com.hzya.frame.mdm.mdmModuleSource.dao;
|
||||||
|
|
||||||
import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity;
|
import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity;
|
||||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主数据数据来源(mdm_module_source: table)表数据库访问层
|
* 主数据数据来源(mdm_module_source: table)表数据库访问层
|
||||||
|
@ -10,6 +12,16 @@ import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
* @since 2024-06-05 11:42:56
|
* @since 2024-06-05 11:42:56
|
||||||
*/
|
*/
|
||||||
public interface IMdmModuleSourceDao extends IBaseDao<MdmModuleSourceEntity, String> {
|
public interface IMdmModuleSourceDao extends IBaseDao<MdmModuleSourceEntity, String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @content 根据数据来源内类型是插件的应用类型做分组
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Author hecan
|
||||||
|
* @Date 2024/6/6 10:43
|
||||||
|
* **/
|
||||||
|
List<MdmModuleSourceEntity> MdmModuleSourceentityGroupByType();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,9 @@ import com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity;
|
||||||
import com.hzya.frame.mdm.mdmModuleSource.dao.IMdmModuleSourceDao;
|
import com.hzya.frame.mdm.mdmModuleSource.dao.IMdmModuleSourceDao;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主数据数据来源(MdmModuleSource)表数据库访问层
|
* 主数据数据来源(MdmModuleSource)表数据库访问层
|
||||||
*
|
*
|
||||||
|
@ -12,6 +15,14 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
*/
|
*/
|
||||||
@Repository(value = "MdmModuleSourceDaoImpl")
|
@Repository(value = "MdmModuleSourceDaoImpl")
|
||||||
public class MdmModuleSourceDaoImpl extends MybatisGenericDao<MdmModuleSourceEntity, String> implements IMdmModuleSourceDao{
|
public class MdmModuleSourceDaoImpl extends MybatisGenericDao<MdmModuleSourceEntity, String> implements IMdmModuleSourceDao{
|
||||||
|
//根据数据来源内类型是插件的应用类型做分组
|
||||||
|
@Override
|
||||||
|
public List<MdmModuleSourceEntity> MdmModuleSourceentityGroupByType() {
|
||||||
|
List<MdmModuleSourceEntity> list =(List<MdmModuleSourceEntity>) super.selectList(getSqlIdPrifx() + "MdmModuleSourceentityGroupByType", "");
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -131,6 +131,15 @@
|
||||||
<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="MdmModuleSourceentityGroupByType" resultMap="get-MdmModuleSourceEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity">
|
||||||
|
select
|
||||||
|
source_type as sourceType,source_name as sourceName,source_code as sourceCode
|
||||||
|
from mdm_module_source
|
||||||
|
where source_type='1' and sts='Y'
|
||||||
|
group by source_type,source_name,source_code
|
||||||
|
</select>
|
||||||
|
|
||||||
<!--新增所有列-->
|
<!--新增所有列-->
|
||||||
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity" >
|
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity" >
|
||||||
insert into mdm_module_source(
|
insert into mdm_module_source(
|
||||||
|
|
Loading…
Reference in New Issue