From f4073b80717879d6fe36ba14758a5ed23582122d Mon Sep 17 00:00:00 2001 From: gengby <858962040@qq.com> Date: Fri, 10 Mar 2023 18:05:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../instruction/service/impl/InstructionServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/instruction/service/impl/InstructionServiceImpl.java b/acs/nladmin-system/src/main/java/org/nl/acs/instruction/service/impl/InstructionServiceImpl.java index f0a3e14c9..91e40d7d3 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/instruction/service/impl/InstructionServiceImpl.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/instruction/service/impl/InstructionServiceImpl.java @@ -238,7 +238,7 @@ public class InstructionServiceImpl implements InstructionService, ApplicationAu @Override public Instruction findByCode(String code) { WQLObject wo = WQLObject.getWQLObject("acs_instruction"); - JSONObject json = wo.query("instruction_code ='" + code + "'").uniqueResult(0); + JSONObject json = wo.query("instruction_code ='" + code + "'","create_time desc").uniqueResult(0); if (ObjectUtil.isEmpty(json)) { return null; } @@ -249,7 +249,7 @@ public class InstructionServiceImpl implements InstructionService, ApplicationAu @Override public Instruction findByTaskcode(String code) { WQLObject wo = WQLObject.getWQLObject("acs_instruction"); - JSONObject json = wo.query("task_code ='" + code + "'").uniqueResult(0); + JSONObject json = wo.query("task_code ='" + code + "'","create_time desc").uniqueResult(0); final Instruction obj = json.toJavaObject(Instruction.class); return obj; } @@ -288,7 +288,7 @@ public class InstructionServiceImpl implements InstructionService, ApplicationAu wherecaluse = " and " + wherecaluse; } WQLObject wo = WQLObject.getWQLObject("acs_instruction"); - JSONObject json = wo.query("task_id ='" + id + "'" + wherecaluse).uniqueResult(0); + JSONObject json = wo.query("task_id ='" + id + "'" + wherecaluse,"create_time desc").uniqueResult(0); if (ObjectUtil.isNotEmpty(json)) { return json.toJavaObject(Instruction.class); }