erpBOM、工艺路线代码生成

This commit is contained in:
liss
2025-09-18 17:21:16 +08:00
parent ee18a70745
commit c47c420cce
40 changed files with 2018 additions and 7 deletions

View File

@@ -8,4 +8,8 @@ public interface ErrorCodeConstants {
ErrorCode ERP_CUSTOMER_NOT_EXISTS = new ErrorCode(1_001_000_001, "ERP客商主数据不存在"); ErrorCode ERP_CUSTOMER_NOT_EXISTS = new ErrorCode(1_001_000_001, "ERP客商主数据不存在");
ErrorCode ERP_MATERIAL_NOT_EXISTS = new ErrorCode(1_001_000_002, "ERP物料数据不存在"); ErrorCode ERP_MATERIAL_NOT_EXISTS = new ErrorCode(1_001_000_002, "ERP物料数据不存在");
ErrorCode ERP_COMPANY_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在"); ErrorCode ERP_COMPANY_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_BOM_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_BOM_DETAIL_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_PROCESS_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_PROCESS_DETAIL_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
} }

View File

@@ -33,7 +33,7 @@ import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
@Tag(name = "管理后台 - ERP公司") @Tag(name = "管理后台 - ERP公司")
@RestController @RestController
@RequestMapping("/admin/erp/company") @RequestMapping("/sply/erp-company")
@Validated @Validated
public class ErpCompanyController { public class ErpCompanyController {
@@ -104,10 +104,10 @@ public class ErpCompanyController {
BeanUtils.toBean(list, ErpCompanyRespVO.class)); BeanUtils.toBean(list, ErpCompanyRespVO.class));
} }
@PostMapping("/callErpRfcInterface") @PostMapping("/getErpCompanyTask")
@Operation(summary = "定时获得erp更新公司") @Operation(summary = "定时获得erp更新公司")
@PreAuthorize("@ss.hasPermission('sply:erp-company:query')") @PreAuthorize("@ss.hasPermission('sply:erp-company:query')")
public void callErpRfcInterface() { public void getErpCompanyTask() {
erpCompanyService.callErpRfcInterface(); erpCompanyService.callErpRfcInterface();
} }

View File

@@ -33,7 +33,7 @@ import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
@Tag(name = "管理后台 - ERP客商信息") @Tag(name = "管理后台 - ERP客商信息")
@RestController @RestController
@RequestMapping("/erp/customer") @RequestMapping("/sply/erp-customer")
@Validated @Validated
public class ErpCustomerController { public class ErpCustomerController {

View File

@@ -33,7 +33,7 @@ import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
@Tag(name = "管理后台 - ERP物料信息") @Tag(name = "管理后台 - ERP物料信息")
@RestController @RestController
@RequestMapping("/erp/material") @RequestMapping("/sply/erp-material")
@Validated @Validated
public class ErpMaterialController { public class ErpMaterialController {
@@ -104,10 +104,10 @@ public class ErpMaterialController {
BeanUtils.toBean(list, ErpMaterialRespVO.class)); BeanUtils.toBean(list, ErpMaterialRespVO.class));
} }
@PostMapping("/callErpRfcInterface") @PostMapping("/getErpMaterialTask")
@Operation(summary = "定时获得erp更新公司") @Operation(summary = "定时获得erp更新公司")
@PreAuthorize("@ss.hasPermission('sply:erp-material:create')") @PreAuthorize("@ss.hasPermission('sply:erp-material:create')")
public void callErpRfcInterface() { public void getErpMaterialTask() {
erpMaterialService.callErpRfcInterface(); erpMaterialService.callErpRfcInterface();
} }

View File

@@ -0,0 +1,37 @@
package cn.iocoder.yudao.module.erp.controller.admin.erp.vo;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
@Schema(description = "管理后台 - ERP物料清单(BOM)明细分页 Request VO")
@Data
public class ErpBomDetailPageReqVO extends PageParam {
@Schema(description = "BOM主键", example = "24876")
private String bomId;
@Schema(description = "ERP物料清单主键", example = "14731")
private String erpBomId;
@Schema(description = "子项物料编码")
private String childMaterialNumber;
@Schema(description = "子项物料描述")
private BigDecimal childMaterialDescription;
@Schema(description = "子项类别")
private String category;
@Schema(description = "基本数量")
private BigDecimal quantity;
@Schema(description = "基本单位")
private String unit;
@Schema(description = "物料标识", example = "2")
private String identificationType;
}

View File

@@ -0,0 +1,50 @@
package cn.iocoder.yudao.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import com.alibaba.excel.annotation.*;
@Schema(description = "管理后台 - ERP物料清单(BOM)明细 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpBomDetailRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2110")
@ExcelProperty("主键")
private Long id;
@Schema(description = "BOM主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "24876")
@ExcelProperty("BOM主键")
private String bomId;
@Schema(description = "ERP物料清单主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "14731")
@ExcelProperty("ERP物料清单主键")
private String erpBomId;
@Schema(description = "子项物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("子项物料编码")
private String childMaterialNumber;
@Schema(description = "子项物料描述", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("子项物料描述")
private BigDecimal childMaterialDescription;
@Schema(description = "子项类别", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("子项类别")
private String category;
@Schema(description = "基本数量", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("基本数量")
private BigDecimal quantity;
@Schema(description = "基本单位", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("基本单位")
private String unit;
@Schema(description = "物料标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
@ExcelProperty("物料标识")
private String identificationType;
}

Some files were not shown because too many files have changed in this diff Show More