Commit 9f8fbd90 authored by 韩桐桐's avatar 韩桐桐

fix(jg):告知书顶部特种设备域名调整

parent 4764fe3a
......@@ -146,7 +146,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
@Value("classpath:/json/urlInfo.json")
public Resource bizTypeInfo;
@Value("${tzs.domain:https://sxtzsb.sxsei.com:9435}")
@Value("${tzs.domain}")
String TZSDOMAIN ;
@Autowired
......@@ -443,13 +443,11 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
});
}
String tzsDoMain = TZSDOMAIN.substring(0,TZSDOMAIN.lastIndexOf(":"));
Function<String, String> getValue = key -> installation.getOrDefault(key, "").toString();
// 组装模板变量
Map<String, Object> placeholders = new HashMap<>();
placeholders.put("doMain", tzsDoMain);
placeholders.put("doMain", TZSDOMAIN);
placeholders.put("installUnitName", getValue.apply("installUnitName"));
placeholders.put("informNumber", "".equals(getValue.apply("informNumber")) ? getValue.apply("applyNo") : getValue.apply("informNumber"));
placeholders.put("productName", getValue.apply("productName"));
......
......@@ -80,7 +80,7 @@ rule.definition.local-ip=172.16.10.243
# ??????????
minio.url.path=http://172.16.10.243:9000/
## \u7279\u79CD\u8BBE\u5907\u57DF\u540D
tzs.domain=https://sxtzsb.sxsei.com:9435
tzs.domain=http://sxtzsb.sxsei.com
outSystem.user.password=a1234560
amos.system.user.app-key=AMOS_STUDIO
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment