|
|
@ -59,52 +59,52 @@ public class CustomJavaCode extends BaseBean implements Action, EsbServerlessRpc
|
|
|
|
logger.error("params = " + JSON.toJSONString(params));
|
|
|
|
logger.error("params = " + JSON.toJSONString(params));
|
|
|
|
Map<String, Object> weaverResultMap = new HashMap<>();
|
|
|
|
Map<String, Object> weaverResultMap = new HashMap<>();
|
|
|
|
Long billid = Long.parseLong(String.valueOf(params.getOrDefault("billid", -1)));
|
|
|
|
Long billid = Long.parseLong(String.valueOf(params.getOrDefault("billid", -1)));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logger.error("billid = " + billid);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Long i = -1l;
|
|
|
|
|
|
|
|
if (i != null) {
|
|
|
|
logger.error("billid : " + billid);
|
|
|
|
if (i > 0 ) {
|
|
|
|
RecordSet recordSet = I18nContextUtil.getBean(RecordSet.class);
|
|
|
|
RecordSet recordSet = I18nContextUtil.getBean(RecordSet.class);
|
|
|
|
String str1 = " select * from e10_common.dbo.formtable_main_619 where id =" + billid;
|
|
|
|
String str1 = " select * from e10_common.dbo.formtable_main_619 where id =" + i;
|
|
|
|
logger.error(" sql == " + str1);
|
|
|
|
logger.error(" sql == " + str1);
|
|
|
|
recordSet.executeSql(str1);
|
|
|
|
recordSet.executeSql(str1);
|
|
|
|
ArrayList<Map<String, String>> arrayList = new ArrayList();
|
|
|
|
ArrayList<Map<String, String>> arrayList = new ArrayList();
|
|
|
|
while (recordSet.next()) {
|
|
|
|
while (recordSet.next()) {
|
|
|
|
int k = recordSet.getInt("id");
|
|
|
|
int k = recordSet.getInt("id");
|
|
|
|
String str4 = recordSet.getString("bh");
|
|
|
|
String str4 = recordSet.getString("bh");
|
|
|
|
int m = recordSet.getInt("lx");
|
|
|
|
int m = recordSet.getInt("lx");
|
|
|
|
String str5 = recordSet.getString("mc");
|
|
|
|
String str5 = recordSet.getString("mc");
|
|
|
|
String str6 = recordSet.getString("dm");
|
|
|
|
String str6 = recordSet.getString("dm");
|
|
|
|
String str7 = recordSet.getInt("zt") + "";
|
|
|
|
String str7 = recordSet.getInt("zt") + "";
|
|
|
|
String str8 = recordSet.getString("yxjzq");
|
|
|
|
String str8 = recordSet.getString("yxjzq");
|
|
|
|
String str9 = recordSet.getString("jyyy");
|
|
|
|
String str9 = recordSet.getString("jyyy");
|
|
|
|
if (!"".equals(str9))
|
|
|
|
if (!"".equals(str9))
|
|
|
|
str9 = str9.replace("<br>", "");
|
|
|
|
str9 = str9.replace("<br>", "");
|
|
|
|
String str10 = recordSet.getString("modedatacreatedate");
|
|
|
|
String str10 = recordSet.getString("modedatacreatedate");
|
|
|
|
String str11 = recordSet.getString("modedatacreatetime");
|
|
|
|
String str11 = recordSet.getString("modedatacreatetime");
|
|
|
|
Map<String, String> hashMap = new HashMap<String, String>();
|
|
|
|
Map<String, String> hashMap = new HashMap<String, String>();
|
|
|
|
hashMap.put("id", k + "");
|
|
|
|
hashMap.put("id", k + "");
|
|
|
|
hashMap.put("bh", str4);
|
|
|
|
hashMap.put("bh", str4);
|
|
|
|
hashMap.put("dm", str6);
|
|
|
|
hashMap.put("dm", str6);
|
|
|
|
hashMap.put("lx", m + "");
|
|
|
|
hashMap.put("lx", m + "");
|
|
|
|
hashMap.put("mc", str5);
|
|
|
|
hashMap.put("mc", str5);
|
|
|
|
hashMap.put("zt", str7);
|
|
|
|
hashMap.put("zt", str7);
|
|
|
|
hashMap.put("yxjzq", str8);
|
|
|
|
hashMap.put("yxjzq", str8);
|
|
|
|
hashMap.put("jyyy", str9);
|
|
|
|
hashMap.put("jyyy", str9);
|
|
|
|
hashMap.put("modedatacreatedate", str10);
|
|
|
|
hashMap.put("modedatacreatedate", str10);
|
|
|
|
hashMap.put("modedatacreatetime", str11);
|
|
|
|
hashMap.put("modedatacreatetime", str11);
|
|
|
|
arrayList.add(hashMap);
|
|
|
|
arrayList.add(hashMap);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logger.error(" 入参 == " + arrayList);
|
|
|
|
|
|
|
|
CallEasBlacklistServices callEasBlacklistServices = new CallEasBlacklistServices();
|
|
|
|
|
|
|
|
String[] arrayOfString = callEasBlacklistServices.syncBlacklist(arrayList);
|
|
|
|
|
|
|
|
String str2 = arrayOfString[0];
|
|
|
|
|
|
|
|
String str3 = arrayOfString[1];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
changeWhiteListState.changeState(arrayList);
|
|
|
|
|
|
|
|
logger.error("do blacklist webservice: " + str2 + "][message : " + str3 + "]");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logger.error(" 入参 == " + arrayList);
|
|
|
|
|
|
|
|
CallEasBlacklistServices callEasBlacklistServices = new CallEasBlacklistServices();
|
|
|
|
|
|
|
|
String[] arrayOfString = callEasBlacklistServices.syncBlacklist(arrayList);
|
|
|
|
|
|
|
|
String str2 = arrayOfString[0];
|
|
|
|
|
|
|
|
String str3 = arrayOfString[1];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
changeWhiteListState.changeState(arrayList);
|
|
|
|
|
|
|
|
logger.error("do blacklist webservice: " + str2 + "][message : " + str3 + "]");
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> res = new HashMap<>();
|
|
|
|
Map<String, Object> res = new HashMap<>();
|
|
|
|
res.put("status", true);
|
|
|
|
res.put("status", true);
|
|
|
|
res.put("msg", "success");
|
|
|
|
res.put("msg", "success");
|
|
|
|