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