错误处理
parent
fa823e6c3a
commit
0daecb9211
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue