package com.aucma.dms.service.impl;

//import com.hw.common.core.utils.DateUtils;
//import com.aucma.dms.domain.DmsBillsMaintDetailProject;
//import com.aucma.dms.mapper.DmsBillsMaintDetailProjectMapper;
//import com.aucma.dms.service.IDmsBillsMaintDetailProjectService;

import com.aucma.common.utils.DateUtils;
import com.aucma.dms.domain.DmsBillsMaintDetailProject;
import com.aucma.dms.mapper.DmsBillsMaintDetailProjectMapper;
import com.aucma.dms.service.IDmsBillsMaintDetailProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 保养工单明细项目信息;检查每个项目的点巡检结果详情Service业务层处理
 * 
 * @author xins
 * @date 2024-09-18
 */
@Service
public class DmsBillsMaintDetailProjectServiceImpl implements IDmsBillsMaintDetailProjectService
{
    @Autowired
    private DmsBillsMaintDetailProjectMapper dmsBillsMaintDetailProjectMapper;

    /**
     * 查询保养工单明细项目信息;检查每个项目的点巡检结果详情
     * 
     * @param maintDetailProjectId 保养工单明细项目信息;检查每个项目的点巡检结果详情主键
     * @return 保养工单明细项目信息;检查每个项目的点巡检结果详情
     */
    @Override
    public DmsBillsMaintDetailProject selectDmsBillsMaintDetailProjectByMaintDetailProjectId(Long maintDetailProjectId)
    {
        return dmsBillsMaintDetailProjectMapper.selectDmsBillsMaintDetailProjectByMaintDetailProjectId(maintDetailProjectId);
    }

    /**
     * 查询保养工单明细项目信息;检查每个项目的点巡检结果详情列表
     * 
     * @param dmsBillsMaintDetailProject 保养工单明细项目信息;检查每个项目的点巡检结果详情
     * @return 保养工单明细项目信息;检查每个项目的点巡检结果详情
     */
    @Override
    public List<DmsBillsMaintDetailProject> selectDmsBillsMaintDetailProjectList(DmsBillsMaintDetailProject dmsBillsMaintDetailProject)
    {
        return dmsBillsMaintDetailProjectMapper.selectDmsBillsMaintDetailProjectList(dmsBillsMaintDetailProject);
    }

    /**
     * 新增保养工单明细项目信息;检查每个项目的点巡检结果详情
     * 
     * @param dmsBillsMaintDetailProject 保养工单明细项目信息;检查每个项目的点巡检结果详情
     * @return 结果
     */
    @Override
    public int insertDmsBillsMaintDetailProject(DmsBillsMaintDetailProject dmsBillsMaintDetailProject)
    {
        dmsBillsMaintDetailProject.setCreateTime(DateUtils.getNowDate());
        return dmsBillsMaintDetailProjectMapper.insertDmsBillsMaintDetailProject(dmsBillsMaintDetailProject);
    }

    /**
     * 修改保养工单明细项目信息;检查每个项目的点巡检结果详情
     * 
     * @param dmsBillsMaintDetailProject 保养工单明细项目信息;检查每个项目的点巡检结果详情
     * @return 结果
     */
    @Override
    public int updateDmsBillsMaintDetailProject(DmsBillsMaintDetailProject dmsBillsMaintDetailProject)
    {
        dmsBillsMaintDetailProject.setUpdateTime(DateUtils.getNowDate());
        return dmsBillsMaintDetailProjectMapper.updateDmsBillsMaintDetailProject(dmsBillsMaintDetailProject);
    }

    /**
     * 批量删除保养工单明细项目信息;检查每个项目的点巡检结果详情
     * 
     * @param maintDetailProjectIds 需要删除的保养工单明细项目信息;检查每个项目的点巡检结果详情主键
     * @return 结果
     */
    @Override
    public int deleteDmsBillsMaintDetailProjectByMaintDetailProjectIds(Long[] maintDetailProjectIds)
    {
        return dmsBillsMaintDetailProjectMapper.deleteDmsBillsMaintDetailProjectByMaintDetailProjectIds(maintDetailProjectIds);
    }

    /**
     * 删除保养工单明细项目信息;检查每个项目的点巡检结果详情信息
     * 
     * @param maintDetailProjectId 保养工单明细项目信息;检查每个项目的点巡检结果详情主键
     * @return 结果
     */
    @Override
    public int deleteDmsBillsMaintDetailProjectByMaintDetailProjectId(Long maintDetailProjectId)
    {
        return dmsBillsMaintDetailProjectMapper.deleteDmsBillsMaintDetailProjectByMaintDetailProjectId(maintDetailProjectId);
    }
}
