Commit fe67777b authored by gary's avatar gary

Merge branch 'dev_mysql' of code.tech.tax.asia.pwcinternal.com:root/atms into dev_mysql

parents 5f336c4e eafd4899
...@@ -31,9 +31,9 @@ ...@@ -31,9 +31,9 @@
<select id="selectAreaRegionByAreaId" parameterType="string" resultMap="ResultMapWithAreaAndRegion"> <select id="selectAreaRegionByAreaId" parameterType="string" resultMap="ResultMapWithAreaAndRegion">
SELECT SELECT
areaRegion.id, area_region.id,
areaRegion.area_id AS AREA_REGION_AREA_ID, area_region.area_id AS AREA_REGION_AREA_ID,
areaRegion.region_id AS AREA_REGION_REGION_ID, area_region.region_id AS AREA_REGION_REGION_ID,
area.id AS AREA_ID, area.id AS AREA_ID,
area.parent_id AS AREA_PARENT_ID, area.parent_id AS AREA_PARENT_ID,
area.name AS AREA_NAME, area.name AS AREA_NAME,
...@@ -50,13 +50,13 @@ ...@@ -50,13 +50,13 @@
region.latitude AS REGION_LATITUDE, region.latitude AS REGION_LATITUDE,
region.is_active AS REGION_IS_ACTIVE region.is_active AS REGION_IS_ACTIVE
FROM FROM
areaRegion, area_region,
area, area,
region region
WHERE WHERE
areaRegion.area_id = area.ID area_region.area_id = area.ID
AND areaRegion.region_id = region.ID AND area_region.region_id = region.ID
AND areaRegion.area_id = #{areaId} AND area_region.area_id = #{areaId}
ORDER BY ORDER BY
region_id region_id
</select> </select>
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
WHERE WHERE
A.name = "通用行业" A.name = "通用行业"
AND B.group_type = 2 AND B.group_type = 2
--AND rownum =1 LIMIT 1
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
P.template_group_id=Q.id P.template_group_id=Q.id
WHERE WHERE
p.id= #{id,jdbcType=VARCHAR} p.id= #{id,jdbcType=VARCHAR}
--AND ROWNUM=1 LIMIT 1
</select> </select>
<select id="getCountOfTemplateAndGroupByTemplateName" parameterType="map" resultType="java.lang.Long"> <select id="getCountOfTemplateAndGroupByTemplateName" parameterType="map" resultType="java.lang.Long">
......
...@@ -310,7 +310,8 @@ ...@@ -310,7 +310,8 @@
ON ON
CELLDATA.ID = CELLDATASOURCE.CELL_DATA_ID CELLDATA.ID = CELLDATASOURCE.CELL_DATA_ID
WHERE WHERE
CELLDATASOURCE.DATA_SOURCE_ID = #{dataSourceID,jdbcType=BIGINT} AND ROWNUM = 1 CELLDATASOURCE.DATA_SOURCE_ID = #{dataSourceID,jdbcType=BIGINT}
LIMIT 1
</select> </select>
<!--DELETE FROM period_tax_rule_setting WHERE period=#{period,jdbcType=INTEGER};--> <!--DELETE FROM period_tax_rule_setting WHERE period=#{period,jdbcType=INTEGER};-->
......
...@@ -230,8 +230,9 @@ ...@@ -230,8 +230,9 @@
AND CT.COLUMN_INDEX = #{columnIndex,jdbcType = INTEGER} AND CT.COLUMN_INDEX = #{columnIndex,jdbcType = INTEGER}
AND CT.PERIOD = #{period,jdbcType = INTEGER} AND CT.PERIOD = #{period,jdbcType = INTEGER}
AND CTC.DATA_SOURCE_TYPE = 2 AND CTC.DATA_SOURCE_TYPE = 2
AND CTC.PERIOD= #{period,jdbcType = INTEGER} AND ROWNUM = 1 AND CTC.PERIOD= #{period,jdbcType = INTEGER}
AND CT.PROJECT_ID = #{projectId,jdbcType=VARCHAR} AND CT.PROJECT_ID = #{projectId,jdbcType=VARCHAR}
LIMIT 1
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -112,7 +112,8 @@ ...@@ -112,7 +112,8 @@
AND CT.PERIOD = R.PERIOD AND CT.PERIOD = R.PERIOD
WHERE WHERE
CT.CELL_TEMPLATE_ID = #{cellTemplateId,jdbcType=BIGINT} CT.CELL_TEMPLATE_ID = #{cellTemplateId,jdbcType=BIGINT}
AND R.ID = #{reportId,jdbcType=BIGINT} AND ROWNUM = 1 AND R.ID = #{reportId,jdbcType=BIGINT}
LIMIT 1
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -339,7 +339,8 @@ ...@@ -339,7 +339,8 @@
ON ON
CELLDATA.ID = CELLDATASOURCE.CELL_DATA_ID AND CELLDATA.PROJECT_ID = CELLDATASOURCE.PROJECT_ID CELLDATA.ID = CELLDATASOURCE.CELL_DATA_ID AND CELLDATA.PROJECT_ID = CELLDATASOURCE.PROJECT_ID
WHERE WHERE
CELLDATASOURCE.DATA_SOURCE_ID = #{dataSourceID,jdbcType=BIGINT} AND ROWNUM = 1 CELLDATASOURCE.DATA_SOURCE_ID = #{dataSourceID,jdbcType=BIGINT}
LIMIT 1
</select> </select>
......
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