| | |
| | | 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; |
| | |
| | | @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); |