| | |
| | | import com.zy.asrs.wms.asrs.service.LocService;
|
| | | import com.zy.asrs.wms.common.domain.BaseParam;
|
| | | import com.zy.asrs.wms.common.domain.PageParam;
|
| | | import org.springframework.beans.BeanUtils;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Service;
|
| | | import org.springframework.transaction.annotation.Transactional;
|
| | |
| | | LocDetl locDetl = JSON.parseObject(JSON.toJSONString(map), LocDetl.class);
|
| | | locDetls.add(locDetl);
|
| | | }
|
| | |
|
| | | locDetls = parseLocDetl(locDetls);
|
| | |
|
| | | List<Long> sortDirctLoc = new ArrayList<>();
|
| | |
| | | if (loc == null) {
|
| | | continue;
|
| | | }
|
| | |
|
| | | //当前库位状态是否在库
|
| | | if(!loc.getLocStsId().equals(LocStsType.F.val())){
|
| | | continue;
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<LocDetl> queryFlatStock(String matnr, String batch, List<FieldParam> params) {
|
| | | //获取平库中符合条件的库位
|
| | | List<Map<String, Object>> list = viewLocDetlMapper.queryFlatStock(matnr, batch, params);
|
| | | List<LocDetl> detls = new ArrayList<>();
|
| | | list.forEach(action -> {
|
| | | LocDetl parseObject = JSONObject.parseObject(JSON.toJSONString(action), LocDetl.class);
|
| | | detls.add(parseObject);
|
| | | });
|
| | | return detls;
|
| | | }
|
| | | }
|