|
|
@ -38,6 +38,7 @@ import com.logpm.basicdata.mapper.BasicdataGoodsShelfMapper; |
|
|
|
import com.logpm.basicdata.service.IBasicdataGoodsAllocationService; |
|
|
|
import com.logpm.basicdata.service.IBasicdataGoodsAllocationService; |
|
|
|
import com.logpm.basicdata.service.IBasicdataGoodsShelfService; |
|
|
|
import com.logpm.basicdata.service.IBasicdataGoodsShelfService; |
|
|
|
import com.logpm.basicdata.vo.BasicdataGoodsShelfVO; |
|
|
|
import com.logpm.basicdata.vo.BasicdataGoodsShelfVO; |
|
|
|
|
|
|
|
import com.logpm.basicdata.vo.BasicdataWarehouseVO; |
|
|
|
import com.logpm.warehouse.feign.IWarehouseTrayGoodsClient; |
|
|
|
import com.logpm.warehouse.feign.IWarehouseTrayGoodsClient; |
|
|
|
import com.logpm.warehouse.feign.IWarehouseUpdownGoodsClient; |
|
|
|
import com.logpm.warehouse.feign.IWarehouseUpdownGoodsClient; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
@ -132,8 +133,8 @@ public class BasicdataGoodsShelfServiceImpl extends BaseServiceImpl<BasicdataGoo |
|
|
|
log.error("仓库货区信息不合法"); |
|
|
|
log.error("仓库货区信息不合法"); |
|
|
|
throw new RuntimeException("请完善货区信息!!!"); |
|
|
|
throw new RuntimeException("请完善货区信息!!!"); |
|
|
|
} |
|
|
|
} |
|
|
|
BasicdataWarehouseEntity basicdataWarehouseEntity = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
BasicdataWarehouseEntity basicdataWarehouseVO = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
if (Objects.isNull(basicdataWarehouseEntity)){ |
|
|
|
if (Objects.isNull(basicdataWarehouseVO)){ |
|
|
|
throw new RuntimeException("当前登录人没有选择仓库!!!"); |
|
|
|
throw new RuntimeException("当前登录人没有选择仓库!!!"); |
|
|
|
} |
|
|
|
} |
|
|
|
BasicdataGoodsShelfEntity basicdataGoodsShelfEntity = new BasicdataGoodsShelfEntity(); |
|
|
|
BasicdataGoodsShelfEntity basicdataGoodsShelfEntity = new BasicdataGoodsShelfEntity(); |
|
|
@ -161,7 +162,7 @@ public class BasicdataGoodsShelfServiceImpl extends BaseServiceImpl<BasicdataGoo |
|
|
|
String shelfCode =basicdataGoodsShelfDTO.getGoodsAreaName(); |
|
|
|
String shelfCode =basicdataGoodsShelfDTO.getGoodsAreaName(); |
|
|
|
basicdataGoodsShelfEntity.setQrCode(shelfCode); |
|
|
|
basicdataGoodsShelfEntity.setQrCode(shelfCode); |
|
|
|
// basicdataGoodsShelfEntity.setWarehouseId(1687637854291722242L);
|
|
|
|
// basicdataGoodsShelfEntity.setWarehouseId(1687637854291722242L);
|
|
|
|
basicdataGoodsShelfEntity.setWarehouseId(basicdataWarehouseEntity.getId()); |
|
|
|
basicdataGoodsShelfEntity.setWarehouseId(basicdataWarehouseVO.getId()); |
|
|
|
result = this.save(basicdataGoodsShelfEntity); |
|
|
|
result = this.save(basicdataGoodsShelfEntity); |
|
|
|
//这里需要根据货架的列数和层数进行货位信息的生成
|
|
|
|
//这里需要根据货架的列数和层数进行货位信息的生成
|
|
|
|
// Integer rowNum = basicdataGoodsShelfEntity.getRowNum();
|
|
|
|
// Integer rowNum = basicdataGoodsShelfEntity.getRowNum();
|
|
|
|