Merge remote-tracking branch 'origin/master'

master
夜笙歌 7 months ago
commit f5c68b2c5d

@ -0,0 +1,100 @@
package com.hw.dms.service.impl;
import java.util.List;
import com.hw.common.core.utils.DateUtils;
import com.hw.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hw.dms.mapper.DmsPlanLubeDetailMapper;
import com.hw.dms.domain.DmsPlanLubeDetail;
import com.hw.dms.service.IDmsPlanLubeDetailService;
/**
* Service
*
* @author xins
* @date 2024-03-21
*/
@Service
public class DmsPlanLubeDetailServiceImpl implements IDmsPlanLubeDetailService
{
@Autowired
private DmsPlanLubeDetailMapper dmsPlanLubeDetailMapper;
/**
*
*
* @param planLubeDetailId
* @return
*/
@Override
public DmsPlanLubeDetail selectDmsPlanLubeDetailByPlanLubeDetailId(Long planLubeDetailId)
{
return dmsPlanLubeDetailMapper.selectDmsPlanLubeDetailByPlanLubeDetailId(planLubeDetailId);
}
/**
*
*
* @param dmsPlanLubeDetail
* @return
*/
@Override
public List<DmsPlanLubeDetail> selectDmsPlanLubeDetailList(DmsPlanLubeDetail dmsPlanLubeDetail)
{
return dmsPlanLubeDetailMapper.selectDmsPlanLubeDetailList(dmsPlanLubeDetail);
}
/**
*
*
* @param dmsPlanLubeDetail
* @return
*/
@Override
public int insertDmsPlanLubeDetail(DmsPlanLubeDetail dmsPlanLubeDetail)
{
dmsPlanLubeDetail.setCreateBy(SecurityUtils.getUsername());
dmsPlanLubeDetail.setCreateTime(DateUtils.getNowDate());
dmsPlanLubeDetail.setIsFlag(1l);
return dmsPlanLubeDetailMapper.insertDmsPlanLubeDetail(dmsPlanLubeDetail);
}
/**
*
*
* @param dmsPlanLubeDetail
* @return
*/
@Override
public int updateDmsPlanLubeDetail(DmsPlanLubeDetail dmsPlanLubeDetail)
{
dmsPlanLubeDetail.setUpdateBy(SecurityUtils.getUsername());
dmsPlanLubeDetail.setUpdateTime(DateUtils.getNowDate());
return dmsPlanLubeDetailMapper.updateDmsPlanLubeDetail(dmsPlanLubeDetail);
}
/**
*
*
* @param planLubeDetailIds
* @return
*/
@Override
public int deleteDmsPlanLubeDetailByPlanLubeDetailIds(Long[] planLubeDetailIds)
{
return dmsPlanLubeDetailMapper.deleteDmsPlanLubeDetailByPlanLubeDetailIds(planLubeDetailIds);
}
/**
*
*
* @param planLubeDetailId
* @return
*/
@Override
public int deleteDmsPlanLubeDetailByPlanLubeDetailId(Long planLubeDetailId)
{
return dmsPlanLubeDetailMapper.deleteDmsPlanLubeDetailByPlanLubeDetailId(planLubeDetailId);
}
}
Loading…
Cancel
Save