浏览代码

招聘计划管理增加状态筛选

wengchengjian 2 月之前
父节点
当前提交
6949ae8fa9

+ 1 - 0
ruoyi-system/src/main/resources/mapper/ahrs/recruitplan/RecruitPlanMainMapper.xml

@@ -82,6 +82,7 @@
             <if test="deptId != null and deptId != 0">
                 AND (a.dept_id = #{deptId} OR a.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE FIND_IN_SET (#{deptId},ancestors) and t.dept_level = #{deptLevel}))
             </if>
+            <if test="delFlag != null  and delFlag != ''"> and a.del_flag = #{delFlag}</if>
         </where>
         order by a.create_time DESC
     </select>

+ 16 - 0
ruoyi-system/src/main/resources/templates/ahrs/recruitplan/recruit.html

@@ -129,6 +129,14 @@
         border: 1px solid #D5DFF9;
         border-radius: 2px;
     }
+
+    .select-list li select{
+        height: 40px;
+    }
+
+    .select-list li input {
+        height: 40px;
+    }
 </style>
 <body class="">
      <div class="bg-9ac" style="padding: 18px;">
@@ -147,6 +155,14 @@
                                 <input  type="text" style="height: 40px;line-height: 40px;border-radius: 4px;width: 150px;"  class="form-control" id="recruitPlanYearSearch" placeholder=""
                                        name="recruitPlanYear"/>
                             </li>
+                            <li >
+                                <p style="height: 40px;line-height: 40px;margin: 0;text-align:left;width: 40px;">状态:</p>
+                                <select name="delFlag">
+                                    <option value="">所有</option>
+                                    <option value="0">正常</option>
+                                    <option value="2">已删除</option>
+                                </select>
+                            </li>
                             <li class="flex align-center">
                                 <button onclick="$.table.search()" type="button" class="btn btn-bg-blue padding-lr-36 margin-lr-10 flex align-center">
                                     <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" class="bi bi-search margin-r-8" viewBox="0 0 16 16">