feat: ASW-59 application 新增接口调整;增加 href 属性

This commit is contained in:
shizhendong
2024-09-05 11:24:05 +08:00
parent 0f4c12b38e
commit bec7e90774
9 changed files with 282 additions and 15 deletions

View File

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="net.geedge.asw.module.app.dao.ApplicationHrefDao">
<!-- 通用查询映射结果 -->
<resultMap id="resultMap" type="net.geedge.asw.module.app.entity.ApplicationHrefEntity">
<id column="id" property="id"/>
<result column="application_id" property="applicationId"/>
<result column="name" property="name"/>
<result column="url" property="url"/>
<result column="create_timestamp" property="createTimestamp"/>
<result column="create_user_id" property="createUserId"/>
<association property="createUser" columnPrefix="cu_" javaType="net.geedge.asw.module.sys.entity.SysUserEntity">
<id property="id" column="id"/>
<result property="name" column="name"/>
<result property="userName" column="user_name"/>
</association>
</resultMap>
<select id="queryList" resultMap="resultMap">
SELECT
href.*,
cu.id AS cu_id,
cu.NAME AS cu_name,
cu.user_name AS cu_user_name
FROM
application_href href
LEFT JOIN sys_user cu ON href.create_user_id = cu.id
WHERE
href.application_id = #{applicationId}
</select>
</mapper>