移除没用到的代码
This commit is contained in:
parent
ed5bdba839
commit
756b0aba0b
@ -1,12 +1,14 @@
|
||||
package com.foreverwin.mom.wms.controller;
|
||||
|
||||
import com.alibaba.excel.EasyExcel;
|
||||
import com.foreverwin.iep.common.base.FrontPage;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.data.tenant.TenantContextHolder;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import com.foreverwin.mom.common.security.util.SecurityUtils;
|
||||
import com.foreverwin.mom.wms.dto.*;
|
||||
import com.foreverwin.mom.wms.dto.DocumentDetailedDto;
|
||||
import com.foreverwin.mom.wms.dto.PickingSuggestDTO;
|
||||
import com.foreverwin.mom.wms.dto.ReprintDto;
|
||||
import com.foreverwin.mom.wms.dto.SaleOutRequestDTO;
|
||||
import com.foreverwin.mom.wms.entity.DocumentDetailed;
|
||||
import com.foreverwin.mom.wms.entity.Picking;
|
||||
import com.foreverwin.mom.wms.service.PickingService;
|
||||
@ -37,294 +39,157 @@ import java.util.List;
|
||||
@Api(value = "picking", tags = "拣货明细表管理")
|
||||
public class PickingController {
|
||||
|
||||
private final PickingService pickingService;
|
||||
private final PickingService pickingService;
|
||||
|
||||
/**
|
||||
* 通过行项目获取已拣货数据
|
||||
*
|
||||
* @param documentDetailed
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过行项目获取已拣货数据", notes = "通过行项目获取已拣货数据")
|
||||
@GetMapping("/getPickInventory")
|
||||
public R getPickInventory(DocumentDetailed documentDetailed) {
|
||||
return R.ok(pickingService.getPickInventory(documentDetailed));
|
||||
}
|
||||
/**
|
||||
* 通过行项目获取已拣货数据
|
||||
*
|
||||
* @param documentDetailed
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过行项目获取已拣货数据", notes = "通过行项目获取已拣货数据")
|
||||
@GetMapping("/getPickInventory")
|
||||
public R getPickInventory(DocumentDetailed documentDetailed) {
|
||||
return R.ok(pickingService.getPickInventory(documentDetailed));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过库存或载具查询数量
|
||||
*
|
||||
* @param documentDetailed inventoryId
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过库存查询", notes = "通过库存查询")
|
||||
@GetMapping("/getInventoryQty")
|
||||
public R getInventoryQty(DocumentDetailedDto documentDetailed) {
|
||||
String site = TenantContextHolder.getTenantId();
|
||||
String item = documentDetailed.getItem();
|
||||
String batch = documentDetailed.getBatch();
|
||||
String sourceWarehouse = documentDetailed.getSourceWarehouse();
|
||||
String inventoryIdOrCarrier = documentDetailed.getInventoryIdOrCarrier();
|
||||
String documentNo = documentDetailed.getDocumentNo();
|
||||
boolean verifyDefaultStorageBin = documentDetailed.getVerifyDefaultStorageBin();
|
||||
return R.ok(pickingService.getInventoryQty(site, item, batch, sourceWarehouse, inventoryIdOrCarrier, documentNo, verifyDefaultStorageBin));
|
||||
}
|
||||
/**
|
||||
* 通过库存或载具查询数量
|
||||
*
|
||||
* @param documentDetailed inventoryId
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过库存查询", notes = "通过库存查询")
|
||||
@GetMapping("/getInventoryQty")
|
||||
public R getInventoryQty(DocumentDetailedDto documentDetailed) {
|
||||
String site = TenantContextHolder.getTenantId();
|
||||
String item = documentDetailed.getItem();
|
||||
String batch = documentDetailed.getBatch();
|
||||
String sourceWarehouse = documentDetailed.getSourceWarehouse();
|
||||
String inventoryIdOrCarrier = documentDetailed.getInventoryIdOrCarrier();
|
||||
String documentNo = documentDetailed.getDocumentNo();
|
||||
boolean verifyDefaultStorageBin = documentDetailed.getVerifyDefaultStorageBin();
|
||||
return R.ok(pickingService.getInventoryQty(site, item, batch, sourceWarehouse, inventoryIdOrCarrier, documentNo, verifyDefaultStorageBin));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param picking 拣货明细表
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page")
|
||||
public R getPickingPage(FrontPage page, Picking picking) {
|
||||
/*picking.setSite(TenantContextHolder.getTenantId());
|
||||
QueryWrapper<Picking> queryWrapper = new QueryWrapper<>(picking);
|
||||
if (page.getSearchText() != null && !"".equals(page.getSearchText().trim())) {
|
||||
queryWrapper.lambda().and(wrapper -> wrapper
|
||||
.like(Picking::getDocumentNo, page.getSearchText())
|
||||
.or().like(Picking::getDocumentType, page.getSearchText())
|
||||
.or().like(Picking::getInventoryId, page.getSearchText())
|
||||
.or().like(Picking::getSeq, page.getSearchText())
|
||||
.or().like(Picking::getBatchNumber, page.getSearchText())
|
||||
.or().like(Picking::getItem, page.getSearchText())
|
||||
.or().like(Picking::getGroes, page.getSearchText())
|
||||
.or().like(Picking::getUnitOfMeasure, page.getSearchText())
|
||||
.or().like(Picking::getInventoryIdOrCarrier, page.getSearchText())
|
||||
.or().like(Picking::getGradeOneCarrier, page.getSearchText())
|
||||
.or().like(Picking::getGradeTwoCarrier, page.getSearchText())
|
||||
.or().like(Picking::getGradeThrCarrier, page.getSearchText())
|
||||
.or().like(Picking::getStorageBin, page.getSearchText())
|
||||
.or().like(Picking::getCreateUser, page.getSearchText())
|
||||
.or().like(Picking::getModifyUser, page.getSearchText())
|
||||
);
|
||||
}*/
|
||||
return R.ok(/*pickingService.page(page, queryWrapper)*/);
|
||||
}
|
||||
|
||||
/**
|
||||
* 补签补打印
|
||||
*
|
||||
* @param reprintDtos reprintDto
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@PostMapping("/reprint")
|
||||
public R reprint(@RequestBody List<Picking> reprintDtos) {
|
||||
pickingService.reprint(reprintDtos);
|
||||
return R.ok();
|
||||
}
|
||||
/**
|
||||
* 检索
|
||||
*
|
||||
* @param reprintDto reprintDto
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/select")
|
||||
public R select(ReprintDto reprintDto) {
|
||||
return R.ok(pickingService.select(reprintDto));
|
||||
}
|
||||
|
||||
/**
|
||||
* 检索
|
||||
*
|
||||
* @param reprintDto reprintDto
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/select")
|
||||
public R select(ReprintDto reprintDto) {
|
||||
return R.ok(pickingService.select(reprintDto));
|
||||
}
|
||||
/**
|
||||
* 通过id查询拣货明细表
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}")
|
||||
public R getById(@PathVariable("handle") String handle) {
|
||||
return R.ok(pickingService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询拣货明细表
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}")
|
||||
public R getById(@PathVariable("handle") String handle) {
|
||||
return R.ok(pickingService.getById(handle));
|
||||
}
|
||||
/**
|
||||
* 新增拣货明细表
|
||||
*
|
||||
* @param picking 拣货明细表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增拣货明细表", notes = "新增拣货明细表")
|
||||
@PostMapping
|
||||
@PreAuthorize("@pms.hasPermission('wms_picking_save')")
|
||||
public R save(@RequestBody Picking picking) {
|
||||
String site = TenantContextHolder.getTenantId();
|
||||
String user = SecurityUtils.getUserName();
|
||||
return R.ok(pickingService.save(site, picking));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增拣货明细表
|
||||
*
|
||||
* @param picking 拣货明细表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增拣货明细表", notes = "新增拣货明细表")
|
||||
@PostMapping
|
||||
@PreAuthorize("@pms.hasPermission('wms_picking_save')")
|
||||
public R save(@RequestBody Picking picking) {
|
||||
String site = TenantContextHolder.getTenantId();
|
||||
String user = SecurityUtils.getUserName();
|
||||
return R.ok(pickingService.save(site, picking));
|
||||
}
|
||||
/**
|
||||
* 修改拣货明细表
|
||||
*
|
||||
* @param picking 拣货明细表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改拣货明细表", notes = "修改拣货明细表")
|
||||
@PutMapping
|
||||
@PreAuthorize("@pms.hasPermission('wms_picking_save')")
|
||||
public R updateById(@RequestBody Picking picking) {
|
||||
String site = TenantContextHolder.getTenantId();
|
||||
String user = SecurityUtils.getUserName();
|
||||
return R.ok(pickingService.updateById(site, picking));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改拣货明细表
|
||||
*
|
||||
* @param picking 拣货明细表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改拣货明细表", notes = "修改拣货明细表")
|
||||
@PutMapping
|
||||
@PreAuthorize("@pms.hasPermission('wms_picking_save')")
|
||||
public R updateById(@RequestBody Picking picking) {
|
||||
String site = TenantContextHolder.getTenantId();
|
||||
String user = SecurityUtils.getUserName();
|
||||
return R.ok(pickingService.updateById(site, picking));
|
||||
}
|
||||
/**
|
||||
* 通过id删除拣货明细表
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除拣货明细表", notes = "通过id删除拣货明细表")
|
||||
@DeleteMapping("/{handle}")
|
||||
@PreAuthorize("@pms.hasPermission('wms_picking_del')")
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pickingService.removeById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除拣货明细表
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除拣货明细表", notes = "通过id删除拣货明细表")
|
||||
@DeleteMapping("/{handle}")
|
||||
@PreAuthorize("@pms.hasPermission('wms_picking_del')")
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pickingService.removeById(handle));
|
||||
}
|
||||
@ApiOperation(value = "拣货推荐", notes = "拣货推荐")
|
||||
@ResponseBody
|
||||
@GetMapping("/selectPickingSuggest")
|
||||
public R selectPickingSuggest(int maxSize, String item, BigDecimal qty) {
|
||||
return R.ok(pickingService.selectPickingSuggest(maxSize, item, qty));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "拣货推荐", notes = "拣货推荐")
|
||||
@ResponseBody
|
||||
@GetMapping("/selectPickingSuggest")
|
||||
public R selectPickingSuggest(int maxSize, String item, BigDecimal qty) {
|
||||
return R.ok(pickingService.selectPickingSuggest(maxSize, item, qty));
|
||||
}
|
||||
@ApiOperation(value = "拣货推荐导出", notes = "拣货推荐导出")
|
||||
@SysLog("拣货推荐导出")
|
||||
@ResponseBody
|
||||
@GetMapping("/selectPickingSuggest/export")
|
||||
public void exportSaleOutSuggest(int maxSize, String item, BigDecimal qty) throws IOException {
|
||||
List<PickingSuggestDTO> data = pickingService.selectPickingSuggest(maxSize, item, qty);
|
||||
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
|
||||
HttpServletResponse response = attributes.getResponse();
|
||||
response.setCharacterEncoding("utf-8");
|
||||
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
||||
response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + System.currentTimeMillis() + ".xlsx");
|
||||
ExcelCellWidthStyleStrategy widthStyleStrategy = new ExcelCellWidthStyleStrategy();
|
||||
EasyExcel.write(response.getOutputStream(), PickingSuggestDTO.class).registerWriteHandler(widthStyleStrategy).autoCloseStream(Boolean.FALSE).sheet("").doWrite(data);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "拣货推荐导出", notes = "拣货推荐导出")
|
||||
@SysLog("拣货推荐导出")
|
||||
@ResponseBody
|
||||
@GetMapping("/selectPickingSuggest/export")
|
||||
public void exportSaleOutSuggest(int maxSize, String item, BigDecimal qty) throws IOException {
|
||||
List<PickingSuggestDTO> data = pickingService.selectPickingSuggest(maxSize, item, qty);
|
||||
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
|
||||
HttpServletResponse response = attributes.getResponse();
|
||||
response.setCharacterEncoding("utf-8");
|
||||
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
||||
response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + System.currentTimeMillis() + ".xlsx");
|
||||
ExcelCellWidthStyleStrategy widthStyleStrategy = new ExcelCellWidthStyleStrategy();
|
||||
EasyExcel.write(response.getOutputStream(), PickingSuggestDTO.class).registerWriteHandler(widthStyleStrategy).autoCloseStream(Boolean.FALSE).sheet("").doWrite(data);
|
||||
}
|
||||
@ApiOperation(value = "销售出货-拣货打印", notes = "销售出货-拣货打印")
|
||||
@SysLog("销售出货-拣货打印")
|
||||
@PostMapping("/print")
|
||||
public R pickingPrint(@RequestBody SaleOutRequestDTO saleOutRequestDTO) {
|
||||
return R.ok(pickingService.printLabel(saleOutRequestDTO.getDocumentNo(), saleOutRequestDTO.getSeqList()));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "销售出货-拣货打印", notes = "销售出货-拣货打印")
|
||||
@SysLog("销售出货-拣货打印")
|
||||
@PostMapping("/print")
|
||||
public R pickingPrint(@RequestBody SaleOutRequestDTO saleOutRequestDTO) {
|
||||
return R.ok(pickingService.printLabel(saleOutRequestDTO.getDocumentNo(), saleOutRequestDTO.getSeqList()));
|
||||
}
|
||||
@ApiOperation(value = "销售出货-出货单打印", notes = "销售出货-出货单打印")
|
||||
@SysLog("销售出货-出货单打印")
|
||||
@PostMapping("/deliveryPrint")
|
||||
public R deliveryPrint(@RequestBody SaleOutRequestDTO saleOutRequestDTO) {
|
||||
return R.ok(pickingService.printDeliveryLabel(saleOutRequestDTO));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "销售出货-出货单打印", notes = "销售出货-出货单打印")
|
||||
@SysLog("销售出货-出货单打印")
|
||||
@PostMapping("/deliveryPrint")
|
||||
public R deliveryPrint(@RequestBody SaleOutRequestDTO saleOutRequestDTO) {
|
||||
return R.ok(pickingService.printDeliveryLabel(saleOutRequestDTO));
|
||||
}
|
||||
@ApiOperation(value = "销售出货-附件打印", notes = "销售出货-附件打印")
|
||||
@SysLog("销售出货-附件打印")
|
||||
@PostMapping("/attachmentPrint")
|
||||
public R attachmentPrint(@RequestBody SaleOutRequestDTO saleOutRequestDTO) {
|
||||
return R.ok(pickingService.attachmentPrint(saleOutRequestDTO));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "销售出货-附件打印", notes = "销售出货-附件打印")
|
||||
@SysLog("销售出货-附件打印")
|
||||
@PostMapping("/attachmentPrint")
|
||||
public R attachmentPrint(@RequestBody SaleOutRequestDTO saleOutRequestDTO) {
|
||||
return R.ok(pickingService.attachmentPrint(saleOutRequestDTO));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "拣货清除记录", notes = "拣货清除记录")
|
||||
@SysLog("拣货清除记录")
|
||||
@PostMapping("/pickingRemove")
|
||||
public R pickingRemove(@RequestBody SaleOutRequestDTO saleOutRequestDTO) {
|
||||
String site = TenantContextHolder.getTenantStrId();
|
||||
String user = SecurityUtils.getUserName();
|
||||
return R.ok(pickingService.pickingRemove(site, user, saleOutRequestDTO.getActivityId(), saleOutRequestDTO.getDocumentNo(), saleOutRequestDTO.getSeqList()));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "拣货过账", notes = "拣货过账")
|
||||
@SysLog("拣货过账")
|
||||
@PostMapping("/post")
|
||||
public R pickingPost(@RequestBody String documentNo) {
|
||||
String site = TenantContextHolder.getTenantStrId();
|
||||
String userName = SecurityUtils.getUserName();
|
||||
pickingService.pickingPost(site, userName, documentNo);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "销售出货平台查询", notes = "销售出货平台查询")
|
||||
@SysLog("销售出货平台查询")
|
||||
@ResponseBody
|
||||
@GetMapping("/saleOut/selectSaleOutDetail")
|
||||
public R selectSaleOutDetail(String documentNo, String externalDocumentNo) {
|
||||
String site = TenantContextHolder.getTenantStrId();
|
||||
return R.ok(pickingService.selectSaleOutDetail(site, documentNo, externalDocumentNo));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "销售出货过账", notes = "销售出货过账")
|
||||
@SysLog("销售出货过账")
|
||||
@PostMapping("/saleOut/post")
|
||||
public R saleOutPost(@RequestBody StringWithDateTimeDTO dto) {
|
||||
String site = TenantContextHolder.getTenantStrId();
|
||||
String userName = SecurityUtils.getUserName();
|
||||
pickingService.saleOutPost(site, userName, dto.getStr(), dto.getDateTime());
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 暂存拣货数据
|
||||
*
|
||||
* @param documentDetailed inventoryId
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "暂存拣货数据", notes = "暂存拣货数据")
|
||||
@PostMapping("/saveTempPicking")
|
||||
public R saveTempPicking(@RequestBody DocumentDetailedDto documentDetailed) {
|
||||
String site = TenantContextHolder.getTenantId();
|
||||
String userName = SecurityUtils.getUserName();
|
||||
pickingService.saveTempPicking(site, userName, documentDetailed);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "拣货过账冲销", notes = "拣货过账冲销")
|
||||
@SysLog("拣货过账冲销")
|
||||
@PostMapping("/cancel")
|
||||
public R pickingPostCancel(@RequestBody String documentNo) {
|
||||
String site = TenantContextHolder.getTenantStrId();
|
||||
String userName = SecurityUtils.getUserName();
|
||||
pickingService.pickingPostCancel(site, userName, documentNo);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "销售出货过账冲销", notes = "销售出货过账冲销")
|
||||
@SysLog("销售出货过账冲销")
|
||||
@PostMapping("/saleOut/cancel")
|
||||
public R saleOutPostCancel(@RequestBody StringWithDateTimeDTO dto) {
|
||||
String site = TenantContextHolder.getTenantStrId();
|
||||
String userName = SecurityUtils.getUserName();
|
||||
pickingService.saleOutPostCancel(site, userName, dto.getStr(), dto.getDateTime());
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "无实物拣货过账", notes = "无实物拣货过账")
|
||||
@SysLog("无实物拣货过账")
|
||||
@PostMapping("/noEntity/post")
|
||||
public R noEntityPickingPost(@RequestBody String documentNo) {
|
||||
String site = TenantContextHolder.getTenantStrId();
|
||||
String userName = SecurityUtils.getUserName();
|
||||
pickingService.noEntityPickingPost(site, userName, documentNo);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "无实物拣货过账冲销", notes = "无实物拣货过账冲销")
|
||||
@SysLog("无实物拣货过账冲销")
|
||||
@PostMapping("/noEntity/cancel")
|
||||
public R noEntityPickingPostCancel(@RequestBody String documentNo) {
|
||||
String site = TenantContextHolder.getTenantStrId();
|
||||
String userName = SecurityUtils.getUserName();
|
||||
pickingService.noEntityPickingPostCancel(site, userName, documentNo);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "拣货打印A4", notes = "拣货打印A4")
|
||||
@SysLog("拣货打印A4")
|
||||
@PostMapping("/print/a4")
|
||||
public R printTrayLabelA4(@RequestBody SaleOutRequestDTO saleOutRequestDTO) {
|
||||
pickingService.printTrayLabelA4(saleOutRequestDTO.getDocumentNo(), saleOutRequestDTO.getPrinter(), saleOutRequestDTO.getSeqList());
|
||||
return R.ok();
|
||||
}
|
||||
@ApiOperation(value = "销售出货平台查询", notes = "销售出货平台查询")
|
||||
@SysLog("销售出货平台查询")
|
||||
@ResponseBody
|
||||
@GetMapping("/saleOut/selectSaleOutDetail")
|
||||
public R selectSaleOutDetail(String documentNo, String externalDocumentNo) {
|
||||
String site = TenantContextHolder.getTenantStrId();
|
||||
return R.ok(pickingService.selectSaleOutDetail(site, documentNo, externalDocumentNo));
|
||||
}
|
||||
}
|
||||
|
||||
@ -7,7 +7,6 @@ import com.foreverwin.mom.wms.entity.Picking;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -24,108 +23,41 @@ public interface PickingService extends IService<Picking> {
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
boolean updateById(String site, Picking picking);
|
||||
|
||||
List<DocumentInventoryDto> getPickInventory(DocumentDetailed documentDetailed);
|
||||
List<DocumentInventoryDto> getPickInventory(DocumentDetailed documentDetailed);
|
||||
|
||||
DocumentInventoryDto getInventoryQty(String site, String item, String batch, String sourceWarehouse, String inventoryIdOrCarrier, String documentNo, boolean verifyDefaultStorageBin);
|
||||
DocumentInventoryDto getInventoryQty(String site, String item, String batch, String sourceWarehouse, String inventoryIdOrCarrier, String documentNo, boolean verifyDefaultStorageBin);
|
||||
|
||||
String printLabel(String documentNo, List<String> seqList);
|
||||
String printLabel(String documentNo, List<String> seqList);
|
||||
|
||||
String printDeliveryLabel(SaleOutRequestDTO saleOutRequestDTO);
|
||||
String printDeliveryLabel(SaleOutRequestDTO saleOutRequestDTO);
|
||||
|
||||
String attachmentPrint(SaleOutRequestDTO saleOutRequestDTO);
|
||||
String attachmentPrint(SaleOutRequestDTO saleOutRequestDTO);
|
||||
|
||||
void reprint(List<Picking> reprintDtos);
|
||||
List<Picking> select(ReprintDto reprintDto);
|
||||
|
||||
List<Picking> select(ReprintDto reprintDto);
|
||||
List<String> selectPickingInventory(String site, String item, String batch);
|
||||
|
||||
List<String> selectPickingInventory(String site,String item,String batch);
|
||||
List<String> selectPickingCarrier(String site, String item);
|
||||
|
||||
List<String> selectPickingCarrier(String site,String item);
|
||||
/**
|
||||
* 拣货推荐
|
||||
* @param maxSize
|
||||
* @return
|
||||
*/
|
||||
List<PickingSuggestDTO> selectPickingSuggest(int maxSize, String item, BigDecimal qty);
|
||||
/**
|
||||
* 拣货清除记录
|
||||
* @param site
|
||||
* @param activityId
|
||||
* @param documentNo
|
||||
* @return
|
||||
*/
|
||||
boolean pickingRemove(String site, String user,String activityId, String documentNo, List<String> seqList);
|
||||
/**
|
||||
* 拣货过账
|
||||
* @param site
|
||||
* @param user
|
||||
* @param documentNo
|
||||
*/
|
||||
void pickingPost(String site,String user, String documentNo);
|
||||
/**
|
||||
* 销售出货平台查询
|
||||
* @param site
|
||||
* @param documentNo
|
||||
* @param externalDocumentNo
|
||||
* @return
|
||||
*/
|
||||
List<SaleOutDetailDTO> selectSaleOutDetail(String site, String documentNo, String externalDocumentNo);
|
||||
/**
|
||||
* 出货过账
|
||||
* @param site
|
||||
* @param user
|
||||
* @param documentNo
|
||||
*/
|
||||
BtsWarehouseMasterDto saleOutPost(String site,String user, String documentNo, LocalDateTime postDateTime);
|
||||
/**
|
||||
* 拣货暂存
|
||||
* @param site
|
||||
* @param user
|
||||
* @param requisitionItem
|
||||
*/
|
||||
void saveTempPicking(String site, String user, DocumentDetailedDto requisitionItem);
|
||||
/**
|
||||
* 拣货推荐
|
||||
*
|
||||
* @param maxSize
|
||||
* @return
|
||||
*/
|
||||
List<PickingSuggestDTO> selectPickingSuggest(int maxSize, String item, BigDecimal qty);
|
||||
|
||||
/**
|
||||
* 拣货过账冲销
|
||||
* @param site
|
||||
* @param user
|
||||
* @param documentNo
|
||||
*/
|
||||
void pickingPostCancel(String site, String user, String documentNo);
|
||||
/**
|
||||
* 销售出货平台查询
|
||||
*
|
||||
* @param site
|
||||
* @param documentNo
|
||||
* @param externalDocumentNo
|
||||
* @return
|
||||
*/
|
||||
List<SaleOutDetailDTO> selectSaleOutDetail(String site, String documentNo, String externalDocumentNo);
|
||||
|
||||
/**
|
||||
* 销售出货过账冲销
|
||||
* @param site
|
||||
* @param user
|
||||
* @param documentNo
|
||||
*/
|
||||
void saleOutPostCancel(String site, String user, String documentNo, LocalDateTime cancelDateTime);
|
||||
String generateSalesBatch(String site, String dnNumber);
|
||||
|
||||
/**
|
||||
* 生成出货批次
|
||||
* @param site
|
||||
* @param dnNumber
|
||||
* @return
|
||||
*/
|
||||
String generateSalesBatch(String site,String dnNumber);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param site
|
||||
* @param user
|
||||
* @param documentNo
|
||||
*/
|
||||
void noEntityPickingPost(String site, String user, String documentNo);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param site
|
||||
* @param user
|
||||
* @param documentNo
|
||||
*/
|
||||
void noEntityPickingPostCancel(String site, String user, String documentNo);
|
||||
|
||||
void printTrayLabelA4(String documentNo, String printer, List<String> seqList);
|
||||
|
||||
void checkCodePicking(String site, String code);
|
||||
void checkCodePicking(String site, String code);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user