Commit d231c527 authored by suhuiguang's avatar suhuiguang

1.增加扫码咱不支持的扫码提示

parent 91715d57
......@@ -32,7 +32,7 @@ public class CertDetailServiceImpl {
String version = this.deCodeByAES(requestParam.getVersion());
String certType = this.deCodeByBase64(requestParam.getCertType());
JgUseRegistrationManageDto jgUseRegistrationManage = this.checkParam(certOrApplyNo, version);
return SearchDetailStrategyContext.getHandler(this.getManageType(jgUseRegistrationManage)).hanlder(jgUseRegistrationManage, certType);
return SearchDetailStrategyContext.getHandler(this.getManageType(jgUseRegistrationManage)).handler(jgUseRegistrationManage, certType);
}
private String deCodeByBase64(String certType) {
......
package com.yeejoin.amos.boot.module.app.biz.service.impl;
import com.yeejoin.amos.boot.biz.common.dto.JgUseRegistrationManageDto;
import com.yeejoin.amos.boot.module.app.api.exception.AuthException;
import com.yeejoin.amos.boot.module.app.biz.strategy.ISearchDetailHandler;
import org.springframework.stereotype.Component;
......@@ -15,7 +16,8 @@ public class SetSearchDetailDetailHandlerImpl implements ISearchDetailHandler {
}
@Override
public Map<String, Object> hanlder(JgUseRegistrationManageDto manageDto, String from) {
return Collections.emptyMap();
public Map<String, Object> handler(JgUseRegistrationManageDto manageDto, String from) {
throw new AuthException("该设备种类暂不支持扫码,敬请期待!");
// return Collections.emptyMap();
}
}
package com.yeejoin.amos.boot.module.app.biz.service.impl;
import com.yeejoin.amos.boot.biz.common.dto.JgUseRegistrationManageDto;
import com.yeejoin.amos.boot.module.app.api.exception.AuthException;
import com.yeejoin.amos.boot.module.app.biz.strategy.ISearchDetailHandler;
import org.springframework.stereotype.Component;
......@@ -15,8 +16,9 @@ public class UnitSearchDetailDetailHandlerImpl implements ISearchDetailHandler {
}
@Override
public Map<String, Object> hanlder(JgUseRegistrationManageDto manageDto, String from) {
return Collections.emptyMap();
public Map<String, Object> handler(JgUseRegistrationManageDto manageDto, String from) {
throw new AuthException("该设备种类暂不支持扫码,敬请期待!");
// return Collections.emptyMap();
}
}
......@@ -40,7 +40,7 @@ public class VehicleSearchDetailDetailHandlerImpl implements ISearchDetailHandle
}
@Override
public Map<String, Object> hanlder(JgUseRegistrationManageDto manageDto, String certType) {
public Map<String, Object> handler(JgUseRegistrationManageDto manageDto, String certType) {
return this.getQueryCarCylinderInfo(manageDto);
}
......
......@@ -18,7 +18,7 @@ public interface ISearchDetailHandler {
* @param from 来源
* @return T
*/
Map<String, Object> hanlder(JgUseRegistrationManageDto manageDto, String from);
Map<String, Object> handler(JgUseRegistrationManageDto manageDto, String from);
String defaultVersion = "1";
}
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