feat: ASW-59 application 新增接口调整;增加 href 属性
This commit is contained in:
35
src/main/resources/db/mapper/app/ApplicationHrefMapper.xml
Normal file
35
src/main/resources/db/mapper/app/ApplicationHrefMapper.xml
Normal 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>
|
||||
Reference in New Issue
Block a user