错误处理

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");
for (WmImNoticeIEntity wmImNoticeIEntity : WmInNoticeIlist) {
try{
if(StringUtil.isNotEmpty(wmImNoticeIEntity.getGoodsCount())&&StringUtil.isNotEmpty(wmImNoticeIEntity.getGoodsQmCount())){
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