Commit 99667f14 authored by 韩桐桐's avatar 韩桐桐

fix(96333):困人救援 需先维护救援过程信息 再保存回访信息

parent ccee761a
...@@ -7,15 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; ...@@ -7,15 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.biz.common.entity.DataDictionary; import com.yeejoin.amos.boot.biz.common.entity.DataDictionary;
import com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl; import com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl;
import com.yeejoin.amos.boot.biz.common.utils.DateUtils; import com.yeejoin.amos.boot.biz.common.utils.DateUtils;
import com.yeejoin.amos.boot.module.elevator.api.dto.AlertCalledDto; import com.yeejoin.amos.boot.module.elevator.api.dto.*;
import com.yeejoin.amos.boot.module.elevator.api.dto.AlertCalledFormDto;
import com.yeejoin.amos.boot.module.elevator.api.dto.AlertFormInitDto;
import com.yeejoin.amos.boot.module.elevator.api.dto.DispatchConsultFeedbackDto;
import com.yeejoin.amos.boot.module.elevator.api.dto.DispatchPaperDto;
import com.yeejoin.amos.boot.module.elevator.api.dto.DispatchPaperFormDto;
import com.yeejoin.amos.boot.module.elevator.api.dto.DispatchRepairFeedbackDto;
import com.yeejoin.amos.boot.module.elevator.api.dto.DispatchSaveFeedbackDto;
import com.yeejoin.amos.boot.module.elevator.api.dto.RescueProcessDto;
import com.yeejoin.amos.boot.module.elevator.api.entity.AlertCalled; import com.yeejoin.amos.boot.module.elevator.api.entity.AlertCalled;
import com.yeejoin.amos.boot.module.elevator.api.entity.AlertFormValue; import com.yeejoin.amos.boot.module.elevator.api.entity.AlertFormValue;
import com.yeejoin.amos.boot.module.elevator.api.entity.DispatchPaper; import com.yeejoin.amos.boot.module.elevator.api.entity.DispatchPaper;
...@@ -37,11 +29,7 @@ import org.typroject.tyboot.core.foundation.utils.ValidationUtil; ...@@ -37,11 +29,7 @@ import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService; import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest; import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import java.util.ArrayList; import java.util.*;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/** /**
* 派遣单服务实现类 * 派遣单服务实现类
...@@ -323,10 +311,15 @@ public class DispatchPaperServiceImpl extends BaseService<DispatchPaperDto,Dispa ...@@ -323,10 +311,15 @@ public class DispatchPaperServiceImpl extends BaseService<DispatchPaperDto,Dispa
public Boolean saveDispatchSaveFeedback(DispatchSaveFeedbackDto dispatchSaveFeedbackDto, AgencyUserModel user) { public Boolean saveDispatchSaveFeedback(DispatchSaveFeedbackDto dispatchSaveFeedbackDto, AgencyUserModel user) {
// 困人救援 需先维护救援过程信息 再保存回访信息 // 困人救援 需先维护救援过程信息 再保存回访信息
AlertCalled alertCalled = alertCalledServiceImpl.getById(dispatchSaveFeedbackDto.getAlertId()); AlertCalled alertCalled = alertCalledServiceImpl.getById(dispatchSaveFeedbackDto.getAlertId());
if (DispatchPaperEnums.KRJY.getId().equals(alertCalled.getAlarmTypeCode()) && String alarmTypeCode = alertCalled.getAlarmTypeCode();
!DispatchPaperEnums.rescued.getId().equals(alertCalled.getAlertStageCode())){ String alertStageCode = alertCalled.getAlertStageCode();
if (DispatchPaperEnums.KRJY.getId().equals(alarmTypeCode)) {
int rescuedStageCode = Integer.parseInt(DispatchPaperEnums.rescued.getId());
int currentStageCode = Integer.parseInt(alertStageCode);
if (currentStageCode < rescuedStageCode) {
throw new BadRequest("请先完善救援过程信息!"); throw new BadRequest("请先完善救援过程信息!");
} }
}
boolean flag = false; boolean flag = false;
// 保存救援回访信息 // 保存救援回访信息
DispatchPaperFormDto dispatchPaperFormDto = this.selectDispatchPaperDtoByAlertId(dispatchSaveFeedbackDto.getAlertId()); DispatchPaperFormDto dispatchPaperFormDto = this.selectDispatchPaperDtoByAlertId(dispatchSaveFeedbackDto.getAlertId());
......
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