package com.javaweb.geo.service.impl;
|
|
import java.util.List;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.javaweb.geo.mapper.LaborUnitMapper;
|
import com.javaweb.geo.domain.LaborUnit;
|
import com.javaweb.geo.service.ILaborUnitService;
|
import com.javaweb.common.core.text.Convert;
|
|
/**
|
* 劳务单位Service业务层处理
|
*
|
* @author zmk
|
* @date 2022-10-20
|
*/
|
@Service
|
public class LaborUnitServiceImpl implements ILaborUnitService
|
{
|
@Autowired
|
private LaborUnitMapper laborUnitMapper;
|
|
/**
|
* 查询劳务单位
|
*
|
* @param ids 劳务单位ID
|
* @return 劳务单位
|
*/
|
@Override
|
public LaborUnit selectLaborUnitById(String ids)
|
{
|
return laborUnitMapper.selectLaborUnitById(ids);
|
}
|
|
/**
|
* 查询劳务单位列表
|
*
|
* @param laborUnit 劳务单位
|
* @return 劳务单位
|
*/
|
@Override
|
public List<LaborUnit> selectLaborUnitList(LaborUnit laborUnit)
|
{
|
return laborUnitMapper.selectLaborUnitList(laborUnit);
|
}
|
|
/**
|
* 新增劳务单位
|
*
|
* @param laborUnit 劳务单位
|
* @return 结果
|
*/
|
@Override
|
public int insertLaborUnit(LaborUnit laborUnit)
|
{
|
return laborUnitMapper.insertLaborUnit(laborUnit);
|
}
|
|
/**
|
* 修改劳务单位
|
*
|
* @param laborUnit 劳务单位
|
* @return 结果
|
*/
|
@Override
|
public int updateLaborUnit(LaborUnit laborUnit)
|
{
|
return laborUnitMapper.updateLaborUnit(laborUnit);
|
}
|
|
/**
|
* 删除劳务单位对象
|
*
|
* @param ids 需要删除的数据ID
|
* @return 结果
|
*/
|
@Override
|
public int deleteLaborUnitByIds(String ids)
|
{
|
return laborUnitMapper.deleteLaborUnitByIds(Convert.toStrArray(ids));
|
}
|
|
/**
|
* 删除劳务单位信息
|
*
|
* @param ids 劳务单位ID
|
* @return 结果
|
*/
|
@Override
|
public int deleteLaborUnitById(String ids)
|
{
|
return laborUnitMapper.deleteLaborUnitById(ids);
|
}
|
}
|