【同步】BOOT 和 CLOUD 的功能

This commit is contained in:
YunaiV 2024-07-27 15:41:23 +08:00
parent 4386c7018c
commit 668870d052
4 changed files with 5 additions and 5 deletions

View File

@ -135,7 +135,7 @@ public class BpmProcessInstanceController {
processDefinitionService.getProcessDefinitionBpmnModel(processInstance.getProcessDefinitionId())); processDefinitionService.getProcessDefinitionBpmnModel(processInstance.getProcessDefinitionId()));
AdminUserRespDTO startUser = adminUserApi.getUser(NumberUtils.parseLong(processInstance.getStartUserId())); AdminUserRespDTO startUser = adminUserApi.getUser(NumberUtils.parseLong(processInstance.getStartUserId()));
DeptRespDTO dept = null; DeptRespDTO dept = null;
if (startUser != null) { if (startUser != null && startUser.getDeptId() != null) {
dept = deptApi.getDept(startUser.getDeptId()); dept = deptApi.getDept(startUser.getDeptId());
} }
return success(BpmProcessInstanceConvert.INSTANCE.buildProcessInstance(processInstance, return success(BpmProcessInstanceConvert.INSTANCE.buildProcessInstance(processInstance,

View File

@ -94,7 +94,7 @@ public class ConfigController {
@Operation(summary = "导出参数配置") @Operation(summary = "导出参数配置")
@PreAuthorize("@ss.hasPermission('infra:config:export')") @PreAuthorize("@ss.hasPermission('infra:config:export')")
@ApiAccessLog(operateType = EXPORT) @ApiAccessLog(operateType = EXPORT)
public void exportConfig(@Valid ConfigPageReqVO exportReqVO, public void exportConfig(ConfigPageReqVO exportReqVO,
HttpServletResponse response) throws IOException { HttpServletResponse response) throws IOException {
exportReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); exportReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ConfigDO> list = configService.getConfigPage(exportReqVO).getList(); List<ConfigDO> list = configService.getConfigPage(exportReqVO).getList();

View File

@ -58,6 +58,6 @@ public interface ConfigService {
* @param reqVO 分页条件 * @param reqVO 分页条件
* @return 分页列表 * @return 分页列表
*/ */
PageResult<ConfigDO> getConfigPage(@Valid ConfigPageReqVO reqVO); PageResult<ConfigDO> getConfigPage(ConfigPageReqVO reqVO);
} }

View File

@ -306,8 +306,8 @@ export default {
await this.#[[$modal]]#.confirm('是否确认导出所有${table.classComment}数据项?'); await this.#[[$modal]]#.confirm('是否确认导出所有${table.classComment}数据项?');
try { try {
this.exportLoading = true; this.exportLoading = true;
const res = await ${simpleClassName}Api.export${simpleClassName}Excel(this.queryParams); const data = await ${simpleClassName}Api.export${simpleClassName}Excel(this.queryParams);
this.#[[$]]#download.excel(res.data, '${table.classComment}.xls'); this.#[[$]]#download.excel(data, '${table.classComment}.xls');
} catch { } catch {
} finally { } finally {
this.exportLoading = false; this.exportLoading = false;