|
@@ -128,18 +128,31 @@ public class NewFrontApi {
|
|
|
if (one1 == null) {
|
|
|
// obj.put( "UserEnterprise",null);
|
|
|
obj.put("user", "普通用户");
|
|
|
+ obj.put("isAllOrder", "2");
|
|
|
return CommonResult.success(obj);
|
|
|
} else {
|
|
|
UserEnterprise byId = userEnterpriseService.getById(one1.getEnterpriseId());
|
|
|
obj.put("UserEnterprise", byId);
|
|
|
obj.put("UserBypassAccount", one1);
|
|
|
obj.put("user", "企业子用户");
|
|
|
+ Integer isAllOrders = info.getIsAllOrders();
|
|
|
+ if (null!=isAllOrders){
|
|
|
+ if (1==isAllOrders){
|
|
|
+ obj.put("isAllOrder", "1");
|
|
|
+ }else{
|
|
|
+ obj.put("isAllOrder", "2");
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ obj.put("isAllOrder", "2");
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
return CommonResult.success(obj);
|
|
|
}
|
|
|
} else {
|
|
|
obj.put("UserEnterprise", one);
|
|
|
obj.put("user", "企业用户");
|
|
|
+ obj.put("isAllOrder", "1");
|
|
|
return CommonResult.success(obj);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
@@ -231,7 +244,21 @@ public class NewFrontApi {
|
|
|
@RequestParam(name = "isRemit") Integer isRemit,
|
|
|
@PathVariable String id,
|
|
|
@ModelAttribute PageParamRequest pageRequest) {
|
|
|
+
|
|
|
+
|
|
|
LambdaQueryWrapper<UserBypassAccount> queryWrapper2 = new LambdaQueryWrapper<>();
|
|
|
+ //获取登录账号信息
|
|
|
+ User user = userService.getInfo();
|
|
|
+ if(null!=user.getIsAllOrders()){
|
|
|
+ if(3==user.getIsEnterpriseUser()&&1==user.getIsAllOrders()){
|
|
|
+ LambdaQueryWrapper<UserBypassAccount> queryWrapper3 = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper3.eq(UserBypassAccount::getEnterpriseId, user.getId());
|
|
|
+ UserBypassAccount one = userBypassAccountService.getOne(queryWrapper3);
|
|
|
+ Integer enterpriseId = one.getEnterpriseId();
|
|
|
+ id= String.valueOf(enterpriseId);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
queryWrapper2.eq(UserBypassAccount::getEnterpriseId, id);
|
|
|
|
|
|
if (!department.equals("")) {
|