|
|
|
@ -44,7 +44,7 @@ import org.springblade.core.tool.utils.Func;
|
|
|
|
|
import org.springblade.system.entity.User; |
|
|
|
|
import org.springblade.system.feign.IUserClient; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
import org.springframework.web.servlet.handler.UserRoleAuthorizationInterceptor; |
|
|
|
|
|
|
|
|
|
import springfox.documentation.annotations.ApiIgnore; |
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
@ -130,11 +130,11 @@ public class BasicdataDriverArteryController extends BladeController {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String phone = basicdataDriverArtery.getPhone(); |
|
|
|
|
R<User> userR = userClient.userInfoByPhone(AuthUtil.getUser().getTenantId(), phone); |
|
|
|
|
if (Func.isNotEmpty(userR.getData())){ |
|
|
|
|
User user = userR.getData(); |
|
|
|
|
basicdataDriverArtery.setUserId(user.getId()); |
|
|
|
|
} |
|
|
|
|
// R<User> userR = userClient.userInfoByPhone(AuthUtil.getUser().getTenantId(), phone);
|
|
|
|
|
// if (Func.isNotEmpty(userR.getData())){
|
|
|
|
|
// User user = userR.getData();
|
|
|
|
|
// basicdataDriverArtery.setUserId(user.getId());
|
|
|
|
|
// }
|
|
|
|
|
boolean save = basicdataDriverArteryService.save(basicdataDriverArtery); |
|
|
|
|
//加入关联表
|
|
|
|
|
if (null !=basicdataDriverArtery.getBindVehicles()&& save){ |
|
|
|
|