diff --git a/.gitignore b/.gitignore index 4c19df7..bd0e09a 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /gradlew.bat /README.md /settings.gradle +/secDevClasses/ diff --git a/secondev-history-action/secondev-history-action.gradle b/secondev-history-action/secondev-history-action.gradle index 3d18fa2..92394fc 100644 --- a/secondev-history-action/secondev-history-action.gradle +++ b/secondev-history-action/secondev-history-action.gradle @@ -1,6 +1,4 @@ -plugins{ - id 'war' -} + description = "" dependencies { diff --git a/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/workflow/action/CustomJavaCode.java b/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/workflow/action/CustomJavaCode.java index 3476d8b..eb06bf1 100644 --- a/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/workflow/action/CustomJavaCode.java +++ b/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/workflow/action/CustomJavaCode.java @@ -59,52 +59,52 @@ public class CustomJavaCode extends BaseBean implements Action, EsbServerlessRpc logger.error("params = " + JSON.toJSONString(params)); Map weaverResultMap = new HashMap<>(); Long billid = Long.parseLong(String.valueOf(params.getOrDefault("billid", -1))); + + logger.error("billid = " + billid); try { - Long i = -1l; - if (i != null) { - if (i > 0 ) { - RecordSet recordSet = I18nContextUtil.getBean(RecordSet.class); - String str1 = " select * from e10_common.dbo.formtable_main_619 where id =" + i; - logger.error(" sql == " + str1); - recordSet.executeSql(str1); - ArrayList> arrayList = new ArrayList(); - while (recordSet.next()) { - int k = recordSet.getInt("id"); - String str4 = recordSet.getString("bh"); - int m = recordSet.getInt("lx"); - String str5 = recordSet.getString("mc"); - String str6 = recordSet.getString("dm"); - String str7 = recordSet.getInt("zt") + ""; - String str8 = recordSet.getString("yxjzq"); - String str9 = recordSet.getString("jyyy"); - if (!"".equals(str9)) - str9 = str9.replace("
", ""); - String str10 = recordSet.getString("modedatacreatedate"); - String str11 = recordSet.getString("modedatacreatetime"); - Map hashMap = new HashMap(); - hashMap.put("id", k + ""); - hashMap.put("bh", str4); - hashMap.put("dm", str6); - hashMap.put("lx", m + ""); - hashMap.put("mc", str5); - hashMap.put("zt", str7); - hashMap.put("yxjzq", str8); - hashMap.put("jyyy", str9); - hashMap.put("modedatacreatedate", str10); - hashMap.put("modedatacreatetime", str11); - 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("billid : " + billid); + RecordSet recordSet = I18nContextUtil.getBean(RecordSet.class); + String str1 = " select * from e10_common.dbo.formtable_main_619 where id =" + billid; + logger.error(" sql == " + str1); + recordSet.executeSql(str1); + ArrayList> arrayList = new ArrayList(); + while (recordSet.next()) { + int k = recordSet.getInt("id"); + String str4 = recordSet.getString("bh"); + int m = recordSet.getInt("lx"); + String str5 = recordSet.getString("mc"); + String str6 = recordSet.getString("dm"); + String str7 = recordSet.getInt("zt") + ""; + String str8 = recordSet.getString("yxjzq"); + String str9 = recordSet.getString("jyyy"); + if (!"".equals(str9)) + str9 = str9.replace("
", ""); + String str10 = recordSet.getString("modedatacreatedate"); + String str11 = recordSet.getString("modedatacreatetime"); + Map hashMap = new HashMap(); + hashMap.put("id", k + ""); + hashMap.put("bh", str4); + hashMap.put("dm", str6); + hashMap.put("lx", m + ""); + hashMap.put("mc", str5); + hashMap.put("zt", str7); + hashMap.put("yxjzq", str8); + hashMap.put("jyyy", str9); + hashMap.put("modedatacreatedate", str10); + hashMap.put("modedatacreatetime", str11); + 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 + "]"); + Map res = new HashMap<>(); res.put("status", true); res.put("msg", "success");