ソースを参照

电签检测程序优化

lvy 1 週間 前
コミット
3c44b99e89

+ 1 - 1
blade-service/blade-e-visa/src/main/java/org/springblade/evisa/service/impl/ScrDataServiceImpl.java

@@ -805,7 +805,7 @@ public class ScrDataServiceImpl implements ScrDataService {
     private Map<String, List<Map<String, Object>>> getSignatureData(String queryId, String signType, String ids) {
         List<Map<String, Object>> mapList = jdbcTemplate.queryForList("select text_id as keyword, type, pyzbx, pyzby from m_sign_data where query_id = " + queryId);
         if (ids != null && !ids.isEmpty()) {
-            ids = ids.replaceAll("✹", "").replace("*",  "");
+            ids = ids.replaceAll("✹", "").replaceAll("\\*",  "");
             List<Map<String, Object>> list = jdbcTemplate.queryForList("select text_id as keyword, type, pyzbx, pyzby from m_sign_data where query_id = -1 and user_id = -1 and text_id in (" + ids + ") and sign_type = " + signType);
             mapList.addAll(list);
         }