From da93ba3cb60109ce8cebf261291434fafa816dd1 Mon Sep 17 00:00:00 2001 From: gityjf <2211675158@qq.com> Date: Tue, 29 Jun 2021 18:43:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E9=85=8D=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/amarsoft/app/flow/FlowAction.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/amarsoft/app/flow/FlowAction.java b/src/com/amarsoft/app/flow/FlowAction.java index 494cbb258..04587d97f 100644 --- a/src/com/amarsoft/app/flow/FlowAction.java +++ b/src/com/amarsoft/app/flow/FlowAction.java @@ -691,7 +691,7 @@ public class FlowAction { sql.setOriginalSql(sql.getOriginalSql().replaceAll("¡÷", ":")); sql.setRunSql(sql.getRunSql().replaceAll("¡÷", ":")); tran.executeSQL(sql); - sql = new SqlObject("update user_task_info set task_number = nvl(task_number, 0) + 1 " + sql = new SqlObject("update user_task_info set task_number = task_number + 1 " + " where userid = '" + AssignmentId + "' and roleid = '" + curRole + "'"); tran.executeSQL(sql); } else { @@ -703,8 +703,8 @@ public class FlowAction { sql.setOriginalSql(sql.getOriginalSql().replaceAll("¡÷", ":")); sql.setRunSql(sql.getRunSql().replaceAll("¡÷", ":")); tran.executeSQL(sql); - sql = new SqlObject("update user_task_info set task_number = nvl(task_number, 0) - 1 " - + " where userid = '" + userID + "' and roleid = '" + curRole + "'"); + sql = new SqlObject("update user_task_info set task_number = task_number - 1 " + + " where userid = '" + userID + "' and roleid = '" + curRole + "' and task_number >=1 "); tran.executeSQL(sql); } }