package com.gxwebsoft.project.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.project.entity.Project;
import com.gxwebsoft.project.entity.ProjectRenew;
import com.gxwebsoft.project.param.ProjectParam;

import java.math.BigDecimal;
import java.util.List;

/**
 * 应用Service
 *
 * @author 科技小王子
 * @since 2025-03-14 16:21:11
 */
public interface ProjectService extends IService<Project> {

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<Project>
     */
    PageResult<Project> pageRel(ProjectParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<Project>
     */
    List<Project> listRel(ProjectParam param);

    /**
     * 根据id查询
     *
     * @param appId 应用ID
     * @return Project
     */
    Project getByIdRel(Integer appId);

    BigDecimal sumMoney(LambdaQueryWrapper<Project> between);

    void updateByRenew(ProjectRenew projectRenew);


}
