From 12962512591a2e8f6d17b82b129abcdc7c0560fd Mon Sep 17 00:00:00 2001 From: erzhongxmu Date: Thu, 23 Feb 2023 19:20:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/system/sms/util/task/SmsSendTask.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/jeecgframework/web/system/sms/util/task/SmsSendTask.java b/src/main/java/org/jeecgframework/web/system/sms/util/task/SmsSendTask.java index 07f63ced..762ef027 100644 --- a/src/main/java/org/jeecgframework/web/system/sms/util/task/SmsSendTask.java +++ b/src/main/java/org/jeecgframework/web/system/sms/util/task/SmsSendTask.java @@ -60,10 +60,15 @@ public class SmsSendTask { hql = "from WmImNoticeIEntity t where t.binPre<>? "; WmInNoticeIlist = systemService.findHql(hql, "Y"); for (WmImNoticeIEntity wmImNoticeIEntity : WmInNoticeIlist) { - if (Double.parseDouble(wmImNoticeIEntity.getGoodsCount()) <= Double.parseDouble(wmImNoticeIEntity.getGoodsQmCount())) { - wmImNoticeIEntity.setBinPre("Y"); - systemService.saveOrUpdate(wmImNoticeIEntity); + try{ + if (Double.parseDouble(wmImNoticeIEntity.getGoodsCount()) <= Double.parseDouble(wmImNoticeIEntity.getGoodsQmCount())) { + wmImNoticeIEntity.setBinPre("Y"); + systemService.saveOrUpdate(wmImNoticeIEntity); + } + }catch (Exception e){ + e.printStackTrace(); } + } } catch (Exception e) { // TODO: handle exception