Commit d9cef7db by shiwenbo

增加非空校验

parent f3d1de2c
......@@ -79,7 +79,10 @@ public class SelfPickupCarServiceImpl implements SelfPickupCarService {
@Override
public String getCarInfoByContractId(String contractId) {
KObject carInfoKObject = selfPickupCarDao.getCarInfoByContractId(UUID.fromString(contractId));
String carInfo = carInfoKObject.getString("carInfo");
String carInfo = "";
if(null != carInfoKObject) {
carInfo = carInfoKObject.getString("carInfo");
}
return carInfo;
}
......
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