|
@@ -114,9 +114,10 @@ public class SendMsgToWeChatOA extends AbstractMessageServiceHandler {
|
|
|
requestJson.put("template_id",templateid);
|
|
requestJson.put("template_id",templateid);
|
|
|
//微信公众号对应跳转信息
|
|
//微信公众号对应跳转信息
|
|
|
Map<String, String> nckdRes = getResMap(entityNumber, (String) sysCtrlParamMap.get("nckd_res"));
|
|
Map<String, String> nckdRes = getResMap(entityNumber, (String) sysCtrlParamMap.get("nckd_res"));
|
|
|
- nckdRes.get("nckd_rescode");
|
|
|
|
|
- //拼接跳转路径
|
|
|
|
|
- String msgUrl = "http://erp-test.jxctly.com/ierp/mobile.html?form="+nckdRes.get("nckd_rescode")+"&accountId="+ RequestContext.get().getAccountId()+"&pkId="+bizDataId;
|
|
|
|
|
|
|
+ //拼接移动端供应商跳转路径
|
|
|
|
|
+ String msgUrl = "http://erp-test.jxctly.com/ierp/mobile.html?"+nckdRes.get("nckd_rescode")+bizDataId +"&accountId="+ RequestContext.get().getAccountId();
|
|
|
|
|
+ log.info("供应商跳转路径msgUrl:"+msgUrl);
|
|
|
|
|
+
|
|
|
requestJson.put("url",msgUrl);
|
|
requestJson.put("url",msgUrl);
|
|
|
requestJson.put("client_msg_id",id);
|
|
requestJson.put("client_msg_id",id);
|
|
|
//组装data参数
|
|
//组装data参数
|
|
@@ -258,13 +259,13 @@ public class SendMsgToWeChatOA extends AbstractMessageServiceHandler {
|
|
|
*/
|
|
*/
|
|
|
public static Map<String, String> getResMap(String entityNumber, String resStr) {
|
|
public static Map<String, String> getResMap(String entityNumber, String resStr) {
|
|
|
if (StringUtils.isEmpty(resStr)) {
|
|
if (StringUtils.isEmpty(resStr)) {
|
|
|
- throw new KDBizException("请前往系统参数-应用-供应链云-采购应用参数 对应跳转信息");
|
|
|
|
|
|
|
+ throw new KDBizException("请前往系统参数-应用-供应链云-采购应用参数 配置对应跳转信息");
|
|
|
}
|
|
}
|
|
|
//资源代号信息
|
|
//资源代号信息
|
|
|
Map<String, String> res = ((List<Map<String, String>>) JSONObject.parseObject(resStr, List.class))
|
|
Map<String, String> res = ((List<Map<String, String>>) JSONObject.parseObject(resStr, List.class))
|
|
|
.stream().filter(it -> it.get("nckd_rescaption").equals(entityNumber)).findAny().orElse(null);
|
|
.stream().filter(it -> it.get("nckd_rescaption").equals(entityNumber)).findAny().orElse(null);
|
|
|
if (null == res) {
|
|
if (null == res) {
|
|
|
- throw new KDBizException("请前往系统参数-应用-供应链云-采购应用参数 对应跳转信息,配置供应商协同页面标识");
|
|
|
|
|
|
|
+ throw new KDBizException("请前往系统参数-应用-供应链云-采购应用参数 对应跳转信息,配置供应商访问页面路径");
|
|
|
}
|
|
}
|
|
|
return res;
|
|
return res;
|
|
|
}
|
|
}
|