订单管理相关
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.zt.plat.module.contractorder.api.dto;
|
package com.zt.plat.module.contractorder.api.dto;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
@@ -185,6 +186,9 @@ public class PurchaseOrderWithDetailsDTO {
|
|||||||
* 物料类型
|
* 物料类型
|
||||||
*/
|
*/
|
||||||
private String mtrlTp;
|
private String mtrlTp;
|
||||||
|
/**
|
||||||
|
* 订单类型
|
||||||
|
*/
|
||||||
|
private String splyBsnTp;
|
||||||
private List<PrchOrdDtlDTO> orderDetails;
|
private List<PrchOrdDtlDTO> orderDetails;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,4 +26,5 @@ public interface ErrorCodeConstants {
|
|||||||
ErrorCode CONTRACT_ERP_RCV_DLVY_NOT_EXISTS = new ErrorCode(1_027_000_011, "不存在的收支类型或收支类型为空");
|
ErrorCode CONTRACT_ERP_RCV_DLVY_NOT_EXISTS = new ErrorCode(1_027_000_011, "不存在的收支类型或收支类型为空");
|
||||||
ErrorCode CONTRACT_STATUS_NOT_ARCHIVE = new ErrorCode(1_027_000_012, "{}状态合同不允许归档");
|
ErrorCode CONTRACT_STATUS_NOT_ARCHIVE = new ErrorCode(1_027_000_012, "{}状态合同不允许归档");
|
||||||
ErrorCode CONTRACT_STATUS_NOT_SUBMIT_ERP = new ErrorCode(1_027_000_013, "{}状态合同不允许提交ERP");
|
ErrorCode CONTRACT_STATUS_NOT_SUBMIT_ERP = new ErrorCode(1_027_000_013, "{}状态合同不允许提交ERP");
|
||||||
|
ErrorCode CONTRACT_ORDER_EXISTS = new ErrorCode(1_027_000_014, "关联订单已存在");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,6 +124,14 @@ public class PurchaseOrderController implements BusinessControllerMarker {
|
|||||||
return success(true);
|
return success(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping("/submit-order-batch")
|
||||||
|
@Operation(summary = "批量提交订单审核")
|
||||||
|
@PreAuthorize("@ss.hasPermission('bse:purchase-order:update')")
|
||||||
|
public CommonResult<Boolean> submitOrder(@RequestParam("ids") @Validated @NotEmpty(message = "采购订单id不能为空") List<Long> ids) {
|
||||||
|
ids.forEach(id -> purchaseOrderService.submitOrder(id));
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
//提交ERP订单
|
//提交ERP订单
|
||||||
@PostMapping("/submit-erp061")
|
@PostMapping("/submit-erp061")
|
||||||
@Operation(summary = "推送ERP订单", description = "061')")
|
@Operation(summary = "推送ERP订单", description = "061')")
|
||||||
@@ -163,4 +171,11 @@ public class PurchaseOrderController implements BusinessControllerMarker {
|
|||||||
return purchaseOrderService.getMaterial(orderNo);
|
return purchaseOrderService.getMaterial(orderNo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//关联订单
|
||||||
|
@PostMapping("/link-order")
|
||||||
|
@Operation(summary = "关联订单")
|
||||||
|
public CommonResult<Boolean> linkOrder(@RequestBody @Validated LinkOrderReqVO req){
|
||||||
|
return success(purchaseOrderService.linkOrder(req));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package com.zt.plat.module.contractorder.controller.admin.purchaseorder.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "关联订单请求参数 VO")
|
||||||
|
public class LinkOrderReqVO {
|
||||||
|
@Schema(description = "上游订单号")
|
||||||
|
private Long upOrderId;
|
||||||
|
@Schema(description = "下游订单号")
|
||||||
|
private Long downOrderId;
|
||||||
|
@Schema(description = "关联订单类型")
|
||||||
|
private String linkOrderType;
|
||||||
|
}
|
||||||
@@ -62,7 +62,7 @@ public class PrchOrdDtlDetailsRespVO {
|
|||||||
* 计量单位;推送ERP(必须)
|
* 计量单位;推送ERP(必须)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
private BigDecimal unt;
|
private String unt;
|
||||||
/**
|
/**
|
||||||
* 含税单价;推送ERP(必须)
|
* 含税单价;推送ERP(必须)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -130,4 +130,8 @@ public class PurchaseOrderPageReqVO extends PageParam {
|
|||||||
@Schema(description = "物料类型(字典:MTRL_TP)", example = "2")
|
@Schema(description = "物料类型(字典:MTRL_TP)", example = "2")
|
||||||
private String mtrlTp;
|
private String mtrlTp;
|
||||||
|
|
||||||
|
@Schema(description = "订单分类")
|
||||||
|
private String splyBsnTp;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,4 +171,8 @@ public class PurchaseOrderRespVO {
|
|||||||
@Schema(description = "物料类型(字典:MTRL_TP)", example = "2")
|
@Schema(description = "物料类型(字典:MTRL_TP)", example = "2")
|
||||||
@ExcelProperty("物料类型(字典:MTRL_TP)")
|
@ExcelProperty("物料类型(字典:MTRL_TP)")
|
||||||
private String mtrlTp;
|
private String mtrlTp;
|
||||||
|
|
||||||
|
@Schema(description = "订单分类", example = "2")
|
||||||
|
@ExcelProperty("订单分类")
|
||||||
|
private String splyBsnTp;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,7 +158,6 @@ public class PurchaseOrderSaveReqVO {
|
|||||||
|
|
||||||
@Schema(description = "流程实例编号")
|
@Schema(description = "流程实例编号")
|
||||||
@ExcelProperty("流程实例编号")
|
@ExcelProperty("流程实例编号")
|
||||||
@NotEmpty(message = "流程实例编号不能为空")
|
|
||||||
private String processInstanceId;
|
private String processInstanceId;
|
||||||
|
|
||||||
@Schema(description = "流程当前任务节点id")
|
@Schema(description = "流程当前任务节点id")
|
||||||
@@ -175,4 +174,8 @@ public class PurchaseOrderSaveReqVO {
|
|||||||
@Schema(description = "物料类别(字典:MTRL_TP)", example = "1")
|
@Schema(description = "物料类别(字典:MTRL_TP)", example = "1")
|
||||||
@ExcelProperty("物料类别")
|
@ExcelProperty("物料类别")
|
||||||
private String mtrlTp;
|
private String mtrlTp;
|
||||||
|
|
||||||
|
@Schema(description = "订单分类", example = "2")
|
||||||
|
@ExcelProperty("订单分类")
|
||||||
|
private String splyBsnTp;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -250,4 +250,11 @@ public class PurchaseOrderDO extends BusinessBaseDO {
|
|||||||
*/
|
*/
|
||||||
@TableField("MTRL_TP")
|
@TableField("MTRL_TP")
|
||||||
private String mtrlTp;
|
private String mtrlTp;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单分类
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@TableField("SPLY_BSN_TP")
|
||||||
|
private String splyBsnTp;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public interface PurchaseOrderMapper extends BaseMapperX<PurchaseOrderDO> {
|
|||||||
.likeIfPresent(PurchaseOrderDO::getErpSalesCompanyName, reqVO.getErpSalesCompanyName())
|
.likeIfPresent(PurchaseOrderDO::getErpSalesCompanyName, reqVO.getErpSalesCompanyName())
|
||||||
.likeIfPresent(PurchaseOrderDO::getPurchaseOrganizationName, reqVO.getPurchaseOrganizationName())
|
.likeIfPresent(PurchaseOrderDO::getPurchaseOrganizationName, reqVO.getPurchaseOrganizationName())
|
||||||
.eqIfPresent(PurchaseOrderDO::getErpStatus, reqVO.getErpStatus())
|
.eqIfPresent(PurchaseOrderDO::getErpStatus, reqVO.getErpStatus())
|
||||||
|
.eqIfPresent(PurchaseOrderDO::getSplyBsnTp, reqVO.getSplyBsnTp())
|
||||||
.eqIfPresent(PurchaseOrderDO::getCause, reqVO.getCause())
|
.eqIfPresent(PurchaseOrderDO::getCause, reqVO.getCause())
|
||||||
.eqIfPresent(PurchaseOrderDO::getStatus, reqVO.getStatus())
|
.eqIfPresent(PurchaseOrderDO::getStatus, reqVO.getStatus())
|
||||||
.likeIfPresent(PurchaseOrderDO::getPurchaseGroupName, reqVO.getPurchaseGroupName())
|
.likeIfPresent(PurchaseOrderDO::getPurchaseGroupName, reqVO.getPurchaseGroupName())
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user