“djh”
5 天以前 7acaebcb01438578ded72491f39105db893982ef
multi-system/src/main/java/com/gkhy/exam/system/service/impl/InformationPlatformServiceImpl.java
@@ -12,7 +12,6 @@
import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
import java.util.Collections;
import java.util.List;
/**
@@ -26,11 +25,11 @@
    @Override
    public List<InformationPlatform> getInformationPlatforms(Long companyId) {
        if (companyId == null) {
            companyId = SecurityUtils.getLoginUser().getUser().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);
@@ -40,10 +39,10 @@
    @Override
    public int saveInformationPlatform(InformationPlatform informationPlatform) {
        Long companyId = informationPlatform.getCompanyId();
        if (!companyId.equals(SecurityUtils.getLoginUser().getUser().getCompanyId())){
            throw new ApiException("无权操作!");
        }
//        Long companyId = informationPlatform.getCompanyId();
//        if (!companyId.equals(SecurityUtils.getCompanyId())){
//            throw new ApiException("无权操作!");
//        }
        if (informationPlatform.getId() != null){
            informationPlatform.setUpdateTime(LocalDateTime.now());