新火炬后端单体项目初始化代码
cuilei
8 天以前 f135716c0df75eeb080eb4c3a606987176da5e92
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.tms.service.impl;
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.tms.entity.TmsToolInboundDetail;
import org.jeecg.modules.tms.mapper.TmsToolInboundDetailMapper;
import org.jeecg.modules.tms.service.ITmsToolInboundDetailService;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
 
/**
 * @Description: 工装入库明细
 * @Author: jeecg-boot
 * @Date:   2025-07-28
 * @Version: V1.0
 */
@Service
public class TmsToolInboundDetailServiceImpl extends ServiceImpl<TmsToolInboundDetailMapper, TmsToolInboundDetail> implements ITmsToolInboundDetailService {
    
    @Autowired
    private TmsToolInboundDetailMapper tmsToolInboundDetailMapper;
    
    @Override
    public List<TmsToolInboundDetail> selectByMainId(String mainId) {
        return tmsToolInboundDetailMapper.selectByMainId(mainId);
    }
 
    @Override
    public IPage<TmsToolInboundDetail> queryPageList(Page<TmsToolInboundDetail> page, Map<String, String[]> parameterMap) {
        QueryWrapper<TmsToolInboundDetail> queryWrapper = Wrappers.query();
        String[] orderIds = parameterMap.get("orderId");
        if (orderIds != null && orderIds.length > 0) {
            queryWrapper.eq("t1.order_id", orderIds[0]);
        }
        return tmsToolInboundDetailMapper.queryPageList(page, queryWrapper);
    }
 
}