InvestigateServiceImpl.java
965 Bytes
package com.project.demo.service.Impl;
import com.project.demo.domain.Investigate;
import com.project.demo.mapper.InvestigateMapper;
import com.project.demo.service.InvestigateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Created by bert on 2018/7/5.
*/
@Service
public class InvestigateServiceImpl implements InvestigateService {
@Autowired
private InvestigateMapper investigateMapper;
@Override
public List<Investigate> search (){
List<Investigate> investigates = investigateMapper.search();
return investigates;
}
@Override
public void save (Investigate investigate){
investigateMapper.insert(investigate);
}
@Override
public Investigate searchDetails(Integer companyId){
Investigate investigate=investigateMapper.searchDetails(companyId);
return investigate;
}
}