计划相关Feign接口
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package com.zt.plat.module.plandate;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.module.base.enums.ApiConstants;
|
||||
import com.zt.plat.module.plandate.dto.ErpMonthProductivePlanCheckSaveReqDTO;
|
||||
import com.zt.plat.module.plandate.dto.PlanDateSaveReqDTO;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
|
||||
@FeignClient(name = ApiConstants.NAME)
|
||||
@Tag(name = "RPC 服务 - base")
|
||||
public interface PlanApi {
|
||||
String PREFIX = ApiConstants.PREFIX + "/api/plan";
|
||||
|
||||
@PostMapping(PREFIX + "/create")
|
||||
@Operation(summary = "计划创建")
|
||||
CommonResult<Boolean> planCreate(PlanDateSaveReqDTO reqDTO);
|
||||
|
||||
@PostMapping(PREFIX + "/monthProductivePlanCheckCreate")
|
||||
@Operation(summary = "月 productive plan check 创建")
|
||||
CommonResult<Boolean> monthProductivePlanCheckCreate(ErpMonthProductivePlanCheckSaveReqDTO reqDTO);
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.zt.plat.module.plandate.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - ERP月度产品计划核对明细新增 Request DTO")
|
||||
@Data
|
||||
@Validated
|
||||
public class ErpMonthProductivePlanCheckDetailSaveReqDTO {
|
||||
|
||||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14111")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "日期(格式:YYYY-MM-DD)")
|
||||
private String date;
|
||||
|
||||
@Schema(description = "排序")
|
||||
private Integer sort;
|
||||
|
||||
@Schema(description = "值")
|
||||
private BigDecimal value;
|
||||
|
||||
@Schema(description = "主数据ID(关联主表ID)", example = "3745")
|
||||
private Long mainId;
|
||||
|
||||
@Schema(description = "公司ID")
|
||||
private Long companyId;
|
||||
@Schema(description = "公司名称")
|
||||
private String companyName;
|
||||
@Schema(description = "部门ID")
|
||||
private Long deptId;
|
||||
@Schema(description = "部门名称")
|
||||
private Long postId;
|
||||
@Schema(description = "岗位ID")
|
||||
private Long tenantId;
|
||||
@Schema(description = "创建人名称")
|
||||
private String creatorName;
|
||||
@Schema(description = "更新人名称")
|
||||
private String updaterName;
|
||||
@Schema(description = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
@Schema(description = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
@Schema(description = "删除标志")
|
||||
private int deleted;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.zt.plat.module.plandate.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - ERP月度产品计划核对新增 Request DTO")
|
||||
@Data
|
||||
@Validated
|
||||
public class ErpMonthProductivePlanCheckSaveReqDTO {
|
||||
|
||||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19081")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "产品名")
|
||||
private String product;
|
||||
|
||||
@Schema(description = "年度")
|
||||
private String year;
|
||||
|
||||
@Schema(description = "月份")
|
||||
private String month;
|
||||
|
||||
@Schema(description = "月计划量")
|
||||
private BigDecimal monthPlan;
|
||||
|
||||
@Schema(description = "月计划明细")
|
||||
private List<ErpMonthProductivePlanCheckDetailSaveReqDTO> details;
|
||||
@Schema(description = "公司ID")
|
||||
private Long companyId;
|
||||
@Schema(description = "公司名称")
|
||||
private String companyName;
|
||||
@Schema(description = "部门ID")
|
||||
private Long deptId;
|
||||
@Schema(description = "部门名称")
|
||||
private Long postId;
|
||||
@Schema(description = "岗位ID")
|
||||
private Long tenantId;
|
||||
@Schema(description = "创建人名称")
|
||||
private String creatorName;
|
||||
@Schema(description = "更新人名称")
|
||||
private String updaterName;
|
||||
@Schema(description = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
@Schema(description = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
@Schema(description = "删除标志")
|
||||
private int deleted;
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user