Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
0fa9fef2
Commit
0fa9fef2
authored
Sep 26, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev] add My staticic attribuite xml
parent
ddde41ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
MyStatisticAttributeMapper.xml
...c/taxtech/atms/dao/extends/MyStatisticAttributeMapper.xml
+48
-0
No files found.
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/MyStatisticAttributeMapper.xml
0 → 100644
View file @
0fa9fef2
<?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=
"pwc.taxtech.atms.dao.MyStatisticAttributeMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"pwc.taxtech.atms.dpo.StatisticAttributeDisplayDto"
>
<id
column=
"ID"
jdbcType=
"VARCHAR"
property=
"id"
/>
<result
column=
"ATTRIBUTE_ID"
jdbcType=
"VARCHAR"
property=
"attributeId"
/>
<result
column=
"ATTRIBUTE_NAME"
jdbcType=
"NVARCHAR"
property=
"attributeName"
/>
<result
column=
"DIMENSION_ID"
jdbcType=
"VARCHAR"
property=
"dimensionId"
/>
<result
column=
"DIMENSION_NAME"
jdbcType=
"VARCHAR"
property=
"dimensionName"
/>
<result
column=
"ORDER_INDEX"
jdbcType=
"SMALLINT"
property=
"orderIndex"
/>
</resultMap>
<select
id=
"selectByParentDimensionId"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<![CDATA[
SELECT
P.ID AS ATTRIBUTE_ID,
P.NAME AS ATTRIBUTE_NAME,
D.ID AS DIMENSION_ID,
D.NAME AS DIMENSION_NAME,
SD.ORDER_INDEX AS ORDER_INDEX
FROM
STATISTIC_ATTRIBUTE P
JOIN STATISTIC_ATTRIBUTE_DIMENSION SD ON P.ID = SD.STATISTICS_ATTRIBUTE_ID
JOIN DIMENSION D ON SD.DIMENSION_ID = D.ID
WHERE
P.IS_ACTIVE = 1
AND D.IS_ACTIVE = 1 AND D.ID = #{parentDimensionId,jdbcType=VARCHAR}
ORDER BY SD.ORDER_INDEX
]]>
</select>
<select
id=
"selectByOrgSubChildrenID"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<![CDATA[
SELECT
P.STATISTICS_ATTRIBUTE_ID AS ATTRIBUTE_ID,
D.DICT_VALUE AS ATTRIBUTE_NAME,
#{parentDimensionId} AS DIMENSION_ID,
'' AS DIMENSION_NAME,
P.ORDER_INDEX AS ORDER_INDEX
FROM
STATISTIC_ATTRIBUTE_DIMENSION P
JOIN DICTIONARY D ON P.STATISTICS_ATTRIBUTE_ID = D.ID
WHERE
P.DIMENSION_ID=#{parentDimensionId}
]]>
</select>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment