pms报表bug解决
This commit is contained in:
@@ -335,6 +335,21 @@ public class CommTerminalController extends BaseController {
|
|||||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, statisticsMonitor, methodDescribe);
|
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, statisticsMonitor, methodDescribe);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取监测点的台账详细信息
|
||||||
|
* @author cdf
|
||||||
|
* @date 2023/10/23
|
||||||
|
*/
|
||||||
|
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||||
|
@GetMapping("/getCustomDetailByLineId")
|
||||||
|
@ApiOperation("获取监测点的台账详细信息(自定义报表用)")
|
||||||
|
@ApiImplicitParam(name = "id", value = "监测点ID", required = true)
|
||||||
|
public HttpResult<Map<String,String>> getCustomDetailByLineId(@RequestParam("id") String id) {
|
||||||
|
String methodDescribe = getMethodDescribe("getCustomDetailByLineId");
|
||||||
|
Map<String,String> result = commTerminalService.getCustomDetailByLineId(id);
|
||||||
|
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用于返回pq 还是pms系统
|
* 用于返回pq 还是pms系统
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import com.njcn.device.pms.pojo.vo.MonitorVO;
|
|||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
@@ -95,4 +96,7 @@ public interface MonitorMapper extends BaseMapper<Monitor> {
|
|||||||
* @Date: 2023/10/13 11:23
|
* @Date: 2023/10/13 11:23
|
||||||
*/
|
*/
|
||||||
List<Monitor> selectMonitorList(@Param("param") StatisticsBizBaseParam param);
|
List<Monitor> selectMonitorList(@Param("param") StatisticsBizBaseParam param);
|
||||||
|
|
||||||
|
|
||||||
|
Map<String, String> getCustomDetailByLineId(@Param("lineId")String lineId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -195,4 +195,26 @@
|
|||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="getCustomDetailByLineId" resultType="map">
|
||||||
|
SELECT
|
||||||
|
monitor.id AS lineId,
|
||||||
|
concat(statation.Power_Name,"_",wire.name,"_",monitor.name) as lineName,
|
||||||
|
concat(monitor.pt1,concat(':',monitor.pt2)) as pt,
|
||||||
|
concat(monitor.ct1,concat(':',monitor.ct2)) as ct,
|
||||||
|
monitor.Power_Supply_Eq_Capacity as Dev_Capacity,
|
||||||
|
monitor.Min_Short_Circuit_Capacity as Short_Capacity,
|
||||||
|
monitor.User_Agreement_Capacity as Standard_Capacity,
|
||||||
|
monitor.User_Agreement_Capacity as Deal_Capacity,
|
||||||
|
terminal.Verification_Date AS This_Time_Check,
|
||||||
|
dic.name AS voltageLevel
|
||||||
|
FROM
|
||||||
|
pms_monitor monitor
|
||||||
|
left join pms_terminal terminal on monitor.Terminal_Id = terminal.id
|
||||||
|
left join pms_statation_stat statation on monitor.Powerr_Id = statation.Power_Id
|
||||||
|
left join pms_generatrix_wire wire on monitor.Line_Id = wire.id
|
||||||
|
left join sys_dict_data dic on monitor.Voltage_Level = dic.id
|
||||||
|
WHERE monitor.id = #{lineId}
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import com.njcn.device.biz.pojo.dto.*;
|
|||||||
import com.njcn.device.biz.pojo.param.DeptGetLineParam;
|
import com.njcn.device.biz.pojo.param.DeptGetLineParam;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pqs
|
* pqs
|
||||||
@@ -95,4 +96,11 @@ public interface CommTerminalService {
|
|||||||
LineDevGetDTO getMonitorDetail(String monitorId);
|
LineDevGetDTO getMonitorDetail(String monitorId);
|
||||||
|
|
||||||
List<StatisticsMonitor> getStatisticsMonitor(StatisticsBizBaseParam param);
|
List<StatisticsMonitor> getStatisticsMonitor(StatisticsBizBaseParam param);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取监测点的台账详细信息
|
||||||
|
* @author cdf
|
||||||
|
* @date 2023/10/23
|
||||||
|
*/
|
||||||
|
Map<String,String> getCustomDetailByLineId(String id);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -731,5 +731,9 @@ public class CommTerminalServiceImpl implements CommTerminalService {
|
|||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, String> getCustomDetailByLineId(String id) {
|
||||||
|
return monitorMapper.getCustomDetailByLineId(id);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -586,7 +586,7 @@ public class CustomReportServiceImpl implements CustomReportService {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
private Map<String, String> unitMap(String lineID) {
|
private Map<String, String> unitMap(String lineID) {
|
||||||
PqsDeviceUnit deviceUnit = deviceUnitClient.lineUnitDetail(lineID).getData();
|
PqsDeviceUnit deviceUnit = commTerminalGeneralClient.lineUnitDetail(lineID).getData();
|
||||||
List<DictData> dictData = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.DEVICE_UNIT.getCode()).getData();
|
List<DictData> dictData = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.DEVICE_UNIT.getCode()).getData();
|
||||||
Map<String, String> unit = new HashMap<>();
|
Map<String, String> unit = new HashMap<>();
|
||||||
List<String> list = dictData.stream().map(DictData::getCode).collect(Collectors.toList());
|
List<String> list = dictData.stream().map(DictData::getCode).collect(Collectors.toList());
|
||||||
|
|||||||
Reference in New Issue
Block a user