v3 #186

Merged
liang.cheng merged 1 commits from feature/cl into develop 2 years ago

@ -329,15 +329,24 @@ public class ChartServiceImpl extends Service implements ChartService {
* sql * sql
* @param root * @param root
* @param dimension ID * @param dimension ID
* @param id * @param vesionId
* @return * @return
*/ */
private String getLastTimeTopSql(String root, String dimension, String id) { private String getLastTimeTopSql(String root, String dimension, String vesionId) {
if ("0".equals(root)) { if ("0".equals(root)) {
//查询集团维度历史数据 //查询集团维度历史版本
if ("0".equals(dimension)) {
//组织维度
return "select id,companyname as name,'0' as type from hrmcompany";
} else {
//查询其他维度集团版本信息
return "select id,companyname as name,'0' as type from jcl_chart_companyvirtual where " +
" versionid = "+vesionId+" and companyvirtualid = "+dimension;
}
}else {
return "select id,subcompanyname as name,'1' as type from jcl_chart_subcompanyvirtual where " +
" versionid= "+vesionId+" and subcompanyvirtualid"+root;
} }
return null;
} }
/** /**

Loading…
Cancel
Save