| package com.doumee.service.business; | 
|   | 
| import com.doumee.core.model.PageData; | 
| import com.doumee.core.model.PageWrap; | 
| import com.doumee.dao.business.dto.WorkTypeQueryDTO; | 
| import com.doumee.dao.business.model.Worktype; | 
| import org.springframework.web.multipart.MultipartFile; | 
|   | 
| import java.util.List; | 
| import java.util.Map; | 
| import java.util.Set; | 
|   | 
| /** | 
|  * 工种信息表Service定义 | 
|  * @author 江蹄蹄 | 
|  * @date 2024/01/16 10:03 | 
|  */ | 
| public interface WorktypeService { | 
|   | 
|     /** | 
|      * 创建 | 
|      *  | 
|      * @param worktype 实体对象 | 
|      * @return Integer | 
|      */ | 
|     Integer create(Worktype worktype); | 
|   | 
|     /** | 
|      * 主键删除 | 
|      * | 
|      * @param id 主键 | 
|      */ | 
|     void deleteById(Integer id); | 
|   | 
|     /** | 
|      * 删除 | 
|      * | 
|      * @param worktype 实体对象 | 
|      */ | 
|     void delete(Worktype worktype); | 
|   | 
|     /** | 
|      * 批量主键删除 | 
|      * | 
|      * @param ids 主键集 | 
|      */ | 
|     void deleteByIdInBatch(List<Integer> ids); | 
|   | 
|     /** | 
|      * 主键更新 | 
|      * | 
|      * @param worktype 实体对象 | 
|      */ | 
|     void updateById(Worktype worktype); | 
|   | 
|     /** | 
|      * 批量主键更新 | 
|      * | 
|      * @param worktypes 实体集 | 
|      */ | 
|     void updateByIdInBatch(List<Worktype> worktypes); | 
|   | 
|     /** | 
|      * 主键查询 | 
|      * | 
|      * @param id 主键 | 
|      * @return Worktype | 
|      */ | 
|     Worktype findById(Integer id); | 
|   | 
|     /** | 
|      * 条件查询单条记录 | 
|      * | 
|      * @param worktype 实体对象 | 
|      * @return Worktype | 
|      */ | 
|     Worktype findOne(Worktype worktype); | 
|   | 
|     /** | 
|      * 条件查询 | 
|      * | 
|      * @param worktype 实体对象 | 
|      * @return List<Worktype> | 
|      */ | 
|     List<Worktype> findList(Worktype worktype); | 
|   | 
|   | 
|     /** | 
|      * 根据保险方案查询工种信息 | 
|      * @param workTypeQueryDTO | 
|      * @return | 
|      */ | 
|     List<Worktype> findListByDTO(WorkTypeQueryDTO workTypeQueryDTO); | 
|   | 
|    | 
|     /** | 
|      * 分页查询 | 
|      * | 
|      * @param pageWrap 分页对象 | 
|      * @return PageData<Worktype> | 
|      */ | 
|     PageData<Worktype> findPage(PageWrap<Worktype> pageWrap); | 
|   | 
|     /** | 
|      * 条件统计 | 
|      * | 
|      * @param worktype 实体对象 | 
|      * @return long | 
|      */ | 
|     long count(Worktype worktype); | 
|   | 
|     List<String> importBatch(MultipartFile file); | 
|   | 
|     Set<Map<String,Object>> importBatchForSolutions(MultipartFile file , Integer insuranceId); | 
| } |