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