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
package org.jeecg.modules.arj.service.impl;
 
import org.jeecg.modules.arj.entity.JiguanRd;
import org.jeecg.modules.arj.service.JiguanRdService;
import org.jeecg.modules.arj.mapper.JiguanRdMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
 
/**
 * <p>
 * 集罐机生产记录 前端控制器
 * </p>
 *
 * @author hyy
 * @since 2022-11-28
 */
@Service
public class JiguanRdServiceImpl extends ServiceImpl<JiguanRdMapper, JiguanRd> implements JiguanRdService {
 
@Autowired
private JiguanRdMapper  jiguanRdMapper;
 
@Override
public JiguanRd queryByHeadId(String headId) {
        QueryWrapper<JiguanRd> q = new QueryWrapper<>();
        q.eq("head_id",headId);
        q.orderByDesc("created_time");
        return  jiguanRdMapper.selectOne(q);
 
        }
}