Explorar o código

Merge branch '20210223' of http://114.135.61.188:53000/UIMS/Code into 20210223

wangbo %!s(int64=4) %!d(string=hai) anos
pai
achega
1a7c689633

+ 1 - 3
operation_manager/src/main/java/com/huaxu/common/ConvertXY.java

@@ -118,7 +118,7 @@ public class ConvertXY {
 	 */
 	public static MyPoint ConvertXian80ToXY(String x, String y,String moveXY) {
 		MyPoint pPoint = new MyPoint();
-		double dx = Double.parseDouble(x), dy = Double.parseDouble(y);
+		double dx = Double.parseDouble(x)+196600, dy = Double.parseDouble(y)-270;
 		int moveX=0,moveY=0;
 		if(!StringUtils.isEmpty(moveXY)){
 			moveX=Integer.parseInt(moveXY.split(",")[0]);
@@ -133,8 +133,6 @@ public class ConvertXY {
 		double X84 = Double.parseDouble(String.format("%.6f", Double.parseDouble(dblLon.toString())));
 		double Y84 = Double.parseDouble(String.format("%.6f", Double.parseDouble(dblLat.toString())));
 
-		X84 +=  2.001201;
-		Y84 +=  0.000155;
 		pPoint.X =X84;
 		pPoint.Y =Y84;
 		return pPoint;

+ 2 - 2
sms_water/src/main/java/com/huaxu/controller/AppReportMonitorController.java

@@ -39,7 +39,7 @@ public class AppReportMonitorController {
     @RequestMapping(value = "getSceneByCompany",method = RequestMethod.GET)
     @ApiOperation(value = "App报表展示——公司场景查询(点击公司查询水厂)")
     public AjaxMessage<List<SceneEntity>> getSceneByCompany(
-            @ApiParam(value = "场景类型名称:水源、水厂、泵站") @RequestParam String sceneTypeName,
+            @ApiParam(value = "场景类型名称:水源、水厂、泵站") @RequestParam(required = false)  String sceneTypeName,
             @ApiParam(value = "公司id") @RequestParam Integer companyOrgId){
         return new AjaxMessage<>(ResultStatus.OK,appReportMonitorService.getSceneByCompany(sceneTypeName,companyOrgId));
     }
@@ -49,7 +49,7 @@ public class AppReportMonitorController {
     @RequestMapping(value = "getSceneCompanyBySearch",method = RequestMethod.GET)
     @ApiOperation(value = "App报表展示——公司场景查询(条件查询)")
     public AjaxMessage<CompanySceneInfoDto> getSceneCompanyBySearch(
-            @ApiParam(value = "场景类型名称:水源、水厂、泵站") @RequestParam String sceneTypeName,
+            @ApiParam(value = "场景类型名称:水源、水厂、泵站") @RequestParam(required = false)  String sceneTypeName,
             @ApiParam(value = "查询条件") @RequestParam(required = false) String condition){
         return new AjaxMessage<>(ResultStatus.OK,appReportMonitorService.getSceneByCompanyBySearch(sceneTypeName,condition));
     }

+ 2 - 2
sms_water/src/main/java/com/huaxu/service/impl/OnlineMonitorImpl.java

@@ -125,7 +125,7 @@ public class OnlineMonitorImpl implements OnlineMonitorService {
 
         for(MonitorDataCollectDto mon:result){
             BigDecimal yieldWaterUsage=monitorDataReportServiceImpl.getAmountCount(null,mon.getSceneId().intValue(),"泵站",3,2);
-            mon.setYieldWaterUsage(yieldWaterUsage.doubleValue()/10000);
+            mon.setYieldWaterUsage(yieldWaterUsage.doubleValue());
         }
         //按水量倒序排序 如果是水源按照取水量排序,其他按照供水量
         result.sort(new Comparator<MonitorDataCollectDto>() {
@@ -508,7 +508,7 @@ public class OnlineMonitorImpl implements OnlineMonitorService {
                     secDataCollectDto.setCount(1);
                     secDataCollectDto.setComName(orgInfoUtil.getOrgName(item.getCompanyOrgId().intValue()));
                     BigDecimal yieldWaterUsage=monitorDataReportServiceImpl.getAmountCount(item.getCompanyOrgId().intValue(),null,"泵站",3,2);
-                    secDataCollectDto.setYieldWaterUsage(yieldWaterUsage.doubleValue()/10000);
+                    secDataCollectDto.setYieldWaterUsage(yieldWaterUsage.doubleValue());
                     map.put(item.getCompanyOrgId(), secDataCollectDto);
                 } else {
                     Integer count = map.get(item.getCompanyOrgId()).getCount() != null ? map.get(item.getCompanyOrgId()).getCount() : 1;

+ 6 - 2
sms_water/src/main/resources/mapper/AppReportMonitorMapper.xml

@@ -10,7 +10,9 @@
         from sms_scene_type st
         left join sms_scene s on st.id=s.SCENE_TYPE_ID
         where st.STATUS = 1 and s.STATUS = 1
-        and st.SCENE_TYPE_NAME =#{sceneType}
+        <if test="sceneType != null and sceneType !=''">
+          and st.SCENE_TYPE_NAME =#{sceneType}
+        </if>
         and  s.COMPANY_ORG_ID = #{companyOrgId}
         and s.TENANT_ID = #{tenantId}
         <if test="userType!=null and userType!=-999 and userType!=-9999 and  programItems != null and programItems.size() > 0">
@@ -93,7 +95,9 @@
         from sms_scene_type st
         left join sms_scene s on st.id=s.SCENE_TYPE_ID
         where st.STATUS = 1 and s.STATUS = 1
-        and st.SCENE_TYPE_NAME =#{sceneType}
+        <if test="sceneType != null and sceneType !=''">
+          and st.SCENE_TYPE_NAME =#{sceneType}
+        </if>
         <if test="condition != null and condition !=''">
             and s.SCENE_NAME like concat('%',#{condition},'%')
         </if>