|
@@ -7,6 +7,7 @@
|
|
|
<resultMap id="BaseResultMap" type="org.springblade.business.entity.StandardInfo">
|
|
|
<id property="id" column="id"/>
|
|
|
<result property="name" column="name"/>
|
|
|
+ <result property="symbol" column="symbol"/>
|
|
|
<result property="parentId" column="parent_id"/>
|
|
|
<result property="type" column="type"/>
|
|
|
<result property="isDeleted" column="is_deleted"/>
|
|
@@ -15,9 +16,10 @@
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
<result property="updateUser" column="update_user"/>
|
|
|
</resultMap>
|
|
|
- <resultMap id="BaseResultPageMap" type="org.springblade.business.dto.StandardInfoDTO">
|
|
|
+ <resultMap id="BaseResultPageMap" type="org.springblade.business.vo.StandardInfoDtoVo">
|
|
|
<id property="id" column="id"/>
|
|
|
<result property="name" column="name"/>
|
|
|
+ <result property="symbol" column="symbol"/>
|
|
|
<result property="parentId" column="parent_id"/>
|
|
|
<result property="standardId" column="standard_id"/>
|
|
|
<result property="type" column="type"/>
|
|
@@ -26,18 +28,19 @@
|
|
|
<result property="createUser" column="create_user"/>
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
<result property="updateUser" column="update_user"/>
|
|
|
+ <result property="symbolName" column="symbolName"/>
|
|
|
<collection property="info" ofType="org.springblade.business.entity.StandardInfo" select="findByParentId" column="{parentId=id}">
|
|
|
</collection>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
id
|
|
|
- ,name,parent_id,standard_id,type,is_deleted,create_time,
|
|
|
+ ,name,symbol,parent_id,standard_id,type,is_deleted,create_time,
|
|
|
create_user,update_time,update_user
|
|
|
</sql>
|
|
|
<select id="selectMyPage" resultMap="BaseResultPageMap">
|
|
|
SELECT
|
|
|
- <include refid="Base_Column_List"/>
|
|
|
+ <include refid="Base_Column_List"/>,concat(symbol,name) symbolName
|
|
|
FROM
|
|
|
u_standard_info
|
|
|
<where>
|
|
@@ -60,7 +63,7 @@
|
|
|
</select>
|
|
|
<select id="selectMyOne" resultMap="BaseResultPageMap">
|
|
|
SELECT
|
|
|
- <include refid="Base_Column_List"/>
|
|
|
+ <include refid="Base_Column_List"/>,concat(symbol,name) symbolName
|
|
|
FROM
|
|
|
u_standard_info
|
|
|
WHERE
|