修改通联签约

This commit is contained in:
gityjf 2021-02-18 18:05:03 +08:00
parent 61c17aabd3
commit 0d35e40572
2 changed files with 13 additions and 11 deletions

View File

@ -213,6 +213,7 @@ public class AllinpayServlet extends BaseServlet {
certId = signObj.getCertId();
collectType = signObj.getCollectType();
signSource = signObj.getSubjectId();
projectId = signObj.getProjectId();
}
if (StringUtils.isEmpty(collectType) || "YLcollect".equals(collectType)) {
request.setAttribute("state", "500");
@ -286,10 +287,10 @@ public class AllinpayServlet extends BaseServlet {
try {
Sqlca = Transaction.createTransaction(JBOFactory.createJBOTransaction());
String queryId = projectId;
String sql = "SELECT ca.account customername,ca.mobile phonenumber,ca.acc_number accNumber,ca.certid certId,ca.collect_type collectType,lpi.subjectid FROM customer_account ca join lb_project_info lpi on lpi.id = ca.project_id WHERE ca.project_id=:queryId ";
String sql = "SELECT ca.account customername,ca.mobile phonenumber,ca.acc_number accNumber,ca.certid certId,ca.collect_type collectType,lpi.subjectid,ca.project_id FROM customer_account ca join lb_project_info lpi on lpi.id = ca.project_id WHERE ca.project_id=:queryId ";
if (StringUtils.isNotBlank(flowunid)) {
queryId = flowunid;
sql = "SELECT ca.account customername,ca.mobile phonenumber,ca.acc_number accNumber,ca.certid certId,ca.collect_type collectType,lpi.subjectid FROM customer_account_temp ca join lb_project_info lpi on lpi.id = ca.project_id WHERE ca.flowunid=:queryId ";
sql = "SELECT ca.account customername,ca.mobile phonenumber,ca.acc_number accNumber,ca.certid certId,ca.collect_type collectType,lpi.subjectid,ca.project_id FROM customer_account_temp ca join lb_project_info lpi on lpi.id = ca.project_id WHERE ca.flowunid=:queryId ";
}
ASResultSet res = Sqlca.getASResultSet(new SqlObject(sql).setParameter("queryId", queryId));
if (res.next()) {
@ -299,7 +300,8 @@ public class AllinpayServlet extends BaseServlet {
String certId = res.getString("certId");
String collectType = res.getString("collectType");
String subjectid = res.getString("subjectid");
signDto = new SignDto(userName, phoneNumber, certId, accNumber, collectType, queryId,subjectid);
String db_projectId = res.getString("project_id");
signDto = new SignDto(userName, phoneNumber, certId, accNumber, collectType, db_projectId,subjectid);
}
Sqlca.commit();
} catch (Exception e) {

View File

@ -11,21 +11,21 @@ public class SignDto {
private String certId;
private String collectType;
private String accNumber;
//数据查询id (临时表取值flowunid 正式表取值projectId)
private String queryId;
//ÏîÄ¿±êÊ
private String projectId;
//Ö÷Ìå±êÊ
private String subjectId;
public SignDto() {
}
public SignDto(String userName, String phoneNumber, String certId, String accNumber, String collectType ,String queryId,String subjectId) {
public SignDto(String userName, String phoneNumber, String certId, String accNumber, String collectType ,String projectId,String subjectId) {
this.userName = userName;
this.phoneNumber = phoneNumber;
this.certId = certId;
this.accNumber = accNumber;
this.collectType = collectType;
this.queryId = queryId;
this.projectId = projectId;
this.subjectId = subjectId;
}
@ -49,12 +49,12 @@ public class SignDto {
return collectType;
}
public String getQueryId() {
return queryId;
public String getProjectId() {
return projectId;
}
public void setQueryId(String queryId) {
this.queryId = queryId;
public void setProjectId(String projectId) {
this.projectId = projectId;
}
public String getSubjectId() {