修改APP合同制作签约校验和添加银行模糊搜索

This commit is contained in:
tangfutang 2020-11-25 09:35:47 +08:00
parent 634f14b1b3
commit 3c6bc15012
2 changed files with 33 additions and 9 deletions

View File

@ -7,6 +7,7 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import jbo.app.tenwa.calc.LC_CARD_TLSIGN;
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT;
import jbo.app.tenwa.doc.LB_DOC_CONTRACT_LIST;
import jbo.com.tenwa.entity.comm.officetempalte.BF_TEMPLATE;
@ -146,9 +147,9 @@ public class ContractMakeServiceImpl implements ContractMakeService{
}else if(!"success".equals(message)){
body.put("status", "01");
body.put("message", message);
}else if("error".equals(projectSignStatus)){
}else if(!"success".equals(projectSignStatus)){
body.put("status", "01");
body.put("message", "请提醒客户查看手机短信,首先完成扣款卡的签约验证!");
body.put("message", projectSignStatus);
}else{
flowParms.put("templateId", templateId);
flowParms.put("wordPath", wordPath);
@ -227,15 +228,30 @@ public class ContractMakeServiceImpl implements ContractMakeService{
//检查该项目是否进行过签约验证
public String ProjectSignStatus(String projectid) throws Exception{
boolean gzSingStatus = false;
BizObjectManager caManage = JBOFactory.getBizObjectManager(CUSTOMER_ACCOUNT.CLASS_NAME);
BizObject ca = caManage.createQuery("PROJECT_ID=:projectid").setParameter("projectid", projectid).getSingleResult(false);
String falg = "error";
String string = ca.getAttribute("SIGN_STATUS").getString();
System.out.println(string);
if("Y".equals(ca.getAttribute("SIGN_STATUS").getString())){
return "success";
if (ca != null) {
if("Y".equals(ca.getAttribute("SIGN_STATUS").getString())){
gzSingStatus = true;
}
}
return falg;
BizObjectManager lctManage = JBOFactory.getBizObjectManager(LC_CARD_TLSIGN.CLASS_NAME);
BizObject lct = lctManage.createQuery(" project_id=:project_id ").setParameter("project_id", projectid).getSingleResult(false);
boolean tlSingStatus = false;
if( lct!=null && "sign_status2".equals(lct.getAttribute("sign_status").getString())){
tlSingStatus = true;
}
if(tlSingStatus && gzSingStatus){
return "success";
}else if (tlSingStatus==false && gzSingStatus==false){
return "请提醒客户查看手机短信,首先完成扣款卡的签约验证!";
}else if (tlSingStatus==false ){
return "请提醒客户查看手机短信,完成通联银联扣款卡的签约验证!";
}else if(gzSingStatus==false){
return "请提醒客户查看手机短信,完成广州银联扣款卡的签约验证!";
}
return "未查询到扣款信息,请联系管理员!" ;
}
@Override
public Map<String, Object> initiateSign(HttpServletRequest request,

View File

@ -886,8 +886,16 @@ public class FlowDataServiceImpl implements FlowDataService{
public Map<String, Object> getBankInfo(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 globalText = fieldMap.get("globalText") == null ? "" : fieldMap.get("globalText").toString();
Map<String, Object> body = new HashMap<String, Object>();
String sql = "SELECT bank_code,bank_name from bank_code";
String sql = "SELECT bank_code,bank_name from bank_code ";
if(globalText!=null&&globalText.length()>0){
sql=sql+" where bank_name like '%"+globalText+"%'";
}
List<Map<String, String>> dataList = DataOperatorUtil.getDataBySql(sql);
body.put("datas", dataList);
ReturnMapUtil.setReturnMap(body,