活体识别前先校验银行卡是否签约

This commit is contained in:
tangfutang 2020-08-07 18:46:47 +08:00
parent 5130a99126
commit d315c10c13

View File

@ -35,6 +35,7 @@ import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import apx.com.amarsoft.als.apzl.apply.contract.make.util.ContractMakeControllerUtil;
import apx.com.amarsoft.als.user.change.center.service.ApplyArchiveService;
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT;
import jbo.app.tenwa.doc.LB_FILE_MAILARCHIVING_INFO;
import jbo.app.tenwa.doc.LB_FILE_MAILARCHIVING_INFO_TEMP;
import jbo.app.tenwa.doc.LM_APPROVALOPINION_DOC;
@ -504,21 +505,31 @@ public class ApplyArchiveServiceImpl implements ApplyArchiveService{
ReturnMapUtil.setReturnMap(null,RestfullConstant.baseProperty.get("fail").toString(), "没有查询到对应的流程实例!");
return ReturnMapUtil.getReturnMap();
}
String sql = "SELECT serialno,whether FROM PRD_SPECIFIC_LIBRARY WHERE productid='"+flowParms.get("ProductId")+"' ";
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", serialNo);
body.put("whether", map.get("whether")+"");
BizObjectManager caManage = JBOFactory.getBizObjectManager(CUSTOMER_ACCOUNT.CLASS_NAME);
BizObject ca = caManage.createQuery("PROJECT_ID=:projectid").setParameter("projectid", flowParms.get("ProjectId")).getSingleResult(false);
String string = ca.getAttribute("SIGN_STATUS") == null ? "" :ca.getAttribute("SIGN_STATUS").getString();
System.out.println(string);
if("Y".equals(string)){
String sql = "SELECT serialno,whether FROM PRD_SPECIFIC_LIBRARY WHERE productid='"+flowParms.get("ProductId")+"' ";
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", 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();
}
ReturnMapUtil.setReturnMap(body,RestfullConstant.baseProperty.get("success").toString(), "");
return ReturnMapUtil.getReturnMap();
}else{
ReturnMapUtil.setReturnMap(null,RestfullConstant.baseProperty.get("fail").toString(), "δ²éµ½ÐÅÏ¢£¡£¡£¡");
ReturnMapUtil.setReturnMap(null,RestfullConstant.baseProperty.get("fail").toString(), "请提醒客户查看手机短信,首先完成扣款卡的签约验证!");
return ReturnMapUtil.getReturnMap();
}
}
}