|
@@ -91,10 +91,13 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getChartItemList" resultType="com.example.opc_common.entity.ChartItem">
|
|
<select id="getChartItemList" resultType="com.example.opc_common.entity.ChartItem">
|
|
- select
|
|
|
|
- <include refid="chartItem"/>
|
|
|
|
- from t_chart_item
|
|
|
|
- where chart_id = #{chartId}
|
|
|
|
|
|
+ select tci.id
|
|
|
|
+ , tci.chart_id
|
|
|
|
+ , tci.item_id
|
|
|
|
+ , ti.item_group_id
|
|
|
|
+ from t_chart_item tci
|
|
|
|
+ left join t_item ti on tci.item_id = ti.id
|
|
|
|
+ where tci.chart_id = #{chartId}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getChartByUserGroupId" resultType="com.example.opc_common.entity.Chart">
|
|
<select id="getChartByUserGroupId" resultType="com.example.opc_common.entity.Chart">
|