Commit 007522ca by zhiwj

指标说明

parent 22e3f0e8
......@@ -10,6 +10,7 @@ import com.gic.cloud.service.IndexService;
import com.gic.commons.util.EntityUtil;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -103,6 +104,9 @@ public class IndexServiceImpl implements IndexService {
IndexQO indexQO = new IndexQO();
PageHelper.startPage(1, 1);
List<Integer> indexIdList = indexModuleRelService.listBusinessIdByModuleIds(Collections.singletonList(moduleId));
if (CollectionUtils.isEmpty(indexIdList)) {
return null;
}
indexQO.setIndexIdList(indexIdList);
return tabIndexMapper.listIndex(indexQO).get(0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment