heheng
2025-03-10 c0ae989839d8323974048b71f7dadc29a20a4b15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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);
    }
}