| | |
| | | package com.iailab.module.model.mpk.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.iailab.framework.common.page.PageData; |
| | | import com.iailab.framework.common.service.impl.BaseServiceImpl; |
| | | import com.iailab.framework.common.service.impl.CrudServiceImpl; |
| | | import com.iailab.module.model.mpk.dao.ProjectPackageHistoryDao; |
| | | import com.iailab.module.model.mpk.dto.ProjectDTO; |
| | | import com.iailab.module.model.mpk.dto.ProjectPackageHistoryDTO; |
| | | import com.iailab.module.model.mpk.entity.ProjectPackageHistoryEntity; |
| | | import com.iailab.module.model.mpk.service.ProjectPackageHistoryService; |
| | |
| | | |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | * @since 1.0.0 2024-08-22 |
| | | */ |
| | | @Service |
| | | public class ProjectPackageHistoryServiceImpl extends CrudServiceImpl<ProjectPackageHistoryDao, ProjectPackageHistoryEntity, ProjectPackageHistoryDTO> implements ProjectPackageHistoryService { |
| | | public class ProjectPackageHistoryServiceImpl extends BaseServiceImpl<ProjectPackageHistoryDao, ProjectPackageHistoryEntity> implements ProjectPackageHistoryService { |
| | | |
| | | @Override |
| | | public QueryWrapper<ProjectPackageHistoryEntity> getWrapper(Map<String, Object> params){ |
| | | String id = (String)params.get("id"); |
| | | String projectId = (String)params.get("projectId"); |
| | |
| | | public void deleteByMap(Map<String, Object> map) { |
| | | baseDao.delete(getWrapper(map)); |
| | | } |
| | | |
| | | @Override |
| | | public List<ProjectPackageHistoryEntity> list(Map<String, Object> map) { |
| | | return baseDao.selectList(getWrapper(map)); |
| | | } |
| | | |
| | | @Override |
| | | public PageData<ProjectPackageHistoryDTO> page(Map<String, Object> params) { |
| | | IPage<ProjectPackageHistoryEntity> page = baseDao.selectPage(getPage(params, "create_time", false), getWrapper(params)); |
| | | return getPageData(page, ProjectPackageHistoryDTO.class); |
| | | } |
| | | } |