Commit 147acb1c authored by luben's avatar luben

Merge branch 'dev' into 'main'

Dev

See merge request !21
parents 71575f2c dece5625
Pipeline #142899 passed with stages
in 3 minutes and 24 seconds
...@@ -44,6 +44,8 @@ public class LabelsController extends BaseController { ...@@ -44,6 +44,8 @@ public class LabelsController extends BaseController {
LabelsExample.Criteria criteria = example.createCriteria(); LabelsExample.Criteria criteria = example.createCriteria();
if (StringUtils.isNotEmpty(bsCommonVO.getParentId())) { if (StringUtils.isNotEmpty(bsCommonVO.getParentId())) {
criteria.andParentIdEqualTo(bsCommonVO.getParentId()); criteria.andParentIdEqualTo(bsCommonVO.getParentId());
}else{
criteria.andParentIdIsNull();
} }
example.setOrderByClause(" sort + 0 asc "); example.setOrderByClause(" sort + 0 asc ");
List<Labels> list = bsCommonService.selectByExample(example); List<Labels> list = bsCommonService.selectByExample(example);
......
...@@ -79,7 +79,12 @@ public class GridCompanyEconomyInfoServiceImpl extends BaseServiceImpl<GridCompa ...@@ -79,7 +79,12 @@ public class GridCompanyEconomyInfoServiceImpl extends BaseServiceImpl<GridCompa
} }
criteria.andIsValidEqualTo("1"); criteria.andIsValidEqualTo("1");
example.setOrderByClause(" year desc "); example.setOrderByClause(" year desc ");
return gridCompanyEconomyInfoMapper.selectByExample(example); List<GridCompanyEconomyInfo> res = gridCompanyEconomyInfoMapper.selectByExample(example);
for (GridCompanyEconomyInfo info : res) {
info.setSales(Arrays.asList(info.getYearSales().substring(1, info.getYearSales().length()-1).split(",")));
info.setTaxes(Arrays.asList(info.getYearTaxes().substring(1, info.getYearTaxes().length()-1).split(",")));
}
return res;
} }
@Override @Override
......
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