package com.gkhy.labRiskManage.domain.riskReport.service.impl;
|
|
import com.gkhy.labRiskManage.domain.riskReport.entity.RiskAssessPlanIdentificationUser;
|
import com.gkhy.labRiskManage.domain.riskReport.repository.jpa.RiskAssessPlanIdentificationUserRepository;
|
import com.gkhy.labRiskManage.domain.riskReport.service.RiskAssessPlanIdentificationUserService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.time.LocalDateTime;
|
import java.util.Collections;
|
import java.util.List;
|
|
@Service
|
public class RiskAssessPlanIdentificationUserServiceImpl implements RiskAssessPlanIdentificationUserService {
|
@Autowired
|
private RiskAssessPlanIdentificationUserRepository planIdentificationUserRepository;
|
@Override
|
public int InsertData(List<RiskAssessPlanIdentificationUser> saveList) {
|
planIdentificationUserRepository.saveAll(saveList);
|
return 0;
|
}
|
|
@Override
|
public int deleteByPlanId(Long id, LocalDateTime date) {
|
planIdentificationUserRepository.deletePlanId(id, date);
|
return 1;
|
}
|
|
@Override
|
public List<RiskAssessPlanIdentificationUser> getAssessPlanIdentificationUserPlanId(Long planId, Long userId) {
|
return planIdentificationUserRepository.getAssessPlanIdentificationUserPlanId(planId, userId);
|
}
|
}
|