zss
2024-12-27 ebede85283906f52dd45d0755d22140538038ac3
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
34
35
36
37
38
39
40
41
42
package com.yuanchu.mom.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanchu.mom.common.PrintChina;
import com.yuanchu.mom.mapper.SealMapper;
import com.yuanchu.mom.pojo.Laboratory;
import com.yuanchu.mom.pojo.Seal;
import com.yuanchu.mom.service.SealService;
import com.yuanchu.mom.utils.QueryWrappers;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
 
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
@Service
@AllArgsConstructor
public class SealServiceImpl  extends ServiceImpl<SealMapper, Seal> implements SealService {
    private SealMapper sealMapper;
 
 
    @Override
    public int addSeal(Seal seal) {
        return sealMapper.insert(seal);
    }
 
 
 
 
    @Override
    public Map<String, Object> selectSeal(Page page, Seal seal) {
        Map<String, Object> map = new HashMap<>();
        map.put("head", PrintChina.printChina(Seal.class));
        map.put("body", sealMapper.selectSeal(page, QueryWrappers.queryWrappers(seal)));
        return map;
    }
    @Override
    public List<Laboratory> Laboratory(Integer labId) {
        return sealMapper.selectLaboratory(labId);
    }
}