package com.ard.route.service.impl;
|
|
import java.util.List;
|
import com.ard.common.utils.DateUtils;
|
import com.ard.common.utils.uuid.IdUtils;
|
import com.ard.route.domain.route.ArdRouteInformation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.ard.route.mapper.ArdRouteInformationMapper;
|
import com.ard.route.service.IArdRouteInformationService;
|
|
/**
|
* 航线(kmz)Service业务层处理
|
*
|
* @author xia
|
* @date 2025-10-23
|
*/
|
@Service
|
public class ArdRouteInformationServiceImpl implements IArdRouteInformationService {
|
|
@Autowired
|
private ArdRouteInformationMapper ardRouteInformationMapper;
|
|
/**
|
* 查询航线(kmz)
|
*
|
* @param id 航线(kmz)主键
|
* @return 航线(kmz)
|
*/
|
@Override
|
public ArdRouteInformation selectArdRouteInformationById(String id) {
|
return ardRouteInformationMapper.selectArdRouteInformationById(id);
|
}
|
|
/**
|
* 查询航线(kmz)列表
|
*
|
* @param ardRouteInformation 航线(kmz)
|
* @return 航线(kmz)
|
*/
|
@Override
|
public List<ArdRouteInformation> selectArdRouteInformationList(ArdRouteInformation ardRouteInformation) {
|
return ardRouteInformationMapper.selectArdRouteInformationList(ardRouteInformation);
|
}
|
|
/**
|
* 新增航线(kmz)
|
*
|
* @param ardRouteInformation 航线(kmz)
|
* @return 结果
|
*/
|
@Override
|
public int insertArdRouteInformation(ArdRouteInformation ardRouteInformation) {
|
ardRouteInformation.setId(IdUtils.simpleUUID());
|
ardRouteInformation.setCreateTime(DateUtils.getNowDate());
|
return ardRouteInformationMapper.insertArdRouteInformation(ardRouteInformation);
|
}
|
|
/**
|
* 修改航线(kmz)
|
*
|
* @param ardRouteInformation 航线(kmz)
|
* @return 结果
|
*/
|
@Override
|
public int updateArdRouteInformation(ArdRouteInformation ardRouteInformation) {
|
ardRouteInformation.setUpdateTime(DateUtils.getNowDate());
|
return ardRouteInformationMapper.updateArdRouteInformation(ardRouteInformation);
|
}
|
|
/**
|
* 批量删除航线(kmz)
|
*
|
* @param ids 需要删除的航线(kmz)主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteArdRouteInformationByIds(String[] ids) {
|
return ardRouteInformationMapper.deleteArdRouteInformationByIds(ids);
|
}
|
|
/**
|
* 删除航线(kmz)信息
|
*
|
* @param id 航线(kmz)主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteArdRouteInformationById(String id) {
|
return ardRouteInformationMapper.deleteArdRouteInformationById(id);
|
}
|
|
}
|