Browse Source

解决修改状态失败问题

xuezizhuo 1 year ago
parent
commit
861dfc0954

+ 2 - 2
zkqy-process-execution/src/main/java/com/zkqy/execution/produce/dispersed/mapper/BpmApprovalStatusMapper.java

@@ -1,7 +1,7 @@
 package com.zkqy.execution.produce.dispersed.mapper;
 
 import com.zkqy.execution.produce.dispersed.entity.BpmApprovalStatus;
-import io.lettuce.core.dynamic.annotation.Param;
+import org.apache.ibatis.annotations.Param;
 
 import java.util.List;
 
@@ -85,5 +85,5 @@ public interface BpmApprovalStatusMapper {
      * @param where     条件
      * @return
      */
-    public int updateApprovalStatusByTableName(@Param("tableName") String tableName, @Param("approvalState") String state, @Param("where") String where);
+    public int updateApprovalStatusByTableName(@Param("tableName") String tableName, @Param("approvalState") String approvalState, @Param("where") String where);
 }

+ 2 - 2
zkqy-process-execution/src/main/resources/mapper/bpm/dispersed/BpmApprovalStatusMapper.xml

@@ -74,8 +74,8 @@
         where task_key = #{taskKey}
     </update>
 
-    <update id="updateApprovalStatusByTableName">
-        update {DBNAME}.#{tableName}
+    <update id="updateApprovalStatusByTableName" parameterType="string">
+        update {DBNAME}.${tableName}
         <trim prefix="SET" suffixOverrides=",">
             <if test="approvalState != null">approval_state = #{approvalState},</if>
         </trim>

+ 9 - 7
zkqy-ui/src/views/orderMange/purchase/index.vue

@@ -662,12 +662,14 @@ export default {
     },
     //审计新增
     async addHandler() {
-      alert("新增采购单")
-      //this.isEdit = false;
-      //await this.getDropDownData();
-      //this.resetFormData();
-      //this.title = "新增审计单";
-      //this.open = true;
+      this.handleAdd()
+      // alert("新增采购单")
+      // this.isEdit = false;
+      // await this.getDropDownData();
+      // this.resetFormData();
+      // this.title = "新增审计单";
+      // this.open = true;
+      // this.kOpen = true;
     },
     // 获取下拉框数据
     async getDropDownData() {
@@ -1182,7 +1184,7 @@ export default {
           Object.assign(this.dynamicData, dynamicData);
         }
         this.jsonData = JSON.parse(data.dfVueTemplate);
-        this.open = true;
+        this.kOpen = true;
         this.title = "添加信息";
         this.form.password = this.initPassword;
         this.$nextTick(() => {