liulingling.177216
2024-08-26 349f1cfc5fa77fbc636d542df0d8050fddec48c2
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
101
package com.dingzhuo.energy.basic.data.policy.service.impl;
 
 
import com.dingzhuo.energy.basic.data.policy.domain.PolicyRegulations;
import com.dingzhuo.energy.basic.data.policy.mapper.PolicyRegulationsMapper;
import com.dingzhuo.energy.basic.data.policy.service.IPolicyRegulationsService;
import com.dingzhuo.energy.project.system.mapper.SysDictDataMapper;
import com.dingzhuo.energy.project.system.service.impl.SysUserServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
 
/**
 * 政策法规维护Service业务层处理
 * 
 * @author liuli
 * @date 2020-04-23
 */
@Service
public class PolicyRegulationsServiceImpl implements IPolicyRegulationsService 
{
    @Autowired
    private PolicyRegulationsMapper policyRegulationsMapper;
    @Autowired
    private SysDictDataMapper dictDataMapper;
 
    private static final Logger log = LoggerFactory.getLogger(SysUserServiceImpl.class);
    /**
     * 查询政策法规维护
     * 
     * @param id 政策法规维护ID
     * @return 政策法规维护
     */
    @Override
    public PolicyRegulations selectPolicyRegulationsById(String id)
    {
        return policyRegulationsMapper.selectPolicyRegulationsById(id);
    }
 
    /**
     * 查询政策法规维护列表
     * 
     * @param policyRegulations 政策法规维护
     * @return 政策法规维护
     */
    @Override
    public List<PolicyRegulations> selectPolicyRegulationsList(PolicyRegulations policyRegulations)
    {
        return policyRegulationsMapper.selectPolicyRegulationsList(policyRegulations);
    }
    /**
     * 新增政策法规维护
     * 
     * @param policyRegulations 政策法规维护
     * @return 结果
     */
    @Override
    public int insertPolicyRegulations(PolicyRegulations policyRegulations)
    {
        return policyRegulationsMapper.insertPolicyRegulations(policyRegulations);
    }
 
    /**
     * 修改政策法规维护
     * 
     * @param policyRegulations 政策法规维护
     * @return 结果
     */
    @Override
    public int updatePolicyRegulations(PolicyRegulations policyRegulations)
    {
        return policyRegulationsMapper.updatePolicyRegulations(policyRegulations);
    }
 
    /**
     * 批量删除政策法规维护
     * 
     * @param ids 需要删除的政策法规维护ID
     * @return 结果
     */
    @Override
    public int deletePolicyRegulationsByIds(String[] ids)
    {
        return policyRegulationsMapper.deletePolicyRegulationsByIds(ids);
    }
 
    /**
     * 删除政策法规维护信息
     * 
     * @param id 政策法规维护ID
     * @return 结果
     */
    @Override
    public int deletePolicyRegulationsById(String id)
    {
        return policyRegulationsMapper.deletePolicyRegulationsById(id);
    }
 
}