|
|
@@ -322,8 +322,10 @@ public class SiMzService {
|
|
|
int count = dao.selectSiMzInfoCount(mz.getPatNo(), -1);
|
|
|
if (count == 0) {
|
|
|
PsnBaseInfo patinfo = dao.selectPsnBaseinfo(mz.getPatNo(), mz.getTimes());
|
|
|
- patinfo.setTimes(-1);
|
|
|
- dao.insertSiMzInfoPsnNo(patinfo);
|
|
|
+ if (null != patinfo) {
|
|
|
+ patinfo.setTimes(-1);
|
|
|
+ dao.insertSiMzInfoPsnNo(patinfo);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|