1078bdfc 张雷

月度运营报表问题修改

1 个父辈 1b052349
...@@ -389,7 +389,7 @@ public class RealTimeDataServiceImpl implements IRealTimeDataService { ...@@ -389,7 +389,7 @@ public class RealTimeDataServiceImpl implements IRealTimeDataService {
389 public List<Map<String, Object>> queryRealTimeDataApp(String factoryId, String type, String structId, String sortType,String nmName) { 389 public List<Map<String, Object>> queryRealTimeDataApp(String factoryId, String type, String structId, String sortType,String nmName) {
390 DecimalFormat df = new DecimalFormat("#.##"); 390 DecimalFormat df = new DecimalFormat("#.##");
391 //查询厂站下所有的指标代码 391 //查询厂站下所有的指标代码
392 List<Map<String, Object>> list = realTimeDataMapper.queryMetricListByType(factoryId, type, structId,nmName); 392 List<Map<String, Object>> list = realTimeDataMapper.queryMetricListByType(factoryId, type, structId, nmName);
393 393
394 StringBuilder feilds = new StringBuilder(); 394 StringBuilder feilds = new StringBuilder();
395 if ("0".equals(type)) { 395 if ("0".equals(type)) {
......
...@@ -157,13 +157,14 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa ...@@ -157,13 +157,14 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa
157 " from "+dataViewName4411+" v4411 " + 157 " from "+dataViewName4411+" v4411 " +
158 " where v4411.depart_id = '"+departId+"' and v4411.time like CONCAT('"+dataTime+"','%')) v6 on right(left(v6.time,7),2)=right(left(v1.time,7),2) " + 158 " where v4411.depart_id = '"+departId+"' and v4411.time like CONCAT('"+dataTime+"','%')) v6 on right(left(v6.time,7),2)=right(left(v1.time,7),2) " +
159 " left join ( " + 159 " left join ( " +
160 " select v3a24.depart_id,SUM(v3a24.DLHJ) dlhj_year,(SUM( v3a24.PAMZ ) + SUM( v3a24.PAMF ) + SUM( v3a24.PAMRJ ) + " + 160 " select v3a24.depart_id,SUM(v3a24.DLHJ) dlhj_year,LEFT(v3a24.time,7) time,(SUM( v3a24.PAMZ ) + SUM( v3a24.PAMF ) + SUM( v3a24.PAMRJ ) + " +
161 " SUM( v3a24.SCLPAMZ ) + SUM( v3a24.SCLPAMF ) + SUM( v3a24.NACLO ) + SUM( v3a24.PACGT ) + SUM( v3a24.PACYT ) + " + 161 " SUM( v3a24.SCLPAMZ ) + SUM( v3a24.SCLPAMF ) + SUM( v3a24.NACLO ) + SUM( v3a24.PACGT ) + SUM( v3a24.PACYT ) + " +
162 " SUM( v3a24.PFS ) + SUM( v3a24.FHTY ) + SUM( v3a24.RYXNJ ) + SUM( v3a24.YWL ) + SUM( v3a24.GXCLJ ) + SUM( v3a24.CH3COONA ) + " + 162 " SUM( v3a24.PFS ) + SUM( v3a24.FHTY ) + SUM( v3a24.RYXNJ ) + SUM( v3a24.YWL ) + SUM( v3a24.GXCLJ ) + SUM( v3a24.CH3COONA ) + " +
163 " SUM( v3a24.HXT ) + SUM( v3a24.FECL3 ) + SUM( v3a24.SH ) + " + 163 " SUM( v3a24.HXT ) + SUM( v3a24.FECL3 ) + SUM( v3a24.SH ) + " +
164 " SUM( v3a24.CH3COOH ) + SUM( v3a24.FESO4G ) + SUM( v3a24.FESO4Y ) + SUM( v3a24.H2O2 )) yjhl_year " + 164 " SUM( v3a24.CH3COOH ) + SUM( v3a24.FESO4G ) + SUM( v3a24.FESO4Y ) + SUM( v3a24.H2O2 )) yjhl_year " +
165 " from "+dataViewName3a24+" v3a24 " + 165 " from "+dataViewName3a24+" v3a24 " +
166 " where v3a24.depart_id = '"+departId+"' and v3a24.time like CONCAT('"+dataTime+"','%')) y on y.depart_id = v1.depart_id " + 166 " where v3a24.depart_id = '"+departId+"' and v3a24.time like CONCAT('"+dataTime+"','%') GROUP BY LEFT(v3a24.time,7)" +
167 " ) y on y.time = LEFT ( v1.time, 7 ) " +
167 " left join ( " + 168 " left join ( " +
168 " select right(left(v4411.time,7),2) time,v4411.qntqsfsl " + 169 " select right(left(v4411.time,7),2) time,v4411.qntqsfsl " +
169 " from "+dataViewName4411tb+" v4411 " + 170 " from "+dataViewName4411tb+" v4411 " +
......
...@@ -199,9 +199,6 @@ public class SysRoleController { ...@@ -199,9 +199,6 @@ public class SysRoleController {
199 public Result<List<SysRole>> queryall() { 199 public Result<List<SysRole>> queryall() {
200 Result<List<SysRole>> result = new Result<>(); 200 Result<List<SysRole>> result = new Result<>();
201 QueryWrapper<SysRole> queryWrapper = new QueryWrapper<SysRole>(); 201 QueryWrapper<SysRole> queryWrapper = new QueryWrapper<SysRole>();
202 if(!BaseContextHandler.getUserLoginName().equals("admin")){
203 queryWrapper.notLike("role_code","admin");
204 }
205 if(StringUtils.isNotEmpty(BaseContextHandler.getDeparts())){ 202 if(StringUtils.isNotEmpty(BaseContextHandler.getDeparts())){
206 SysDepart sysDepart = sysDepartService.getById(BaseContextHandler.getRealDepartId()); 203 SysDepart sysDepart = sysDepartService.getById(BaseContextHandler.getRealDepartId());
207 if(sysDepart!=null){ 204 if(sysDepart!=null){
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!