| | |
| | | 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.PreparationOrderDetail; |
| | | import org.jeecg.modules.tms.mapper.PreparationOrderDetailMapper; |
| | | import org.jeecg.modules.tms.service.IPreparationOrderDetailService; |
| | | 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; |
| | | |
| | |
| | | public List<PreparationOrderDetail> selectByMainId(String mainId) { |
| | | return preparationOrderDetailMapper.selectByMainId(mainId); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<PreparationOrderDetail> queryPageList(Page<PreparationOrderDetail> page, Map<String, String[]> parameterMap) { |
| | | QueryWrapper<PreparationOrderDetail> queryWrapper = Wrappers.query(); |
| | | String[] preparationOrderIds = parameterMap.get("preparationOrderId"); |
| | | if (preparationOrderIds != null && preparationOrderIds.length > 0) { |
| | | queryWrapper.eq("t1.preparation_order_id", preparationOrderIds[0]); |
| | | } |
| | | return this.baseMapper.queryPageList(page, queryWrapper); |
| | | } |
| | | } |