错误处理

master
erzhongxmu 2023-02-23 19:20:08 +08:00
parent 3de74393d4
commit 1296251259
1 changed files with 8 additions and 3 deletions

View File

@ -60,10 +60,15 @@ public class SmsSendTask {
hql = "from WmImNoticeIEntity t where t.binPre<>? "; hql = "from WmImNoticeIEntity t where t.binPre<>? ";
WmInNoticeIlist = systemService.findHql(hql, "Y"); WmInNoticeIlist = systemService.findHql(hql, "Y");
for (WmImNoticeIEntity wmImNoticeIEntity : WmInNoticeIlist) { for (WmImNoticeIEntity wmImNoticeIEntity : WmInNoticeIlist) {
if (Double.parseDouble(wmImNoticeIEntity.getGoodsCount()) <= Double.parseDouble(wmImNoticeIEntity.getGoodsQmCount())) { try{
wmImNoticeIEntity.setBinPre("Y"); if (Double.parseDouble(wmImNoticeIEntity.getGoodsCount()) <= Double.parseDouble(wmImNoticeIEntity.getGoodsQmCount())) {
systemService.saveOrUpdate(wmImNoticeIEntity); wmImNoticeIEntity.setBinPre("Y");
systemService.saveOrUpdate(wmImNoticeIEntity);
}
}catch (Exception e){
e.printStackTrace();
} }
} }
} catch (Exception e) { } catch (Exception e) {
// TODO: handle exception // TODO: handle exception