2
liusuyi
2026-05-12 9b5c9db9189493fbc6db48f55a7b7311b2a3253c
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
package com.ard.work.location_note.service.impl;
 
import java.util.List;
import com.ard.common.core.utils.DateUtils;
import com.ard.common.datascope.annotation.DataScope;
import com.ard.work.location_note.domain.ArdLocationNote;
import com.ard.work.location_note.mapper.ArdLocationNoteMapper;
import com.ard.work.location_note.service.IArdLocationNoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
/**
 * 注记Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-25
 */
@Service
public class ArdLocationNoteServiceImpl implements IArdLocationNoteService
{
    @Autowired
    private ArdLocationNoteMapper ardLocationNoteMapper;
 
    /**
     * 查询注记
     * 
     * @param areaId 注记主键
     * @return 注记
     */
    @Override
    public ArdLocationNote selectArdLocationNoteByAreaId(String areaId)
    {
        return ardLocationNoteMapper.selectArdLocationNoteByAreaId(areaId);
    }
 
    /**
     * 查询注记列表
     * 
     * @param ardLocationNote 注记
     * @return 注记
     */
    @Override
    @DataScope(deptAlias = "d", userAlias = "u")
    public List<ArdLocationNote> selectArdLocationNoteList(ArdLocationNote ardLocationNote)
    {
        return ardLocationNoteMapper.selectArdLocationNoteList(ardLocationNote);
    }
 
    /**
     * 新增注记
     * 
     * @param ardLocationNote 注记
     * @return 结果
     */
    @Override
    public int insertArdLocationNote(ArdLocationNote ardLocationNote)
    {
        ardLocationNote.setCreateTime(DateUtils.getNowDate());
        return ardLocationNoteMapper.insertArdLocationNote(ardLocationNote);
    }
 
    /**
     * 修改注记
     * 
     * @param ardLocationNote 注记
     * @return 结果
     */
    @Override
    public int updateArdLocationNote(ArdLocationNote ardLocationNote)
    {
        ardLocationNote.setUpdateTime(DateUtils.getNowDate());
        return ardLocationNoteMapper.updateArdLocationNote(ardLocationNote);
    }
 
    /**
     * 批量删除注记
     * 
     * @param areaIds 需要删除的注记主键
     * @return 结果
     */
    @Override
    public int deleteArdLocationNoteByAreaIds(String[] areaIds)
    {
        return ardLocationNoteMapper.deleteArdLocationNoteByAreaIds(areaIds);
    }
 
    /**
     * 删除注记信息
     * 
     * @param areaId 注记主键
     * @return 结果
     */
    @Override
    public int deleteArdLocationNoteByAreaId(String areaId)
    {
        return ardLocationNoteMapper.deleteArdLocationNoteByAreaId(areaId);
    }
}