package com.doumee.service.business;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.doumee.core.model.PageData;
|
import com.doumee.core.model.PageWrap;
|
import com.doumee.dao.business.model.Declares;
|
import com.doumee.dao.business.model.Project;
|
import java.util.List;
|
|
/**
|
* 项目信息表Service定义
|
* @author 江蹄蹄
|
* @date 2023/02/15 08:55
|
*/
|
public interface ProjectService {
|
|
/**
|
* 创建
|
*
|
* @param project 实体对象
|
* @return Integer
|
*/
|
Integer create(Project project);
|
|
/**
|
* 主键删除
|
*
|
* @param id 主键
|
*/
|
void deleteById(Integer id);
|
|
/**
|
* 删除
|
*
|
* @param project 实体对象
|
*/
|
void delete(Project project);
|
|
/**
|
* 批量主键删除
|
*
|
* @param ids 主键集
|
*/
|
void deleteByIdInBatch(List<Integer> ids);
|
|
/**
|
* 主键更新
|
*
|
* @param project 实体对象
|
*/
|
void updateById(Project project);
|
void distributeSjChild(Project project);
|
|
/**
|
* 批量主键更新
|
*
|
* @param projects 实体集
|
*/
|
void updateByIdInBatch(List<Project> projects);
|
|
/**
|
* 主键查询
|
*
|
* @param id 主键
|
* @return Project
|
*/
|
Project findById(Integer id);
|
|
/**
|
* 条件查询单条记录
|
*
|
* @param project 实体对象
|
* @return Project
|
*/
|
Project findOne(Project project);
|
|
/**
|
* 条件查询
|
*
|
* @param project 实体对象
|
* @return List<Project>
|
*/
|
List<Project> findList(Project project);
|
|
/**
|
* 条件查询
|
*
|
* @param wrapper 实体对象
|
* @return List<Project>
|
*/
|
List<Project> findList(QueryWrapper<Project> wrapper);
|
|
/**
|
* 分页查询
|
*
|
* @param pageWrap 分页对象
|
* @return PageData<Project>
|
*/
|
PageData<Project> findPage(PageWrap<Project> pageWrap);
|
|
/**
|
* 条件统计
|
*
|
* @param project 实体对象
|
* @return long
|
*/
|
long count(Project project);
|
|
PageData<Declares> pageDeclared(PageWrap<Project> pageWrap);
|
|
/**
|
* 删除子账号关联项目
|
* @param project
|
*/
|
void updateSJchildIdById(Project project);
|
}
|