双重预防项目-国泰新华二开定制版
16639036659
2022-09-06 d7cc4c8b4aacd3a0a78f6be4870af571f4f89199
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
package com.ruoyi.doublePrevention.service.baseService.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.doublePrevention.entity.PreventRiskUnitUuid;
import com.ruoyi.doublePrevention.repository.PreventRiskUnitUuidRepository;
import com.ruoyi.doublePrevention.service.baseService.PreventRiskUnitUuidService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
@Service("PreventRiskUnitUuidService")
public class PreventRiskUnitUuidServiceImpl implements PreventRiskUnitUuidService {
 
    @Autowired
    private PreventRiskUnitUuidRepository preventRiskUnitUuidRepository;
    /**
     * 为设施设备清单附属表添加uuid
     * */
    @Override
    public int insertRiskUnitUuid(PreventRiskUnitUuid riskUnitUuid) {
        return preventRiskUnitUuidRepository.insertUuid(riskUnitUuid);
    }
    /**
     * 通过id获取uuid
     * */
    @Override
    public PreventRiskUnitUuid getRiskUnitUuidById(Long id) {
        return preventRiskUnitUuidRepository.getRiskUnitUuidById(id);
    }
}