提交 b6f23f13 编写于 作者: ibizdev's avatar ibizdev

zhouweidong 发布系统代码 [ibz-dst,应用]

上级 6449913f
......@@ -88,7 +88,7 @@ mock.onDelete(new RegExp(/^\/metamodels\/batch$/)).reply((config: any) => {
// exportFile
mock.onGet(new RegExp(/^\/metamodels\/?([a-zA-Z0-9\-\;]{0,35})\/exportfile$/)).reply((config: any) => {
mock.onPost(new RegExp(/^\/metamodels\/?([a-zA-Z0-9\-\;]{0,35})\/exportfile$/)).reply((config: any) => {
console.groupCollapsed("实体:metamodel 方法: exportFile");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
......
......@@ -48,7 +48,7 @@ export default class MetaModelServiceBase extends EntityService {
* @memberof MetaModelServiceBase
*/
public async exportFile(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/metamodels/${context.metamodel}/exportfile`,data,isloading);
let res:any = Http.getInstance().post(`/metamodels/${context.metamodel}/exportfile`,data,isloading);
return res;
}
......
......@@ -49,7 +49,7 @@ public class MetaModelResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-MetaModel-ExportFile-all')")
@ApiOperation(value = "导出文件", tags = {"模型" }, notes = "导出文件")
@RequestMapping(method = RequestMethod.GET, value = "/metamodels/{metamodel_id}/exportfile")
@RequestMapping(method = RequestMethod.POST, value = "/metamodels/{metamodel_id}/exportfile")
public ResponseEntity<Void> exportFile(@PathVariable("metamodel_id") String metamodel_id, @RequestBody MetaModelDTO metamodeldto) {
MetaModel domain = metamodelMapping.toDomain(metamodeldto);
domain.setId(metamodel_id);
......@@ -59,7 +59,7 @@ public class MetaModelResource {
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-MetaModel-ExportFile-all')")
@ApiOperation(value = "批量处理[导出文件]", tags = {"模型" }, notes = "批量处理[导出文件]")
@RequestMapping(method = RequestMethod.GET, value = "/metamodels/exportfilebatch")
@RequestMapping(method = RequestMethod.POST, value = "/metamodels/exportfilebatch")
public ResponseEntity<Void> exportFileBatch(@RequestBody List<MetaModelDTO> metamodeldtos) {
List<MetaModel> domains = metamodelMapping.toDomain(metamodeldtos);
boolean result = metamodelService.exportFileBatch(domains);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册