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 implements ITmsToolInboundDetailService { @Autowired private TmsToolInboundDetailMapper tmsToolInboundDetailMapper; @Override public List selectByMainId(String mainId) { return tmsToolInboundDetailMapper.selectByMainId(mainId); } @Override public IPage queryPageList(Page page, Map parameterMap) { QueryWrapper 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); } }