localizer
ljw 2025-09-15 02:29:47 +08:00
parent 09f143a8ca
commit 3df5492e6c
3 changed files with 8 additions and 3 deletions

View File

@ -6,6 +6,7 @@ import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.google.common.base.Strings;
import com.njzscloud.common.core.ex.Exceptions;
import com.njzscloud.common.mp.support.PageParam;
import com.njzscloud.common.mp.support.PageResult;
@ -108,8 +109,12 @@ public class BizCompanyService extends ServiceImpl<BizCompanyMapper, BizCompanyE
UserDetail userDetail = SecurityUtil.loginUser();
Long userId = userDetail.getUserId();
String bizObjValue = userDetail.getBizObj();
BizObj bizObj = BizObj.valueOf(bizObjValue);
BizCompanyEntity bizCompanyEntity;
if (Strings.isNullOrEmpty(bizObjValue)) {
bizCompanyEntity = this.getById(id);
return BeanUtil.copyProperties(bizCompanyEntity, SearchCompanyResult.class);
}
BizObj bizObj = BizObj.valueOf(bizObjValue);
switch (bizObj) {
case ShiGongDanWei:
case QingYunGongSi:

View File

@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
*
*
*/
@Slf4j
@RestController

View File

@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
*
*
*/
@Slf4j
@RestController