add: 联调

This commit is contained in:
ls
2025-03-18 15:04:01 +08:00
parent c3282a0c40
commit cd6e9baa89
5 changed files with 13 additions and 7 deletions

View File

@@ -44,7 +44,6 @@ public class R extends HashMap<String, Object> {
public static R ok(String msg) {
R r = new R();
r.put("msg", msg);
r.put("code", 200);
return r;
}

View File

@@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.boge.common.utils.ShiroUtils;
import com.boge.modules.sys.entity.SysUserEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -34,6 +35,7 @@ import com.boge.common.utils.R;
@RequestMapping("flow/flwdemodel")
public class FlwDeModelController {
@Autowired
@Lazy
private FlwDeModelService flwDeModelService;
/**

View File

@@ -5,6 +5,7 @@ import com.boge.common.utils.PageUtils;
import com.boge.common.utils.R;
import com.boge.modules.flow.service.FlwDeployService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
@@ -23,6 +24,7 @@ import java.util.Map;
public class FlwDeployController {
@Autowired
@Lazy
private FlwDeployService deployService;
@RequestMapping("/list")

View File

@@ -9,6 +9,7 @@ import com.boge.modules.flow.entity.FlwHiTaskEntity;
import com.boge.modules.flow.service.FlwInstanceService;
import com.boge.modules.sys.entity.SysUserEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@@ -19,6 +20,7 @@ import java.util.Map;
public class FlwInstanceController {
@Autowired
@Lazy
private FlwInstanceService instanceService;
/**

View File

@@ -148,15 +148,16 @@ public class FlwInstanceServiceImpl extends FlowServiceNoFactory implements FlwI
String url = CREATE_SESSION_URL + ACCESS_TOKEN;
JSONObject jsonObject = new JSONObject();
jsonObject.put("touser", toUser);
jsonObject.put("msgtype", "text");
jsonObject.put("msgtype", "textcard");
jsonObject.put("agentid", 1000006);
JSONObject contentJSon = new JSONObject();
contentJSon.put("content", content);
jsonObject.put("text", contentJSon);
contentJSon.put("title", "新审批待处理");
contentJSon.put("description", "点击查看详情");
contentJSon.put("url", "http://localhost:8001/#/tickets-tickets");
contentJSon.put("btntxt", "处理");
jsonObject.put("textcard", contentJSon);
jsonObject.put("safe", 0);
try {
URL postUrl = new URL(url);
HttpURLConnection http = (HttpURLConnection) postUrl.openConnection();