Эх сурвалжийг харах

SAI开项管理:搜索条件修改

wangggziwen 2 жил өмнө
parent
commit
a061296f2b

+ 1 - 1
master/src/main/resources/mybatis/production/TSaiApplyMapper.xml

@@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="inspectors != null  and inspectors != ''"> and inspectors = #{inspectors}</if>
             <if test="inspectors != null  and inspectors != ''"> and inspectors = #{inspectors}</if>
             <if test="applicantDept != null  and applicantDept != ''"> and applicant_dept = #{applicantDept}</if>
             <if test="applicantDept != null  and applicantDept != ''"> and applicant_dept = #{applicantDept}</if>
             <if test="applicantTeam != null  and applicantTeam != ''"> and applicant_team = #{applicantTeam}</if>
             <if test="applicantTeam != null  and applicantTeam != ''"> and applicant_team = #{applicantTeam}</if>
-            <if test="description != null  and description != ''"> and description = #{description}</if>
+            <if test="description != null  and description != ''"> and description like concat(concat('%', #{description}), '%') </if>
             <if test="unsafeStatus != null "> and unsafe_status = #{unsafeStatus}</if>
             <if test="unsafeStatus != null "> and unsafe_status = #{unsafeStatus}</if>
             <if test="unsafeAction != null "> and unsafe_action = #{unsafeAction}</if>
             <if test="unsafeAction != null "> and unsafe_action = #{unsafeAction}</if>
             <if test="applyDate != null "> and apply_date = #{applyDate}</if>
             <if test="applyDate != null "> and apply_date = #{applyDate}</if>

+ 10 - 0
ui/src/views/production/apply/all/index.vue

@@ -52,6 +52,16 @@
           ></el-option>
           ></el-option>
         </el-select>
         </el-select>
       </el-form-item>
       </el-form-item>
+      <el-form-item label="申请状态" prop="applyStatus">
+        <el-select v-model="queryParams.applyStatus" placeholder="请选择申请状态">
+          <el-option
+            v-for="dict in applyStatusOptions"
+            :key="dict.dictValue"
+            :label="dict.dictLabel"
+            :value="dict.dictValue"
+          ></el-option>
+        </el-select>
+      </el-form-item>
       <el-form-item label="问题描述" prop="description">
       <el-form-item label="问题描述" prop="description">
         <el-input
         <el-input
           v-model="queryParams.description"
           v-model="queryParams.description"