一公司驾驶舱 首页 右下角没有显示新动火的数据
parent
86765ce3c7
commit
ede3341677
|
@ -15,6 +15,7 @@ import com.zcloud.util.DateUtil;
|
|||
import com.zcloud.util.Jurisdiction;
|
||||
import com.zcloud.util.ObjectExcelView;
|
||||
import com.zcloud.util.Tools;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresAuthentication;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.apache.shiro.crypto.hash.SimpleHash;
|
||||
|
@ -318,7 +319,12 @@ public class HomeController extends BaseController {
|
|||
Map<String, Object> chartData = new HashMap<String, Object>();
|
||||
List<String> legendData = Arrays.asList(new String[]{"动火作业", "临时用电作业", "盲板作业", "高处作业", "有限空间作业", "吊装作业"});
|
||||
|
||||
List<PageData> workChart = highworkService.statisticsAllHighRiskWork(pd); //统计高危作业里各作业数
|
||||
List<PageData> workChart = new ArrayList<>();
|
||||
if (StringUtils.equals("035958e685cf4850bc40151c5e0617a6",pd.getString("CORPINFO_ID"))) { //一公司
|
||||
workChart = highworkService.statisticsAllHighRiskWorkFirst(pd); //统计高危作业里各作业数
|
||||
} else {
|
||||
workChart = highworkService.statisticsAllHighRiskWork(pd); //统计高危作业里各作业数
|
||||
}
|
||||
List seriesData = new ArrayList();
|
||||
for (int i = 0; i < legendData.size(); i++) {
|
||||
PageData pie = new PageData();
|
||||
|
|
Loading…
Reference in New Issue