heheng
5 days ago 3134991a6c9315421ff3d4b3b4f1bd76bb5dbdc9
multi-system/src/main/java/com/gkhy/exam/system/service/impl/ProcessInspectionServiceImpl.java
@@ -7,7 +7,6 @@
import com.gkhy.exam.system.domain.ProcessInspection;
import com.gkhy.exam.system.mapper.ProcessInspectionMapper;
import com.gkhy.exam.system.service.ProcessInspectionService;
import net.sf.jsqlparser.expression.operators.relational.ItemsList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -21,14 +20,14 @@
    private ProcessInspectionMapper processInspectionMapper;
    @Override
    public CommonPage selectProcessInspectionList(Integer companyId, Integer templateType) {
    public CommonPage selectProcessInspectionList(Integer companyId, Integer templateType,Integer itemId) {
        boolean admin = SecurityUtils.adminUser();
        if (!admin){
            if (companyId==null){
                companyId = SecurityUtils.getCompanyId().intValue();
            }
        }
        List<ProcessInspection> processInspections = processInspectionMapper.selectByCompanyidAndTypeList(companyId, templateType);
        List<ProcessInspection> processInspections = processInspectionMapper.selectByCompanyidAndTypeList(companyId, templateType, itemId);
        return CommonPage.restPage(processInspections);
    }