|
|
@@ -71,12 +71,8 @@ public class AuthServiceImpl implements IAuthService {
|
|
|
/*运营端/企业端登录(PC/APP)*/
|
|
|
if (loginBase.getSystemType() == SystemTypeEnum.MANAGE.getCode()
|
|
|
|| loginBase.getSystemType() == SystemTypeEnum.COMPANY.getCode()) {
|
|
|
- KwsUserResDto kwsUserResDto = systemService.queryByAccount(loginBase.getAccount());
|
|
|
- if (Objects.nonNull(kwsUserResDto)) {
|
|
|
- loginBase.setSystemType(SystemTypeEnum.COMPANY.getCode());
|
|
|
- return this.commonAuth(loginBase);
|
|
|
- }
|
|
|
- return this.driverAuth(loginBase);
|
|
|
+ // KwsUserResDto kwsUserResDto = systemService.queryByAccount(loginBase.getAccount());
|
|
|
+ return this.commonAuth(loginBase);
|
|
|
}
|
|
|
|
|
|
/*司机端*/
|
|
|
@@ -917,6 +913,7 @@ public class AuthServiceImpl implements IAuthService {
|
|
|
boolean isDoorKeeper = StringUtils.isNotBlank(roleName) && roleName.contains("门卫");
|
|
|
boolean isForkliftDriver = StringUtils.isNotBlank(roleName) && roleName.contains("铲车司机");
|
|
|
boolean isBuyer = StringUtils.isNotBlank(roleName) && roleName.contains("买家");
|
|
|
+ boolean isDriver = StringUtils.isNotBlank(roleName) && roleName.contains("司机");
|
|
|
if (isDoorKeeper) {
|
|
|
return buildDoorKeeperTabBar();
|
|
|
}
|
|
|
@@ -926,10 +923,13 @@ public class AuthServiceImpl implements IAuthService {
|
|
|
if (isBuyer) {
|
|
|
return buildBuyerTabBar();
|
|
|
}
|
|
|
+ if (isDriver){
|
|
|
+ return buildDefaultDriverTabBar();
|
|
|
+ }
|
|
|
if (flag == 1) {
|
|
|
return buildDefaultDriverTabBar();
|
|
|
}
|
|
|
- if (flag == 0 && !isDoorKeeper && !isForkliftDriver && !isBuyer){
|
|
|
+ if (flag == 0 && !isDoorKeeper && !isForkliftDriver && !isBuyer && !isDriver){
|
|
|
return buildBuyerTabBar();
|
|
|
}
|
|
|
return List.of();
|
|
|
@@ -949,6 +949,18 @@ public class AuthServiceImpl implements IAuthService {
|
|
|
"/static/tabbar/trade.png",
|
|
|
"/pages/tradeOrder/index"
|
|
|
));
|
|
|
+ items.add(buildTabBarItem(
|
|
|
+ "物流订单",
|
|
|
+ "/static/tabbar/logOrder_select.png",
|
|
|
+ "/static/tabbar/logOrder.png",
|
|
|
+ "/pages/logistics/order/index"
|
|
|
+ ));
|
|
|
+ items.add(buildTabBarItem(
|
|
|
+ "物流运单",
|
|
|
+ "/static/tabbar/waybill_select.png",
|
|
|
+ "/static/tabbar/waybill.png",
|
|
|
+ "/pages/logistics/waybill/index"
|
|
|
+ ));
|
|
|
items.add(buildTabBarItem(
|
|
|
"个人中心",
|
|
|
"/static/tabbar/my_select.png",
|