zhanghl
2025-05-09 2da734889ad140079e542f08d69a234315f1c5a1
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.aps.core.service.impl;
 
import java.util.List;
import com.aps.common.core.utils.DateUtils;
import com.aps.common.core.utils.uuid.IdUtils;
import com.aps.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.aps.core.mapper.ApsPlantMapper;
import com.aps.core.domain.ApsPlant;
import com.aps.core.service.IApsPlantService;
 
/**
 * 工厂管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-14
 */
@Service
public class ApsPlantServiceImpl implements IApsPlantService 
{
    @Autowired
    private ApsPlantMapper apsPlantMapper;
 
    /**
     * 查询工厂管理
     * 
     * @param id 工厂管理主键
     * @return 工厂管理
     */
    @Override
    public ApsPlant selectApsPlantById(String id)
    {
        return apsPlantMapper.selectApsPlantById(id);
    }
 
    /**
     * 查询工厂管理列表
     * 
     * @param apsPlant 工厂管理
     * @return 工厂管理
     */
    @Override
    public List<ApsPlant> selectApsPlantList(ApsPlant apsPlant)
    {
        return apsPlantMapper.selectApsPlantList(apsPlant);
    }
 
    /**
     * 新增工厂管理
     * 
     * @param apsPlant 工厂管理
     * @return 结果
     */
    @Override
    public int insertApsPlant(ApsPlant apsPlant)
    {
        apsPlant.setId(IdUtils.fastSimpleUUID());
        apsPlant.setCreateTime(DateUtils.getNowDate());
        apsPlant.setCreateBy(SecurityUtils.getUsername());
        return apsPlantMapper.insertApsPlant(apsPlant);
    }
 
    /**
     * 修改工厂管理
     * 
     * @param apsPlant 工厂管理
     * @return 结果
     */
    @Override
    public int updateApsPlant(ApsPlant apsPlant)
    {
        apsPlant.setUpdateTime(DateUtils.getNowDate());
        return apsPlantMapper.updateApsPlant(apsPlant);
    }
 
    /**
     * 批量删除工厂管理
     * 
     * @param ids 需要删除的工厂管理主键
     * @return 结果
     */
    @Override
    public int deleteApsPlantByIds(String[] ids)
    {
        return apsPlantMapper.deleteApsPlantByIds(ids);
    }
 
    /**
     * 删除工厂管理信息
     * 
     * @param id 工厂管理主键
     * @return 结果
     */
    @Override
    public int deleteApsPlantById(String id)
    {
        return apsPlantMapper.deleteApsPlantById(id);
    }
}