|
@@ -287,7 +287,29 @@
|
|
|
))) a
|
|
|
</select>
|
|
|
|
|
|
- <select id="getAllOkReportTable" resultType="com.example.opc_common.entity.ReportTable">
|
|
|
+ <resultMap type="com.example.opc_common.entity.ReportTable" id="allReportTable">
|
|
|
+ <id property="id" column="id"/>
|
|
|
+ <result property="userId" column="user_id"/>
|
|
|
+ <result property="userName" column="user_name"/>
|
|
|
+ <result property="reportTableName" column="report_table_name"/>
|
|
|
+ <result property="reportValueFormat" column="report_value_format"/>
|
|
|
+ <result property="isAutoReport" column="is_auto_report"/>
|
|
|
+ <result property="cronId" column="cron_id"/>
|
|
|
+ <result property="cron" column="cron"/>
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
+ <collection column="id" property="userGroupList"
|
|
|
+ ofType="com.example.opc_common.entity.UserGroup" select="getUserGroupById">
|
|
|
+ <id column="id" property="id"/>
|
|
|
+ </collection>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <select id="getUserGroupById" parameterType="INTEGER" resultType="com.example.opc_common.entity.UserGroup">
|
|
|
+ SELECT user_group_id as id
|
|
|
+ FROM t_table_user_group
|
|
|
+ where table_id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getAllOkReportTable" resultMap="allReportTable">
|
|
|
select
|
|
|
trt.id,
|
|
|
trt.user_id,
|