春风项目四线(合箱线、总装线)
wujian
2024-01-25 c6e06980cccbb86fa224633d3585f9164295bff1
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
97
98
99
100
package com.jcdm.main.bs.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.bs.mapper.BsTechnologyRouteChildInfoMapper;
import com.jcdm.main.bs.domain.BsTechnologyRouteChildInfo;
import com.jcdm.main.bs.service.IBsTechnologyRouteChildInfoService;
 
import static org.apache.commons.lang3.SystemUtils.getUserName;
 
/**
 * 工艺路线子信息Service业务层处理
 * 
 * @author ruimin
 * @date 2023-12-09
 */
@Service
public class BsTechnologyRouteChildInfoServiceImpl implements IBsTechnologyRouteChildInfoService 
{
    @Autowired
    private BsTechnologyRouteChildInfoMapper bsTechnologyRouteChildInfoMapper;
 
    /**
     * 查询工艺路线子信息
     * 
     * @param id 工艺路线子信息主键
     * @return 工艺路线子信息
     */
    @Override
    public BsTechnologyRouteChildInfo selectBsTechnologyRouteChildInfoById(Long id)
    {
        return bsTechnologyRouteChildInfoMapper.selectBsTechnologyRouteChildInfoById(id);
    }
 
    /**
     * 查询工艺路线子信息列表
     * 
     * @param bsTechnologyRouteChildInfo 工艺路线子信息
     * @return 工艺路线子信息
     */
    @Override
    public List<BsTechnologyRouteChildInfo> selectBsTechnologyRouteChildInfoList(BsTechnologyRouteChildInfo bsTechnologyRouteChildInfo)
    {
        return bsTechnologyRouteChildInfoMapper.selectBsTechnologyRouteChildInfoList(bsTechnologyRouteChildInfo);
    }
 
    /**
     * 新增工艺路线子信息
     * 
     * @param bsTechnologyRouteChildInfo 工艺路线子信息
     * @return 结果
     */
    @Override
    public int insertBsTechnologyRouteChildInfo(BsTechnologyRouteChildInfo bsTechnologyRouteChildInfo)
    {
        bsTechnologyRouteChildInfo.setCreateTime(DateUtils.getNowDate());
        bsTechnologyRouteChildInfo.setCreateUser(getUserName());
        return bsTechnologyRouteChildInfoMapper.insertBsTechnologyRouteChildInfo(bsTechnologyRouteChildInfo);
    }
 
    /**
     * 修改工艺路线子信息
     * 
     * @param bsTechnologyRouteChildInfo 工艺路线子信息
     * @return 结果
     */
    @Override
    public int updateBsTechnologyRouteChildInfo(BsTechnologyRouteChildInfo bsTechnologyRouteChildInfo)
    {
        bsTechnologyRouteChildInfo.setUpdateTime(DateUtils.getNowDate());
        bsTechnologyRouteChildInfo.setUpdateUser(getUserName());
        return bsTechnologyRouteChildInfoMapper.updateBsTechnologyRouteChildInfo(bsTechnologyRouteChildInfo);
    }
 
    /**
     * 批量删除工艺路线子信息
     * 
     * @param ids 需要删除的工艺路线子信息主键
     * @return 结果
     */
    @Override
    public int deleteBsTechnologyRouteChildInfoByIds(Long[] ids)
    {
        return bsTechnologyRouteChildInfoMapper.deleteBsTechnologyRouteChildInfoByIds(ids);
    }
 
    /**
     * 删除工艺路线子信息信息
     * 
     * @param id 工艺路线子信息主键
     * @return 结果
     */
    @Override
    public int deleteBsTechnologyRouteChildInfoById(Long id)
    {
        return bsTechnologyRouteChildInfoMapper.deleteBsTechnologyRouteChildInfoById(id);
    }
}