|
@@ -436,6 +436,24 @@
|
|
|
|
|
|
<select id="getAllReportTable" resultType="com.example.opc_common.entity.ReportTable">
|
|
|
select
|
|
|
+ r.id
|
|
|
+ , r.report_table_type, r.table_template_id, r.user_id, r.report_table_name, r.start_time, r.current_num,
|
|
|
+ r.is_gen_count_time, r.version, r.is_run_print, r.print_ip, r.print_config_id, r.cron_id, r.type, r.cron , r.run_state, r.create_time, r.is_delete,
|
|
|
+ (select GROUP_CONCAT(u.user_group_name) from t_table_user_group g left outer join t_user_group u on u.id=g.user_group_id where r.id=g.table_id) shareGroup
|
|
|
+ from t_report_table r
|
|
|
+ where r.user_id = #{userId}
|
|
|
+ <if test="reportTableName != null and reportTableName != ''">
|
|
|
+ AND r.report_table_name LIKE CONCAT('%', #{reportTableName}, '%')
|
|
|
+ </if>
|
|
|
+ AND r.report_table_type IN ( 0, 1, 2 ,5 )
|
|
|
+ <if test="reportTableType != null">
|
|
|
+ AND r.report_table_type = #{reportTableType}
|
|
|
+ </if>
|
|
|
+ order by r.create_time desc
|
|
|
+ limit #{startNum},#{limitNum}
|
|
|
+ </select>
|
|
|
+ <select id="getAllReportTable2" resultType="com.example.opc_common.entity.ReportTable">
|
|
|
+ select
|
|
|
<include refid="reportTableCronNoData"/>
|
|
|
from t_report_table
|
|
|
where user_id = #{userId}
|