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);
|
}
|
|
}
|