All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.herodotus.stirrup.logic.bpmn.camunda.service.ExtendedTaskService Maven / Gradle / Ivy

The newest version!
/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright (c) 2020-2030 郑庚伟 ZHENGGENGWEI (码匠君),  Licensed under the AGPL License
 *
 * This file is part of Herodotus Stirrup.
 *
 * Herodotus Stirrup is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Herodotus Stirrup is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see .
 */

package cn.herodotus.stirrup.logic.bpmn.camunda.service;

import cn.herodotus.stirrup.logic.bpmn.camunda.entity.ExtendedTask;
import cn.herodotus.stirrup.logic.bpmn.camunda.mapper.ExtendedTaskMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * 

Description: 扩展的 Camunda Task Service

*

* 因 Camunda Engine 中包含 TaskService,如果该类的类名简化为 TaskService,将会与 Camunda Engine 产生冲突,导致启动失败。 * * @author : gengwei.zheng * @date : 2023/1/21 16:10 */ @Service public class ExtendedTaskService { private static final Logger log = LoggerFactory.getLogger(ExtendedTaskService.class); private final ExtendedTaskMapper extendedTaskMapper; public ExtendedTaskService(ExtendedTaskMapper extendedTaskMapper) { this.extendedTaskMapper = extendedTaskMapper; } public IPage findToDoTasksByPage(Integer pageNumber, Integer pageSize, String employeeId) { IPage queryPage = new Page<>(pageNumber, pageSize); IPage pages = extendedTaskMapper.getToDoTasksByPage(queryPage, employeeId); log.debug("[Herodotus] |- ExtendedTask Service findToDoTasksByPage."); return pages; } public IPage getCompletedTasksByPage(Integer pageNumber, Integer pageSize, String employeeId) { IPage queryPage = new Page<>(pageNumber, pageSize); IPage pages = extendedTaskMapper.getCompletedTasksByPage(queryPage, employeeId); log.debug("[Herodotus] |- ExtendedTask Service getCompletedTasksByPage."); return pages; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy