客户历史信息显示修改
This commit is contained in:
parent
405f5faadc
commit
9c3c663242
@ -336,16 +336,22 @@ public class InsertCustomerHistoryInfo {
|
||||
"select '' as customerid,cf.name as customername,cf.CERTTYPE,cf.certid,'共同承租人' as customertype,'' as customer_num,cf.FLOWUNID,cf.PROJECT_ID from customer_family_temp cf where cf.FLOWUNID = '" + flowunid + "'\n";
|
||||
List<Map<String, String>> customerinfo = conn.executeQuery(sql);
|
||||
|
||||
String certid = "";
|
||||
|
||||
List<Map<String, String>> cfinfo = new ArrayList<>();
|
||||
String certids = "";
|
||||
|
||||
for (int i = 0; i < customerinfo.size(); i++) {
|
||||
if(customerinfo.size()==i+1){
|
||||
certids = certids+"'"+customerinfo.get(i).get("certid")+"'";
|
||||
}else {
|
||||
certids = certids+"'"+customerinfo.get(i).get("certid")+"'"+",";
|
||||
}
|
||||
}
|
||||
|
||||
//避免项目的历史客户信息重复录入
|
||||
for (int i = customerinfo.size()-1; i >= 0; i--) {
|
||||
String cfsql = "select id from customer_history_info_temp where certid <> '"+customerinfo.get(i).get("certid")+"' and flowunid = '"+customerinfo.get(i).get("flowunid")+"'";
|
||||
cfinfo = conn.executeQuery(cfsql);
|
||||
String cfsql = "select id from customer_history_info_temp where certid not in ("+certids+") and flowunid = '"+flowunid+"'";
|
||||
List<Map<String, String>> cfinfo = conn.executeQuery(cfsql);
|
||||
|
||||
|
||||
}
|
||||
|
||||
if(cfinfo.size()>0){
|
||||
for (int i = 0; i < cfinfo.size(); i++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user