错误处理

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<>? ";
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