¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.common.util.oConvertUtils; |
| | | import org.jeecg.modules.tms.entity.OutboundDetail; |
| | | import org.jeecg.modules.tms.entity.vo.OutboundDetailVo; |
| | | import org.jeecg.modules.tms.mapper.OutboundDetailMapper; |
| | | import org.jeecg.modules.tms.service.IOutboundDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Arrays; |
| | | 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-05-16 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class OutboundDetailServiceImpl extends ServiceImpl<OutboundDetailMapper, OutboundDetail> implements IOutboundDetailService { |
| | | |
| | | @Autowired |
| | | private OutboundDetailMapper outboundDetailMapper; |
| | | |
| | | @Override |
| | | public List<OutboundDetail> selectByMainId(String mainId) { |
| | | return outboundDetailMapper.selectByMainId(mainId); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<OutboundDetailVo> queryPageList(Page<OutboundDetail> page, Map<String, String[]> parameterMap) { |
| | | QueryWrapper<OutboundDetail> queryWrapper = Wrappers.query(); |
| | | String[] outStorehouseIds = parameterMap.get("outStorehouseId"); |
| | | if (outStorehouseIds != null && outStorehouseIds.length > 0) { |
| | | queryWrapper.eq("t1.out_storehouse_id", outStorehouseIds[0]); |
| | | } |
| | | String[] statuses = parameterMap.get("status"); |
| | | if (statuses != null && statuses.length > 0) { |
| | | String[] statusArr = statuses[0].split(","); |
| | | queryWrapper.in("t1.status", statusArr); |
| | | } |
| | | return this.baseMapper.queryPageList(page, queryWrapper); |
| | | } |
| | | } |