diff --git a/src/main/resources/mybatis/mapper/news/news-mapper.xml b/src/main/resources/mybatis/mapper/news/news-mapper.xml index 345f7ab..b7fd461 100644 --- a/src/main/resources/mybatis/mapper/news/news-mapper.xml +++ b/src/main/resources/mybatis/mapper/news/news-mapper.xml @@ -341,7 +341,7 @@ #{newsIds[${index}]} - ORDER BY t1.id DESC + ORDER BY t1.publish_time DESC diff --git a/src/main/resources/templates/complaint/list.html b/src/main/resources/templates/complaint/list.html index 0e8eb4f..7200b1e 100644 --- a/src/main/resources/templates/complaint/list.html +++ b/src/main/resources/templates/complaint/list.html @@ -105,10 +105,28 @@ return '-'; } if(1 == rowData) { - return '已处理'; + return '

已处理

'; } if(0 == rowData) { - return '未处理'; + return '

未处理

'; + } + return rowData; + } + }, + {field: 'gmtCreate', width: 180, title: '举报时间', align:'center', + templet: function(row) { + var rowData = row[this.field]; + if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { + return '-'; + } + return rowData; + } + }, + {field: 'handleContent', width: 180, title: '处理结果', align:'center', + templet: function(row) { + var rowData = row[this.field]; + if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { + return '-'; } return rowData; }