Commit 53e0b995 authored by yaobaizheng's avatar yaobaizheng

原数据消失提交报错

parent 75c9aef3
......@@ -443,7 +443,7 @@ public class ParkInfoServiceImpl extends ServiceImpl<ParkInfoMapper, ParkInfo> i
//校验数据是否已经被认证,如果被认证则直接自动退回
if (parkInfoAllVO.getParkInfo().getStatus() == ParkInfoEnum.STATUS_RZZ.getCode()) {
ParkInfo parkInfo2 = parkInfoMapper.selectById(parkInfo.getMirrorId());
if (parkInfo2.getStatus() == ParkInfoEnum.STATUS_ZF.getCode()) {
if (ObjectUtils.isNotEmpty(parkInfo2) &&parkInfo2.getStatus() == ParkInfoEnum.STATUS_ZF.getCode()) {
parkInfo.setStatus(ParkInfoEnum.STATUS_ZF.getCode());
parkInfo.setReason(ParkInfoEnum.STATUS_ZF_REASON.getName());
}
......@@ -487,7 +487,7 @@ public class ParkInfoServiceImpl extends ServiceImpl<ParkInfoMapper, ParkInfo> i
//校验数据是否已经被认证,如果被认证则直接自动退回
if (parkInfoAllVO.getParkInfo().getStatus() == ParkInfoEnum.STATUS_RZZ.getCode()) {
ParkInfo parkInfo1 = parkInfoMapper.selectById(parkInfoAllVO.getParkInfo().getId());
if (parkInfo1.getStatus() == ParkInfoEnum.STATUS_ZF.getCode()) {
if (ObjectUtils.isNotEmpty(parkInfo1) && parkInfo1.getStatus() == ParkInfoEnum.STATUS_ZF.getCode()) {
parkInfo.setStatus(ParkInfoEnum.STATUS_ZF.getCode());
parkInfo.setReason(ParkInfoEnum.STATUS_ZF_REASON.getName());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment