Commit 19312c5d authored by neo's avatar neo

[dev] re generate mysql mapper xml

parent 239e789a
jdbc.driverClass=com.mysql.jdbc.Driver jdbc.driverClass=com.mysql.jdbc.Driver
jdbc.connectionURL=jdbc:mysql://10.157.107.89:3306/tax_admin?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true jdbc.connectionURL=jdbc:mysql://10.158.230.144:3306/tax_admin?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false
jdbc.userId=root jdbc.userId=root
jdbc.password=tax@Admin2018 jdbc.password=tax@Admin2018
/ /
jdbc.driverClass=com.mysql.jdbc.Driver jdbc.driverClass=com.mysql.jdbc.Driver
jdbc.connectionURL=jdbc:mysql://10.157.107.89:3306/a1800013?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true jdbc.connectionURL=jdbc:mysql://10.158.230.144:3306/a1800000?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false
jdbc.userId=root jdbc.userId=root
jdbc.password=tax@Admin2018 jdbc.password=tax@Admin2018
<?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="AttributeID" jdbcType="VARCHAR" property="attributeID"/>
<result column="AttributeName" jdbcType="NVARCHAR" property="attributeName"/>
<result column="DimensionID" jdbcType="VARCHAR" property="dimensionID"/>
<result column="DimensionName" jdbcType="VARCHAR" property="dimensionName"/>
<result column="OrderIndex" jdbcType="SMALLINT" property="orderIndex"/>
</resultMap>
<select id="selectByParentDimensionId" parameterType="map"
resultMap="BaseResultMap"><![CDATA[
select
p.ID AttributeID,
p.Name AttributeName,
d.ID DimensionID,
d.Name DimensionName,
sd.OrderIndex OrderIndex
from
StatisticAttribute p
join StatisticAttributeDimension sd on p.ID = sd.StatisticsAttributeID
join Dimension d on sd.DimensionID = d.ID
where p.IsActive = 1 and d.IsActive = 1 and d.ID = #{parentDimensionId,jdbcType=VARCHAR}
order by sd.OrderIndex
]]></select>
<select id="selectByOrgSubChildrenID" parameterType="map"
resultMap="BaseResultMap"><![CDATA[
select
p.StatisticsAttributeID AttributeID,
d.DictValue AttributeName,
#{parentDimensionId} DimensionID,
'' DimensionName,
p.OrderIndex OrderIndex
from
StatisticAttributeDimension p
join Dictionary d on p.StatisticsAttributeID = d.ID
where p.DimensionID =#{parentDimensionId}
]]></select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment