package com.doumee.service.business; 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.ProjectSo; import java.util.List; /** * 项目关联服务机构关联表Service定义 * @author 江蹄蹄 * @date 2023/02/15 08:55 */ public interface ProjectSoService { /** * 创建 * * @param projectSo 实体对象 * @return Integer */ Integer create(ProjectSo projectSo); /** * 批量创建综合服务单位 * * @param projectSo 实体对象 * @return Integer */ List createBatch(ProjectSo projectSo); /** * 主键删除 * * @param id 主键 */ void deleteById(Integer id); /** * 删除 * * @param projectSo 实体对象 */ void delete(ProjectSo projectSo); /** * 批量主键删除 * * @param ids 主键集 */ void deleteByIdInBatch(List ids); /** * 主键更新 * * @param projectSo 实体对象 */ void updateById(ProjectSo projectSo); void updateByPrice(ProjectSo projectSo); /** * 批量主键更新 * * @param projectSos 实体集 */ void updateByIdInBatch(List projectSos); /** * 主键查询 * * @param id 主键 * @return ProjectSo */ ProjectSo findById(Integer id); /** * 条件查询单条记录 * * @param projectSo 实体对象 * @return ProjectSo */ ProjectSo findOne(ProjectSo projectSo); /** * 条件查询 * * @param projectSo 实体对象 * @return List */ List findList(ProjectSo projectSo); /** * 分页查询 * * @param pageWrap 分页对象 * @return PageData */ PageData findPage(PageWrap pageWrap); /** * 条件统计 * * @param projectSo 实体对象 * @return long */ long count(ProjectSo projectSo); /** * 判断当前服务机构是否属于该项目中的服务机构 * @param declares * @return */ ProjectSo belongToService(Declares declares,Integer soId); }