计划管理相关功能实现

This commit is contained in:
潘荣晟
2026-01-19 17:31:52 +08:00
parent bee606926a
commit 6602fcd6e3
36 changed files with 1559 additions and 7 deletions

View File

@@ -1,6 +1,8 @@
package com.zt.plat.module.contractorder.api;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.module.contractorder.api.dto.order.OrderAndPlanDataReqDTO;
import com.zt.plat.module.contractorder.api.dto.order.OrderDTO;
import com.zt.plat.module.contractorder.api.dto.order.SalesOrdDtlDTO;
import com.zt.plat.module.contractorder.api.dto.order.UpdateOrderLstQtyDTO;
@@ -44,4 +46,8 @@ public interface OrderApi {
@GetMapping(PREFIX + "/get-salas-order-details-by-id")
@Operation(summary = "通过销售订单明细id获取销售订单详情", description = "通过销售订单明细id获取销售订单详情")
CommonResult<SalesOrdDtlDTO> getSalesOrderDetailsByOrderId(@RequestParam("id") Long id);
@PostMapping(PREFIX + "/query-order-plan-data")
@Operation(summary = "根据计划和订单的参数查询相关的订单", description = "根据计划和订单的参数查询相关的订单")
CommonResult<PageResult<OrderDTO>> queryOrderPlanData(@RequestBody @Valid OrderAndPlanDataReqDTO reqVO);
}

View File

@@ -0,0 +1,41 @@
package com.zt.plat.module.contractorder.api.dto.order;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;
@Data
@Schema(description = "订单和计划数据请求DTO")
@Validated
public class OrderAndPlanDataReqDTO extends PageParam {
//合同编号
@Schema(description = "合同编号")
private String contractSystemNumber;
//纸质合同编号
@Schema(description = "纸质合同编号")
private String paperContractNumber;
//订单号
@Schema(description = "订单号")
private String orderNumber;
//订单分类
@Schema(description = "订单分类")
//@NotEmpty(message = "订单分类不能为空")
private String orderType;
//物料编码
@Schema(description = "物料编码")
private String materialNumber;
//物料名称
@Schema(description = "物料名称")
private String materialName;
//客商编码
@Schema(description = "客商编码")
private String customerNumber;
//客商名称
@Schema(description = "客商名称")
private String customerName;
//计划编号
@Schema(description = "计划编号")
@NotEmpty(message = "计划Id不能为空")
private String planId;
}