package com.ltkj.mall.service.impl;
|
|
import java.util.List;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.ltkj.common.utils.DateUtils;
|
import com.ltkj.mall.domain.MallFootprint;
|
import com.ltkj.mall.mapper.MallFootprintMapper;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.ltkj.mall.mapper.MallCheckLogMapper;
|
import com.ltkj.mall.domain.MallCheckLog;
|
import com.ltkj.mall.service.IMallCheckLogService;
|
|
/**
|
* 核销记录Service业务层处理
|
*
|
* @author ltkj_赵佳豪&李格
|
* @date 2023-07-14
|
*/
|
@Service
|
public class MallCheckLogServiceImpl extends ServiceImpl<MallCheckLogMapper, MallCheckLog> implements IMallCheckLogService {
|
@Autowired
|
private MallCheckLogMapper mallCheckLogMapper;
|
|
/**
|
* 查询核销记录
|
*
|
* @param id 核销记录主键
|
* @return 核销记录
|
*/
|
@Override
|
public MallCheckLog selectMallCheckLogById(Long id) {
|
return mallCheckLogMapper.selectMallCheckLogById(id);
|
}
|
|
/**
|
* 查询核销记录列表
|
*
|
* @param mallCheckLog 核销记录
|
* @return 核销记录
|
*/
|
@Override
|
public List<MallCheckLog> selectMallCheckLogList(MallCheckLog mallCheckLog) {
|
return mallCheckLogMapper.selectMallCheckLogList(mallCheckLog);
|
}
|
|
/**
|
* 新增核销记录
|
*
|
* @param mallCheckLog 核销记录
|
* @return 结果
|
*/
|
@Override
|
public int insertMallCheckLog(MallCheckLog mallCheckLog) {
|
mallCheckLog.setCreateTime(DateUtils.getNowDate());
|
return mallCheckLogMapper.insertMallCheckLog(mallCheckLog);
|
}
|
|
/**
|
* 修改核销记录
|
*
|
* @param mallCheckLog 核销记录
|
* @return 结果
|
*/
|
@Override
|
public int updateMallCheckLog(MallCheckLog mallCheckLog) {
|
mallCheckLog.setUpdateTime(DateUtils.getNowDate());
|
return mallCheckLogMapper.updateMallCheckLog(mallCheckLog);
|
}
|
|
/**
|
* 批量删除核销记录
|
*
|
* @param ids 需要删除的核销记录主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteMallCheckLogByIds(Long[] ids) {
|
return mallCheckLogMapper.deleteMallCheckLogByIds(ids);
|
}
|
|
/**
|
* 删除核销记录信息
|
*
|
* @param id 核销记录主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteMallCheckLogById(Long id) {
|
return mallCheckLogMapper.deleteMallCheckLogById(id);
|
}
|
}
|