|
|
@ -75,6 +75,24 @@ public class ToolTransQueryServiceImpl implements ToolTransQueryService { |
|
|
return new PageUtils(result); |
|
|
return new PageUtils(result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public PageUtils searchToolInstanceTransDetailPage(ToolTransDetailQueryParam query) { |
|
|
|
|
|
if (query == null) { |
|
|
|
|
|
throw new RuntimeException("查询条件不能为空"); |
|
|
|
|
|
} |
|
|
|
|
|
int pageNum = normalizePage(query.getPage()); |
|
|
|
|
|
int limit = normalizeLimit(query.getLimit()); |
|
|
|
|
|
query.setPage(pageNum); |
|
|
|
|
|
query.setLimit(limit); |
|
|
|
|
|
|
|
|
|
|
|
log.info("工具实例出入库记录明细分页查询, site={}, toolInstanceId={}, page={}, limit={}", |
|
|
|
|
|
query.getSite(), query.getToolInstanceId(), pageNum, limit); |
|
|
|
|
|
|
|
|
|
|
|
Page<Map<String, Object>> page = new Page<>(pageNum, limit); |
|
|
|
|
|
IPage<Map<String, Object>> result = toolTransDetailMapper.selectToolInstanceTransDetailPage(page, query); |
|
|
|
|
|
return new PageUtils(result); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public List<String> searchToolTransTypeList(String site) { |
|
|
public List<String> searchToolTransTypeList(String site) { |
|
|
String siteCond = (site == null || site.trim().isEmpty()) ? null : site.trim(); |
|
|
String siteCond = (site == null || site.trim().isEmpty()) ? null : site.trim(); |
|
|
|