yaozc
2023-03-09 890e149d22d43b935c6354198357a9ad97241ecd
BUG改修
8 files added
2 files modified
580 ■■■■■ changed files
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/domain/ProjectCostOther.java 72 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/repository/ProjectCostOtherRepository.java 38 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/rest/ProjectCostOtherController.java 87 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/service/ProjectCostOtherService.java 83 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/service/dto/ProjectCostOtherDto.java 53 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/service/dto/ProjectCostOtherQueryCriteria.java 38 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/service/dto/ProjectDto.java 12 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/service/impl/ProjectCostOtherServiceImpl.java 159 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/service/impl/ProjectServiceImpl.java 6 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/service/mapstruct/ProjectCostOtherMapper.java 32 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/domain/ProjectCostOther.java
New file
@@ -0,0 +1,72 @@
/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.project.domain;
import lombok.Data;
import me.zhengjie.base.BaseEntity;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author yaozc
* @date 2023-03-08
**/
@Entity
@Data
@Table(name="project_cost_other")
public class ProjectCostOther extends BaseEntity implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "`id`")
    @ApiModelProperty(value = "ID")
    private Long id;
    @Column(name = "`project_id`",nullable = false)
    @NotNull
    @ApiModelProperty(value = "项目ID")
    private Long projectId;
    @Column(name = "`project_cost_type`",nullable = false)
    @NotBlank
    @ApiModelProperty(value = "项目成本类型")
    private String projectCostType;
    @Column(name = "`sub_project_cost_type`")
    @NotBlank
    @ApiModelProperty(value = "项目成本子类型")
    private String subProjectCostType;
    @Column(name = "`project_cost`",nullable = false)
    @NotNull
    @ApiModelProperty(value = "项目成本")
    private BigDecimal projectCost;
    @Column(name = "`remark`")
    @ApiModelProperty(value = "备注")
    private String remark;
    public void copy(ProjectCostOther source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/repository/ProjectCostOtherRepository.java
New file
@@ -0,0 +1,38 @@
/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.project.repository;
import me.zhengjie.modules.project.domain.ProjectCostOther;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
/**
* @website https://eladmin.vip
* @author yaozc
* @date 2023-03-08
**/
public interface ProjectCostOtherRepository extends JpaRepository<ProjectCostOther, Long>, JpaSpecificationExecutor<ProjectCostOther> {
    /**
     * 根据项目ID查询
     * @param id /
     * @return /
     */
    List<ProjectCostOther> findByProjectId(Long id);
}
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/rest/ProjectCostOtherController.java
New file
@@ -0,0 +1,87 @@
/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.project.rest;
import me.zhengjie.annotation.Log;
import me.zhengjie.modules.project.domain.ProjectCostOther;
import me.zhengjie.modules.project.service.ProjectCostOtherService;
import me.zhengjie.modules.project.service.dto.ProjectCostOtherQueryCriteria;
import org.springframework.data.domain.Pageable;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.*;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
/**
* @website https://eladmin.vip
* @author yaozc
* @date 2023-03-08
**/
@RestController
@RequiredArgsConstructor
@Api(tags = "项目其他成本管理")
@RequestMapping("/api/projectCostOther")
public class ProjectCostOtherController {
    private final ProjectCostOtherService projectCostOtherService;
    @Log("导出数据")
    @ApiOperation("导出数据")
    @GetMapping(value = "/download")
    @PreAuthorize("@el.check('projectCostOther:list')")
    public void exportProjectCostOther(HttpServletResponse response, ProjectCostOtherQueryCriteria criteria) throws IOException {
        projectCostOtherService.download(projectCostOtherService.queryAll(criteria), response);
    }
    @GetMapping
    @Log("查询项目其他成本")
    @ApiOperation("查询项目其他成本")
    @PreAuthorize("@el.check('projectCostOther:list')")
    public ResponseEntity<Object> queryProjectCostOther(ProjectCostOtherQueryCriteria criteria, Pageable pageable){
        return new ResponseEntity<>(projectCostOtherService.queryAll(criteria,pageable),HttpStatus.OK);
    }
    @PostMapping
    @Log("新增项目其他成本")
    @ApiOperation("新增项目其他成本")
    @PreAuthorize("@el.check('projectCostOther:add')")
    public ResponseEntity<Object> createProjectCostOther(@Validated @RequestBody ProjectCostOther resources){
        return new ResponseEntity<>(projectCostOtherService.create(resources),HttpStatus.CREATED);
    }
    @PutMapping
    @Log("修改项目其他成本")
    @ApiOperation("修改项目其他成本")
    @PreAuthorize("@el.check('projectCostOther:edit')")
    public ResponseEntity<Object> updateProjectCostOther(@Validated @RequestBody ProjectCostOther resources){
        projectCostOtherService.update(resources);
        return new ResponseEntity<>(HttpStatus.NO_CONTENT);
    }
    @DeleteMapping
    @Log("删除项目其他成本")
    @ApiOperation("删除项目其他成本")
    @PreAuthorize("@el.check('projectCostOther:del')")
    public ResponseEntity<Object> deleteProjectCostOther(@RequestBody Long[] ids) {
        projectCostOtherService.deleteAll(ids);
        return new ResponseEntity<>(HttpStatus.OK);
    }
}
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/service/ProjectCostOtherService.java
New file
@@ -0,0 +1,83 @@
/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.project.service;
import me.zhengjie.modules.project.domain.ProjectCostOther;
import me.zhengjie.modules.project.service.dto.ProjectCostOtherDto;
import me.zhengjie.modules.project.service.dto.ProjectCostOtherQueryCriteria;
import org.springframework.data.domain.Pageable;
import java.util.Map;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
/**
* @website https://eladmin.vip
* @description 服务接口
* @author yaozc
* @date 2023-03-08
**/
public interface ProjectCostOtherService {
    /**
    * 查询数据分页
    * @param criteria 条件
    * @param pageable 分页参数
    * @return Map<String,Object>
    */
    Map<String,Object> queryAll(ProjectCostOtherQueryCriteria criteria, Pageable pageable);
    /**
    * 查询所有数据不分页
    * @param criteria 条件参数
    * @return List<ProjectCostOtherDto>
    */
    List<ProjectCostOtherDto> queryAll(ProjectCostOtherQueryCriteria criteria);
    /**
     * 根据ID查询
     * @param id ID
     * @return ProjectCostOtherDto
     */
    ProjectCostOtherDto findById(Long id);
    /**
    * 创建
    * @param resources /
    * @return ProjectCostOtherDto
    */
    ProjectCostOtherDto create(ProjectCostOther resources);
    /**
    * 编辑
    * @param resources /
    */
    void update(ProjectCostOther resources);
    /**
    * 多选删除
    * @param ids /
    */
    void deleteAll(Long[] ids);
    /**
    * 导出数据
    * @param all 待导出的数据
    * @param response /
    * @throws IOException /
    */
    void download(List<ProjectCostOtherDto> all, HttpServletResponse response) throws IOException;
}
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/service/dto/ProjectCostOtherDto.java
New file
@@ -0,0 +1,53 @@
/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.project.service.dto;
import lombok.Data;
import me.zhengjie.base.BaseDTO;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author yaozc
* @date 2023-03-08
**/
@Data
public class ProjectCostOtherDto extends BaseDTO implements Serializable {
    /** ID */
    private Long id;
    /** 项目ID */
    private Long projectId;
    /** 项目成本类型 */
    private String projectCostType;
    /** 项目成本子类型 */
    private String subProjectCostType;
    /** 项目成本 */
    private BigDecimal projectCost;
    /** 备注 */
    private String remark;
    /** 姓名名称 */
    private String projectName;
}
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/service/dto/ProjectCostOtherQueryCriteria.java
New file
@@ -0,0 +1,38 @@
/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.project.service.dto;
import java.util.List;
import lombok.Data;
import me.zhengjie.annotation.Query;
/**
* @website https://eladmin.vip
* @author yaozc
* @date 2023-03-08
**/
@Data
public class ProjectCostOtherQueryCriteria {
    /** 精确 */
    @Query
    private Long projectId;
    /** 精确 */
    @Query(propName = "projectId", type = Query.Type.IN)
    private List<Long> projectIdList;
}
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/service/dto/ProjectDto.java
@@ -54,7 +54,7 @@
    /** 绩效单金 */
    private BigDecimal performancePrice;
    /** 绩效目标 */
    private Double performanceObjectives;
@@ -67,12 +67,18 @@
    /** 任务合计(实际) */
    private Double actualTaskTime;
    /** 成本合计 */
    /** 人力成本合计 */
    private BigDecimal totalLaborCost;
    /** 成本合计(实际) */
    /** 其他成本合计 */
    private BigDecimal totalOtherCost;
    /** 人力成本合计(实际) */
    private BigDecimal actualLaborCost;
    /** 其他成本合计(实际) */
    private BigDecimal actualOtherCost;
    /** 责任人ID */
    private Long liableUserId;
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/service/impl/ProjectCostOtherServiceImpl.java
New file
@@ -0,0 +1,159 @@
/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.project.service.impl;
import me.zhengjie.modules.project.domain.Project;
import me.zhengjie.modules.project.domain.ProjectCostOther;
import me.zhengjie.utils.ValidationUtil;
import me.zhengjie.utils.enums.DataScopeEnum;
import me.zhengjie.utils.FileUtil;
import lombok.RequiredArgsConstructor;
import me.zhengjie.modules.project.repository.ProjectCostOtherRepository;
import me.zhengjie.modules.project.repository.ProjectCostRepository;
import me.zhengjie.modules.project.repository.ProjectRepository;
import me.zhengjie.modules.project.service.ProjectCostOtherService;
import me.zhengjie.modules.project.service.dto.ProjectCostOtherDto;
import me.zhengjie.modules.project.service.dto.ProjectCostOtherQueryCriteria;
import me.zhengjie.modules.project.service.mapstruct.ProjectCostOtherMapper;
import me.zhengjie.modules.system.service.RoleService;
import me.zhengjie.modules.system.service.dto.RoleSmallDto;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import me.zhengjie.utils.PageUtil;
import me.zhengjie.utils.QueryHelp;
import me.zhengjie.utils.SecurityUtils;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashMap;
/**
* @website https://eladmin.vip
* @description 服务实现
* @author yaozc
* @date 2023-03-08
**/
@Service
@RequiredArgsConstructor
public class ProjectCostOtherServiceImpl implements ProjectCostOtherService {
    private final ProjectCostOtherRepository projectCostOtherRepository;
    private final ProjectCostOtherMapper projectCostOtherMapper;
    private final ProjectRepository projectRepository;
    private final RoleService roleService;
    private final ProjectCostRepository projectCostRepository;
    @Override
    public Map<String,Object> queryAll(ProjectCostOtherQueryCriteria criteria, Pageable pageable) {
        // 获取当前用户ID
        Long userId = SecurityUtils.getCurrentUserId();
        // 查询用户角色
        List<RoleSmallDto> roleSet = roleService.findByUsersId(userId);
        if (roleSet.stream().anyMatch(role -> DataScopeEnum.find(role.getDataScope()) == DataScopeEnum.THIS_LEVEL)) {
            // 根据用户ID查询负责的项目ID
            List<Long> projectIdList = projectRepository.findIdByLiableUserId(userId);
            // 根据用户ID查询参与的项目ID
            List<Long> taskUserProjectIdList = projectCostRepository.findProjectIdByUserId(userId);
            // 检索条件
            List<Long> totalProjectIdList = Stream.of(taskUserProjectIdList, projectIdList).flatMap(Collection::stream).distinct().collect(Collectors.toList());
            if (totalProjectIdList.size() == 0) {
                return PageUtil.toPage(Collections.emptyList(), 0);
            }
            criteria.setProjectIdList(totalProjectIdList);
        }
        Page<ProjectCostOther> page = projectCostOtherRepository.findAll((root, criteriaQuery, criteriaBuilder) -> QueryHelp.getPredicate(root,criteria,criteriaBuilder),pageable);
        // 将实体类转换为DTO(重写)
        Function<ProjectCostOther, ProjectCostOtherDto> func = new Function<ProjectCostOther, ProjectCostOtherDto>() {
            @Override
            public ProjectCostOtherDto apply(ProjectCostOther projectCostOther) {
                // 将实体类转换成DTO
                ProjectCostOtherDto projectCostOtherDto = projectCostOtherMapper.toDto(projectCostOther);
                // 根据项目ID查询项目信息
                Project project = projectRepository.findById(projectCostOtherDto.getProjectId()).orElseGet(Project::new);
                ValidationUtil.isNull(projectCostOtherDto.getId(),"Project","id",projectCostOtherDto.getProjectId());
                // 项目名称
                projectCostOtherDto.setProjectName(project.getName());
                return projectCostOtherDto;
            }
        };
        return PageUtil.toPage(page.map(func));
    }
    @Override
    public List<ProjectCostOtherDto> queryAll(ProjectCostOtherQueryCriteria criteria) {
        return projectCostOtherMapper.toDto(projectCostOtherRepository.findAll((root, criteriaQuery, criteriaBuilder) -> QueryHelp.getPredicate(root,criteria,criteriaBuilder)));
    }
    @Override
    @Transactional
    public ProjectCostOtherDto findById(Long id) {
        ProjectCostOther projectCostOther = projectCostOtherRepository.findById(id).orElseGet(ProjectCostOther::new);
        ValidationUtil.isNull(projectCostOther.getId(),"ProjectCostOther","id",id);
        return projectCostOtherMapper.toDto(projectCostOther);
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public ProjectCostOtherDto create(ProjectCostOther resources) {
        return projectCostOtherMapper.toDto(projectCostOtherRepository.save(resources));
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void update(ProjectCostOther resources) {
        ProjectCostOther projectCostOther = projectCostOtherRepository.findById(resources.getId()).orElseGet(ProjectCostOther::new);
        ValidationUtil.isNull( projectCostOther.getId(),"ProjectCostOther","id",resources.getId());
        projectCostOther.copy(resources);
        projectCostOtherRepository.save(projectCostOther);
    }
    @Override
    public void deleteAll(Long[] ids) {
        for (Long id : ids) {
            projectCostOtherRepository.deleteById(id);
        }
    }
    @Override
    public void download(List<ProjectCostOtherDto> all, HttpServletResponse response) throws IOException {
        List<Map<String, Object>> list = new ArrayList<>();
        for (ProjectCostOtherDto projectCostOther : all) {
            Map<String,Object> map = new LinkedHashMap<>();
            map.put("项目ID", projectCostOther.getProjectId());
            map.put(" projectCostType",  projectCostOther.getProjectCostType());
            map.put("项目成本", projectCostOther.getProjectCost());
            map.put("备注", projectCostOther.getRemark());
            map.put("创建者", projectCostOther.getCreateBy());
            map.put("创建时间", projectCostOther.getCreateTime());
            map.put("更新者", projectCostOther.getUpdateBy());
            map.put("更新时间", projectCostOther.getUpdateTime());
            list.add(map);
        }
        FileUtil.downloadExcel(list, response);
    }
}
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/service/impl/ProjectServiceImpl.java
@@ -43,6 +43,7 @@
import lombok.RequiredArgsConstructor;
import me.zhengjie.modules.constant.Constant;
import me.zhengjie.modules.project.domain.Project;
import me.zhengjie.modules.project.domain.ProjectCostOther;
import me.zhengjie.modules.project.domain.ProjectCostSummary;
import me.zhengjie.modules.project.domain.ProjectTask;
import me.zhengjie.modules.project.domain.ProjectTaskSummary;
@@ -87,6 +88,7 @@
    private final RoleService roleService;
    private final TaskUserRepository taskUserRepository;
    private final ProjectCostRepository projectCostRepository;
    private final ProjectCostOtherRepository projectCostOtherRepository;
    private final TaskRepository taskRepository;
    private final TaskDaliyRepository taskDaliyRepository;
    private final ProjectCostService projectCostService;
@@ -147,6 +149,10 @@
                ProjectCostSummary projectCostSummary = projectCostRepository.findSummaryByProjectId(project.getId());
                projectDto.setTotalLaborCost(projectCostSummary.getTotalLaborCost());
                // 其他项目成本
                List<ProjectCostOther> projectCostOtherList = projectCostOtherRepository.findByProjectId(project.getId());
                projectDto.setTotalOtherCost(projectCostOtherList.stream().map(ProjectCostOther::getProjectCost).reduce(BigDecimal.ZERO, BigDecimal::add));
                // 查询项目的任务数据
                TaskInterface taskInterface = taskRepository.collectByProjectId(project.getId());
                projectDto.setActualTaskTime(taskInterface.getPlanHours());
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/service/mapstruct/ProjectCostOtherMapper.java
New file
@@ -0,0 +1,32 @@
/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.project.service.mapstruct;
import me.zhengjie.base.BaseMapper;
import me.zhengjie.modules.project.domain.ProjectCostOther;
import me.zhengjie.modules.project.service.dto.ProjectCostOtherDto;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
/**
* @website https://eladmin.vip
* @author yaozc
* @date 2023-03-08
**/
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ProjectCostOtherMapper extends BaseMapper<ProjectCostOtherDto, ProjectCostOther> {
}