110 lines
2.9 KiB
Plaintext
110 lines
2.9 KiB
Plaintext
package com.sercurityControl.decision.service.impl;
|
|
|
|
import com.sercurityControl.decision.domain.JjPerson;
|
|
import com.sercurityControl.decision.domain.qo.TeamAccessListQo;
|
|
import com.sercurityControl.decision.domain.qo.TeamEvaluateListQo;
|
|
import com.sercurityControl.decision.domain.qo.TeamEvaluateQo;
|
|
import com.sercurityControl.decision.domain.vo.TeamAccessChangeVo;
|
|
import com.sercurityControl.decision.domain.vo.TeamAccessListVo;
|
|
import com.sercurityControl.decision.domain.vo.TeamEvaluateListVo;
|
|
import com.sercurityControl.decision.domain.vo.TeamEvaluateVo;
|
|
import com.sercurityControl.decision.mapper.JjPersonMapper;
|
|
import com.sercurityControl.decision.service.JjPersonService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
import java.util.Objects;
|
|
|
|
/**
|
|
* 人员信息履历表(JjPerson)表服务实现类
|
|
*
|
|
* @author makejava
|
|
* @since 2022-12-06 14:31:53
|
|
*/
|
|
@Service
|
|
public class JjPersonServiceImpl implements JjPersonService {
|
|
|
|
@Autowired
|
|
private JjPersonMapper jjPersonMapper;
|
|
|
|
/**
|
|
* 通过ID查询单条数据
|
|
*
|
|
* @param id 主键
|
|
* @return 实例对象
|
|
*/
|
|
@Override
|
|
public JjPerson queryById(String id) {
|
|
return jjPersonMapper.queryById(id);
|
|
}
|
|
|
|
/**
|
|
* 分页查询
|
|
*
|
|
* @param jjPerson 筛选条件
|
|
* @return 查询结果
|
|
*/
|
|
@Override
|
|
public List<JjPerson> queryByPage(JjPerson jjPerson) {
|
|
return jjPersonMapper.queryByPage(jjPerson);
|
|
}
|
|
|
|
/**
|
|
* 新增数据
|
|
*
|
|
* @param jjPerson 实例对象
|
|
*/
|
|
@Override
|
|
public void insert(JjPerson jjPerson) {
|
|
jjPersonMapper.insert(jjPerson);
|
|
}
|
|
|
|
/**
|
|
* 修改数据
|
|
*
|
|
* @param jjPerson 实例对象
|
|
*/
|
|
@Override
|
|
public void update(JjPerson jjPerson) {
|
|
jjPersonMapper.update(jjPerson);
|
|
}
|
|
|
|
/**
|
|
* 通过主键删除数据
|
|
*
|
|
* @param id 主键
|
|
*/
|
|
@Override
|
|
public void deleteById(String id) {
|
|
jjPersonMapper.deleteById(id);
|
|
}
|
|
|
|
@Override
|
|
public TeamAccessChangeVo newTeamNotice() {
|
|
return jjPersonMapper.newTeamNotice();
|
|
}
|
|
|
|
@Override
|
|
public List<TeamAccessListVo> teamList(TeamAccessListQo teamAccessListQo) {
|
|
return jjPersonMapper.teamList(teamAccessListQo);
|
|
}
|
|
|
|
@Override
|
|
public List<TeamEvaluateVo> teamEvaluate(TeamEvaluateQo teamEvaluateQo) {
|
|
if (Objects.equals(teamEvaluateQo.getEvaluateType(), 1)) {
|
|
return jjPersonMapper.teamEvaluateByTime(teamEvaluateQo);
|
|
}
|
|
if (Objects.equals(teamEvaluateQo.getEvaluateType(), 2)) {
|
|
return jjPersonMapper.teamEvaluateByMultiple(teamEvaluateQo);
|
|
}
|
|
return Collections.emptyList();
|
|
}
|
|
|
|
@Override
|
|
public List<TeamEvaluateListVo> teamEvaluateList(TeamEvaluateListQo teamEvaluateQo) {
|
|
return jjPersonMapper.teamEvaluateList(teamEvaluateQo);
|
|
}
|
|
}
|