删除documentService里的无用代码
This commit is contained in:
parent
6f6426c315
commit
159488e871
@ -49,8 +49,6 @@ public class DocumentController {
|
||||
|
||||
private final PickingService pickingService;
|
||||
|
||||
private final BarCodeQueryService barCodeQueryService;
|
||||
|
||||
private final WmsCarrierService wmsCarrierService;
|
||||
|
||||
private final WmsItemMapper wmsItemMapper;
|
||||
@ -83,8 +81,7 @@ public class DocumentController {
|
||||
@PostMapping("/transferSubmit")
|
||||
@PreAuthorize("@pms.hasPermission('wms_document_save')")
|
||||
public R transferSubmit(@RequestBody List<DocumentDetailedDto> documentDetailedList) {
|
||||
documentService.transferSubmit(documentDetailedList);
|
||||
return R.ok();
|
||||
return R.failed("后台无实际处理逻辑");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -132,7 +129,7 @@ public class DocumentController {
|
||||
@ApiOperation(value = "通过库存查询", notes = "通过库存查询")
|
||||
@GetMapping("/getInventoryOriginalQty")
|
||||
public R getInventoryOriginalQty(DocumentDetailedDto documentDetailed) {
|
||||
return R.ok(documentService.getInventoryOriginalQtyNew(documentDetailed));
|
||||
return R.failed("后台无实际处理逻辑");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -171,7 +168,7 @@ public class DocumentController {
|
||||
@PreAuthorize("@pms.hasPermission('wms_document_return')")
|
||||
public R returnSubmit(@RequestBody List<DocumentDetailedDto> documentDetailedList) {
|
||||
String site = TenantContextHolder.getTenantId();
|
||||
List<String> printList = documentService.returnSubmit(documentDetailedList);
|
||||
List<String> printList = null;
|
||||
String printer = documentDetailedList.get(0).getPrinter();
|
||||
if (StrUtil.isBlank(printer)) {
|
||||
throw BusinessException.build("小条码打印机未维护");
|
||||
@ -198,8 +195,7 @@ public class DocumentController {
|
||||
@PostMapping("/finishedProductsWarehouseSubmit")
|
||||
@PreAuthorize("@pms.hasPermission('wms_document_save')")
|
||||
public R finishedProductsWarehouseSubmit(@RequestBody List<DocumentDetailedDto> documentDetailedList) {
|
||||
documentService.finishedProductsWarehouseSubmit(documentDetailedList);
|
||||
return R.ok();
|
||||
return R.failed("后台无实际处理逻辑");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -227,22 +223,7 @@ public class DocumentController {
|
||||
@SysLog("销售退货提交")
|
||||
@PostMapping("/saleReturn/submit")
|
||||
public R saleReturn(@RequestBody List<DocumentDetailedDto> documentDetailedList) {
|
||||
String site = TenantContextHolder.getTenantId();
|
||||
Map<String, List<String>> map = documentService.saleReturnSubmit(documentDetailedList);
|
||||
List<String> printList = map.get("printList");
|
||||
String printer = documentDetailedList.get(0).getPrinter();
|
||||
if (CollectionUtil.isNotEmpty(printList)) {
|
||||
if (StrUtil.isBlank(printer)) {
|
||||
throw BusinessException.build("打印机未维护");
|
||||
} else if (CollectionUtil.isNotEmpty(printList)) {
|
||||
wmsCarrierService.labelPrint(printList.stream().map(o -> {
|
||||
Carrier carrier = new Carrier();
|
||||
carrier.setCarrier(o);
|
||||
return carrier;
|
||||
}).collect(Collectors.toList()), printer);
|
||||
}
|
||||
}
|
||||
return R.ok();
|
||||
return R.failed("后台无实际处理逻辑");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -271,8 +252,8 @@ public class DocumentController {
|
||||
@PostMapping("/productionRequisitionSubmit")
|
||||
@PreAuthorize("@pms.hasPermission('wms_document_save')")
|
||||
public R save(@RequestBody List<DocumentDetailedDto> documentDetailedList) {
|
||||
documentService.productionRequisitionSubmit(documentDetailedList);
|
||||
return R.ok();
|
||||
// documentService.productionRequisitionSubmit(documentDetailedList);
|
||||
return R.failed("后台无实际处理逻辑");
|
||||
}
|
||||
|
||||
|
||||
@ -281,8 +262,8 @@ public class DocumentController {
|
||||
@PostMapping("/productionRequisitionSubmit/freePostDate")
|
||||
@PreAuthorize("@pms.hasPermission('wms_document_save')")
|
||||
public R save(@RequestBody ListWithDateDTO<DocumentDetailedDto> request) {
|
||||
documentService.productionRequisitionSubmit(request.getList(), request.getDate());
|
||||
return R.ok();
|
||||
// documentService.productionRequisitionSubmit(request.getList(), request.getDate());
|
||||
return R.failed("后台无实际处理逻辑");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -309,44 +290,6 @@ public class DocumentController {
|
||||
return R.ok(documentService.getDocumentDetail2(documentNo, targetWarehouse));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过库存或载具查询数量
|
||||
*
|
||||
* @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();
|
||||
return R.ok(documentService.getInventoryQty(site, item, batch, sourceWarehouse, inventoryIdOrCarrier, documentNo, documentDetailed.getVerifyDefaultStorageBin(), null, null));
|
||||
}*/
|
||||
|
||||
/**
|
||||
* 通过库存或载具查询数量
|
||||
*
|
||||
* @param documentDetailed inventoryId
|
||||
* @return R
|
||||
*/
|
||||
/*@ApiOperation(value = "通过库存查询", notes = "通过库存查询")
|
||||
@PostMapping("/getInventoryQty")
|
||||
public R getInventoryQtyPost(@RequestBody 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();
|
||||
String fifo = documentDetailed.getFifo();
|
||||
List<DocumentInventoryDto> inventoryList = documentDetailed.getInventoryList();
|
||||
return R.ok(documentService.getInventoryQty(site, item, batch, sourceWarehouse, inventoryIdOrCarrier, documentNo, documentDetailed.getVerifyDefaultStorageBin(), fifo, inventoryList));
|
||||
}*/
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
@ -388,8 +331,6 @@ public class DocumentController {
|
||||
@PostMapping
|
||||
@PreAuthorize("@pms.hasPermission('external_document_save')")
|
||||
public R save(@RequestBody Document document) {
|
||||
String site = TenantContextHolder.getTenantId();
|
||||
String user = SecurityUtils.getUserName();
|
||||
return R.ok(documentService.save(document));
|
||||
}
|
||||
|
||||
@ -404,8 +345,6 @@ public class DocumentController {
|
||||
@PutMapping
|
||||
@PreAuthorize("@pms.hasPermission('external_document_save')")
|
||||
public R updateById(@RequestBody Document document) {
|
||||
String site = TenantContextHolder.getTenantId();
|
||||
String user = SecurityUtils.getUserName();
|
||||
return R.ok(documentService.updateById(document));
|
||||
}
|
||||
|
||||
@ -705,20 +644,20 @@ public class DocumentController {
|
||||
@ApiOperation(value = "采购到货登记", notes = "采购到货登记")
|
||||
@PostMapping("/purchase/registerSubmit")
|
||||
public R procurementStorageRegister(@RequestBody List<PoOrderDetailDTO> poOrderDetailDTOList) {
|
||||
String site = TenantContextHolder.getTenantId();
|
||||
/*String site = TenantContextHolder.getTenantId();
|
||||
String user = SecurityUtils.getUserName();
|
||||
documentService.procurementStorageRegister(site, user, poOrderDetailDTOList);
|
||||
return R.ok();
|
||||
documentService.procurementStorageRegister(site, user, poOrderDetailDTOList);*/
|
||||
return R.failed("后台无实际处理逻辑");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "采购到货登记冲销", notes = "采购到货登记冲销")
|
||||
@PostMapping("/purchase/registerCancel")
|
||||
@SysLog("采购到货登记冲销")
|
||||
public R procurementStorageRegisterCancel(@RequestBody PoOrderDetailDTO poOrderDetail) {
|
||||
String site = TenantContextHolder.getTenantId();
|
||||
/*String site = TenantContextHolder.getTenantId();
|
||||
String user = SecurityUtils.getUserName();
|
||||
documentService.procurementStorageRegisterCancel(site, user, poOrderDetail);
|
||||
return R.ok();
|
||||
documentService.procurementStorageRegisterCancel(site, user, poOrderDetail);*/
|
||||
return R.failed("后台无实际处理逻辑");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "查询可冲销单据", notes = "查询可冲销单据")
|
||||
@ -739,20 +678,20 @@ public class DocumentController {
|
||||
@PostMapping("/cancelCloseDocument")
|
||||
@SysLog("已完成单据冲销")
|
||||
public R cancelCloseDocument(@RequestBody String documentNo) {
|
||||
String site = TenantContextHolder.getTenantStrId();
|
||||
/*String site = TenantContextHolder.getTenantStrId();
|
||||
String user = SecurityUtils.getUserName();
|
||||
documentService.productionRequisitionCancel(site, user, documentNo);
|
||||
return R.ok();
|
||||
documentService.productionRequisitionCancel(site, user, documentNo);*/
|
||||
return R.failed("后台无实际处理逻辑");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "销售退货冲销", notes = "销售退货冲销")
|
||||
@PostMapping("/saleReturn/cancel")
|
||||
@SysLog("销售退货冲销")
|
||||
public R saleReturnCancel(@RequestBody String documentNo) {
|
||||
String site = TenantContextHolder.getTenantStrId();
|
||||
/*String site = TenantContextHolder.getTenantStrId();
|
||||
String user = SecurityUtils.getUserName();
|
||||
documentService.saleReturnCancel(site, user, documentNo);
|
||||
return R.ok();
|
||||
documentService.saleReturnCancel(site, user, documentNo);*/
|
||||
return R.failed("后台无实际处理逻辑");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "IQC回调", notes = "IQC回调")
|
||||
@ -789,10 +728,10 @@ public class DocumentController {
|
||||
@PostMapping("/noEntity/cancel")
|
||||
@SysLog("无实物过账冲销")
|
||||
public R noEntityPostCancel(@RequestBody StringWithDateTimeDTO dto) {
|
||||
String site = TenantContextHolder.getTenantStrId();
|
||||
String user = SecurityUtils.getUserName();
|
||||
documentService.noEntityPostCancel(site, user, dto.getStr(), dto.getDateTime());
|
||||
return R.ok();
|
||||
// String site = TenantContextHolder.getTenantStrId();
|
||||
// String user = SecurityUtils.getUserName();
|
||||
// documentService.noEntityPostCancel(site, user, dto.getStr(), dto.getDateTime());
|
||||
return R.failed("后台无实际处理逻辑");
|
||||
}
|
||||
|
||||
@PostMapping("/api/createDocument")
|
||||
@ -811,8 +750,8 @@ public class DocumentController {
|
||||
|
||||
@PostMapping("/validateImport")
|
||||
public R validateImport(@RequestBody List<DocumentDetailed> documentDetailedList) {
|
||||
documentService.validateImport(documentDetailedList);
|
||||
return R.ok();
|
||||
// documentService.validateImport(documentDetailedList);
|
||||
return R.failed("后台无实际处理逻辑");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -826,8 +765,8 @@ public class DocumentController {
|
||||
@PostMapping("/saleReturn/noInventorySubmit")
|
||||
@PreAuthorize("@pms.hasPermission('sale_return_no_inventory_submit')")
|
||||
public R saleReturnNoInventorySubmit(@RequestBody List<DocumentDetailedDto> documentDetailedList) {
|
||||
documentService.saleReturnNoInventorySubmit(documentDetailedList);
|
||||
return R.ok();
|
||||
// documentService.saleReturnNoInventorySubmit(documentDetailedList);
|
||||
return R.failed("后台无实际处理逻辑");
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------
|
||||
|
||||
@ -121,8 +121,6 @@ public interface DocumentService extends IService<Document> {
|
||||
@Deprecated
|
||||
DocumentInventoryDto getInventoryOriginalQty(DocumentDetailedDto documentDetailed);
|
||||
|
||||
DocumentInventoryDto getInventoryOriginalQtyNew(DocumentDetailedDto documentDetailed);
|
||||
|
||||
/**
|
||||
* 拣货提交
|
||||
*
|
||||
@ -148,29 +146,6 @@ public interface DocumentService extends IService<Document> {
|
||||
|
||||
//------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* 生产退料入库提交
|
||||
*
|
||||
* @param itemList
|
||||
*/
|
||||
List<String> returnSubmit(List<DocumentDetailedDto> itemList);
|
||||
|
||||
/**
|
||||
* 生产领料, 成本中心领料,报废出库, 销售退货,在建工程领料
|
||||
*
|
||||
* @param documentDetailedList
|
||||
*/
|
||||
void productionRequisitionSubmit(List<DocumentDetailedDto> documentDetailedList);
|
||||
|
||||
void productionRequisitionSubmit(List<DocumentDetailedDto> documentDetailedList, LocalDate postDate);
|
||||
|
||||
/**
|
||||
* 成品入库、生产退料
|
||||
*
|
||||
* @param documentDetailedList
|
||||
*/
|
||||
void finishedProductsWarehouseSubmit(List<DocumentDetailedDto> documentDetailedList);
|
||||
|
||||
/**
|
||||
* 采购到货提交
|
||||
*
|
||||
@ -178,13 +153,6 @@ public interface DocumentService extends IService<Document> {
|
||||
*/
|
||||
void procurementStorageSubmit(List<DocumentDetailedDto> documentDetailedList);
|
||||
|
||||
/**
|
||||
* 销售退货
|
||||
*
|
||||
* @param documentDetailedList
|
||||
*/
|
||||
Map<String, List<String>> saleReturnSubmit(List<DocumentDetailedDto> documentDetailedList);
|
||||
|
||||
/**
|
||||
* 成品采购入库
|
||||
*
|
||||
@ -192,12 +160,6 @@ public interface DocumentService extends IService<Document> {
|
||||
*/
|
||||
void finishedProductsPurchaseSubmit(List<DocumentDetailedDto> documentDetailedList);
|
||||
|
||||
/**
|
||||
* 调拨
|
||||
*
|
||||
* @param documentDetailedList
|
||||
*/
|
||||
void transferSubmit(List<DocumentDetailedDto> documentDetailedList);
|
||||
//------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
@ -277,35 +239,16 @@ public interface DocumentService extends IService<Document> {
|
||||
|
||||
IPage<DocumentWithPoOrderDTO> pagePurchaseInToStorageReg(IPage iPage, String site, String documentType, String poNumber, String documentNo, String customerNo);
|
||||
|
||||
void procurementStorageRegister(String site, String user, List<PoOrderDetailDTO> poOrderDetailDTOList);
|
||||
|
||||
void procurementStorageRegisterCancel(String site, String user, PoOrderDetailDTO poOrderDetail);
|
||||
|
||||
void productionRequisitionCancel(String site, String user, String documentNo);
|
||||
|
||||
void saleReturnCancel(String site, String user, String documentNo);
|
||||
|
||||
void iqcResult(String site, String user, List<DocumentIqcResultRequest> requestList);
|
||||
|
||||
void oqcResult(String site, String user, List<DocumentOqcResultRequest> requestList);
|
||||
|
||||
void noEntityPost(String site, String user, String documentNo, LocalDateTime postDateTime);
|
||||
|
||||
void noEntityPostCancel(String site, String user, String documentNo, LocalDateTime cancelDateTime);
|
||||
|
||||
IPage<Document> pageWithWarehouse(IPage iPage, Wrapper<Document> wrapper, String sourceWarehouse, String targetWarehouse);
|
||||
|
||||
Map<String, String> oneClickPassValidate(String site, List<DocumentDetailedDto> list);
|
||||
|
||||
void validateImport(List<DocumentDetailed> documentDetailedList);
|
||||
|
||||
/**
|
||||
* 销售退货零库存退库
|
||||
*
|
||||
* @param itemList
|
||||
*/
|
||||
void saleReturnNoInventorySubmit(List<DocumentDetailedDto> itemList);
|
||||
|
||||
//------------------------------------------------------------------------------------------------------
|
||||
|
||||
List<DocumentDetailed> getSubmitDocumentDetail(String site, String user, String documentNo, String sourceWarehouse, String targetWarehouse);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user