APP活体检测接口
This commit is contained in:
parent
0209a09e63
commit
e1bb871ce3
@ -82,4 +82,9 @@ public interface ApplyArchiveService {
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
@Context Transaction sqlca, ReturnMapUtil ReturnMapUtil)
|
||||
throws Exception;
|
||||
Map<String, Object> LiveTesting(@Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
@Context Transaction sqlca, ReturnMapUtil ReturnMapUtil)
|
||||
throws Exception;
|
||||
|
||||
}
|
||||
|
||||
@ -39,6 +39,7 @@ import jbo.app.tenwa.doc.LM_APPROVALOPINION_DOC;
|
||||
import jbo.app.tenwa.doc.LM_APPROVALOPINION_DOC_TEMP;
|
||||
import jbo.app.tenwa.doc.LM_MAILONLINE_DOC_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP;
|
||||
import jbo.prd.PRD_SPECIFIC_LIBRARY;
|
||||
//APP삿혤錟셍백도
|
||||
public class ApplyArchiveServiceImpl implements ApplyArchiveService{
|
||||
|
||||
@ -446,5 +447,29 @@ public class ApplyArchiveServiceImpl implements ApplyArchiveService{
|
||||
RestfullConstant.baseProperty.get("success").toString(), "");
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
}
|
||||
|
||||
//活体检测接口查询
|
||||
@Override
|
||||
public Map<String, Object> LiveTesting(HttpServletRequest request, HttpServletResponse response, JBOTransaction tx,
|
||||
Transaction sqlca, ReturnMapUtil ReturnMapUtil) throws Exception {
|
||||
Map<String, Object> testMap = (Map<String, Object>) MultipartDataUtil
|
||||
.readRequestParam(request, "UTF-8");
|
||||
fieldMap = (Map<String, Object>) testMap.get("fieldMap");
|
||||
String SerialNo = fieldMap.get("serialno") == null ? "" : fieldMap.get("serialno").toString();
|
||||
String sql = "SELECT serialno,whether FROM PRD_SPECIFIC_LIBRARY WHERE SerialNo='"+SerialNo+"' ";
|
||||
List<Map<String, String>> dataList = DataOperatorUtil.getDataBySql(sql);
|
||||
Map<String, Object> body = new HashMap<String, Object>();
|
||||
if(dataList.size()>0){
|
||||
for (Map<String, String> map : dataList) {
|
||||
body.put("serialno", map.get("serialno")+"");
|
||||
body.put("whether", map.get("whether")+"");
|
||||
}
|
||||
ReturnMapUtil.setReturnMap(body,RestfullConstant.baseProperty.get("success").toString(), "");
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
}else{
|
||||
ReturnMapUtil.setReturnMap(null,RestfullConstant.baseProperty.get("fail").toString(), "未查到信息!!!");
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -683,4 +683,23 @@ public class ApplyChangeController {
|
||||
return ReturnMapUtil.rollback(e);
|
||||
}
|
||||
}
|
||||
|
||||
//»îÌå¼ì²â
|
||||
@Path("/live/testing")
|
||||
@POST
|
||||
public Map<String, Object> LiveTesting(@Context HttpServletRequest request,
|
||||
@Context HttpServletResponse response, @Context JBOTransaction tx,
|
||||
@Context Transaction sqlca) throws Exception {
|
||||
ReturnMapUtil ReturnMapUtil = new ReturnMapUtil(tx, sqlca);
|
||||
ARE.getLog().info(
|
||||
"[CONTROLLER] ApplyChangeController run .................");
|
||||
ARE.getLog().info("[Path] /change/live/testing" + " run .................");
|
||||
|
||||
ApplyArchiveService service = new ApplyArchiveServiceImpl();
|
||||
try {
|
||||
return service.LiveTesting(request, response, tx, sqlca, ReturnMapUtil);
|
||||
} catch (Exception e) {
|
||||
return ReturnMapUtil.rollback(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -133,4 +133,8 @@ public interface PRD_SPECIFIC_LIBRARY{
|
||||
* Ö÷Ìå STRING(32)<br>
|
||||
*/
|
||||
public static final String ManySubject = "ManySubject";
|
||||
/**
|
||||
* 是否活体检测 STRING(32)<br>
|
||||
*/
|
||||
public static final String whether = "whether";
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user