“djh”
2026-02-03 9fa1e9aa80718718c2991b5fb32db0dd50ef1248
multi-system/src/main/java/com/gkhy/exam/system/service/impl/InformationPlatformServiceImpl.java
@@ -3,7 +3,6 @@
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gkhy.exam.common.constant.UserConstant;
import com.gkhy.exam.common.exception.ApiException;
import com.gkhy.exam.common.utils.SecurityUtils;
import com.gkhy.exam.system.domain.InformationPlatform;
import com.gkhy.exam.system.mapper.InformationPlatformMapper;
@@ -25,11 +24,11 @@
    @Override
    public List<InformationPlatform> getInformationPlatforms(Long companyId) {
        if (companyId == null) {
            companyId = SecurityUtils.getCompanyId();
        }
        LambdaQueryWrapper<InformationPlatform> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(InformationPlatform::getCompanyId, companyId);
        if (companyId != null){
            queryWrapper.eq(InformationPlatform::getCompanyId, companyId);
        }
        queryWrapper.eq(InformationPlatform::getDelFlag, UserConstant.ENABLE);
        queryWrapper.orderByDesc(InformationPlatform::getCreateTime);
@@ -39,10 +38,10 @@
    @Override
    public int saveInformationPlatform(InformationPlatform informationPlatform) {
        Long companyId = informationPlatform.getCompanyId();
        if (!companyId.equals(SecurityUtils.getCompanyId())){
            throw new ApiException("无权操作!");
        }
//        Long companyId = informationPlatform.getCompanyId();
//        if (!companyId.equals(SecurityUtils.getCompanyId())){
//            throw new ApiException("无权操作!");
//        }
        if (informationPlatform.getId() != null){
            informationPlatform.setUpdateTime(LocalDateTime.now());