AdaKing88
2023-08-23 ae35159387a55199e8ab150ebb97d89d68a235bd
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
43
44
package org.jeecg.modules.arj.service.impl;
 
import org.jeecg.modules.arj.entity.FeipinYintie;
import org.jeecg.modules.arj.service.FeipinYintieService;
import org.jeecg.modules.arj.mapper.FeipinYintieMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 
import java.util.List;
 
 
/**
 * <p>
 * 印铁废品 前端控制器
 * </p>
 *
 * @author hyy
 * @since 2022-11-24
 */
@Service
public class FeipinYintieServiceImpl extends ServiceImpl<FeipinYintieMapper, FeipinYintie> implements FeipinYintieService {
 
    @Autowired
    private FeipinYintieMapper feipinYintieMapper;
 
    @Override
    public FeipinYintie queryByHeadId(String headId) {
        QueryWrapper<FeipinYintie> q = new QueryWrapper<>();
        q.eq("head_id",headId);
        q.orderByDesc("create_date");
        return feipinYintieMapper.selectOne(q);
 
    }
 
    @Override
    public List<FeipinYintie> queryByHeadList(String headId) {
        QueryWrapper<FeipinYintie> q = new QueryWrapper<>();
        q.eq("head_id",headId);
        q.orderByDesc("create_date");
        return feipinYintieMapper.selectList(q);
    }
}