@ -5,9 +5,7 @@ import com.logpm.basicdata.entity.BasicdataWarehouseEntity;
import com.logpm.basicdata.feign.IBasicdataWarehouseClient ;
import com.logpm.warehouse.dto.* ;
import com.logpm.warehouse.service.IWarehouseUpdownTypeService ;
import com.logpm.warehouse.vo.MovePackInfoVO ;
import com.logpm.warehouse.vo.UpShelfAllocationVO ;
import com.logpm.warehouse.vo.UpShelfDataVO ;
import com.logpm.warehouse.vo.* ;
import io.swagger.annotations.Api ;
import io.swagger.annotations.ApiOperation ;
import lombok.AllArgsConstructor ;
@ -104,33 +102,33 @@ public class WarehouseUpdownTypeApiController {
}
}
// @ResponseBody
// @PostMapping("/orderUpshelfDetail")
// @ApiOperationSupport(order = 1)
// @ApiOperation(value = "已上架订单详情", notes = "传入trayTypeDTO")
// public R upShelfScanAllocation(@RequestBody UpdownTypeDTO updownTypeDTO ) {
// String method = "###########orderUpshelfDetail: ";
// log.info(method + "已上架订单详情 updownTypeDTO={}", updownTypeDTO);
// String orderCode = updownTypeDTO.getOrderCode();
// try{
//
// if(StringUtil.isBlank(orderCode)){
// log.warn(method+"订单编码不能为空 orderCode={}",orderCode);
// return R.fail(403,"订单编码不能为空");
// }
//
// //查询该库位的货物信息
// PositionVO upShelfAllocationVO = warehouseUpdownTypeService.upShelfScanAllocation(allocationId,myCurrentWarehouse.getId());
// return R.data(upShelfAllocationVO);
// }catch (CustomerException e){
// log.warn(e.message);
// return R.fail(e.code,e.message);
// }catch (Exception e){
// log.error(method+"系统异常,联系管理员",e);
// return R.fail(500,"系统异常,联系管理员");
// }
//
// }
@ResponseBody
@PostMapping ( "/orderUpshelfDetail" )
@ApiOperationSupport ( order = 1 )
@ApiOperation ( value = "已上架订单详情" , notes = "传入trayTypeDTO" )
public R orderUpshelfDetail ( @RequestBody UpdownTypeDTO updownTypeDTO ) {
String method = "###########orderUpshelfDetail: " ;
log . info ( method + "已上架订单详情 updownTypeDTO={}" , updownTypeDTO ) ;
String orderCode = updownTypeDTO . getOrderCode ( ) ;
try {
if ( StringUtil . isBlank ( orderCode ) ) {
log . warn ( method + "订单编码不能为空 orderCode={}" , orderCode ) ;
return R . fail ( 403 , "订单编码不能为空" ) ;
}
//查询该库位的货物信息
OrderUpshelfDetailVO orderUpshelfDetailVO = warehouseUpdownTypeService . orderUpshelfDetail ( orderCode ) ;
return R . data ( orderUpshelfDetailVO ) ;
} catch ( CustomerException e ) {
log . warn ( e . message ) ;
return R . fail ( e . code , e . message ) ;
} catch ( Exception e ) {
log . error ( method + "系统异常,联系管理员" , e ) ;
return R . fail ( 500 , "系统异常,联系管理员" ) ;
}
}
@ResponseBody