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

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

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