Commit fc100bcc by lixian7

驾照有效日期调整

parent c4088391
......@@ -265,7 +265,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
InsuranceInfoRes insuranceInfoRes = new InsuranceInfoRes();
insuranceInfoRes.setPlateNum(bindInfo.getPlateNum());
insuranceInfoRes.setInsuranceType("交强险");
if (StrUtil.isNotBlank(vehicleRes.getBxzzrq())) {
if (StrUtil.isNotBlank(vehicleRes.getBxzzrq()) && !"null".equalsIgnoreCase(vehicleRes.getBxzzrq())) {
Long time = DateUtil.parse(vehicleRes.getBxzzrq(), "yyyy-MM-dd HH:mm:ss").getTime();
if (time >= System.currentTimeMillis()) {
insuranceInfoRes.setStatus("有效");
......@@ -368,7 +368,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
result.setDriverName(drivingLicenseRes.getXm());
result.setPlateNum(byPlateNumAndType.getHphm());
String validityTime = drivingLicenseRes.getYxqz();
if( StrUtil.isNotBlank(validityTime) ) {
if( StrUtil.isNotBlank(validityTime) && !"null".equalsIgnoreCase(validityTime) ) {
validityTime.substring(0, 10);
}
result.setValidityTime(validityTime);
......
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