错误处理

master
erzhongxmu 2023-02-23 19:25:50 +08:00
parent fa823e6c3a
commit 0daecb9211
1 changed files with 5 additions and 4 deletions

View File

@ -61,14 +61,15 @@ public class SmsSendTask {
WmInNoticeIlist = systemService.findHql(hql, "Y"); WmInNoticeIlist = systemService.findHql(hql, "Y");
for (WmImNoticeIEntity wmImNoticeIEntity : WmInNoticeIlist) { for (WmImNoticeIEntity wmImNoticeIEntity : WmInNoticeIlist) {
try{ try{
if (Double.parseDouble(wmImNoticeIEntity.getGoodsCount()) <= Double.parseDouble(wmImNoticeIEntity.getGoodsQmCount())) { if(StringUtil.isNotEmpty(wmImNoticeIEntity.getGoodsCount())&&StringUtil.isNotEmpty(wmImNoticeIEntity.getGoodsQmCount())){
wmImNoticeIEntity.setBinPre("Y"); if (Double.parseDouble(wmImNoticeIEntity.getGoodsCount()) <= Double.parseDouble(wmImNoticeIEntity.getGoodsQmCount())) {
systemService.saveOrUpdate(wmImNoticeIEntity); wmImNoticeIEntity.setBinPre("Y");
systemService.saveOrUpdate(wmImNoticeIEntity);
}
} }
}catch (Exception e){ }catch (Exception e){
e.printStackTrace(); e.printStackTrace();
} }
} }
} catch (Exception e) { } catch (Exception e) {
// TODO: handle exception // TODO: handle exception