|
@@ -14,6 +14,7 @@ import com.yh.saas.plugin.yiliangyiyun.mapper.DriverInfoMapper;
|
|
import com.yh.saas.plugin.yiliangyiyun.service.*;
|
|
import com.yh.saas.plugin.yiliangyiyun.service.*;
|
|
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
|
import com.yh.saas.plugin.yiliangyiyun.util.EntityAnalyse;
|
|
import com.yh.saas.plugin.yiliangyiyun.util.EntityAnalyse;
|
|
|
|
+import lombok.SneakyThrows;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
@@ -23,6 +24,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.util.CollectionUtils;
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
|
+import java.io.PrintWriter;
|
|
import java.net.HttpURLConnection;
|
|
import java.net.HttpURLConnection;
|
|
import java.text.ParseException;
|
|
import java.text.ParseException;
|
|
import java.text.SimpleDateFormat;
|
|
import java.text.SimpleDateFormat;
|
|
@@ -372,13 +374,13 @@ public class DriverInfoServiceImpl extends ServiceImpl<DriverInfoMapper, HyDrive
|
|
//查询司机列表
|
|
//查询司机列表
|
|
HyDriverInfo hyDriverInfo1 = this.selectById(hyDriverInfo.getId());
|
|
HyDriverInfo hyDriverInfo1 = this.selectById(hyDriverInfo.getId());
|
|
if (hyDriverInfo1 != null) {
|
|
if (hyDriverInfo1 != null) {
|
|
- //通过
|
|
|
|
|
|
+ //
|
|
if ("1".equals(hyDriverInfo.getFlag())) {
|
|
if ("1".equals(hyDriverInfo.getFlag())) {
|
|
//上报司机信息校验结果查询
|
|
//上报司机信息校验结果查询
|
|
String token = EntityAnalyse.GetJTToken();
|
|
String token = EntityAnalyse.GetJTToken();
|
|
hyDriverInfo.setToken(token);
|
|
hyDriverInfo.setToken(token);
|
|
if (!"通过".equals(EntityAnalyse.driverInfoCheck(hyDriverInfo))){
|
|
if (!"通过".equals(EntityAnalyse.driverInfoCheck(hyDriverInfo))){
|
|
- return EntityAnalyse.driverInfoCheck(hyDriverInfo);
|
|
|
|
|
|
+ throw new YException(YExceptionEnum.SHANG_BAO_ERROR);
|
|
}
|
|
}
|
|
|
|
|
|
hyDriverInfo1.setAuthenticationStatusKey(StatusEnum.IDENTITY_COMPLETED.getFlag());
|
|
hyDriverInfo1.setAuthenticationStatusKey(StatusEnum.IDENTITY_COMPLETED.getFlag());
|