bba284f8 康伟

kangwei:区域用户数据权限有问题

1 个父辈 d93e826b
......@@ -91,7 +91,7 @@ public class SysCommandCentreController {
fReportItemvList.add( avgDayDataVO );
//年数据统计:
String total = factoryInfoService.querySumProScale( departIds );
String total = factoryInfoService.querySumProScale( JSUtils.quoteEach(departIds,",") );
total = String.format("%.2f", Double.parseDouble(total));
fReportItemvList.add( new FRportlCommandCenterVO( total,"0","0"));
......
......@@ -54,7 +54,7 @@ public class OperationReportServiceImpl implements IOperationReportService {
productDataVO.setStartTime(seasonTimeVO.getStartTime());//季度开始时间
productDataVO.setEndTime( seasonTimeVO.getEndTime());//季度结束时间
//水务公司总数
String sql = "select count(1) from sys_depart where depart_type = 1 where id in ("+JSUtils.quoteEach(departId,",")+")";
String sql = "select count(1) from sys_depart where depart_type = 1 and id in ("+JSUtils.quoteEach(departId,",")+")";
String deptartCount = getJdbcTemplate().queryForObject(sql,String.class);
productDataVO.setDeptartCount( deptartCount );
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!