修复报表列表接口重复列Bug
This commit is contained in:
@@ -115,19 +115,19 @@
|
|||||||
<!-- </select>-->
|
<!-- </select>-->
|
||||||
|
|
||||||
<select id="list" parameterType="com.adc.da.report.vo.ReportQueryVo" resultType="com.adc.da.report.vo.ReportVo">
|
<select id="list" parameterType="com.adc.da.report.vo.ReportQueryVo" resultType="com.adc.da.report.vo.ReportVo">
|
||||||
SELECT t.id, t.year, t.name, t.keycontent, t.fileId, t.createDate, t.department, t.maincontent,
|
SELECT DISTINCT t.id, t.year, t.name, t.keycontent, t.fileId, t.createDate, t.department, t.maincontent,
|
||||||
t.confidentialLevel, t.privacyLevel
|
t.confidentialLevel, t.privacyLevel
|
||||||
FROM `tt_report_manage` AS t
|
FROM `tt_report_manage` AS t
|
||||||
INNER JOIN ts_report_label AS trl ON t.id = trl.report_id
|
INNER JOIN ts_report_label AS trl ON t.id = trl.report_id
|
||||||
WHERE 1 = 1
|
WHERE 1 = 1
|
||||||
|
|
||||||
<!--报表名称搜索-->
|
<!--报表名称搜索-->
|
||||||
<if test="Vo.name !=null and Vo.name !=''">
|
<if test="Vo.name != null and Vo.name != ''">
|
||||||
and t.name like "%"#{Vo.name}"%"
|
and t.name like "%"#{Vo.name}"%"
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<!--年份搜索-->
|
<!--年份搜索-->
|
||||||
<if test="Vo.year !=null and Vo.year.size() >0">
|
<if test="Vo.year != null and Vo.year.size() > 0">
|
||||||
and t.year in
|
and t.year in
|
||||||
<foreach collection="Vo.year" item="year" open="(" separator="," close=")">
|
<foreach collection="Vo.year" item="year" open="(" separator="," close=")">
|
||||||
#{year}
|
#{year}
|
||||||
@@ -135,7 +135,7 @@
|
|||||||
</if>
|
</if>
|
||||||
|
|
||||||
<!--用户搜索-->
|
<!--用户搜索-->
|
||||||
<if test="Vo.usid !=null and Vo.usid !=''">
|
<if test="Vo.usid != null and Vo.usid != ''">
|
||||||
and t.userId=#{Vo.usid}
|
and t.userId=#{Vo.usid}
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user