生产管理(未完成2)

This commit is contained in:
zc
2026-06-25 15:52:12 +08:00
parent 70b4ce5dde
commit c41aacca71
30 changed files with 484 additions and 424 deletions

View File

@@ -8,11 +8,16 @@ import org.springframework.web.bind.annotation.*;
import lombok.RequiredArgsConstructor;
import top.continew.starter.extension.crud.annotation.CrudRequestMapping;
import top.continew.starter.extension.crud.model.resp.LabelValueResp;
import top.continew.starter.log.annotation.Log;
import top.mes.admin.common.controller.BaseController;
import top.mes.admin.bom.model.query.BomQuery;
import top.mes.admin.bom.model.req.BomReq;
import top.mes.admin.bom.model.resp.BomResp;
import top.mes.admin.bom.service.BomService;
import top.mes.admin.peopleBranch.model.query.PeopleQuery;
import java.util.List;
/**
* BOM物料清单管理 API
@@ -26,4 +31,11 @@ import top.mes.admin.bom.service.BomService;
@CrudRequestMapping(value = "/bom/bom", api = {Api.PAGE, Api.DETAIL, Api.ADD, Api.UPDATE, Api.DELETE, Api.EXPORT})
public class BomController extends BaseController<BomService, BomResp, BomResp, BomQuery, BomReq> {
@Log(ignore = true)
@GetMapping(value = "/getBomSelect")
public List<LabelValueResp> getBomSelect(BomQuery query) {
return baseService.getBomSelect(query);
}
}

View File

@@ -8,12 +8,22 @@ import org.springframework.web.bind.annotation.*;
import lombok.RequiredArgsConstructor;
import top.continew.starter.extension.crud.annotation.CrudRequestMapping;
import top.continew.starter.extension.crud.model.query.PageQuery;
import top.continew.starter.extension.crud.model.resp.PageResp;
import top.continew.starter.log.annotation.Log;
import top.continew.starter.web.model.R;
import top.mes.admin.common.controller.BaseController;
import top.mes.admin.peopleBranch.model.resp.PeopleResp;
import top.mes.admin.process.model.query.ProcessBomQuery;
import top.mes.admin.process.model.query.ProcessQuery;
import top.mes.admin.process.model.req.ProcessBomReq;
import top.mes.admin.process.model.req.ProcessReq;
import top.mes.admin.process.model.resp.ProcessBomResp;
import top.mes.admin.process.model.resp.ProcessResp;
import top.mes.admin.process.service.ProcessService;
import java.util.List;
/**
* 工序基础信息管理 API
*
@@ -26,4 +36,18 @@ import top.mes.admin.process.service.ProcessService;
@CrudRequestMapping(value = "/process/process", api = {Api.PAGE, Api.DETAIL, Api.ADD, Api.UPDATE, Api.DELETE, Api.EXPORT})
public class ProcessController extends BaseController<ProcessService, ProcessResp, ProcessResp, ProcessQuery, ProcessReq> {
@Log(module = "工序BOM保存")
@PostMapping("/saveProcessBom")
public void saveProcessBom(@RequestBody ProcessBomReq processBomReq) {
baseService.saveProcessBom(processBomReq);
}
@Log(ignore = true)
@GetMapping("/getProcessBomPage")
public R getProcessBomPage(ProcessBomQuery query, PageQuery pageQuery) {
PageResp<ProcessBomResp> pageResp = baseService.getProcessBomPage(query, pageQuery);
return R.ok(pageResp);
}
}

View File

@@ -1,19 +1,21 @@
package top.mes.admin.controller.production;
import top.continew.starter.extension.crud.enums.Api;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import top.continew.starter.extension.crud.annotation.CrudRequestMapping;
import top.continew.starter.extension.crud.enums.Api;
import top.continew.starter.extension.crud.model.resp.LabelValueResp;
import top.continew.starter.log.annotation.Log;
import top.mes.admin.common.controller.BaseController;
import top.mes.admin.production.model.query.ProductionLineQuery;
import top.mes.admin.production.model.req.ProductionLineReq;
import top.mes.admin.production.model.resp.ProductionLineResp;
import top.mes.admin.production.service.ProductionLineService;
import java.util.List;
/**
* 产线基础管理 API
*
@@ -26,4 +28,11 @@ import top.mes.admin.production.service.ProductionLineService;
@CrudRequestMapping(value = "/production/productionLine", api = {Api.PAGE, Api.DETAIL, Api.ADD, Api.UPDATE, Api.DELETE, Api.EXPORT})
public class ProductionLineController extends BaseController<ProductionLineService, ProductionLineResp, ProductionLineResp, ProductionLineQuery, ProductionLineReq> {
@Log(ignore = true)
@GetMapping(value = "/getProductionLineSelect")
public List<LabelValueResp> getProductionLineSelect(ProductionLineQuery query) {
return baseService.getProductionLineSelect(query);
}
}