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);
|
}
|
}
|