whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/service/BattTestparamService.java
@@ -4,6 +4,7 @@
import com.whyc.dto.Response;
import com.whyc.mapper.BattTestparamMapper;
import com.whyc.pojo.BattTestparam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@@ -15,10 +16,14 @@
    @Resource
    private BattTestparamMapper mapper;
    @Autowired
    private SubTablePageInfoService subService;
    //查看测试参数
    public Response searchBattTestparam(int battGroupId, int testRecordCount) {
        //判断表是否存在
        int tableNum = mapper.judgeTable(String.valueOf(battGroupId));
        //int tableNum = mapper.judgeTable(String.valueOf(battGroupId));
        int tableNum = subService.judgeTable(String.valueOf(battGroupId));
        if (tableNum > 0) {
            List<BattTestparam> list = mapper.searchBattTestparam(battGroupId, testRecordCount);
            PageInfo pageInfo = new PageInfo(list);