erpBOM、工艺路线代码生成
This commit is contained in:
@@ -8,4 +8,8 @@ public interface ErrorCodeConstants {
|
||||
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_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物料数据不存在");
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -33,7 +33,7 @@ import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
@Tag(name = "管理后台 - ERP公司")
|
||||
@RestController
|
||||
@RequestMapping("/admin/erp/company")
|
||||
@RequestMapping("/sply/erp-company")
|
||||
@Validated
|
||||
public class ErpCompanyController {
|
||||
|
||||
@@ -104,10 +104,10 @@ public class ErpCompanyController {
|
||||
BeanUtils.toBean(list, ErpCompanyRespVO.class));
|
||||
}
|
||||
|
||||
@PostMapping("/callErpRfcInterface")
|
||||
@PostMapping("/getErpCompanyTask")
|
||||
@Operation(summary = "定时获得erp更新公司")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-company:query')")
|
||||
public void callErpRfcInterface() {
|
||||
public void getErpCompanyTask() {
|
||||
erpCompanyService.callErpRfcInterface();
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
@Tag(name = "管理后台 - ERP客商信息")
|
||||
@RestController
|
||||
@RequestMapping("/erp/customer")
|
||||
@RequestMapping("/sply/erp-customer")
|
||||
@Validated
|
||||
public class ErpCustomerController {
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
@Tag(name = "管理后台 - ERP物料信息")
|
||||
@RestController
|
||||
@RequestMapping("/erp/material")
|
||||
@RequestMapping("/sply/erp-material")
|
||||
@Validated
|
||||
public class ErpMaterialController {
|
||||
|
||||
@@ -104,10 +104,10 @@ public class ErpMaterialController {
|
||||
BeanUtils.toBean(list, ErpMaterialRespVO.class));
|
||||
}
|
||||
|
||||
@PostMapping("/callErpRfcInterface")
|
||||
@PostMapping("/getErpMaterialTask")
|
||||
@Operation(summary = "定时获得erp更新公司")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-material:create')")
|
||||
public void callErpRfcInterface() {
|
||||
public void getErpMaterialTask() {
|
||||
erpMaterialService.callErpRfcInterface();
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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
Reference in New Issue
Block a user