ソースを参照

注册已审核的排序修改

huZhiHao 5 年 前
コミット
e8d2babddd

+ 1 - 0
src/main/java/platform/modules/government/web/SupermeController.java

@@ -831,6 +831,7 @@ public class SupermeController extends BaseController {
 			Example.Criteria criteria2 = example2.createCriteria();
 			criteria2.andEqualTo("del_flag", 0);
 			criteria2.andEqualTo("tid", type_id);
+			criteria2.andEqualTo("is_active", 1);
 			itemList = dictionaryItemService.selectByExample(example2);
 			modelMap.put("itemList", itemList);
 			if(itemList.size()>0) {

+ 1 - 1
src/main/resources/mapper/company/ProjectMaterialDao.xml

@@ -6,7 +6,7 @@
         SELECT 
         	t.id as template_id,
         	t.name as content 
-        FROM template t WHERE  t.item_id = #{type} and t.del_flag = 0 and t.is_active = 1
+        FROM template t WHERE  t.item_id = #{type} and t.del_flag = 0 and t.is_active = 1 order by create_time
     </select>
 
     <select id="findByContentAndApplyId" resultType="platform.modules.company.entity.ProjectMaterial">

+ 2 - 0
src/main/resources/templates/admin/super/template/template_add.html

@@ -49,6 +49,7 @@
                         <th>模板名称</th>
                         <th>模板文件</th>
                         <th>有效标记</th>
+                        <th>创建时间</th>
                         <th width="100">操作</th>
                     </tr>
                     </thead>
@@ -67,6 +68,7 @@
 		                	<span class="label radius" th:if="*{is_active==false}">否</span>
 		                    <span class="label radius label-success" th:unless="*{is_active==false}">是</span>
 		                </td>
+                        <td th:text="*{create_time}"></td>
 		                <td class="td-manage">
 		                    <a title="编辑" href="javascript:;"  th:onclick="'javascript:template_editFile(\'编辑模板文件\',\'/super/template/editFile/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">编辑</a>
 		                    <a title="删除" href="javascript:;"  th:onclick="'javascript:template_del(\'/super/template/delete/'+*{id}+'\');'" class="ml-5" style="text-decoration:none">删除</a>