hdy
2023-12-12 5c23e5e00a823fc50564ff31f97babad69246271
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package com.jcdm.main.om.workReport.service.impl;
 
import java.util.List;
import com.jcdm.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jcdm.main.om.workReport.mapper.OmWorkReportMapper;
import com.jcdm.main.om.workReport.domain.OmWorkReport;
import com.jcdm.main.om.workReport.service.IOmWorkReportService;
 
/**
 * 报工记录 表Service业务层处理
 * 
 * @author Yi
 * @date 2023-12-12
 */
@Service
public class OmWorkReportServiceImpl implements IOmWorkReportService 
{
    @Autowired
    private OmWorkReportMapper omWorkReportMapper;
 
    /**
     * 查询报工记录 表
     * 
     * @param id 报工记录 表主键
     * @return 报工记录 表
     */
    @Override
    public OmWorkReport selectOmWorkReportById(Long id)
    {
        return omWorkReportMapper.selectOmWorkReportById(id);
    }
 
    /**
     * 查询报工记录 表列表
     * 
     * @param omWorkReport 报工记录 表
     * @return 报工记录 表
     */
    @Override
    public List<OmWorkReport> selectOmWorkReportList(OmWorkReport omWorkReport)
    {
        return omWorkReportMapper.selectOmWorkReportList(omWorkReport);
    }
 
    /**
     * 新增报工记录 表
     * 
     * @param omWorkReport 报工记录 表
     * @return 结果
     */
    @Override
    public int insertOmWorkReport(OmWorkReport omWorkReport)
    {
        omWorkReport.setCreateTime(DateUtils.getNowDate());
        return omWorkReportMapper.insertOmWorkReport(omWorkReport);
    }
 
    /**
     * 修改报工记录 表
     * 
     * @param omWorkReport 报工记录 表
     * @return 结果
     */
    @Override
    public int updateOmWorkReport(OmWorkReport omWorkReport)
    {
        omWorkReport.setUpdateTime(DateUtils.getNowDate());
        return omWorkReportMapper.updateOmWorkReport(omWorkReport);
    }
 
    /**
     * 批量删除报工记录 表
     * 
     * @param ids 需要删除的报工记录 表主键
     * @return 结果
     */
    @Override
    public int deleteOmWorkReportByIds(Long[] ids)
    {
        return omWorkReportMapper.deleteOmWorkReportByIds(ids);
    }
 
    /**
     * 删除报工记录 表信息
     * 
     * @param id 报工记录 表主键
     * @return 结果
     */
    @Override
    public int deleteOmWorkReportById(Long id)
    {
        return omWorkReportMapper.deleteOmWorkReportById(id);
    }
}