|
@@ -186,12 +186,8 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
|
|
|
@Override
|
|
|
public ExcelTabVO templateDetail(Long id) {
|
|
|
- ExcelTab detail = this.getById(id);
|
|
|
- if (detail == null) {
|
|
|
- return new ExcelTabVO();
|
|
|
- }
|
|
|
- ExcelTabVO excelTabVO = ExcelTabWrapper.build().entityVO(detail);
|
|
|
- if (detail.getParentId() != null && detail.getParentId() > 0) {
|
|
|
+ ExcelTabVO excelTabVO = this.baseMapper.getById(id);
|
|
|
+ if (excelTabVO == null || (excelTabVO.getParentId() != null && excelTabVO.getParentId() > 0)) {
|
|
|
return excelTabVO;
|
|
|
}
|
|
|
Map<String, Object> map = jdbcTemplate.queryForMap("SELECT count(a.id) as total,count(t.id) as useNum from m_excel_tab a LEFT JOIN ( select excel_id as id from m_wbs_tree_private where type = 2 and is_deleted = 0 and excel_id is not null GROUP BY excel_id ) as t " +
|