From bac1ec5b70a7322bdeffe73a9f6ec8f647acd6a2 Mon Sep 17 00:00:00 2001 From: yanyang Date: Fri, 29 Jul 2022 14:19:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basic/controller/FactoryController.java | 14 +- .../basic/controller/MachineController.java | 14 +- .../controller/MeasureToolController.java | 14 +- .../basic/controller/PlatformController.java | 14 +- .../basic/controller/ProductController.java | 125 ++++++++++++++++++ .../ProductFactoryRelationController.java | 116 ++++++++++++++++ .../controller/ProductFeaturesController.java | 12 +- .../ProductFeaturesHisController.java | 12 +- .../controller/ProductTypeController.java | 2 +- ...uctWorkingprocedureRelationController.java | 36 +++-- .../basic/controller/ShiftController.java | 12 +- .../cnbm/basic/controller/TeamController.java | 12 +- .../cnbm/basic/controller/UnitController.java | 14 +- .../WorkingProcedureController.java | 22 ++- .../WorkingProcedureTypeController.java | 14 +- .../java/com/cnbm/basic/dto/FactoryDTO.java | 14 +- .../java/com/cnbm/basic/dto/MachineDTO.java | 16 +-- .../com/cnbm/basic/dto/MeasureToolDTO.java | 14 +- .../java/com/cnbm/basic/dto/PlatformDTO.java | 14 +- .../java/com/cnbm/basic/dto/ProductDTO.java | 85 ++++++++++++ .../basic/dto/ProductFactoryRelationDTO.java | 63 +++++++++ .../cnbm/basic/dto/ProductFeaturesDTO.java | 36 +++-- .../cnbm/basic/dto/ProductFeaturesHisDTO.java | 38 +++--- .../com/cnbm/basic/dto/ProductTypeDTO.java | 13 +- .../ProductWorkingprocedureRelationDTO.java | 26 ++-- .../java/com/cnbm/basic/dto/ShiftDTO.java | 15 +-- .../main/java/com/cnbm/basic/dto/TeamDTO.java | 15 +-- .../main/java/com/cnbm/basic/dto/UnitDTO.java | 15 +-- .../cnbm/basic/dto/WorkingProcedureDTO.java | 17 +-- .../basic/dto/WorkingProcedureTypeDTO.java | 15 +-- .../java/com/cnbm/basic/entity/Factory.java | 13 +- .../java/com/cnbm/basic/entity/Machine.java | 15 +-- .../com/cnbm/basic/entity/MeasureTool.java | 13 +- .../java/com/cnbm/basic/entity/Platform.java | 13 +- .../java/com/cnbm/basic/entity/Product.java | 84 ++++++++++++ .../basic/entity/ProductFactoryRelation.java | 65 +++++++++ .../cnbm/basic/entity/ProductFeatures.java | 34 +++-- .../cnbm/basic/entity/ProductFeaturesHis.java | 36 +++-- .../com/cnbm/basic/entity/ProductType.java | 13 +- .../ProductWorkingprocedureRelation.java | 23 ++-- .../java/com/cnbm/basic/entity/Shift.java | 13 +- .../main/java/com/cnbm/basic/entity/Team.java | 13 +- .../main/java/com/cnbm/basic/entity/Unit.java | 15 +-- .../cnbm/basic/entity/WorkingProcedure.java | 15 +-- .../basic/entity/WorkingProcedureType.java | 13 +- .../com/cnbm/basic/excel/FactoryExcel.java | 13 +- .../com/cnbm/basic/excel/MachineExcel.java | 17 +-- .../cnbm/basic/excel/MeasureToolExcel.java | 15 +-- .../com/cnbm/basic/excel/PlatformExcel.java | 15 +-- .../com/cnbm/basic/excel/ProductExcel.java | 57 ++++++++ .../excel/ProductFactoryRelationExcel.java | 43 ++++++ .../basic/excel/ProductFeaturesExcel.java | 35 +++-- .../basic/excel/ProductFeaturesHisExcel.java | 37 +++--- .../cnbm/basic/excel/ProductTypeExcel.java | 13 +- .../ProductWorkingprocedureRelationExcel.java | 23 ++-- .../java/com/cnbm/basic/excel/ShiftExcel.java | 15 +-- .../java/com/cnbm/basic/excel/TeamExcel.java | 15 +-- .../java/com/cnbm/basic/excel/UnitExcel.java | 15 +-- .../basic/excel/WorkingProcedureExcel.java | 17 +-- .../excel/WorkingProcedureTypeExcel.java | 15 +-- .../mapper/ProductFactoryRelationMapper.java | 16 +++ .../com/cnbm/basic/mapper/ProductMapper.java | 21 +++ .../IProductFactoryRelationService.java | 28 ++++ .../cnbm/basic/service/IProductService.java | 27 ++++ ...roductWorkingprocedureRelationService.java | 6 + .../service/IWorkingProcedureService.java | 3 + .../service/impl/FactoryServiceImpl.java | 5 +- .../service/impl/MachineServiceImpl.java | 5 +- .../service/impl/MeasureToolServiceImpl.java | 5 +- .../service/impl/PlatformServiceImpl.java | 5 +- .../ProductFactoryRelationServiceImpl.java | 74 +++++++++++ .../impl/ProductFeaturesServiceImpl.java | 14 ++ .../service/impl/ProductServiceImpl.java | 101 ++++++++++++++ .../service/impl/ProductTypeServiceImpl.java | 5 +- ...ctWorkingprocedureRelationServiceImpl.java | 43 ++++++ .../basic/service/impl/UnitServiceImpl.java | 5 +- .../impl/WorkingProcedureServiceImpl.java | 27 +++- .../impl/WorkingProcedureTypeServiceImpl.java | 5 +- .../ProductFactoryRelationMapper.xml | 5 + ym-baisc/src/main/resources/ProductMapper.xml | 5 + .../main/resources/WorkingProcedureMapper.xml | 5 + .../ProcessInspectionController.java | 4 +- 82 files changed, 1447 insertions(+), 519 deletions(-) create mode 100644 ym-baisc/src/main/java/com/cnbm/basic/controller/ProductController.java create mode 100644 ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFactoryRelationController.java create mode 100644 ym-baisc/src/main/java/com/cnbm/basic/dto/ProductDTO.java create mode 100644 ym-baisc/src/main/java/com/cnbm/basic/dto/ProductFactoryRelationDTO.java create mode 100644 ym-baisc/src/main/java/com/cnbm/basic/entity/Product.java create mode 100644 ym-baisc/src/main/java/com/cnbm/basic/entity/ProductFactoryRelation.java create mode 100644 ym-baisc/src/main/java/com/cnbm/basic/excel/ProductExcel.java create mode 100644 ym-baisc/src/main/java/com/cnbm/basic/excel/ProductFactoryRelationExcel.java create mode 100644 ym-baisc/src/main/java/com/cnbm/basic/mapper/ProductFactoryRelationMapper.java create mode 100644 ym-baisc/src/main/java/com/cnbm/basic/mapper/ProductMapper.java create mode 100644 ym-baisc/src/main/java/com/cnbm/basic/service/IProductFactoryRelationService.java create mode 100644 ym-baisc/src/main/java/com/cnbm/basic/service/IProductService.java create mode 100644 ym-baisc/src/main/java/com/cnbm/basic/service/impl/ProductFactoryRelationServiceImpl.java create mode 100644 ym-baisc/src/main/java/com/cnbm/basic/service/impl/ProductServiceImpl.java create mode 100644 ym-baisc/src/main/resources/ProductFactoryRelationMapper.xml create mode 100644 ym-baisc/src/main/resources/ProductMapper.xml create mode 100644 ym-baisc/src/main/resources/WorkingProcedureMapper.xml diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/FactoryController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/FactoryController.java index 1c806cf..02e7c41 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/FactoryController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/FactoryController.java @@ -48,7 +48,7 @@ public class FactoryController { @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) }) - @PreAuthorize("@ex.hasAuthority('code:factory:page')") + //@PreAuthorize("@ex.hasAuthority('code:factory:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = factoryService.page(params); @@ -57,7 +57,7 @@ public class FactoryController { @GetMapping("{id}") @ApiOperation("信息") - @PreAuthorize("@ex.hasAuthority('code:factory:info')") + //@PreAuthorize("@ex.hasAuthority('code:factory:info')") public Result get(@PathVariable("id") Long id){ FactoryDTO data = factoryService.get(id); @@ -67,7 +67,7 @@ public class FactoryController { @PostMapping @ApiOperation("保存") @LogOperation("保存") - @PreAuthorize("@ex.hasAuthority('code:factory:save')") + //@PreAuthorize("@ex.hasAuthority('code:factory:save')") public Result save(@RequestBody FactoryDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -80,7 +80,7 @@ public class FactoryController { @PutMapping @ApiOperation("修改") @LogOperation("修改") - @PreAuthorize("@ex.hasAuthority('code:factory:update')") + //@PreAuthorize("@ex.hasAuthority('code:factory:update')") public Result update(@RequestBody FactoryDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -93,7 +93,7 @@ public class FactoryController { @DeleteMapping @ApiOperation("删除") @LogOperation("删除") - @PreAuthorize("@ex.hasAuthority('code:factory:delete')") + //@PreAuthorize("@ex.hasAuthority('code:factory:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -106,14 +106,14 @@ public class FactoryController { @GetMapping("export") @ApiOperation("导出") @LogOperation("导出") - @PreAuthorize("@ex.hasAuthority('code:factory:export')") + //@PreAuthorize("@ex.hasAuthority('code:factory:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = factoryService.list(params); ExcelUtils.exportExcelToTarget(response, null, list, FactoryExcel.class); } - @GetMapping("{statusId}") + @GetMapping("status") @ApiOperation("改变状态") @LogOperation("改变状态") public Result changeStatus(@PathVariable("id") Long id){ diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/MachineController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/MachineController.java index 61c1b3d..e749ca8 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/MachineController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/MachineController.java @@ -48,7 +48,7 @@ public class MachineController { @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) }) - @PreAuthorize("@ex.hasAuthority('code:machine:page')") + //@PreAuthorize("@ex.hasAuthority('code:machine:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = machineService.page(params); @@ -57,7 +57,7 @@ public class MachineController { @GetMapping("{id}") @ApiOperation("信息") - @PreAuthorize("@ex.hasAuthority('code:machine:info')") + //@PreAuthorize("@ex.hasAuthority('code:machine:info')") public Result get(@PathVariable("id") Long id){ MachineDTO data = machineService.get(id); @@ -67,7 +67,7 @@ public class MachineController { @PostMapping @ApiOperation("保存") @LogOperation("保存") - @PreAuthorize("@ex.hasAuthority('code:machine:save')") + //@PreAuthorize("@ex.hasAuthority('code:machine:save')") public Result save(@RequestBody MachineDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -80,7 +80,7 @@ public class MachineController { @PutMapping @ApiOperation("修改") @LogOperation("修改") - @PreAuthorize("@ex.hasAuthority('code:machine:update')") + //@PreAuthorize("@ex.hasAuthority('code:machine:update')") public Result update(@RequestBody MachineDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -93,7 +93,7 @@ public class MachineController { @DeleteMapping @ApiOperation("删除") @LogOperation("删除") - @PreAuthorize("@ex.hasAuthority('code:machine:delete')") + //@PreAuthorize("@ex.hasAuthority('code:machine:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -106,14 +106,14 @@ public class MachineController { @GetMapping("export") @ApiOperation("导出") @LogOperation("导出") - @PreAuthorize("@ex.hasAuthority('code:machine:export')") + //@PreAuthorize("@ex.hasAuthority('code:machine:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = machineService.list(params); ExcelUtils.exportExcelToTarget(response, null, list, MachineExcel.class); } - @GetMapping("{statusId}") + @GetMapping("status") @ApiOperation("改变状态") @LogOperation("改变状态") public Result changeStatus(@PathVariable("id") Long id){ diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/MeasureToolController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/MeasureToolController.java index 142788c..42308fd 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/MeasureToolController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/MeasureToolController.java @@ -48,7 +48,7 @@ public class MeasureToolController { @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) }) - @PreAuthorize("@ex.hasAuthority('code:measureTool:page')") + //@PreAuthorize("@ex.hasAuthority('code:measureTool:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = measureToolService.page(params); @@ -57,7 +57,7 @@ public class MeasureToolController { @GetMapping("{id}") @ApiOperation("信息") - @PreAuthorize("@ex.hasAuthority('code:measureTool:info')") + //@PreAuthorize("@ex.hasAuthority('code:measureTool:info')") public Result get(@PathVariable("id") Long id){ MeasureToolDTO data = measureToolService.get(id); @@ -67,7 +67,7 @@ public class MeasureToolController { @PostMapping @ApiOperation("保存") @LogOperation("保存") - @PreAuthorize("@ex.hasAuthority('code:measureTool:save')") + //@PreAuthorize("@ex.hasAuthority('code:measureTool:save')") public Result save(@RequestBody MeasureToolDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -80,7 +80,7 @@ public class MeasureToolController { @PutMapping @ApiOperation("修改") @LogOperation("修改") - @PreAuthorize("@ex.hasAuthority('code:measureTool:update')") + //@PreAuthorize("@ex.hasAuthority('code:measureTool:update')") public Result update(@RequestBody MeasureToolDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -93,7 +93,7 @@ public class MeasureToolController { @DeleteMapping @ApiOperation("删除") @LogOperation("删除") - @PreAuthorize("@ex.hasAuthority('code:measureTool:delete')") + //@PreAuthorize("@ex.hasAuthority('code:measureTool:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -106,14 +106,14 @@ public class MeasureToolController { @GetMapping("export") @ApiOperation("导出") @LogOperation("导出") - @PreAuthorize("@ex.hasAuthority('code:measureTool:export')") + //@PreAuthorize("@ex.hasAuthority('code:measureTool:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = measureToolService.list(params); ExcelUtils.exportExcelToTarget(response, null, list, MeasureToolExcel.class); } - @GetMapping("{statusId}") + @GetMapping("status") @ApiOperation("改变状态") @LogOperation("改变状态") public Result changeStatus(@PathVariable("id") Long id){ diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/PlatformController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/PlatformController.java index 3b06a3b..a1a39f2 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/PlatformController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/PlatformController.java @@ -48,7 +48,7 @@ public class PlatformController { @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) }) - @PreAuthorize("@ex.hasAuthority('code:platform:page')") + //@PreAuthorize("@ex.hasAuthority('code:platform:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = platformService.page(params); @@ -57,7 +57,7 @@ public class PlatformController { @GetMapping("{id}") @ApiOperation("信息") - @PreAuthorize("@ex.hasAuthority('code:platform:info')") + //@PreAuthorize("@ex.hasAuthority('code:platform:info')") public Result get(@PathVariable("id") Long id){ PlatformDTO data = platformService.get(id); @@ -67,7 +67,7 @@ public class PlatformController { @PostMapping @ApiOperation("保存") @LogOperation("保存") - @PreAuthorize("@ex.hasAuthority('code:platform:save')") + //@PreAuthorize("@ex.hasAuthority('code:platform:save')") public Result save(@RequestBody PlatformDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -80,7 +80,7 @@ public class PlatformController { @PutMapping @ApiOperation("修改") @LogOperation("修改") - @PreAuthorize("@ex.hasAuthority('code:platform:update')") + //@PreAuthorize("@ex.hasAuthority('code:platform:update')") public Result update(@RequestBody PlatformDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -93,7 +93,7 @@ public class PlatformController { @DeleteMapping @ApiOperation("删除") @LogOperation("删除") - @PreAuthorize("@ex.hasAuthority('code:platform:delete')") + //@PreAuthorize("@ex.hasAuthority('code:platform:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -106,14 +106,14 @@ public class PlatformController { @GetMapping("export") @ApiOperation("导出") @LogOperation("导出") - @PreAuthorize("@ex.hasAuthority('code:platform:export')") + //@PreAuthorize("@ex.hasAuthority('code:platform:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = platformService.list(params); ExcelUtils.exportExcelToTarget(response, null, list, PlatformExcel.class); } - @GetMapping("{statusId}") + @GetMapping("status") @ApiOperation("改变状态") @LogOperation("改变状态") public Result changeStatus(@PathVariable("id") Long id){ diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductController.java new file mode 100644 index 0000000..eb5be8c --- /dev/null +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductController.java @@ -0,0 +1,125 @@ +package com.cnbm.basic.controller; + +import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.common.constant.Constant; +import com.cnbm.common.page.PageData; +import com.cnbm.common.utils.ExcelUtils; +import com.cnbm.common.utils.Result; +import com.cnbm.common.validator.AssertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.common.validator.group.UpdateGroup; +import com.cnbm.basic.dto.ProductDTO; +import com.cnbm.basic.excel.ProductExcel; +import com.cnbm.basic.service.IProductService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 产品 表 前端控制器 + * + * @author why + * @since 2022-07-11 + */ +@RestController +@RequestMapping("/code/product") +@Api(tags="产品 表") +public class ProductController { + @Autowired + private IProductService productService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) + }) + //@PreAuthorize("@ex.hasAuthority('code:product:page')") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = productService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") + //@PreAuthorize("@ex.hasAuthority('code:product:info')") + public Result get(@PathVariable("id") Long id){ + ProductDTO data = productService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") + //@PreAuthorize("@ex.hasAuthority('code:product:save')") + public Result save(@RequestBody ProductDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + productService.save(dto); + + return new Result(); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") + //@PreAuthorize("@ex.hasAuthority('code:product:update')") + public Result update(@RequestBody ProductDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + productService.update(dto); + + return new Result(); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") + //@PreAuthorize("@ex.hasAuthority('code:product:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + productService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") + //@PreAuthorize("@ex.hasAuthority('code:product:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = productService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, ProductExcel.class); + } + + @GetMapping("status") + @ApiOperation("改变状态") + @LogOperation("改变状态") + public Result changeStatus(@PathVariable("id") Long id){ + productService.changeStatus(id); + + return new Result(); + } + +} \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFactoryRelationController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFactoryRelationController.java new file mode 100644 index 0000000..b3dc050 --- /dev/null +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFactoryRelationController.java @@ -0,0 +1,116 @@ +package com.cnbm.basic.controller; + +import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.common.constant.Constant; +import com.cnbm.common.page.PageData; +import com.cnbm.common.utils.ExcelUtils; +import com.cnbm.common.utils.Result; +import com.cnbm.common.validator.AssertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.common.validator.group.UpdateGroup; +import com.cnbm.basic.dto.ProductFactoryRelationDTO; +import com.cnbm.basic.excel.ProductFactoryRelationExcel; +import com.cnbm.basic.service.IProductFactoryRelationService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 产品-工厂 关系表 前端控制器 + * + * @author why + * @since 2022-07-27 + */ +@RestController +@RequestMapping("/code/productFactoryRelation") +@Api(tags="产品-工厂 关系表") +public class ProductFactoryRelationController { + @Autowired + private IProductFactoryRelationService productFactoryRelationService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) + }) + //@PreAuthorize("@ex.hasAuthority('code:productFactoryRelation:page')") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = productFactoryRelationService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") + //@PreAuthorize("@ex.hasAuthority('code:productFactoryRelation:info')") + public Result get(@PathVariable("id") Long id){ + ProductFactoryRelationDTO data = productFactoryRelationService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") + //@PreAuthorize("@ex.hasAuthority('code:productFactoryRelation:save')") + public Result save(@RequestBody ProductFactoryRelationDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + productFactoryRelationService.save(dto); + + return new Result(); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") + //@PreAuthorize("@ex.hasAuthority('code:productFactoryRelation:update')") + public Result update(@RequestBody ProductFactoryRelationDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + productFactoryRelationService.update(dto); + + return new Result(); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") + //@PreAuthorize("@ex.hasAuthority('code:productFactoryRelation:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + productFactoryRelationService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") + //@PreAuthorize("@ex.hasAuthority('code:productFactoryRelation:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = productFactoryRelationService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, ProductFactoryRelationExcel.class); + } + +} \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFeaturesController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFeaturesController.java index 5cc20aa..d771514 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFeaturesController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFeaturesController.java @@ -48,7 +48,7 @@ public class ProductFeaturesController { @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) }) - @PreAuthorize("@ex.hasAuthority('code:productFeatures:page')") + //@PreAuthorize("@ex.hasAuthority('code:productFeatures:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = productFeaturesService.page(params); @@ -57,7 +57,7 @@ public class ProductFeaturesController { @GetMapping("{id}") @ApiOperation("信息") - @PreAuthorize("@ex.hasAuthority('code:productFeatures:info')") + //@PreAuthorize("@ex.hasAuthority('code:productFeatures:info')") public Result get(@PathVariable("id") Long id){ ProductFeaturesDTO data = productFeaturesService.get(id); @@ -67,7 +67,7 @@ public class ProductFeaturesController { @PostMapping @ApiOperation("保存") @LogOperation("保存") - @PreAuthorize("@ex.hasAuthority('code:productFeatures:save')") + //@PreAuthorize("@ex.hasAuthority('code:productFeatures:save')") public Result save(@RequestBody ProductFeaturesDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -80,7 +80,7 @@ public class ProductFeaturesController { @PutMapping @ApiOperation("修改") @LogOperation("修改") - @PreAuthorize("@ex.hasAuthority('code:productFeatures:update')") + //@PreAuthorize("@ex.hasAuthority('code:productFeatures:update')") public Result update(@RequestBody ProductFeaturesDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -93,7 +93,7 @@ public class ProductFeaturesController { @DeleteMapping @ApiOperation("删除") @LogOperation("删除") - @PreAuthorize("@ex.hasAuthority('code:productFeatures:delete')") + //@PreAuthorize("@ex.hasAuthority('code:productFeatures:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -106,7 +106,7 @@ public class ProductFeaturesController { @GetMapping("export") @ApiOperation("导出") @LogOperation("导出") - @PreAuthorize("@ex.hasAuthority('code:productFeatures:export')") + //@PreAuthorize("@ex.hasAuthority('code:productFeatures:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = productFeaturesService.list(params); diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFeaturesHisController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFeaturesHisController.java index 50973de..318b38b 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFeaturesHisController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFeaturesHisController.java @@ -48,7 +48,7 @@ public class ProductFeaturesHisController { @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) }) - @PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:page')") + //@PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = productFeaturesHisService.page(params); @@ -57,7 +57,7 @@ public class ProductFeaturesHisController { @GetMapping("{id}") @ApiOperation("信息") - @PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:info')") + //@PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:info')") public Result get(@PathVariable("id") Long id){ ProductFeaturesHisDTO data = productFeaturesHisService.get(id); @@ -67,7 +67,7 @@ public class ProductFeaturesHisController { @PostMapping @ApiOperation("保存") @LogOperation("保存") - @PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:save')") + //@PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:save')") public Result save(@RequestBody ProductFeaturesHisDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -80,7 +80,7 @@ public class ProductFeaturesHisController { @PutMapping @ApiOperation("修改") @LogOperation("修改") - @PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:update')") + //@PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:update')") public Result update(@RequestBody ProductFeaturesHisDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -93,7 +93,7 @@ public class ProductFeaturesHisController { @DeleteMapping @ApiOperation("删除") @LogOperation("删除") - @PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:delete')") + //@PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -106,7 +106,7 @@ public class ProductFeaturesHisController { @GetMapping("export") @ApiOperation("导出") @LogOperation("导出") - @PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:export')") + //@PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = productFeaturesHisService.list(params); diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductTypeController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductTypeController.java index 0a42a12..8674bc9 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductTypeController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductTypeController.java @@ -114,7 +114,7 @@ public class ProductTypeController { ExcelUtils.exportExcelToTarget(response, null, list, ProductTypeExcel.class); } - @GetMapping("{statusId}") + @GetMapping("status") @ApiOperation("改变状态") @LogOperation("改变状态") public Result changeStatus(@PathVariable("id") Long id){ diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductWorkingprocedureRelationController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductWorkingprocedureRelationController.java index 09ceced..b3fdc72 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductWorkingprocedureRelationController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductWorkingprocedureRelationController.java @@ -1,6 +1,7 @@ package com.cnbm.basic.controller; import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.basic.dto.WorkingProcedureDTO; import com.cnbm.common.constant.Constant; import com.cnbm.common.page.PageData; import com.cnbm.common.utils.ExcelUtils; @@ -35,7 +36,7 @@ import java.util.Map; */ @RestController @RequestMapping("/code/productWorkingprocedureRelation") -@Api(tags="工序 表") +@Api(tags="产品-工序 关系表") public class ProductWorkingprocedureRelationController { @Autowired private IProductWorkingprocedureRelationService productWorkingprocedureRelationService; @@ -48,7 +49,7 @@ public class ProductWorkingprocedureRelationController { @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) }) - @PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:page')") + //@PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = productWorkingprocedureRelationService.page(params); @@ -57,17 +58,17 @@ public class ProductWorkingprocedureRelationController { @GetMapping("{id}") @ApiOperation("信息") - @PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:info')") + //@PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:info')") public Result get(@PathVariable("id") Long id){ ProductWorkingprocedureRelationDTO data = productWorkingprocedureRelationService.get(id); return new Result().ok(data); } - @PostMapping + @PostMapping("save") @ApiOperation("保存") @LogOperation("保存") - @PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:save')") + //@PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:save')") public Result save(@RequestBody ProductWorkingprocedureRelationDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -80,7 +81,7 @@ public class ProductWorkingprocedureRelationController { @PutMapping @ApiOperation("修改") @LogOperation("修改") - @PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:update')") + //@PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:update')") public Result update(@RequestBody ProductWorkingprocedureRelationDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -93,7 +94,7 @@ public class ProductWorkingprocedureRelationController { @DeleteMapping @ApiOperation("删除") @LogOperation("删除") - @PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:delete')") + //@PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -106,11 +107,30 @@ public class ProductWorkingprocedureRelationController { @GetMapping("export") @ApiOperation("导出") @LogOperation("导出") - @PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:export')") + //@PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = productWorkingprocedureRelationService.list(params); ExcelUtils.exportExcelToTarget(response, null, list, ProductWorkingprocedureRelationExcel.class); } + @GetMapping("{productId}") + @ApiOperation("查询所有工序 依据产品id") + @LogOperation("查询所有工序 依据产品id") + public Result> getWorkingprocedureByProductId(@PathVariable("productId") Long productId){ + List list = productWorkingprocedureRelationService.getWorkingprocedureByProductId(productId); + return new Result>().ok(list); + } + + @PostMapping("batchInsertWorkingprocedure") + @ApiOperation("添加工序流程") + @LogOperation("添加工序流程") + //@PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:batchInsertWorkingprocedure')") + public Result batchInsertWorkingprocedure(@RequestBody ProductWorkingprocedureRelationDTO[] lists){ + + productWorkingprocedureRelationService.batchInsertWorkingprocedure(lists); + + return new Result(); + } + } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/ShiftController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/ShiftController.java index 4174eaa..948788c 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/ShiftController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/ShiftController.java @@ -48,7 +48,7 @@ public class ShiftController { @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) }) - @PreAuthorize("@ex.hasAuthority('code:shift:page')") + //@PreAuthorize("@ex.hasAuthority('code:shift:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = shiftService.page(params); @@ -57,7 +57,7 @@ public class ShiftController { @GetMapping("{id}") @ApiOperation("信息") - @PreAuthorize("@ex.hasAuthority('code:shift:info')") + //@PreAuthorize("@ex.hasAuthority('code:shift:info')") public Result get(@PathVariable("id") Long id){ ShiftDTO data = shiftService.get(id); @@ -67,7 +67,7 @@ public class ShiftController { @PostMapping @ApiOperation("保存") @LogOperation("保存") - @PreAuthorize("@ex.hasAuthority('code:shift:save')") + //@PreAuthorize("@ex.hasAuthority('code:shift:save')") public Result save(@RequestBody ShiftDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -80,7 +80,7 @@ public class ShiftController { @PutMapping @ApiOperation("修改") @LogOperation("修改") - @PreAuthorize("@ex.hasAuthority('code:shift:update')") + //@PreAuthorize("@ex.hasAuthority('code:shift:update')") public Result update(@RequestBody ShiftDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -93,7 +93,7 @@ public class ShiftController { @DeleteMapping @ApiOperation("删除") @LogOperation("删除") - @PreAuthorize("@ex.hasAuthority('code:shift:delete')") + //@PreAuthorize("@ex.hasAuthority('code:shift:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -106,7 +106,7 @@ public class ShiftController { @GetMapping("export") @ApiOperation("导出") @LogOperation("导出") - @PreAuthorize("@ex.hasAuthority('code:shift:export')") + //@PreAuthorize("@ex.hasAuthority('code:shift:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = shiftService.list(params); diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/TeamController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/TeamController.java index a2df71e..29684fa 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/TeamController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/TeamController.java @@ -48,7 +48,7 @@ public class TeamController { @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) }) - @PreAuthorize("@ex.hasAuthority('code:team:page')") + //@PreAuthorize("@ex.hasAuthority('code:team:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = teamService.page(params); @@ -57,7 +57,7 @@ public class TeamController { @GetMapping("{id}") @ApiOperation("信息") - @PreAuthorize("@ex.hasAuthority('code:team:info')") + //@PreAuthorize("@ex.hasAuthority('code:team:info')") public Result get(@PathVariable("id") Long id){ TeamDTO data = teamService.get(id); @@ -67,7 +67,7 @@ public class TeamController { @PostMapping @ApiOperation("保存") @LogOperation("保存") - @PreAuthorize("@ex.hasAuthority('code:team:save')") + //@PreAuthorize("@ex.hasAuthority('code:team:save')") public Result save(@RequestBody TeamDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -80,7 +80,7 @@ public class TeamController { @PutMapping @ApiOperation("修改") @LogOperation("修改") - @PreAuthorize("@ex.hasAuthority('code:team:update')") + //@PreAuthorize("@ex.hasAuthority('code:team:update')") public Result update(@RequestBody TeamDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -93,7 +93,7 @@ public class TeamController { @DeleteMapping @ApiOperation("删除") @LogOperation("删除") - @PreAuthorize("@ex.hasAuthority('code:team:delete')") + //@PreAuthorize("@ex.hasAuthority('code:team:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -106,7 +106,7 @@ public class TeamController { @GetMapping("export") @ApiOperation("导出") @LogOperation("导出") - @PreAuthorize("@ex.hasAuthority('code:team:export')") + //@PreAuthorize("@ex.hasAuthority('code:team:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = teamService.list(params); diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/UnitController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/UnitController.java index 2de8587..c5b33f8 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/UnitController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/UnitController.java @@ -48,7 +48,7 @@ public class UnitController { @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) }) - @PreAuthorize("@ex.hasAuthority('code:unit:page')") + //@PreAuthorize("@ex.hasAuthority('code:unit:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = unitService.page(params); @@ -57,7 +57,7 @@ public class UnitController { @GetMapping("{id}") @ApiOperation("信息") - @PreAuthorize("@ex.hasAuthority('code:unit:info')") + //@PreAuthorize("@ex.hasAuthority('code:unit:info')") public Result get(@PathVariable("id") Long id){ UnitDTO data = unitService.get(id); @@ -67,7 +67,7 @@ public class UnitController { @PostMapping @ApiOperation("保存") @LogOperation("保存") - @PreAuthorize("@ex.hasAuthority('code:unit:save')") + //@PreAuthorize("@ex.hasAuthority('code:unit:save')") public Result save(@RequestBody UnitDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -80,7 +80,7 @@ public class UnitController { @PutMapping @ApiOperation("修改") @LogOperation("修改") - @PreAuthorize("@ex.hasAuthority('code:unit:update')") + //@PreAuthorize("@ex.hasAuthority('code:unit:update')") public Result update(@RequestBody UnitDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -93,7 +93,7 @@ public class UnitController { @DeleteMapping @ApiOperation("删除") @LogOperation("删除") - @PreAuthorize("@ex.hasAuthority('code:unit:delete')") + //@PreAuthorize("@ex.hasAuthority('code:unit:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -106,14 +106,14 @@ public class UnitController { @GetMapping("export") @ApiOperation("导出") @LogOperation("导出") - @PreAuthorize("@ex.hasAuthority('code:unit:export')") + //@PreAuthorize("@ex.hasAuthority('code:unit:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = unitService.list(params); ExcelUtils.exportExcelToTarget(response, null, list, UnitExcel.class); } - @GetMapping("{statusId}") + @GetMapping("status") @ApiOperation("改变状态") @LogOperation("改变状态") public Result changeStatus(@PathVariable("id") Long id){ diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/WorkingProcedureController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/WorkingProcedureController.java index cb2fc1b..d417e6f 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/WorkingProcedureController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/WorkingProcedureController.java @@ -48,7 +48,7 @@ public class WorkingProcedureController { @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) }) - @PreAuthorize("@ex.hasAuthority('code:workingProcedure:page')") + //@PreAuthorize("@ex.hasAuthority('code:workingProcedure:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = workingProcedureService.page(params); @@ -57,7 +57,7 @@ public class WorkingProcedureController { @GetMapping("{id}") @ApiOperation("信息") - @PreAuthorize("@ex.hasAuthority('code:workingProcedure:info')") + //@PreAuthorize("@ex.hasAuthority('code:workingProcedure:info')") public Result get(@PathVariable("id") Long id){ WorkingProcedureDTO data = workingProcedureService.get(id); @@ -67,7 +67,7 @@ public class WorkingProcedureController { @PostMapping @ApiOperation("保存") @LogOperation("保存") - @PreAuthorize("@ex.hasAuthority('code:workingProcedure:save')") + //@PreAuthorize("@ex.hasAuthority('code:workingProcedure:save')") public Result save(@RequestBody WorkingProcedureDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -80,7 +80,7 @@ public class WorkingProcedureController { @PutMapping @ApiOperation("修改") @LogOperation("修改") - @PreAuthorize("@ex.hasAuthority('code:workingProcedure:update')") + //@PreAuthorize("@ex.hasAuthority('code:workingProcedure:update')") public Result update(@RequestBody WorkingProcedureDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -93,7 +93,7 @@ public class WorkingProcedureController { @DeleteMapping @ApiOperation("删除") @LogOperation("删除") - @PreAuthorize("@ex.hasAuthority('code:workingProcedure:delete')") + //@PreAuthorize("@ex.hasAuthority('code:workingProcedure:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -106,14 +106,14 @@ public class WorkingProcedureController { @GetMapping("export") @ApiOperation("导出") @LogOperation("导出") - @PreAuthorize("@ex.hasAuthority('code:workingProcedure:export')") + //@PreAuthorize("@ex.hasAuthority('code:workingProcedure:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = workingProcedureService.list(params); ExcelUtils.exportExcelToTarget(response, null, list, WorkingProcedureExcel.class); } - @GetMapping("{statusId}") + @GetMapping("status") @ApiOperation("改变状态") @LogOperation("改变状态") public Result changeStatus(@PathVariable("id") Long id){ @@ -122,4 +122,12 @@ public class WorkingProcedureController { return new Result(); } + @GetMapping("getWorkingprocedureByProductId") + @ApiOperation("查询所有工序 依据产品id") + @LogOperation("查询所有工序 依据产品id") + public Result> getWorkingprocedureByProductId(@PathVariable("productId") Long productId){ + List list = workingProcedureService.getWorkingProcedureByProductId(productId); + return new Result>().ok(list); + } + } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/WorkingProcedureTypeController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/WorkingProcedureTypeController.java index a4f0ac1..6d2d9b7 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/WorkingProcedureTypeController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/WorkingProcedureTypeController.java @@ -48,7 +48,7 @@ public class WorkingProcedureTypeController { @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) }) - @PreAuthorize("@ex.hasAuthority('code:workingProcedureType:page')") + //@PreAuthorize("@ex.hasAuthority('code:workingProcedureType:page')") public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = workingProcedureTypeService.page(params); @@ -57,7 +57,7 @@ public class WorkingProcedureTypeController { @GetMapping("{id}") @ApiOperation("信息") - @PreAuthorize("@ex.hasAuthority('code:workingProcedureType:info')") + //@PreAuthorize("@ex.hasAuthority('code:workingProcedureType:info')") public Result get(@PathVariable("id") Long id){ WorkingProcedureTypeDTO data = workingProcedureTypeService.get(id); @@ -67,7 +67,7 @@ public class WorkingProcedureTypeController { @PostMapping @ApiOperation("保存") @LogOperation("保存") - @PreAuthorize("@ex.hasAuthority('code:workingProcedureType:save')") + //@PreAuthorize("@ex.hasAuthority('code:workingProcedureType:save')") public Result save(@RequestBody WorkingProcedureTypeDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); @@ -80,7 +80,7 @@ public class WorkingProcedureTypeController { @PutMapping @ApiOperation("修改") @LogOperation("修改") - @PreAuthorize("@ex.hasAuthority('code:workingProcedureType:update')") + //@PreAuthorize("@ex.hasAuthority('code:workingProcedureType:update')") public Result update(@RequestBody WorkingProcedureTypeDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); @@ -93,7 +93,7 @@ public class WorkingProcedureTypeController { @DeleteMapping @ApiOperation("删除") @LogOperation("删除") - @PreAuthorize("@ex.hasAuthority('code:workingProcedureType:delete')") + //@PreAuthorize("@ex.hasAuthority('code:workingProcedureType:delete')") public Result delete(@RequestBody Long[] ids){ //效验数据 AssertUtils.isArrayEmpty(ids, "id"); @@ -106,14 +106,14 @@ public class WorkingProcedureTypeController { @GetMapping("export") @ApiOperation("导出") @LogOperation("导出") - @PreAuthorize("@ex.hasAuthority('code:workingProcedureType:export')") + //@PreAuthorize("@ex.hasAuthority('code:workingProcedureType:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = workingProcedureTypeService.list(params); ExcelUtils.exportExcelToTarget(response, null, list, WorkingProcedureTypeExcel.class); } - @GetMapping("{statusId}") + @GetMapping("status") @ApiOperation("改变状态") @LogOperation("改变状态") public Result changeStatus(@PathVariable("id") Long id){ diff --git a/ym-baisc/src/main/java/com/cnbm/basic/dto/FactoryDTO.java b/ym-baisc/src/main/java/com/cnbm/basic/dto/FactoryDTO.java index f338765..cb519cb 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/dto/FactoryDTO.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/dto/FactoryDTO.java @@ -7,8 +7,6 @@ import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; -import java.math.BigDecimal; - /** * 工厂 表 @@ -24,7 +22,7 @@ public class FactoryDTO implements Serializable { @ApiModelProperty(value = "ID") - private BigDecimal id; + private Long id; @ApiModelProperty(value = "工厂 名") private String name; @@ -42,16 +40,16 @@ public class FactoryDTO implements Serializable { private String type; @ApiModelProperty(value = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty(value = "创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty(value = "创建人姓名") private String creatorName; @@ -60,7 +58,7 @@ public class FactoryDTO implements Serializable { private LocalDateTime createTime; @ApiModelProperty(value = "更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty(value = "更新人姓名") private String updaterName; @@ -69,6 +67,6 @@ public class FactoryDTO implements Serializable { private LocalDateTime updateTime; @ApiModelProperty(value = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/dto/MachineDTO.java b/ym-baisc/src/main/java/com/cnbm/basic/dto/MachineDTO.java index 68a58ed..d444b37 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/dto/MachineDTO.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/dto/MachineDTO.java @@ -7,8 +7,6 @@ import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; -import java.math.BigDecimal; - /** * 机台表 @@ -24,7 +22,7 @@ public class MachineDTO implements Serializable { @ApiModelProperty(value = "ID") - private BigDecimal id; + private Long id; @ApiModelProperty(value = "机台名") private String name; @@ -33,22 +31,22 @@ public class MachineDTO implements Serializable { private String code; @ApiModelProperty(value = "机台id,关联platform id") - private BigDecimal platformId; + private Long platformId; @ApiModelProperty(value = "机台名称,关联platform id") private String platformName; @ApiModelProperty(value = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty(value = "创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty(value = "创建人姓名") private String creatorName; @@ -57,7 +55,7 @@ public class MachineDTO implements Serializable { private LocalDateTime createTime; @ApiModelProperty(value = "更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty(value = "更新人姓名") private String updaterName; @@ -66,6 +64,6 @@ public class MachineDTO implements Serializable { private LocalDateTime updateTime; @ApiModelProperty(value = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/dto/MeasureToolDTO.java b/ym-baisc/src/main/java/com/cnbm/basic/dto/MeasureToolDTO.java index ecbb107..6414127 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/dto/MeasureToolDTO.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/dto/MeasureToolDTO.java @@ -7,8 +7,6 @@ import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; -import java.math.BigDecimal; - /** * 量具表 @@ -24,7 +22,7 @@ public class MeasureToolDTO implements Serializable { @ApiModelProperty(value = "ID") - private BigDecimal id; + private Long id; @ApiModelProperty(value = "量具 名") private String name; @@ -36,16 +34,16 @@ public class MeasureToolDTO implements Serializable { private String type; @ApiModelProperty(value = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty(value = "创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty(value = "创建人姓名") private String creatorName; @@ -54,7 +52,7 @@ public class MeasureToolDTO implements Serializable { private LocalDateTime createTime; @ApiModelProperty(value = "更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty(value = "更新人姓名") private String updaterName; @@ -63,6 +61,6 @@ public class MeasureToolDTO implements Serializable { private LocalDateTime updateTime; @ApiModelProperty(value = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/dto/PlatformDTO.java b/ym-baisc/src/main/java/com/cnbm/basic/dto/PlatformDTO.java index 9c71d58..58ec213 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/dto/PlatformDTO.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/dto/PlatformDTO.java @@ -7,8 +7,6 @@ import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; -import java.math.BigDecimal; - /** * 站点表 @@ -24,7 +22,7 @@ public class PlatformDTO implements Serializable { @ApiModelProperty(value = "ID") - private BigDecimal id; + private Long id; @ApiModelProperty(value = "站台名") private String name; @@ -36,16 +34,16 @@ public class PlatformDTO implements Serializable { private String group; @ApiModelProperty(value = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty(value = "创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty(value = "创建人姓名") private String creatorName; @@ -54,7 +52,7 @@ public class PlatformDTO implements Serializable { private LocalDateTime createTime; @ApiModelProperty(value = "更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty(value = "更新人姓名") private String updaterName; @@ -63,6 +61,6 @@ public class PlatformDTO implements Serializable { private LocalDateTime updateTime; @ApiModelProperty(value = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductDTO.java b/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductDTO.java new file mode 100644 index 0000000..abd5d4e --- /dev/null +++ b/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductDTO.java @@ -0,0 +1,85 @@ +package com.cnbm.basic.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * 产品 表 + * + * @author why + * @since 2022-07-11 + */ +@Data +@ApiModel(value = "产品 表DTO对象") +public class ProductDTO implements Serializable { + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "ID") + private Long id; + + @ApiModelProperty(value = "产品 名") + private String name; + + @ApiModelProperty(value = "产品 编码") + private String code; + + @ApiModelProperty(value = "产品 规格") + private String specifications; + + @ApiModelProperty(value = "产品 图纸") + private String drawing; + + @ApiModelProperty(value = "描述") + private String descs; + + @ApiModelProperty(value = "产品类型id,关联product_type表") + private Long productTypeId; + + @ApiModelProperty(value = "产品类型 名,product_type表") + private String productType; + + @ApiModelProperty(value = "单位 id,关联unit表") + private Long unitId; + + @ApiModelProperty(value = "检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验;; 如果有多个用逗号隔开,比如 1,4 就代表选中了进货检验和出货检验") + private String inspectionStage; + + @ApiModelProperty(value = "检验标准") + private String inspectionStandard; + + @ApiModelProperty(value = "1 可用,0 不可用") + private Integer status; + + @ApiModelProperty(value = "备注") + private String remark; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "创建人") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新人") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductFactoryRelationDTO.java b/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductFactoryRelationDTO.java new file mode 100644 index 0000000..fce2c71 --- /dev/null +++ b/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductFactoryRelationDTO.java @@ -0,0 +1,63 @@ +package com.cnbm.basic.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * 产品-工厂 关系表 + * + * @author why + * @since 2022-07-27 + */ +@Data +@ApiModel(value = "产品-工厂 关系表DTO对象") +public class ProductFactoryRelationDTO implements Serializable { + private static final long serialVersionUID = 1L; + + + + @ApiModelProperty(value = "ID") + private Long id; + + @ApiModelProperty(value = "产品id,关联product表") + private Long productId; + + @ApiModelProperty(value = "工厂id,关联 factory 表") + private Long factoryId; + + @ApiModelProperty(value = "1 可用,0 不可用") + private Integer status; + + @ApiModelProperty(value = "备注") + private String remark; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "创建人") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新人") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductFeaturesDTO.java b/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductFeaturesDTO.java index 807a15d..a85e456 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductFeaturesDTO.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductFeaturesDTO.java @@ -7,9 +7,6 @@ import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; -import java.math.BigDecimal; - - /** * 产品特性 表 * @@ -24,16 +21,16 @@ public class ProductFeaturesDTO implements Serializable { @ApiModelProperty(value = "ID") - private BigDecimal id; + private Long id; @ApiModelProperty(value = "产品id,关联product表") - private BigDecimal productId; + private Long productId; @ApiModelProperty(value = "量具id,关联measure_tool表") - private BigDecimal measureToolId; + private Long measureToolId; @ApiModelProperty(value = "单位 id,关联unit表") - private BigDecimal unitId; + private Long unitId; @ApiModelProperty(value = "产品特性 名") private String name; @@ -42,10 +39,10 @@ public class ProductFeaturesDTO implements Serializable { private String code; @ApiModelProperty(value = "产品特性类型:1 计量型;2 计数型") - private BigDecimal type; + private Integer type; @ApiModelProperty(value = "缺陷等级:1 致命缺陷;2 严重缺陷;3.轻微缺陷") - private BigDecimal defectLevel; + private Integer defectLevel; @ApiModelProperty(value = "产品特性 规格") private String specifications; @@ -60,25 +57,22 @@ public class ProductFeaturesDTO implements Serializable { private Float usl; @ApiModelProperty(value = "工序id,关联 working_procedure 表id") - private BigDecimal workingProcedureId; + private Long workingProcedureId; @ApiModelProperty(value = "分析图形,关联control_graph表id") - private BigDecimal controlGraphId; - - @ApiModelProperty(value = "(如果为空就代表4个阶段都不是)检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验;;如果有多个用逗号隔开,比如 1,4 就代表选中了进货检验和出货检验") - private BigDecimal inspectionStage; + private Long controlGraphId; @ApiModelProperty(value = "是否需要spc分析,1 yes;0 no") - private BigDecimal isSpc; + private Integer isSpc; @ApiModelProperty(value = "样本大小,一般2-25之间。 会依据这个size 把所有待分析的数据 组成一个一个样本") - private BigDecimal sampleSize; + private Integer sampleSize; @ApiModelProperty(value = "采样频率,只用于展示") private String samplingFrequency; @ApiModelProperty(value = "小数位数(限制 检验参数小数点后面位数),这个先放着后续再说。") - private BigDecimal decimalPlaces; + private Integer decimalPlaces; @ApiModelProperty(value = "目标cpk") private Float targetCpk; @@ -90,10 +84,10 @@ public class ProductFeaturesDTO implements Serializable { private String remark; @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty(value = "创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty(value = "创建人姓名") private String creatorName; @@ -102,7 +96,7 @@ public class ProductFeaturesDTO implements Serializable { private LocalDateTime createTime; @ApiModelProperty(value = "更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty(value = "更新人姓名") private String updaterName; @@ -111,6 +105,6 @@ public class ProductFeaturesDTO implements Serializable { private LocalDateTime updateTime; @ApiModelProperty(value = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductFeaturesHisDTO.java b/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductFeaturesHisDTO.java index bced95a..6783a99 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductFeaturesHisDTO.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductFeaturesHisDTO.java @@ -7,9 +7,6 @@ import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; -import java.math.BigDecimal; - - /** * 产品特性 历史表 * @@ -24,13 +21,13 @@ public class ProductFeaturesHisDTO implements Serializable { @ApiModelProperty(value = "ID") - private BigDecimal id; + private Long id; @ApiModelProperty(value = "产品特性id,关联product_features表") - private BigDecimal productFeaturesId; + private Long productFeaturesId; @ApiModelProperty(value = "产品id,关联product表") - private BigDecimal productId; + private Long productId; @ApiModelProperty(value = "产品特性 名") private String name; @@ -39,16 +36,16 @@ public class ProductFeaturesHisDTO implements Serializable { private String code; @ApiModelProperty(value = "产品特性类型:1 计量型;2 计数型") - private BigDecimal type; + private Integer type; @ApiModelProperty(value = "缺陷等级:1 致命缺陷;2 严重缺陷;3.轻微缺陷") - private BigDecimal defectLevel; + private Integer defectLevel; @ApiModelProperty(value = "量具id,关联measure_tool表") - private BigDecimal measureToolId; + private Long measureToolId; @ApiModelProperty(value = "单位 id,关联unit表") - private BigDecimal unitId; + private Long unitId; @ApiModelProperty(value = "产品特性 规格") private String specifications; @@ -63,25 +60,22 @@ public class ProductFeaturesHisDTO implements Serializable { private Float usl; @ApiModelProperty(value = "工序id,关联 working_procedure 表id") - private BigDecimal workingProcedureId; - - @ApiModelProperty(value = "(如果为空就代表4个阶段都不是)检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验;;如果有多个用逗号隔开,比如 1,4 就代表选中了进货检验和出货检验") - private BigDecimal inspectionStage; + private Long workingProcedureId; @ApiModelProperty(value = "是否需要spc分析,1 yes;0 no") - private BigDecimal isSpc; + private Integer isSpc; @ApiModelProperty(value = "分析图形,关联control_graph表id") - private BigDecimal controlGraphId; + private Long controlGraphId; @ApiModelProperty(value = "样本大小,一般2-25之间。 会依据这个size 把所有待分析的数据 组成一个一个样本") - private BigDecimal sampleSize; + private Integer sampleSize; @ApiModelProperty(value = "采样频率,只用于展示") private String samplingFrequency; @ApiModelProperty(value = "小数位数(限制 检验参数小数点后面位数),这个先放着后续再说。") - private BigDecimal decimalPlaces; + private Integer decimalPlaces; @ApiModelProperty(value = "目标cpk") private Float targetCpk; @@ -93,10 +87,10 @@ public class ProductFeaturesHisDTO implements Serializable { private String remark; @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty(value = "创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty(value = "创建人姓名") private String creatorName; @@ -105,7 +99,7 @@ public class ProductFeaturesHisDTO implements Serializable { private LocalDateTime createTime; @ApiModelProperty(value = "更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty(value = "更新人姓名") private String updaterName; @@ -114,6 +108,6 @@ public class ProductFeaturesHisDTO implements Serializable { private LocalDateTime updateTime; @ApiModelProperty(value = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductTypeDTO.java b/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductTypeDTO.java index cd0b176..017634c 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductTypeDTO.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductTypeDTO.java @@ -5,7 +5,6 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; -import java.math.BigDecimal; import java.time.LocalDateTime; @@ -21,7 +20,7 @@ public class ProductTypeDTO implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty(value = "ID") - private BigDecimal id; + private Long id; @ApiModelProperty(value = "产品类型 名") private String name; @@ -33,16 +32,16 @@ public class ProductTypeDTO implements Serializable { private String desc; @ApiModelProperty(value = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty(value = "创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty(value = "创建人姓名") private String creatorName; @@ -51,7 +50,7 @@ public class ProductTypeDTO implements Serializable { private LocalDateTime createTime; @ApiModelProperty(value = "更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty(value = "更新人姓名") private String updaterName; @@ -60,6 +59,6 @@ public class ProductTypeDTO implements Serializable { private LocalDateTime updateTime; @ApiModelProperty(value = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductWorkingprocedureRelationDTO.java b/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductWorkingprocedureRelationDTO.java index 9e05914..c6a2e6f 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductWorkingprocedureRelationDTO.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/dto/ProductWorkingprocedureRelationDTO.java @@ -7,8 +7,6 @@ import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; -import java.math.BigDecimal; - /** * 工序 表 @@ -24,31 +22,31 @@ public class ProductWorkingprocedureRelationDTO implements Serializable { @ApiModelProperty(value = "ID") - private BigDecimal id; + private Long id; @ApiModelProperty(value = "产品id,关联product表") - private BigDecimal productId; + private Long productId; @ApiModelProperty(value = "工序id,关联 working_procedure 表") - private BigDecimal workingProcedureId; + private Long workingProcedureId; + + @ApiModelProperty(value = "工序名称,关联 working_procedure 表") + private String workingProcedureName; @ApiModelProperty(value = "顺序,工序是有先后顺序的。") - private BigDecimal order; - - @ApiModelProperty(value = "检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验;;如果有多个用逗号隔开,比如 1,4 就代表选中了进货检验和出货检验") - private BigDecimal inspectionStage; + private Integer order; @ApiModelProperty(value = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty(value = "创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty(value = "创建人姓名") private String creatorName; @@ -57,7 +55,7 @@ public class ProductWorkingprocedureRelationDTO implements Serializable { private LocalDateTime createTime; @ApiModelProperty(value = "更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty(value = "更新人姓名") private String updaterName; @@ -66,6 +64,6 @@ public class ProductWorkingprocedureRelationDTO implements Serializable { private LocalDateTime updateTime; @ApiModelProperty(value = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/dto/ShiftDTO.java b/ym-baisc/src/main/java/com/cnbm/basic/dto/ShiftDTO.java index e0d80f4..570a43a 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/dto/ShiftDTO.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/dto/ShiftDTO.java @@ -7,9 +7,6 @@ import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; -import java.math.BigDecimal; - - /** * 班次 表 * @@ -24,7 +21,7 @@ public class ShiftDTO implements Serializable { @ApiModelProperty(value = "ID") - private BigDecimal id; + private Long id; @ApiModelProperty(value = "班次 名") private String name; @@ -36,16 +33,16 @@ public class ShiftDTO implements Serializable { private String descs; @ApiModelProperty(value = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty(value = "创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty(value = "创建人姓名") private String creatorName; @@ -54,7 +51,7 @@ public class ShiftDTO implements Serializable { private LocalDateTime createTime; @ApiModelProperty(value = "更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty(value = "更新人姓名") private String updaterName; @@ -63,6 +60,6 @@ public class ShiftDTO implements Serializable { private LocalDateTime updateTime; @ApiModelProperty(value = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/dto/TeamDTO.java b/ym-baisc/src/main/java/com/cnbm/basic/dto/TeamDTO.java index 50f92cc..ccfb6b9 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/dto/TeamDTO.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/dto/TeamDTO.java @@ -7,9 +7,6 @@ import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; -import java.math.BigDecimal; - - /** * 班组 表 * @@ -24,7 +21,7 @@ public class TeamDTO implements Serializable { @ApiModelProperty(value = "ID") - private BigDecimal id; + private Long id; @ApiModelProperty(value = "班组 名") private String name; @@ -36,16 +33,16 @@ public class TeamDTO implements Serializable { private String descs; @ApiModelProperty(value = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty(value = "创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty(value = "创建人姓名") private String creatorName; @@ -54,7 +51,7 @@ public class TeamDTO implements Serializable { private LocalDateTime createTime; @ApiModelProperty(value = "更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty(value = "更新人姓名") private String updaterName; @@ -63,6 +60,6 @@ public class TeamDTO implements Serializable { private LocalDateTime updateTime; @ApiModelProperty(value = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/dto/UnitDTO.java b/ym-baisc/src/main/java/com/cnbm/basic/dto/UnitDTO.java index 32be27d..3544013 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/dto/UnitDTO.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/dto/UnitDTO.java @@ -5,7 +5,6 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; -import java.math.BigDecimal; import java.time.LocalDateTime; @@ -23,7 +22,7 @@ public class UnitDTO implements Serializable { @ApiModelProperty(value = "ID") - private BigDecimal id; + private Long id; @ApiModelProperty(value = "单位 名") private String name; @@ -32,19 +31,19 @@ public class UnitDTO implements Serializable { private String code; @ApiModelProperty(value = "单位类型,1 可计数,2 不可计数") - private BigDecimal type; + private Integer type; @ApiModelProperty(value = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty(value = "创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty(value = "创建人姓名") private String creatorName; @@ -53,7 +52,7 @@ public class UnitDTO implements Serializable { private LocalDateTime createTime; @ApiModelProperty(value = "更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty(value = "更新人姓名") private String updaterName; @@ -62,6 +61,6 @@ public class UnitDTO implements Serializable { private LocalDateTime updateTime; @ApiModelProperty(value = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/dto/WorkingProcedureDTO.java b/ym-baisc/src/main/java/com/cnbm/basic/dto/WorkingProcedureDTO.java index 280ff14..7c02a4b 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/dto/WorkingProcedureDTO.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/dto/WorkingProcedureDTO.java @@ -7,9 +7,6 @@ import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; -import java.math.BigDecimal; - - /** * 工序 表 * @@ -24,7 +21,7 @@ public class WorkingProcedureDTO implements Serializable { @ApiModelProperty(value = "ID") - private BigDecimal id; + private Long id; @ApiModelProperty(value = "工序 名") private String name; @@ -33,7 +30,7 @@ public class WorkingProcedureDTO implements Serializable { private String code; @ApiModelProperty(value = "工序类型 id,关联working_procedure_type表") - private BigDecimal workingProcedureTypeId; + private Long workingProcedureTypeId; @ApiModelProperty(value = "工序类型 名,关联working_procedure_type表") private String workingProcedureTypeName; @@ -45,16 +42,16 @@ public class WorkingProcedureDTO implements Serializable { private String machineName; @ApiModelProperty(value = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty(value = "创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty(value = "创建人姓名") private String creatorName; @@ -63,7 +60,7 @@ public class WorkingProcedureDTO implements Serializable { private LocalDateTime createTime; @ApiModelProperty(value = "更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty(value = "更新人姓名") private String updaterName; @@ -72,6 +69,6 @@ public class WorkingProcedureDTO implements Serializable { private LocalDateTime updateTime; @ApiModelProperty(value = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/dto/WorkingProcedureTypeDTO.java b/ym-baisc/src/main/java/com/cnbm/basic/dto/WorkingProcedureTypeDTO.java index 3cc839d..243313a 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/dto/WorkingProcedureTypeDTO.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/dto/WorkingProcedureTypeDTO.java @@ -7,9 +7,6 @@ import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; -import java.math.BigDecimal; - - /** * 工序类型表 表 * @@ -24,7 +21,7 @@ public class WorkingProcedureTypeDTO implements Serializable { @ApiModelProperty(value = "ID") - private BigDecimal id; + private Long id; @ApiModelProperty(value = "工序类型 名") private String name; @@ -33,16 +30,16 @@ public class WorkingProcedureTypeDTO implements Serializable { private String code; @ApiModelProperty(value = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty(value = "创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty(value = "创建人姓名") private String creatorName; @@ -51,7 +48,7 @@ public class WorkingProcedureTypeDTO implements Serializable { private LocalDateTime createTime; @ApiModelProperty(value = "更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty(value = "更新人姓名") private String updaterName; @@ -60,6 +57,6 @@ public class WorkingProcedureTypeDTO implements Serializable { private LocalDateTime updateTime; @ApiModelProperty(value = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/entity/Factory.java b/ym-baisc/src/main/java/com/cnbm/basic/entity/Factory.java index f5cc713..2453db7 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/entity/Factory.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/entity/Factory.java @@ -1,7 +1,6 @@ package com.cnbm.basic.entity; import java.io.Serializable; -import java.math.BigDecimal; import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -22,7 +21,7 @@ public class Factory implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty("ID") - private BigDecimal id; + private Long id; @ApiModelProperty("工厂 名") private String name; @@ -40,16 +39,16 @@ public class Factory implements Serializable { private String type; @ApiModelProperty("1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty("备注") private String remark; @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty("创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty("创建人姓名") private String creatorName; @@ -58,7 +57,7 @@ public class Factory implements Serializable { private LocalDateTime createTime; @ApiModelProperty("更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty("更新人姓名") private String updaterName; @@ -67,7 +66,7 @@ public class Factory implements Serializable { private LocalDateTime updateTime; @ApiModelProperty("版本号") - private BigDecimal version; + private Integer version; } diff --git a/ym-baisc/src/main/java/com/cnbm/basic/entity/Machine.java b/ym-baisc/src/main/java/com/cnbm/basic/entity/Machine.java index ecb81a6..69a50c9 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/entity/Machine.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/entity/Machine.java @@ -1,7 +1,6 @@ package com.cnbm.basic.entity; import java.io.Serializable; -import java.math.BigDecimal; import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -22,7 +21,7 @@ public class Machine implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty("ID") - private BigDecimal id; + private Long id; @ApiModelProperty("机台名") private String name; @@ -31,19 +30,19 @@ public class Machine implements Serializable { private String code; @ApiModelProperty("机台id,关联platform id") - private BigDecimal platformId; + private Long platformId; @ApiModelProperty("1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty("备注") private String remark; @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty("创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty("创建人姓名") private String creatorName; @@ -52,7 +51,7 @@ public class Machine implements Serializable { private LocalDateTime createTime; @ApiModelProperty("更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty("更新人姓名") private String updaterName; @@ -61,7 +60,7 @@ public class Machine implements Serializable { private LocalDateTime updateTime; @ApiModelProperty("版本号") - private BigDecimal version; + private Integer version; } diff --git a/ym-baisc/src/main/java/com/cnbm/basic/entity/MeasureTool.java b/ym-baisc/src/main/java/com/cnbm/basic/entity/MeasureTool.java index 2f1dc65..89ae5c7 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/entity/MeasureTool.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/entity/MeasureTool.java @@ -2,7 +2,6 @@ package com.cnbm.basic.entity; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; -import java.math.BigDecimal; import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -24,7 +23,7 @@ public class MeasureTool implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty("ID") - private BigDecimal id; + private Long id; @ApiModelProperty("量具 名") private String name; @@ -36,16 +35,16 @@ public class MeasureTool implements Serializable { private String type; @ApiModelProperty("1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty("备注") private String remark; @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty("创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty("创建人姓名") private String creatorName; @@ -54,7 +53,7 @@ public class MeasureTool implements Serializable { private LocalDateTime createTime; @ApiModelProperty("更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty("更新人姓名") private String updaterName; @@ -63,7 +62,7 @@ public class MeasureTool implements Serializable { private LocalDateTime updateTime; @ApiModelProperty("版本号") - private BigDecimal version; + private Integer version; } diff --git a/ym-baisc/src/main/java/com/cnbm/basic/entity/Platform.java b/ym-baisc/src/main/java/com/cnbm/basic/entity/Platform.java index e56130d..3433bcf 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/entity/Platform.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/entity/Platform.java @@ -1,7 +1,6 @@ package com.cnbm.basic.entity; import java.io.Serializable; -import java.math.BigDecimal; import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -22,7 +21,7 @@ public class Platform implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty("ID") - private BigDecimal id; + private Long id; @ApiModelProperty("站台名") private String name; @@ -34,16 +33,16 @@ public class Platform implements Serializable { private String group; @ApiModelProperty("1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty("备注") private String remark; @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty("创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty("创建人姓名") private String creatorName; @@ -52,7 +51,7 @@ public class Platform implements Serializable { private LocalDateTime createTime; @ApiModelProperty("更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty("更新人姓名") private String updaterName; @@ -61,7 +60,7 @@ public class Platform implements Serializable { private LocalDateTime updateTime; @ApiModelProperty("版本号") - private BigDecimal version; + private Integer version; } diff --git a/ym-baisc/src/main/java/com/cnbm/basic/entity/Product.java b/ym-baisc/src/main/java/com/cnbm/basic/entity/Product.java new file mode 100644 index 0000000..f171a26 --- /dev/null +++ b/ym-baisc/src/main/java/com/cnbm/basic/entity/Product.java @@ -0,0 +1,84 @@ +package com.cnbm.basic.entity; + +import java.io.Serializable; +import java.time.LocalDateTime; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * 产品 表 + *

+ * + * @author why + * @since 2022-07-11 + */ +@Data +@ApiModel(value = "Product对象", description = "产品 表") +public class Product implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("ID") + private Long id; + + @ApiModelProperty("产品 名") + private String name; + + @ApiModelProperty("产品 编码") + private String code; + + @ApiModelProperty("产品 规格") + private String specifications; + + @ApiModelProperty("产品 图纸") + private String drawing; + + @ApiModelProperty("描述") + private String descs; + + @ApiModelProperty("产品类型id,关联product_type表") + private Long productTypeId; + + @ApiModelProperty("单位 id,关联unit表") + private Long unitId; + + @ApiModelProperty("检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验;; 如果有多个用逗号隔开,比如 1,4 就代表选中了进货检验和出货检验") + private String inspectionStage; + + @ApiModelProperty("检验标准") + private String inspectionStandard; + + @ApiModelProperty("1 可用,0 不可用") + private Integer status; + + @ApiModelProperty("备注") + private String remark; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty("创建人") + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新人") + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + +} diff --git a/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductFactoryRelation.java b/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductFactoryRelation.java new file mode 100644 index 0000000..43fb554 --- /dev/null +++ b/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductFactoryRelation.java @@ -0,0 +1,65 @@ +package com.cnbm.basic.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.time.LocalDateTime; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * 产品-工厂 关系表 + *

+ * + * @author why + * @since 2022-07-27 + */ +@Data +@TableName("product_factory_relation") +@ApiModel(value = "ProductFactoryRelation对象", description = "产品-工厂 关系表") +public class ProductFactoryRelation implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("ID") + private Long id; + + @ApiModelProperty("产品id,关联product表") + private Long productId; + + @ApiModelProperty("工厂id,关联 factory 表") + private Long factoryId; + + @ApiModelProperty("1 可用,0 不可用") + private Integer status; + + @ApiModelProperty("备注") + private String remark; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty("创建人") + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新人") + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + +} diff --git a/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductFeatures.java b/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductFeatures.java index bbc6bf0..3ad96a1 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductFeatures.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductFeatures.java @@ -2,7 +2,6 @@ package com.cnbm.basic.entity; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; -import java.math.BigDecimal; import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -24,16 +23,16 @@ public class ProductFeatures implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty("ID") - private BigDecimal id; + private Long id; @ApiModelProperty("产品id,关联product表") - private BigDecimal productId; + private Long productId; @ApiModelProperty("量具id,关联measure_tool表") - private BigDecimal measureToolId; + private Long measureToolId; @ApiModelProperty("单位 id,关联unit表") - private BigDecimal unitId; + private Long unitId; @ApiModelProperty("产品特性 名") private String name; @@ -42,10 +41,10 @@ public class ProductFeatures implements Serializable { private String code; @ApiModelProperty("产品特性类型:1 计量型;2 计数型") - private BigDecimal type; + private Integer type; @ApiModelProperty("缺陷等级:1 致命缺陷;2 严重缺陷;3.轻微缺陷") - private BigDecimal defectLevel; + private Integer defectLevel; @ApiModelProperty("产品特性 规格") private String specifications; @@ -60,25 +59,22 @@ public class ProductFeatures implements Serializable { private Float usl; @ApiModelProperty("工序id,关联 working_procedure 表id") - private BigDecimal workingProcedureId; + private Long workingProcedureId; @ApiModelProperty("分析图形,关联control_graph表id") - private BigDecimal controlGraphId; - - @ApiModelProperty("(如果为空就代表4个阶段都不是)检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验;;如果有多个用逗号隔开,比如 1,4 就代表选中了进货检验和出货检验") - private BigDecimal inspectionStage; + private Long controlGraphId; @ApiModelProperty("是否需要spc分析,1 yes;0 no") - private BigDecimal isSpc; + private Integer isSpc; @ApiModelProperty("样本大小,一般2-25之间。 会依据这个size 把所有待分析的数据 组成一个一个样本") - private BigDecimal sampleSize; + private Integer sampleSize; @ApiModelProperty("采样频率,只用于展示") private String samplingFrequency; @ApiModelProperty("小数位数(限制 检验参数小数点后面位数),这个先放着后续再说。") - private BigDecimal decimalPlaces; + private Integer decimalPlaces; @ApiModelProperty("目标cpk") private Float targetCpk; @@ -90,10 +86,10 @@ public class ProductFeatures implements Serializable { private String remark; @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty("创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty("创建人姓名") private String creatorName; @@ -102,7 +98,7 @@ public class ProductFeatures implements Serializable { private LocalDateTime createTime; @ApiModelProperty("更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty("更新人姓名") private String updaterName; @@ -111,7 +107,7 @@ public class ProductFeatures implements Serializable { private LocalDateTime updateTime; @ApiModelProperty("版本号") - private BigDecimal version; + private Integer version; } diff --git a/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductFeaturesHis.java b/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductFeaturesHis.java index 3294d7c..b772dfc 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductFeaturesHis.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductFeaturesHis.java @@ -2,7 +2,6 @@ package com.cnbm.basic.entity; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; -import java.math.BigDecimal; import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -24,13 +23,13 @@ public class ProductFeaturesHis implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty("ID") - private BigDecimal id; + private Long id; @ApiModelProperty("产品特性id,关联product_features表") - private BigDecimal productFeaturesId; + private Long productFeaturesId; @ApiModelProperty("产品id,关联product表") - private BigDecimal productId; + private Long productId; @ApiModelProperty("产品特性 名") private String name; @@ -39,16 +38,16 @@ public class ProductFeaturesHis implements Serializable { private String code; @ApiModelProperty("产品特性类型:1 计量型;2 计数型") - private BigDecimal type; + private Integer type; @ApiModelProperty("缺陷等级:1 致命缺陷;2 严重缺陷;3.轻微缺陷") - private BigDecimal defectLevel; + private Integer defectLevel; @ApiModelProperty("量具id,关联measure_tool表") - private BigDecimal measureToolId; + private Long measureToolId; @ApiModelProperty("单位 id,关联unit表") - private BigDecimal unitId; + private Long unitId; @ApiModelProperty("产品特性 规格") private String specifications; @@ -63,25 +62,22 @@ public class ProductFeaturesHis implements Serializable { private Float usl; @ApiModelProperty("工序id,关联 working_procedure 表id") - private BigDecimal workingProcedureId; - - @ApiModelProperty("(如果为空就代表4个阶段都不是)检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验;;如果有多个用逗号隔开,比如 1,4 就代表选中了进货检验和出货检验") - private BigDecimal inspectionStage; + private Long workingProcedureId; @ApiModelProperty("是否需要spc分析,1 yes;0 no") - private BigDecimal isSpc; + private Integer isSpc; @ApiModelProperty("分析图形,关联control_graph表id") - private BigDecimal controlGraphId; + private Long controlGraphId; @ApiModelProperty("样本大小,一般2-25之间。 会依据这个size 把所有待分析的数据 组成一个一个样本") - private BigDecimal sampleSize; + private Integer sampleSize; @ApiModelProperty("采样频率,只用于展示") private String samplingFrequency; @ApiModelProperty("小数位数(限制 检验参数小数点后面位数),这个先放着后续再说。") - private BigDecimal decimalPlaces; + private Integer decimalPlaces; @ApiModelProperty("目标cpk") private Float targetCpk; @@ -93,10 +89,10 @@ public class ProductFeaturesHis implements Serializable { private String remark; @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty("创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty("创建人姓名") private String creatorName; @@ -105,7 +101,7 @@ public class ProductFeaturesHis implements Serializable { private LocalDateTime createTime; @ApiModelProperty("更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty("更新人姓名") private String updaterName; @@ -114,7 +110,7 @@ public class ProductFeaturesHis implements Serializable { private LocalDateTime updateTime; @ApiModelProperty("版本号") - private BigDecimal version; + private Integer version; } diff --git a/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductType.java b/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductType.java index c631a7b..8a5e7d1 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductType.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductType.java @@ -6,7 +6,6 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; -import java.math.BigDecimal; import java.time.LocalDateTime; /** @@ -25,7 +24,7 @@ public class ProductType implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty("ID") - private BigDecimal id; + private Long id; @ApiModelProperty("产品类型 名") private String name; @@ -37,16 +36,16 @@ public class ProductType implements Serializable { private String descs; @ApiModelProperty("1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty("备注") private String remark; @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty("创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty("创建人姓名") private String creatorName; @@ -55,7 +54,7 @@ public class ProductType implements Serializable { private LocalDateTime createTime; @ApiModelProperty("更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty("更新人姓名") private String updaterName; @@ -64,7 +63,7 @@ public class ProductType implements Serializable { private LocalDateTime updateTime; @ApiModelProperty("版本号") - private BigDecimal version; + private Integer version; } diff --git a/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductWorkingprocedureRelation.java b/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductWorkingprocedureRelation.java index 6b131f3..67daba9 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductWorkingprocedureRelation.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/entity/ProductWorkingprocedureRelation.java @@ -2,10 +2,10 @@ package com.cnbm.basic.entity; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; -import java.math.BigDecimal; import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import io.swagger.models.auth.In; import lombok.Data; /** @@ -24,31 +24,28 @@ public class ProductWorkingprocedureRelation implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty("ID") - private BigDecimal id; + private Long id; @ApiModelProperty("产品id,关联product表") - private BigDecimal productId; + private Long productId; @ApiModelProperty("工序id,关联 working_procedure 表") - private BigDecimal workingProcedureId; + private Long workingProcedureId; @ApiModelProperty("顺序,工序是有先后顺序的。") - private BigDecimal order; - - @ApiModelProperty("检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验;;如果有多个用逗号隔开,比如 1,4 就代表选中了进货检验和出货检验") - private BigDecimal inspectionStage; + private Integer order; @ApiModelProperty("1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty("备注") private String remark; @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty("创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty("创建人姓名") private String creatorName; @@ -57,7 +54,7 @@ public class ProductWorkingprocedureRelation implements Serializable { private LocalDateTime createTime; @ApiModelProperty("更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty("更新人姓名") private String updaterName; @@ -66,7 +63,7 @@ public class ProductWorkingprocedureRelation implements Serializable { private LocalDateTime updateTime; @ApiModelProperty("版本号") - private BigDecimal version; + private Integer version; } diff --git a/ym-baisc/src/main/java/com/cnbm/basic/entity/Shift.java b/ym-baisc/src/main/java/com/cnbm/basic/entity/Shift.java index 23c3fbd..eedc351 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/entity/Shift.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/entity/Shift.java @@ -1,7 +1,6 @@ package com.cnbm.basic.entity; import java.io.Serializable; -import java.math.BigDecimal; import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -22,7 +21,7 @@ public class Shift implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty("ID") - private BigDecimal id; + private Long id; @ApiModelProperty("班次 名") private String name; @@ -34,16 +33,16 @@ public class Shift implements Serializable { private String descs; @ApiModelProperty("1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty("备注") private String remark; @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty("创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty("创建人姓名") private String creatorName; @@ -52,7 +51,7 @@ public class Shift implements Serializable { private LocalDateTime createTime; @ApiModelProperty("更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty("更新人姓名") private String updaterName; @@ -61,7 +60,7 @@ public class Shift implements Serializable { private LocalDateTime updateTime; @ApiModelProperty("版本号") - private BigDecimal version; + private Integer version; } diff --git a/ym-baisc/src/main/java/com/cnbm/basic/entity/Team.java b/ym-baisc/src/main/java/com/cnbm/basic/entity/Team.java index dfa2544..c43bca3 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/entity/Team.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/entity/Team.java @@ -1,7 +1,6 @@ package com.cnbm.basic.entity; import java.io.Serializable; -import java.math.BigDecimal; import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -22,7 +21,7 @@ public class Team implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty("ID") - private BigDecimal id; + private Long id; @ApiModelProperty("班组 名") private String name; @@ -34,16 +33,16 @@ public class Team implements Serializable { private String descs; @ApiModelProperty("1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty("备注") private String remark; @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty("创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty("创建人姓名") private String creatorName; @@ -52,7 +51,7 @@ public class Team implements Serializable { private LocalDateTime createTime; @ApiModelProperty("更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty("更新人姓名") private String updaterName; @@ -61,7 +60,7 @@ public class Team implements Serializable { private LocalDateTime updateTime; @ApiModelProperty("版本号") - private BigDecimal version; + private Integer version; } diff --git a/ym-baisc/src/main/java/com/cnbm/basic/entity/Unit.java b/ym-baisc/src/main/java/com/cnbm/basic/entity/Unit.java index 1a6ec01..14a4227 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/entity/Unit.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/entity/Unit.java @@ -5,7 +5,6 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; -import java.math.BigDecimal; import java.time.LocalDateTime; /** @@ -23,7 +22,7 @@ public class Unit implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty("ID") - private BigDecimal id; + private Long id; @ApiModelProperty("单位 名") private String name; @@ -32,19 +31,19 @@ public class Unit implements Serializable { private String code; @ApiModelProperty("单位类型,1 可计数,2 不可计数") - private BigDecimal type; + private Integer type; @ApiModelProperty("1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty("备注") private String remark; @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty("创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty("创建人姓名") private String creatorName; @@ -53,7 +52,7 @@ public class Unit implements Serializable { private LocalDateTime createTime; @ApiModelProperty("更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty("更新人姓名") private String updaterName; @@ -62,7 +61,7 @@ public class Unit implements Serializable { private LocalDateTime updateTime; @ApiModelProperty("版本号") - private BigDecimal version; + private Integer version; } diff --git a/ym-baisc/src/main/java/com/cnbm/basic/entity/WorkingProcedure.java b/ym-baisc/src/main/java/com/cnbm/basic/entity/WorkingProcedure.java index dfe14c5..122904e 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/entity/WorkingProcedure.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/entity/WorkingProcedure.java @@ -2,7 +2,6 @@ package com.cnbm.basic.entity; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; -import java.math.BigDecimal; import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -24,7 +23,7 @@ public class WorkingProcedure implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty("ID") - private BigDecimal id; + private Long id; @ApiModelProperty("工序 名") private String name; @@ -33,22 +32,22 @@ public class WorkingProcedure implements Serializable { private String code; @ApiModelProperty("工序类型 id,关联working_procedure_type表") - private BigDecimal workingProcedureTypeId; + private Long workingProcedureTypeId; @ApiModelProperty("机台(也就是设备),这个工序对应的设备,可能有一个或者多个,如果多个用逗号隔开,\"id1,id2,......\"") private String machineId; @ApiModelProperty("1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty("备注") private String remark; @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty("创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty("创建人姓名") private String creatorName; @@ -57,7 +56,7 @@ public class WorkingProcedure implements Serializable { private LocalDateTime createTime; @ApiModelProperty("更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty("更新人姓名") private String updaterName; @@ -66,7 +65,7 @@ public class WorkingProcedure implements Serializable { private LocalDateTime updateTime; @ApiModelProperty("版本号") - private BigDecimal version; + private Integer version; } diff --git a/ym-baisc/src/main/java/com/cnbm/basic/entity/WorkingProcedureType.java b/ym-baisc/src/main/java/com/cnbm/basic/entity/WorkingProcedureType.java index fd7ec37..eb087d5 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/entity/WorkingProcedureType.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/entity/WorkingProcedureType.java @@ -2,7 +2,6 @@ package com.cnbm.basic.entity; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; -import java.math.BigDecimal; import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -24,7 +23,7 @@ public class WorkingProcedureType implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty("ID") - private BigDecimal id; + private Long id; @ApiModelProperty("工序类型 名") private String name; @@ -33,16 +32,16 @@ public class WorkingProcedureType implements Serializable { private String code; @ApiModelProperty("1 可用,0 不可用") - private BigDecimal status; + private Integer status; @ApiModelProperty("备注") private String remark; @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @ApiModelProperty("创建人") - private BigDecimal creatorId; + private Long creatorId; @ApiModelProperty("创建人姓名") private String creatorName; @@ -51,7 +50,7 @@ public class WorkingProcedureType implements Serializable { private LocalDateTime createTime; @ApiModelProperty("更新人") - private BigDecimal updaterId; + private Long updaterId; @ApiModelProperty("更新人姓名") private String updaterName; @@ -60,7 +59,7 @@ public class WorkingProcedureType implements Serializable { private LocalDateTime updateTime; @ApiModelProperty("版本号") - private BigDecimal version; + private Integer version; } diff --git a/ym-baisc/src/main/java/com/cnbm/basic/excel/FactoryExcel.java b/ym-baisc/src/main/java/com/cnbm/basic/excel/FactoryExcel.java index 0b2e81b..5911471 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/excel/FactoryExcel.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/excel/FactoryExcel.java @@ -4,7 +4,6 @@ import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; import java.time.LocalDateTime; -import java.math.BigDecimal; import java.util.Date; @@ -17,7 +16,7 @@ import java.util.Date; @Data public class FactoryExcel { @Excel(name = "ID") - private BigDecimal id; + private Long id; @Excel(name = "工厂 名") private String name; @Excel(name = "工厂 编码") @@ -29,24 +28,24 @@ public class FactoryExcel { @Excel(name = "工厂类型,1-内部工厂;2-供应商") private String type; @Excel(name = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @Excel(name = "备注") private String remark; @Excel(name = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @Excel(name = "创建人") - private BigDecimal creatorId; + private Long creatorId; @Excel(name = "创建人姓名") private String creatorName; @Excel(name = "创建时间") private LocalDateTime createTime; @Excel(name = "更新人") - private BigDecimal updaterId; + private Long updaterId; @Excel(name = "更新人姓名") private String updaterName; @Excel(name = "更新时间") private LocalDateTime updateTime; @Excel(name = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/excel/MachineExcel.java b/ym-baisc/src/main/java/com/cnbm/basic/excel/MachineExcel.java index 1215129..04d3439 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/excel/MachineExcel.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/excel/MachineExcel.java @@ -4,9 +4,6 @@ import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; import java.time.LocalDateTime; -import java.math.BigDecimal; - -import java.util.Date; /** * 机台表 @@ -17,32 +14,32 @@ import java.util.Date; @Data public class MachineExcel { @Excel(name = "ID") - private BigDecimal id; + private Long id; @Excel(name = "机台名") private String name; @Excel(name = "机台编码") private String code; @Excel(name = "机台id,关联platform id") - private BigDecimal platformId; + private Long platformId; @Excel(name = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @Excel(name = "备注") private String remark; @Excel(name = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @Excel(name = "创建人") - private BigDecimal creatorId; + private Long creatorId; @Excel(name = "创建人姓名") private String creatorName; @Excel(name = "创建时间") private LocalDateTime createTime; @Excel(name = "更新人") - private BigDecimal updaterId; + private Long updaterId; @Excel(name = "更新人姓名") private String updaterName; @Excel(name = "更新时间") private LocalDateTime updateTime; @Excel(name = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/excel/MeasureToolExcel.java b/ym-baisc/src/main/java/com/cnbm/basic/excel/MeasureToolExcel.java index fef67a6..6dbcaec 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/excel/MeasureToolExcel.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/excel/MeasureToolExcel.java @@ -4,9 +4,6 @@ import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; import java.time.LocalDateTime; -import java.math.BigDecimal; - -import java.util.Date; /** * 量具表 @@ -17,7 +14,7 @@ import java.util.Date; @Data public class MeasureToolExcel { @Excel(name = "ID") - private BigDecimal id; + private Long id; @Excel(name = "量具 名") private String name; @Excel(name = "量具 编码") @@ -25,24 +22,24 @@ public class MeasureToolExcel { @Excel(name = "量具类型;计量型=1 计数型=2") private String type; @Excel(name = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @Excel(name = "备注") private String remark; @Excel(name = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @Excel(name = "创建人") - private BigDecimal creatorId; + private Long creatorId; @Excel(name = "创建人姓名") private String creatorName; @Excel(name = "创建时间") private LocalDateTime createTime; @Excel(name = "更新人") - private BigDecimal updaterId; + private Long updaterId; @Excel(name = "更新人姓名") private String updaterName; @Excel(name = "更新时间") private LocalDateTime updateTime; @Excel(name = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/excel/PlatformExcel.java b/ym-baisc/src/main/java/com/cnbm/basic/excel/PlatformExcel.java index e88019f..49283f4 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/excel/PlatformExcel.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/excel/PlatformExcel.java @@ -4,9 +4,6 @@ import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; import java.time.LocalDateTime; -import java.math.BigDecimal; - -import java.util.Date; /** * 站点表 @@ -17,7 +14,7 @@ import java.util.Date; @Data public class PlatformExcel { @Excel(name = "ID") - private BigDecimal id; + private Long id; @Excel(name = "站台名") private String name; @Excel(name = "站台编码") @@ -25,24 +22,24 @@ public class PlatformExcel { @Excel(name = "站台分组") private String group; @Excel(name = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @Excel(name = "备注") private String remark; @Excel(name = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @Excel(name = "创建人") - private BigDecimal creatorId; + private Long creatorId; @Excel(name = "创建人姓名") private String creatorName; @Excel(name = "创建时间") private LocalDateTime createTime; @Excel(name = "更新人") - private BigDecimal updaterId; + private Long updaterId; @Excel(name = "更新人姓名") private String updaterName; @Excel(name = "更新时间") private LocalDateTime updateTime; @Excel(name = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductExcel.java b/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductExcel.java new file mode 100644 index 0000000..e270bf5 --- /dev/null +++ b/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductExcel.java @@ -0,0 +1,57 @@ +package com.cnbm.basic.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; + +/** + * 产品 表 + * + * @author why + * @since 2022-07-11 + */ +@Data +public class ProductExcel { + @Excel(name = "ID") + private Long id; + @Excel(name = "产品 名") + private String name; + @Excel(name = "产品 编码") + private String code; + @Excel(name = "产品 规格") + private String specifications; + @Excel(name = "产品 图纸") + private String drawing; + @Excel(name = "描述") + private String descs; + @Excel(name = "产品类型id,关联product_type表") + private Long productTypeId; + @Excel(name = "单位 id,关联unit表") + private Long unitId; + @Excel(name = "检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验;; 如果有多个用逗号隔开,比如 1,4 就代表选中了进货检验和出货检验") + private String inspectionStage; + @Excel(name = "检验标准") + private String inspectionStandard; + @Excel(name = "1 可用,0 不可用") + private Integer status; + @Excel(name = "备注") + private String remark; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "创建人") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "更新人") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductFactoryRelationExcel.java b/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductFactoryRelationExcel.java new file mode 100644 index 0000000..631defa --- /dev/null +++ b/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductFactoryRelationExcel.java @@ -0,0 +1,43 @@ +package com.cnbm.basic.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; + +/** + * 产品-工厂 关系表 + * + * @author why + * @since 2022-07-27 + */ +@Data +public class ProductFactoryRelationExcel { + @Excel(name = "ID") + private Long id; + @Excel(name = "产品id,关联product表") + private Long productId; + @Excel(name = "工厂id,关联 factory 表") + private Long factoryId; + @Excel(name = "1 可用,0 不可用") + private Integer status; + @Excel(name = "备注") + private String remark; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "创建人") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "更新人") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductFeaturesExcel.java b/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductFeaturesExcel.java index c9f1788..586f825 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductFeaturesExcel.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductFeaturesExcel.java @@ -4,9 +4,6 @@ import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; import java.time.LocalDateTime; -import java.math.BigDecimal; - -import java.util.Date; /** * 产品特性 表 @@ -17,21 +14,21 @@ import java.util.Date; @Data public class ProductFeaturesExcel { @Excel(name = "ID") - private BigDecimal id; + private Long id; @Excel(name = "产品id,关联product表") - private BigDecimal productId; + private Long productId; @Excel(name = "量具id,关联measure_tool表") - private BigDecimal measureToolId; + private Long measureToolId; @Excel(name = "单位 id,关联unit表") - private BigDecimal unitId; + private Long unitId; @Excel(name = "产品特性 名") private String name; @Excel(name = "产品特性 编码") private String code; @Excel(name = "产品特性类型:1 计量型;2 计数型") - private BigDecimal type; + private Integer type; @Excel(name = "缺陷等级:1 致命缺陷;2 严重缺陷;3.轻微缺陷") - private BigDecimal defectLevel; + private Integer defectLevel; @Excel(name = "产品特性 规格") private String specifications; @Excel(name = "检验参数 规格下线") @@ -41,19 +38,17 @@ public class ProductFeaturesExcel { @Excel(name = "检验参数 规格上线") private Float usl; @Excel(name = "工序id,关联 working_procedure 表id") - private BigDecimal workingProcedureId; + private Long workingProcedureId; @Excel(name = "分析图形,关联control_graph表id") - private BigDecimal controlGraphId; - @Excel(name = "(如果为空就代表4个阶段都不是)检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验;;如果有多个用逗号隔开,比如 1,4 就代表选中了进货检验和出货检验") - private BigDecimal inspectionStage; + private Long controlGraphId; @Excel(name = "是否需要spc分析,1 yes;0 no") - private BigDecimal isSpc; + private Integer isSpc; @Excel(name = "样本大小,一般2-25之间。 会依据这个size 把所有待分析的数据 组成一个一个样本") - private BigDecimal sampleSize; + private Integer sampleSize; @Excel(name = "采样频率,只用于展示") private String samplingFrequency; @Excel(name = "小数位数(限制 检验参数小数点后面位数),这个先放着后续再说。") - private BigDecimal decimalPlaces; + private Integer decimalPlaces; @Excel(name = "目标cpk") private Float targetCpk; @Excel(name = "目标cpk") @@ -61,20 +56,20 @@ public class ProductFeaturesExcel { @Excel(name = "备注") private String remark; @Excel(name = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @Excel(name = "创建人") - private BigDecimal creatorId; + private Long creatorId; @Excel(name = "创建人姓名") private String creatorName; @Excel(name = "创建时间") private LocalDateTime createTime; @Excel(name = "更新人") - private BigDecimal updaterId; + private Long updaterId; @Excel(name = "更新人姓名") private String updaterName; @Excel(name = "更新时间") private LocalDateTime updateTime; @Excel(name = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductFeaturesHisExcel.java b/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductFeaturesHisExcel.java index c34d993..eccc1e0 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductFeaturesHisExcel.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductFeaturesHisExcel.java @@ -4,9 +4,6 @@ import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; import java.time.LocalDateTime; -import java.math.BigDecimal; - -import java.util.Date; /** * 产品特性 历史表 @@ -17,23 +14,23 @@ import java.util.Date; @Data public class ProductFeaturesHisExcel { @Excel(name = "ID") - private BigDecimal id; + private Long id; @Excel(name = "产品特性id,关联product_features表") - private BigDecimal productFeaturesId; + private Long productFeaturesId; @Excel(name = "产品id,关联product表") - private BigDecimal productId; + private Long productId; @Excel(name = "产品特性 名") private String name; @Excel(name = "产品特性 编码") private String code; @Excel(name = "产品特性类型:1 计量型;2 计数型") - private BigDecimal type; + private Integer type; @Excel(name = "缺陷等级:1 致命缺陷;2 严重缺陷;3.轻微缺陷") - private BigDecimal defectLevel; + private Integer defectLevel; @Excel(name = "量具id,关联measure_tool表") - private BigDecimal measureToolId; + private Long measureToolId; @Excel(name = "单位 id,关联unit表") - private BigDecimal unitId; + private Long unitId; @Excel(name = "产品特性 规格") private String specifications; @Excel(name = "检验参数 规格下线") @@ -43,19 +40,17 @@ public class ProductFeaturesHisExcel { @Excel(name = "检验参数 规格上线") private Float usl; @Excel(name = "工序id,关联 working_procedure 表id") - private BigDecimal workingProcedureId; - @Excel(name = "(如果为空就代表4个阶段都不是)检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验;;如果有多个用逗号隔开,比如 1,4 就代表选中了进货检验和出货检验") - private BigDecimal inspectionStage; + private Long workingProcedureId; @Excel(name = "是否需要spc分析,1 yes;0 no") - private BigDecimal isSpc; + private Integer isSpc; @Excel(name = "分析图形,关联control_graph表id") - private BigDecimal controlGraphId; + private Long controlGraphId; @Excel(name = "样本大小,一般2-25之间。 会依据这个size 把所有待分析的数据 组成一个一个样本") - private BigDecimal sampleSize; + private Integer sampleSize; @Excel(name = "采样频率,只用于展示") private String samplingFrequency; @Excel(name = "小数位数(限制 检验参数小数点后面位数),这个先放着后续再说。") - private BigDecimal decimalPlaces; + private Integer decimalPlaces; @Excel(name = "目标cpk") private Float targetCpk; @Excel(name = "目标cpk") @@ -63,20 +58,20 @@ public class ProductFeaturesHisExcel { @Excel(name = "备注") private String remark; @Excel(name = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @Excel(name = "创建人") - private BigDecimal creatorId; + private Long creatorId; @Excel(name = "创建人姓名") private String creatorName; @Excel(name = "创建时间") private LocalDateTime createTime; @Excel(name = "更新人") - private BigDecimal updaterId; + private Long updaterId; @Excel(name = "更新人姓名") private String updaterName; @Excel(name = "更新时间") private LocalDateTime updateTime; @Excel(name = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductTypeExcel.java b/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductTypeExcel.java index f14bff6..84502e5 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductTypeExcel.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductTypeExcel.java @@ -3,7 +3,6 @@ package com.cnbm.basic.excel; import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; -import java.math.BigDecimal; import java.time.LocalDateTime; /** @@ -15,7 +14,7 @@ import java.time.LocalDateTime; @Data public class ProductTypeExcel { @Excel(name = "ID") - private BigDecimal id; + private Long id; @Excel(name = "产品类型 名") private String name; @Excel(name = "产品类型 编码") @@ -23,24 +22,24 @@ public class ProductTypeExcel { @Excel(name = "描述") private String desc; @Excel(name = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @Excel(name = "备注") private String remark; @Excel(name = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @Excel(name = "创建人") - private BigDecimal creatorId; + private Long creatorId; @Excel(name = "创建人姓名") private String creatorName; @Excel(name = "创建时间") private LocalDateTime createTime; @Excel(name = "更新人") - private BigDecimal updaterId; + private Long updaterId; @Excel(name = "更新人姓名") private String updaterName; @Excel(name = "更新时间") private LocalDateTime updateTime; @Excel(name = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductWorkingprocedureRelationExcel.java b/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductWorkingprocedureRelationExcel.java index 83d908d..c52f7a0 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductWorkingprocedureRelationExcel.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/excel/ProductWorkingprocedureRelationExcel.java @@ -4,9 +4,6 @@ import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; import java.time.LocalDateTime; -import java.math.BigDecimal; - -import java.util.Date; /** * 工序 表 @@ -17,34 +14,32 @@ import java.util.Date; @Data public class ProductWorkingprocedureRelationExcel { @Excel(name = "ID") - private BigDecimal id; + private Long id; @Excel(name = "产品id,关联product表") - private BigDecimal productId; + private Long productId; @Excel(name = "工序id,关联 working_procedure 表") - private BigDecimal workingProcedureId; + private Long workingProcedureId; @Excel(name = "顺序,工序是有先后顺序的。") - private BigDecimal order; - @Excel(name = "检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验;;如果有多个用逗号隔开,比如 1,4 就代表选中了进货检验和出货检验") - private BigDecimal inspectionStage; + private Integer order; @Excel(name = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @Excel(name = "备注") private String remark; @Excel(name = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @Excel(name = "创建人") - private BigDecimal creatorId; + private Long creatorId; @Excel(name = "创建人姓名") private String creatorName; @Excel(name = "创建时间") private LocalDateTime createTime; @Excel(name = "更新人") - private BigDecimal updaterId; + private Long updaterId; @Excel(name = "更新人姓名") private String updaterName; @Excel(name = "更新时间") private LocalDateTime updateTime; @Excel(name = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/excel/ShiftExcel.java b/ym-baisc/src/main/java/com/cnbm/basic/excel/ShiftExcel.java index dbdaf01..efee017 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/excel/ShiftExcel.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/excel/ShiftExcel.java @@ -4,9 +4,6 @@ import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; import java.time.LocalDateTime; -import java.math.BigDecimal; - -import java.util.Date; /** * 班次 表 @@ -17,7 +14,7 @@ import java.util.Date; @Data public class ShiftExcel { @Excel(name = "ID") - private BigDecimal id; + private Long id; @Excel(name = "班次 名") private String name; @Excel(name = "班次 编码") @@ -25,24 +22,24 @@ public class ShiftExcel { @Excel(name = "班次 描述") private String descs; @Excel(name = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @Excel(name = "备注") private String remark; @Excel(name = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @Excel(name = "创建人") - private BigDecimal creatorId; + private Long creatorId; @Excel(name = "创建人姓名") private String creatorName; @Excel(name = "创建时间") private LocalDateTime createTime; @Excel(name = "更新人") - private BigDecimal updaterId; + private Long updaterId; @Excel(name = "更新人姓名") private String updaterName; @Excel(name = "更新时间") private LocalDateTime updateTime; @Excel(name = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/excel/TeamExcel.java b/ym-baisc/src/main/java/com/cnbm/basic/excel/TeamExcel.java index a207636..d0bd36e 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/excel/TeamExcel.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/excel/TeamExcel.java @@ -4,9 +4,6 @@ import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; import java.time.LocalDateTime; -import java.math.BigDecimal; - -import java.util.Date; /** * 班组 表 @@ -17,7 +14,7 @@ import java.util.Date; @Data public class TeamExcel { @Excel(name = "ID") - private BigDecimal id; + private Long id; @Excel(name = "班组 名") private String name; @Excel(name = "班组 编码") @@ -25,24 +22,24 @@ public class TeamExcel { @Excel(name = "班组 描述") private String descs; @Excel(name = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @Excel(name = "备注") private String remark; @Excel(name = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @Excel(name = "创建人") - private BigDecimal creatorId; + private Long creatorId; @Excel(name = "创建人姓名") private String creatorName; @Excel(name = "创建时间") private LocalDateTime createTime; @Excel(name = "更新人") - private BigDecimal updaterId; + private Long updaterId; @Excel(name = "更新人姓名") private String updaterName; @Excel(name = "更新时间") private LocalDateTime updateTime; @Excel(name = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/excel/UnitExcel.java b/ym-baisc/src/main/java/com/cnbm/basic/excel/UnitExcel.java index f511c47..5e10f7c 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/excel/UnitExcel.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/excel/UnitExcel.java @@ -3,7 +3,6 @@ package com.cnbm.basic.excel; import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; -import java.math.BigDecimal; import java.time.LocalDateTime; /** @@ -15,32 +14,32 @@ import java.time.LocalDateTime; @Data public class UnitExcel { @Excel(name = "ID") - private BigDecimal id; + private Long id; @Excel(name = "单位 名") private String name; @Excel(name = "单位 编码") private String code; @Excel(name = "单位类型,1 可计数,2 不可计数") - private BigDecimal type; + private Integer type; @Excel(name = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @Excel(name = "备注") private String remark; @Excel(name = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @Excel(name = "创建人") - private BigDecimal creatorId; + private Long creatorId; @Excel(name = "创建人姓名") private String creatorName; @Excel(name = "创建时间") private LocalDateTime createTime; @Excel(name = "更新人") - private BigDecimal updaterId; + private Long updaterId; @Excel(name = "更新人姓名") private String updaterName; @Excel(name = "更新时间") private LocalDateTime updateTime; @Excel(name = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/excel/WorkingProcedureExcel.java b/ym-baisc/src/main/java/com/cnbm/basic/excel/WorkingProcedureExcel.java index e2a76fa..9f0ad2e 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/excel/WorkingProcedureExcel.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/excel/WorkingProcedureExcel.java @@ -4,9 +4,6 @@ import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; import java.time.LocalDateTime; -import java.math.BigDecimal; - -import java.util.Date; /** * 工序 表 @@ -17,34 +14,34 @@ import java.util.Date; @Data public class WorkingProcedureExcel { @Excel(name = "ID") - private BigDecimal id; + private Long id; @Excel(name = "工序 名") private String name; @Excel(name = "工序 编码") private String code; @Excel(name = "工序类型 id,关联working_procedure_type表") - private BigDecimal workingProcedureTypeId; + private Long workingProcedureTypeId; @Excel(name = "机台(也就是设备),这个工序对应的设备,可能有一个或者多个,如果多个用逗号隔开,\"id1,id2,......\"") private String machineId; @Excel(name = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @Excel(name = "备注") private String remark; @Excel(name = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @Excel(name = "创建人") - private BigDecimal creatorId; + private Long creatorId; @Excel(name = "创建人姓名") private String creatorName; @Excel(name = "创建时间") private LocalDateTime createTime; @Excel(name = "更新人") - private BigDecimal updaterId; + private Long updaterId; @Excel(name = "更新人姓名") private String updaterName; @Excel(name = "更新时间") private LocalDateTime updateTime; @Excel(name = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/excel/WorkingProcedureTypeExcel.java b/ym-baisc/src/main/java/com/cnbm/basic/excel/WorkingProcedureTypeExcel.java index 4248d5a..df64379 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/excel/WorkingProcedureTypeExcel.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/excel/WorkingProcedureTypeExcel.java @@ -4,9 +4,6 @@ import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; import java.time.LocalDateTime; -import java.math.BigDecimal; - -import java.util.Date; /** * 工序类型表 表 @@ -17,30 +14,30 @@ import java.util.Date; @Data public class WorkingProcedureTypeExcel { @Excel(name = "ID") - private BigDecimal id; + private Long id; @Excel(name = "工序类型 名") private String name; @Excel(name = "工序类型 编码") private String code; @Excel(name = "1 可用,0 不可用") - private BigDecimal status; + private Integer status; @Excel(name = "备注") private String remark; @Excel(name = "删除标志,是否有效:1 可用 0不可用") - private BigDecimal valid; + private Integer valid; @Excel(name = "创建人") - private BigDecimal creatorId; + private Long creatorId; @Excel(name = "创建人姓名") private String creatorName; @Excel(name = "创建时间") private LocalDateTime createTime; @Excel(name = "更新人") - private BigDecimal updaterId; + private Long updaterId; @Excel(name = "更新人姓名") private String updaterName; @Excel(name = "更新时间") private LocalDateTime updateTime; @Excel(name = "版本号") - private BigDecimal version; + private Integer version; } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/mapper/ProductFactoryRelationMapper.java b/ym-baisc/src/main/java/com/cnbm/basic/mapper/ProductFactoryRelationMapper.java new file mode 100644 index 0000000..436de4e --- /dev/null +++ b/ym-baisc/src/main/java/com/cnbm/basic/mapper/ProductFactoryRelationMapper.java @@ -0,0 +1,16 @@ +package com.cnbm.basic.mapper; + +import com.cnbm.common.dao.BaseDao; +import com.cnbm.basic.entity.ProductFactoryRelation; +import org.apache.ibatis.annotations.Mapper; + +/** + * 产品-工厂 关系表 + * + * @author why + * @since 2022-07-27 + */ +@Mapper +public interface ProductFactoryRelationMapper extends BaseDao { + +} \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/mapper/ProductMapper.java b/ym-baisc/src/main/java/com/cnbm/basic/mapper/ProductMapper.java new file mode 100644 index 0000000..fdfc792 --- /dev/null +++ b/ym-baisc/src/main/java/com/cnbm/basic/mapper/ProductMapper.java @@ -0,0 +1,21 @@ +package com.cnbm.basic.mapper; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.cnbm.basic.dto.ProductDTO; +import com.cnbm.common.dao.BaseDao; +import com.cnbm.basic.entity.Product; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +import java.util.Map; + +/** + * 产品 表 + * + * @author why + * @since 2022-07-11 + */ +@Mapper +public interface ProductMapper extends BaseDao { + IPage page(Map params); +} \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/service/IProductFactoryRelationService.java b/ym-baisc/src/main/java/com/cnbm/basic/service/IProductFactoryRelationService.java new file mode 100644 index 0000000..01e43b2 --- /dev/null +++ b/ym-baisc/src/main/java/com/cnbm/basic/service/IProductFactoryRelationService.java @@ -0,0 +1,28 @@ +package com.cnbm.basic.service; + +import com.cnbm.common.page.PageData; +import com.cnbm.common.service.CrudService; +import com.cnbm.basic.dto.ProductFactoryRelationDTO; +import com.cnbm.basic.entity.ProductFactoryRelation; + +import java.util.Map; + +/** + * 产品-工厂 关系表 + * + * @author why + * @since 2022-07-27 + */ +public interface IProductFactoryRelationService extends CrudService { + + PageData page (Map params); + + ProductFactoryRelationDTO get(Long id); + + void save(ProductFactoryRelationDTO dto); + + void update(ProductFactoryRelationDTO dto); + + void delete(Long[] ids); + +} \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/service/IProductService.java b/ym-baisc/src/main/java/com/cnbm/basic/service/IProductService.java new file mode 100644 index 0000000..456b45c --- /dev/null +++ b/ym-baisc/src/main/java/com/cnbm/basic/service/IProductService.java @@ -0,0 +1,27 @@ +package com.cnbm.basic.service; + +import com.cnbm.common.page.PageData; +import com.cnbm.common.service.CrudService; +import com.cnbm.basic.dto.ProductDTO; +import com.cnbm.basic.entity.Product; + +import java.util.Map; + +/** + * 产品 表 + * + * @author why + * @since 2022-07-11 + */ +public interface IProductService extends CrudService { + PageData page (Map params); + + ProductDTO get(Long id); + + void save(ProductDTO dto); + + void update(ProductDTO dto); + + void changeStatus(Long id); + +} \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/service/IProductWorkingprocedureRelationService.java b/ym-baisc/src/main/java/com/cnbm/basic/service/IProductWorkingprocedureRelationService.java index 6cb6b47..1a7c13e 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/service/IProductWorkingprocedureRelationService.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/service/IProductWorkingprocedureRelationService.java @@ -1,10 +1,12 @@ package com.cnbm.basic.service; +import com.cnbm.basic.dto.WorkingProcedureDTO; import com.cnbm.common.page.PageData; import com.cnbm.common.service.CrudService; import com.cnbm.basic.dto.ProductWorkingprocedureRelationDTO; import com.cnbm.basic.entity.ProductWorkingprocedureRelation; +import java.util.List; import java.util.Map; /** @@ -23,4 +25,8 @@ public interface IProductWorkingprocedureRelationService extends CrudService getWorkingprocedureByProductId(Long productId); + + void batchInsertWorkingprocedure(ProductWorkingprocedureRelationDTO[] lists); } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/service/IWorkingProcedureService.java b/ym-baisc/src/main/java/com/cnbm/basic/service/IWorkingProcedureService.java index 3cb3517..208b727 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/service/IWorkingProcedureService.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/service/IWorkingProcedureService.java @@ -5,6 +5,7 @@ import com.cnbm.common.service.CrudService; import com.cnbm.basic.dto.WorkingProcedureDTO; import com.cnbm.basic.entity.WorkingProcedure; +import java.util.List; import java.util.Map; /** @@ -25,4 +26,6 @@ public interface IWorkingProcedureService extends CrudService getWorkingProcedureByProductId(Long productId); } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/service/impl/FactoryServiceImpl.java b/ym-baisc/src/main/java/com/cnbm/basic/service/impl/FactoryServiceImpl.java index 1189ed9..bbd187e 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/service/impl/FactoryServiceImpl.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/service/impl/FactoryServiceImpl.java @@ -85,9 +85,8 @@ public class FactoryServiceImpl extends CrudServiceImpl implements IProductFactoryRelationService { + + @Override + public QueryWrapper getWrapper(Map params){ + String id = (String)params.get("id"); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), "id", id); + + return wrapper; + } + + @Override + public PageData page (Map params){ + IPage page = baseDao.selectPage( + getPage(params, "id", true), + getWrapper(params) + ); + return getPageData(page, ProductFactoryRelationDTO.class); + } + + @Override + public ProductFactoryRelationDTO get(Long id) { + ProductFactoryRelation entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, ProductFactoryRelationDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(ProductFactoryRelationDTO dto) { + ProductFactoryRelation entity = ConvertUtils.sourceToTarget(dto, ProductFactoryRelation.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(ProductFactoryRelationDTO dto) { + ProductFactoryRelation entity = ConvertUtils.sourceToTarget(dto, ProductFactoryRelation.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(Long[] ids) { + //删除 + deleteBatchIds(Arrays.asList(ids)); + } + +} \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/service/impl/ProductFeaturesServiceImpl.java b/ym-baisc/src/main/java/com/cnbm/basic/service/impl/ProductFeaturesServiceImpl.java index 1aaf8aa..f375583 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/service/impl/ProductFeaturesServiceImpl.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/service/impl/ProductFeaturesServiceImpl.java @@ -2,6 +2,8 @@ package com.cnbm.basic.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.cnbm.basic.dto.ProductFeaturesHisDTO; +import com.cnbm.basic.entity.ProductFeaturesHis; import com.cnbm.common.page.PageData; import com.cnbm.common.service.impl.CrudServiceImpl; import com.cnbm.basic.dto.ProductFeaturesDTO; @@ -10,6 +12,7 @@ import com.cnbm.basic.entity.ProductFeatures; import com.cnbm.basic.service.IProductFeaturesService; import com.cnbm.common.utils.ConvertUtils; import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -56,11 +59,22 @@ public class ProductFeaturesServiceImpl extends CrudServiceImpl implements IProductService { + + //@Autowired + //ProductMapper mapper; + + @Override + public QueryWrapper getWrapper(Map params){ + String name = (String)params.get("name"); + String code = (String)params.get("code"); + //检验阶段 + String inspection_stage = (String)params.get("inspection_stage"); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.like(StringUtils.isNotBlank(name), "name", name); + wrapper.like(StringUtils.isNotBlank(code), "code", code); + wrapper.eq(ObjectUtils.isNotNull(params.get("status")), "status", params.get("status")); + wrapper.eq(ObjectUtils.isNotNull(params.get("product_type_id")), "product_type_id", params.get("product_type_id")); + wrapper.eq(StringUtils.isNotBlank(inspection_stage), "inspection_stage", inspection_stage); + return wrapper; + } + + @Autowired + private ProductTypeServiceImpl productTypeService; + + @Override + public PageData page (Map params){ + //IPage page = mapper.page(params); + //return getPageData(page, ProductDTO.class); + IPage page = baseDao.selectPage( + getPage(params, "id", true), + getWrapper(params) + ); + PageData productDTOPageData = getPageData(page,ProductDTO.class); + if(productDTOPageData.getTotal()!=0){ + for(ProductDTO productDTO:productDTOPageData.getList()){ + String productType = productTypeService.selectById(productDTO.getProductTypeId()).getName(); + productDTO.setProductType(productType); + } + } + return productDTOPageData; + } + + @Override + public ProductDTO get(Long id) { + Product entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, ProductDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(ProductDTO dto) { + Product entity = ConvertUtils.sourceToTarget(dto, Product.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(ProductDTO dto) { + Product entity = ConvertUtils.sourceToTarget(dto, Product.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void changeStatus(Long id) { + //改变状态 开启1 关闭0 + Product entity = baseDao.selectById(id); + Integer status = 1 - entity.getStatus(); + entity.setStatus(status); + updateById(entity); + } + +} \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/service/impl/ProductTypeServiceImpl.java b/ym-baisc/src/main/java/com/cnbm/basic/service/impl/ProductTypeServiceImpl.java index 61d74ef..41fe626 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/service/impl/ProductTypeServiceImpl.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/service/impl/ProductTypeServiceImpl.java @@ -94,9 +94,8 @@ public class ProductTypeServiceImpl extends CrudServiceImpl getWorkingprocedureByProductId(Long productId){ + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(ObjectUtils.isNotNull(productId), "product_id", productId); + List relationList = baseDao.selectList(wrapper); + List dtoList = ConvertUtils.sourceToTarget(relationList, ProductWorkingprocedureRelationDTO.class); + //设置工序名称 + for (ProductWorkingprocedureRelationDTO dto:dtoList){ + String workingProcedureName = workingProcedureServiceImpl.selectById(dto.getWorkingProcedureId()).getName(); + dto.setWorkingProcedureName(workingProcedureName); + } + return dtoList; + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void batchInsertWorkingprocedure(ProductWorkingprocedureRelationDTO[] lists) { + for(ProductWorkingprocedureRelationDTO dto:lists){ + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + save(dto); + } + } + } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/service/impl/UnitServiceImpl.java b/ym-baisc/src/main/java/com/cnbm/basic/service/impl/UnitServiceImpl.java index 30ca1c0..e006d11 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/service/impl/UnitServiceImpl.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/service/impl/UnitServiceImpl.java @@ -68,9 +68,8 @@ public class UnitServiceImpl extends CrudServiceImpl public void changeStatus(Long id) { //改变状态 开启1 关闭0 Unit entity = baseDao.selectById(id); - BigDecimal status = entity.getStatus(); - BigDecimal one = new BigDecimal("1"); - entity.setStatus(one.subtract(status)); + Integer status = 1 - entity.getStatus(); + entity.setStatus(status); updateById(entity); } } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/service/impl/WorkingProcedureServiceImpl.java b/ym-baisc/src/main/java/com/cnbm/basic/service/impl/WorkingProcedureServiceImpl.java index bdcce31..a9c287f 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/service/impl/WorkingProcedureServiceImpl.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/service/impl/WorkingProcedureServiceImpl.java @@ -3,8 +3,8 @@ package com.cnbm.basic.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; -import com.cnbm.basic.entity.Machine; -import com.cnbm.basic.entity.ProductType; +import com.cnbm.basic.entity.ProductWorkingprocedureRelation; +import com.cnbm.basic.mapper.ProductWorkingprocedureRelationMapper; import com.cnbm.common.page.PageData; import com.cnbm.common.service.impl.CrudServiceImpl; import com.cnbm.basic.dto.WorkingProcedureDTO; @@ -63,6 +63,7 @@ public class WorkingProcedureServiceImpl extends CrudServiceImpl machineList = new ArrayList<>(); @@ -112,10 +113,26 @@ public class WorkingProcedureServiceImpl extends CrudServiceImpl getWorkingProcedureByProductId(Long productId){ + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(ObjectUtils.isNotNull(productId), "product_id", productId); + List productWorkingprocedureRelationList = mapper.selectList(wrapper); + + List workingProcedureDTOList = new ArrayList<>(); + for (ProductWorkingprocedureRelation productWorkingprocedureRelation:productWorkingprocedureRelationList){ + WorkingProcedureDTO workingProcedureDTO = get(productWorkingprocedureRelation.getWorkingProcedureId()); + workingProcedureDTOList.add(workingProcedureDTO); + } + return workingProcedureDTOList; + } + } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/service/impl/WorkingProcedureTypeServiceImpl.java b/ym-baisc/src/main/java/com/cnbm/basic/service/impl/WorkingProcedureTypeServiceImpl.java index 5edff7d..1d3605d 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/service/impl/WorkingProcedureTypeServiceImpl.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/service/impl/WorkingProcedureTypeServiceImpl.java @@ -77,9 +77,8 @@ public class WorkingProcedureTypeServiceImpl extends CrudServiceImpl + + + + diff --git a/ym-baisc/src/main/resources/ProductMapper.xml b/ym-baisc/src/main/resources/ProductMapper.xml new file mode 100644 index 0000000..dc56b50 --- /dev/null +++ b/ym-baisc/src/main/resources/ProductMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/ym-baisc/src/main/resources/WorkingProcedureMapper.xml b/ym-baisc/src/main/resources/WorkingProcedureMapper.xml new file mode 100644 index 0000000..4b6f94e --- /dev/null +++ b/ym-baisc/src/main/resources/WorkingProcedureMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/ym-process-inspection/src/main/java/com/cnbm/processInspection/controller/ProcessInspectionController.java b/ym-process-inspection/src/main/java/com/cnbm/processInspection/controller/ProcessInspectionController.java index e268cf4..29b4f9a 100644 --- a/ym-process-inspection/src/main/java/com/cnbm/processInspection/controller/ProcessInspectionController.java +++ b/ym-process-inspection/src/main/java/com/cnbm/processInspection/controller/ProcessInspectionController.java @@ -40,7 +40,7 @@ public class ProcessInspectionController { productFeatures.setLsl(new Float(1)); productFeatures.setName("LTWeight"); - productFeatures.setSampleSize(BigDecimal.TEN); + productFeatures.setSampleSize(10); MeanStandardDeviationGraph meanStandardDeviationGraph = new MeanStandardDeviationGraph(productFeatures); //判读方案 List interpretationScheme = new ArrayList<>(); @@ -74,7 +74,7 @@ public class ProcessInspectionController { productFeatures.setLsl(new Float(1)); productFeatures.setName("LTWeight"); - productFeatures.setSampleSize(BigDecimal.TEN); + productFeatures.setSampleSize(10); MeanRGraph meanRGraph = new MeanRGraph(productFeatures); //判读方案 List interpretationScheme = new ArrayList<>();