合并 qms 代码
This commit is contained in:
226
yudao-module-qms/yudao-module-qms-server/pom.xml
Normal file
226
yudao-module-qms/yudao-module-qms-server/pom.xml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,16 @@
|
||||
package cn.iocoder.yudao.module.qms;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* 项目的启动类
|
||||
*/
|
||||
@SpringBootApplication
|
||||
public class QmsServerApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(QmsServerApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package cn.iocoder.yudao.module.qms.api.task;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.module.qms.api.task.dto.QmsBpmDTO;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
public interface BMPCallbackInterface {
|
||||
|
||||
CommonResult<JSONObject> callback(QmsBpmDTO reqDTO);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package cn.iocoder.yudao.module.qms.api.task;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.common.util.spring.SpringUtils;
|
||||
import cn.iocoder.yudao.module.qms.api.task.dto.QmsBpmDTO;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import static cn.iocoder.yudao.module.qms.enums.QmsBpmConstant.BPM_CALLBACK_BEAN_NAME;
|
||||
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class QmsApiImpl implements QmsApi{
|
||||
|
||||
@Override
|
||||
public CommonResult<JSONObject> bpmCallback(QmsBpmDTO reqDTO) {
|
||||
JSONObject variables = reqDTO.getVariables();
|
||||
String beanName = variables.getString(BPM_CALLBACK_BEAN_NAME);
|
||||
BMPCallbackInterface bean = SpringUtils.getBean(beanName);
|
||||
return bean.callback(reqDTO);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user