Commit a2d938f7 authored by neo's avatar neo

[bugfix] use poject to join two tables

parent 16b1e5c8
......@@ -202,6 +202,7 @@
(
CELL_TEMPLATE.CELL_TEMPLATE_ID = CONFIG.CELL_TEMPLATE_ID
AND CELL_TEMPLATE.PERIOD = CONFIG.PERIOD
AND CELL_TEMPLATE.PROJECT_ID = CONFIG.PROJECT_ID
)
WHERE
CELL_TEMPLATE.REPORT_TEMPLATE_ID IN
......@@ -222,7 +223,7 @@
JOIN
PERIOD_CELL_TEMPLATE_CONFIG CTC
ON
CT.CELL_TEMPLATE_ID = CTC.CELL_TEMPLATE_ID
CT.CELL_TEMPLATE_ID = CTC.CELL_TEMPLATE_ID AND CT.PROJECT_ID=CTC.PROJECT_ID
WHERE
CT.REPORT_TEMPLATE_ID = #{reportTemplateId,jdbcType=BIGINT}
AND CT.ROW_INDEX = #{rowIndex,jdbcType = INTEGER}
......
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