微调
This commit is contained in:
@@ -68,6 +68,7 @@ public enum AccessResponseEnum {
|
||||
|
||||
PROCESS_SAME_ERROR("A0311","当前调试已完成,请勿重复调试"),
|
||||
PROCESS_MISSING_ERROR("A0311","调试流程缺失,请核查功能调试、出厂调试"),
|
||||
PROCESS_ERROR("A0311","调试流程异常,请先进行功能调试、出厂调试!"),
|
||||
;
|
||||
|
||||
private final String code;
|
||||
|
||||
@@ -145,14 +145,10 @@ public class CsDeviceServiceImpl implements ICsDeviceService {
|
||||
throw new BusinessException(AccessResponseEnum.MISSING_CLIENT);
|
||||
}
|
||||
//4.判断当前流程是否是合法的
|
||||
if (csEquipmentDeliveryVO.getProcess() > type){
|
||||
if (!Objects.equals(csEquipmentDeliveryVO.getProcess() + 1, type)){
|
||||
logDto.setResult(0);
|
||||
logDto.setFailReason(AccessResponseEnum.PROCESS_SAME_ERROR.getMessage());
|
||||
throw new BusinessException(AccessResponseEnum.PROCESS_SAME_ERROR);
|
||||
} else if (csEquipmentDeliveryVO.getProcess() < type){
|
||||
logDto.setResult(0);
|
||||
logDto.setFailReason(AccessResponseEnum.PROCESS_MISSING_ERROR.getMessage());
|
||||
throw new BusinessException(AccessResponseEnum.PROCESS_MISSING_ERROR);
|
||||
logDto.setFailReason(AccessResponseEnum.PROCESS_ERROR.getMessage());
|
||||
throw new BusinessException(AccessResponseEnum.PROCESS_ERROR);
|
||||
}
|
||||
//5.询问设备支持的主题信息
|
||||
//将支持的主题入库
|
||||
|
||||
Reference in New Issue
Block a user