Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
彭枝刚 2024-11-27 11:17:37 +08:00
commit 52d6be68cc

View File

@ -877,6 +877,7 @@ public class DocumentController {
}
//---------------------------------------------------------------------------------------
// NEW
@ApiOperation(value = "获取过账单据明细", notes = "获取过账单据明细")
@GetMapping("/detail/getCloseDocumentDetail")
@SysLog("获取过账单据明细")
@ -954,40 +955,232 @@ public class DocumentController {
documentService.submitDocumentTBC(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "单据出库过账", notes = "单据出库过账")
@PostMapping("/postOut")
@SysLog("单据出库过账")
public R postOut(@RequestBody StringWithDateTimeDTO dto) {
//-----------------------------------------------------------------------------------
//出库
@ApiOperation(value = "采购收货过账", notes = "采购收货过账")
@PostMapping("/postOut/PROCUREMENT_STORAGE")
@SysLog("采购收货过账")
@PreAuthorize("@pms.hasPermission('wms_document_cd_post')")
public R postOutProcurementStorage(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postOutDocument(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "单据入库过账", notes = "单据入库过账")
@PostMapping("/postIn")
@SysLog("单据入库过账")
public R postIn(@RequestBody StringWithDateTimeDTO dto) {
@ApiOperation(value = "销售发货过账", notes = "销售发货过账")
@PostMapping("/postOut/SALES_OUT")
@SysLog("销售发货过账")
@PreAuthorize("@pms.hasPermission('wms_document_xc_post')")
public R postOutSalesOut(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postOutDocument(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "成本中心领料过账", notes = "成本中心领料过账")
@PostMapping("/postOut/COST_CENTER_RECEIVE")
@SysLog("成本中心领料过账")
@PreAuthorize("@pms.hasPermission('wms_document_cbl_post')")
public R postOutCostCenterReceive(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postOutDocument(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "在建工程领料过账", notes = "在建工程领料过账")
@PostMapping("/postOut/ENGINEER_RECEIVE")
@SysLog("在建工程领料过账")
@PreAuthorize("@pms.hasPermission('wms_document_zjl_post')")
public R postOutEngineerReceive(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postOutDocument(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "研发领料过账", notes = "研发领料过账")
@PostMapping("/postOut/RANDD_RECEIVE")
@SysLog("研发领料过账")
@PreAuthorize("@pms.hasPermission('wms_document_yl_post')")
public R postOutRanddReceive(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postOutDocument(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "保密领料过账", notes = "保密领料过账")
@PostMapping("/postOut/SECRECY_RECEIVE")
@SysLog("保密领料过账")
@PreAuthorize("@pms.hasPermission('wms_document_bl_post')")
public R postOutSecrecyReceive(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postOutDocument(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "报废单过账", notes = "报废单过账")
@PostMapping("/postOut/SCRAP_OUT")
@SysLog("报废单过账")
@PreAuthorize("@pms.hasPermission('wms_document_bf_post')")
public R postOutScrapOut(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postOutDocument(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "公司间退货过账", notes = "公司间退货过账")
@PostMapping("/postOut/INTERCOMPANY_RETURN")
@SysLog("公司间退货过账")
@PreAuthorize("@pms.hasPermission('wms_document_gst_post')")
public R postOutIntercompanyReturn(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postOutDocument(site, user, dto.getStr());
return R.ok();
}
//-----------------------------------------------------------------------------------------
//入库
@ApiOperation(value = "采购退货过账", notes = "采购退货过账")
@PostMapping("/postIn/PURCHASE_RETURN")
@SysLog("采购退货过账")
@PreAuthorize("@pms.hasPermission('wms_document_ct_post')")
public R postInPurchaseReturn(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postInDocument(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "单据调拨过账", notes = "单据调拨过账")
@PostMapping("/postTransfer")
@SysLog("单据调拨过账")
public R postTransferDocument(@RequestBody StringWithDateTimeDTO dto) {
@ApiOperation(value = "销售退货过账", notes = "销售退货过账")
@PostMapping("/postIn/SALES_RETURN")
@SysLog("销售退货过账")
@PreAuthorize("@pms.hasPermission('wms_document_xt_post')")
public R postInSalesReturn(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postInDocument(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "成本中心退料过账", notes = "成本中心退料过账")
@PostMapping("/postIn/COST_CENTER_RETURNED")
@SysLog("成本中心退料过账")
@PreAuthorize("@pms.hasPermission('wms_document_cbt_post')")
public R postInCostCenterReturned(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postInDocument(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "在建工程退料过账", notes = "在建工程退料过账")
@PostMapping("/postIn/ENGINEER_RETURNED")
@SysLog("在建工程退料过账")
@PreAuthorize("@pms.hasPermission('wms_document_zjt_post')")
public R postInEngineerReturned(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postInDocument(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "研发退料过账", notes = "研发退料过账")
@PostMapping("/postIn/RAND_RETURNED")
@SysLog("研发退料过账")
@PreAuthorize("@pms.hasPermission('wms_document_yt_post')")
public R postInRandReturned(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postInDocument(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "保密退料过账", notes = "保密退料过账")
@PostMapping("/postIn/SECRECY_RETURNED")
@SysLog("保密退料过账")
@PreAuthorize("@pms.hasPermission('wms_document_bt_post')")
public R postInSecrecyReturned(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postInDocument(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "公司间收货过账", notes = "公司间收货过账")
@PostMapping("/postIn/INTERCOMPANY_STORAGE")
@SysLog("公司间收货过账")
@PreAuthorize("@pms.hasPermission('wms_document_gss_post')")
public R postInIntercompanyStorage(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postInDocument(site, user, dto.getStr());
return R.ok();
}
//-----------------------------------------------------------------------------------------------
@ApiOperation(value = "生产领料单过账", notes = "生产领料单过账")
@PostMapping("/postTransfer/STORES_REQUISITION")
@SysLog("生产领料单过账")
@PreAuthorize("@pms.hasPermission('wms_document_ll_post')")
public R postTransferStoresRequisition(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postTransferDocument(site, user, dto.getStr());
return R.ok();
}
/**
* 分页查询订单信息
*/
@ApiOperation(value = "生产退料单过账", notes = "生产退料单过账")
@PostMapping("/postTransfer/STORES_RETURNED")
@SysLog("生产退料单过账")
@PreAuthorize("@pms.hasPermission('wms_document_tl_post')")
public R postTransferStoresReturned(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postTransferDocument(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "生产入库单过账", notes = "生产入库单过账")
@PostMapping("/postTransfer/STOR_REQUEST")
@SysLog("生产入库单过账")
@PreAuthorize("@pms.hasPermission('wms_document_rk_post')")
public R postTransferStorRequest(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postTransferDocument(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "调拨单过账", notes = "调拨单过账")
@PostMapping("/postTransfer/LOCAL_TRANSFER")
@SysLog("调拨单过账")
@PreAuthorize("@pms.hasPermission('wms_document_db_post')")
public R postTransferLocalTransfer(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postTransferDocument(site, user, dto.getStr());
return R.ok();
}
@ApiOperation(value = "特殊库存转移过账", notes = "特殊库存转移过账")
@PostMapping("/postTransfer/ATTRIBUTE_TRANSFER")
@SysLog("特殊库存转移过账")
@PreAuthorize("@pms.hasPermission('wms_document_ts_post')")
public R postTransferAttributeTransfer(@RequestBody StringWithDateTimeDTO dto) {
String site = TenantContextHolder.getTenantStrId();
String user = SecurityUtils.getUserName();
documentService.postTransferDocument(site, user, dto.getStr());
return R.ok();
}
//----------------------------------------------------------------------------------
/**
* 分页查询订单信息
*/
@ApiOperation(value = "分页查询订单信息", notes = "分页查询订单信息")
@GetMapping("/selectShopOrderInfo/page")
public R selectShopOrderInfo(FrontPage page, WipShopOrderDto wipShopOrderDto) {