Commit 8a673af9 authored by KeYong's avatar KeYong

更新

parent f034e394
...@@ -184,19 +184,6 @@ public class PlanVisual3dController extends BaseController { ...@@ -184,19 +184,6 @@ public class PlanVisual3dController extends BaseController {
} }
@Permission @Permission
@ApiOperation(value = "根据批次号获取预案状态", notes = "根据批次号获取预案状态")
@GetMapping(value = "/plan/getPlaneIfDataMock")
public ResponseModel getPlaneRecord(@RequestParam("batchNo") String batchNo) {
if (StringUtils.isBlank(batchNo)) {
batchNo = planVisual3dService.getLastBatchNo();
}
if (StringUtils.isBlank(batchNo)) {
return CommonResponseUtil.successNew(null);
}
return CommonResponseUtil.successNew(planVisual3dService.judgeIfPlanDataMock(batchNo));
}
@Permission
@ApiOperation(value = "预案智能辅助", notes = "预案智能辅助") @ApiOperation(value = "预案智能辅助", notes = "预案智能辅助")
@GetMapping(value = "/plan/getPlaneRecordOne") @GetMapping(value = "/plan/getPlaneRecordOne")
public ResponseModel getPlaneRecordOne() { public ResponseModel getPlaneRecordOne() {
......
...@@ -281,6 +281,7 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService { ...@@ -281,6 +281,7 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
if (!ObjectUtils.isEmpty(infoVO.getPosition())) { if (!ObjectUtils.isEmpty(infoVO.getPosition())) {
contingencyOriginalData.setPosition(infoVO.getPosition()); contingencyOriginalData.setPosition(infoVO.getPosition());
} }
toipResponse.setMockData(judgeIfPlanDataMock(batchNo));
toipResponse.setMsgType("recordarea"); toipResponse.setMsgType("recordarea");
toipResponse.setMsgContext(msgContext); toipResponse.setMsgContext(msgContext);
toipResponse.setContingency(contingencyOriginalData); toipResponse.setContingency(contingencyOriginalData);
...@@ -288,7 +289,6 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService { ...@@ -288,7 +289,6 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
return toipResponse; return toipResponse;
} }
@Override
public boolean judgeIfPlanDataMock(String batchNo) { public boolean judgeIfPlanDataMock(String batchNo) {
PlanOperationRecord planOperationRecord = planOperationRecordDao.findByBatchNo(batchNo); PlanOperationRecord planOperationRecord = planOperationRecordDao.findByBatchNo(batchNo);
if (planOperationRecord == null) { if (planOperationRecord == null) {
......
...@@ -74,14 +74,6 @@ public interface IPlanVisual3dService { ...@@ -74,14 +74,6 @@ public interface IPlanVisual3dService {
ToipResponse getPlaneRecordByBatchNo(String batchNo); ToipResponse getPlaneRecordByBatchNo(String batchNo);
/** /**
* 根据批次号获取预案状态
*
* @param batchNo 批次号
* @return 预案记录
*/
boolean judgeIfPlanDataMock(String batchNo);
/**
* 根据批次号获取预案记录 * 根据批次号获取预案记录
* *
* @param batchNo 批次号 * @param batchNo 批次号
......
...@@ -30,11 +30,6 @@ public class ToipResponse implements Serializable ...@@ -30,11 +30,6 @@ public class ToipResponse implements Serializable
* </pre> * </pre>
*/ */
private static final long serialVersionUID = -7035041461377884452L; private static final long serialVersionUID = -7035041461377884452L;
/**
*
*/
/** /**
* 界面域 * 界面域
...@@ -56,6 +51,8 @@ public class ToipResponse implements Serializable ...@@ -56,6 +51,8 @@ public class ToipResponse implements Serializable
* marker * marker
*/ */
private Object contingency; private Object contingency;
private boolean mockData;
public String toJsonStr() { public String toJsonStr() {
return JSON.toJSONString(this,SerializerFeature.WriteMapNullValue,SerializerFeature.DisableCircularReferenceDetect,SerializerFeature.SkipTransientField); return JSON.toJSONString(this,SerializerFeature.WriteMapNullValue,SerializerFeature.DisableCircularReferenceDetect,SerializerFeature.SkipTransientField);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment