This commit is contained in:
parent
2bbfc519b5
commit
5fb8613936
|
@ -1,7 +1,9 @@
|
|||
package com.hzya.frame.mdm.mdmModuleSource.dao;
|
||||
|
||||
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)表数据库访问层
|
||||
|
@ -10,6 +12,16 @@ import com.hzya.frame.basedao.dao.IBaseDao;
|
|||
* @since 2024-06-05 11:42:56
|
||||
*/
|
||||
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 org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 主数据数据来源(MdmModuleSource)表数据库访问层
|
||||
*
|
||||
|
@ -12,6 +15,14 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
|||
*/
|
||||
@Repository(value = "MdmModuleSourceDaoImpl")
|
||||
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>
|
||||
</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" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into mdm_module_source(
|
||||
|
|
Loading…
Reference in New Issue