package com.ltkj.hosp.service.impl;
|
|
import java.util.List;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.ltkj.common.utils.DateUtils;
|
import com.ltkj.hosp.domain.TjTeamAppLog;
|
import com.ltkj.hosp.mapper.TjTeamAppLogMapper;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.ltkj.hosp.mapper.TjTeamContactLogMapper;
|
import com.ltkj.hosp.domain.TjTeamContactLog;
|
import com.ltkj.hosp.service.ITjTeamContactLogService;
|
|
/**
|
* 团队预约沟通记录Service业务层处理
|
*
|
* @author ltkj_赵佳豪&李格
|
* @date 2023-12-01
|
*/
|
@Service
|
public class TjTeamContactLogServiceImpl extends ServiceImpl<TjTeamContactLogMapper, TjTeamContactLog> implements ITjTeamContactLogService {
|
@Autowired
|
private TjTeamContactLogMapper tjTeamContactLogMapper;
|
|
/**
|
* 查询团队预约沟通记录
|
*
|
* @param id 团队预约沟通记录主键
|
* @return 团队预约沟通记录
|
*/
|
@Override
|
public TjTeamContactLog selectTjTeamContactLogById(Long id) {
|
return tjTeamContactLogMapper.selectTjTeamContactLogById(id);
|
}
|
|
/**
|
* 查询团队预约沟通记录列表
|
*
|
* @param tjTeamContactLog 团队预约沟通记录
|
* @return 团队预约沟通记录
|
*/
|
@Override
|
public List<TjTeamContactLog> selectTjTeamContactLogList(TjTeamContactLog tjTeamContactLog) {
|
return tjTeamContactLogMapper.selectTjTeamContactLogList(tjTeamContactLog);
|
}
|
|
/**
|
* 新增团队预约沟通记录
|
*
|
* @param tjTeamContactLog 团队预约沟通记录
|
* @return 结果
|
*/
|
@Override
|
public int insertTjTeamContactLog(TjTeamContactLog tjTeamContactLog) {
|
tjTeamContactLog.setCreateTime(DateUtils.getNowDate());
|
return tjTeamContactLogMapper.insertTjTeamContactLog(tjTeamContactLog);
|
}
|
|
/**
|
* 修改团队预约沟通记录
|
*
|
* @param tjTeamContactLog 团队预约沟通记录
|
* @return 结果
|
*/
|
@Override
|
public int updateTjTeamContactLog(TjTeamContactLog tjTeamContactLog) {
|
tjTeamContactLog.setUpdateTime(DateUtils.getNowDate());
|
return tjTeamContactLogMapper.updateTjTeamContactLog(tjTeamContactLog);
|
}
|
|
/**
|
* 批量删除团队预约沟通记录
|
*
|
* @param ids 需要删除的团队预约沟通记录主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteTjTeamContactLogByIds(Long[] ids) {
|
return tjTeamContactLogMapper.deleteTjTeamContactLogByIds(ids);
|
}
|
|
/**
|
* 删除团队预约沟通记录信息
|
*
|
* @param id 团队预约沟通记录主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteTjTeamContactLogById(Long id) {
|
return tjTeamContactLogMapper.deleteTjTeamContactLogById(id);
|
}
|
}
|