Compare commits
70 Commits
60b7c940fa
...
yanyang
| Author | SHA1 | Date | |
|---|---|---|---|
| 32647c035c | |||
| 9546ceec03 | |||
| 3a583ac09f | |||
|
|
e149150b1d | ||
|
|
3d5e5e5845 | ||
|
|
5a9f5ee38b | ||
|
|
7c21dfe8e1 | ||
|
|
2bc72469a0 | ||
|
|
cafcdd65e0 | ||
| cc5848e5cd | |||
| 445c7c0c3f | |||
| 214f0a8ec9 | |||
|
|
74aaf857f0 | ||
|
|
353471b1f7 | ||
|
|
23aa6d5f89 | ||
| ea70ac4a6b | |||
| b6990dc4a0 | |||
|
|
8b14c369fb | ||
|
|
c1d37a3dbc | ||
| 5e32971f26 | |||
| 1ce177ab5d | |||
| 8b4e6b116e | |||
|
|
9b545a9a03 | ||
|
|
c75c89cab9 | ||
| 04e8cc187a | |||
| add0eea2ac | |||
|
|
69f911c07c | ||
|
|
5e8110ad2c | ||
|
|
7e3e028eb0 | ||
| 37f0dbe548 | |||
| b501e8cd98 | |||
| 98baf93cff | |||
|
|
ff63c194ee | ||
| 1173d670e4 | |||
| c7c43cd906 | |||
|
|
1798ba8d1d | ||
|
|
652812d3ba | ||
| 1562854e59 | |||
| d03a3e06a3 | |||
| c9d01c9e11 | |||
|
|
de3fe9b95c | ||
|
|
53f0c58507 | ||
| 95a82b042d | |||
| b15ad64d76 | |||
|
|
bf67380718 | ||
|
|
b93869c4a1 | ||
| 6829169a4a | |||
|
|
2d9b0ea1f1 | ||
| 0e3f0f9168 | |||
| b515eacbab | |||
|
|
515df64760 | ||
| ab35b10130 | |||
| 4864545f12 | |||
|
|
f7712f184a | ||
|
|
8bfcaaf429 | ||
|
|
650e9a2324 | ||
|
|
a2d91083f2 | ||
|
|
bd9276036b | ||
| 8a4f0094a1 | |||
| 1b9c3499a3 | |||
| e6b5583d05 | |||
| a3cc4df25c | |||
| 7abcafb93d | |||
| 559e76f6fb | |||
| fb65441dcc | |||
| dda48c610f | |||
| c0ce68f5b2 | |||
| 0fb22fa625 | |||
| db901ef527 | |||
| 96f9808e02 |
@@ -73,8 +73,10 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
"/webjars/**",
|
||||
"/websocket/**",
|
||||
"/influx/**",
|
||||
"/basic/**",
|
||||
"/processInspection/**",
|
||||
|
||||
// "/basic/**",
|
||||
// "/qualityPlanning/**",
|
||||
// "/processInspection/**",
|
||||
"/captcha").anonymous()
|
||||
// .antMatchers("/testCors").hasAuthority("system:dept:list222")
|
||||
// 除上面外的所有请求全部需要鉴权认证
|
||||
|
||||
@@ -44,13 +44,13 @@ public class SysRoleController {
|
||||
|
||||
@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) ,
|
||||
@ApiImplicitParam(name = "name", value = "角色名", paramType = "query", dataTypeClass=String.class)
|
||||
})
|
||||
// @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) ,
|
||||
// @ApiImplicitParam(name = "name", value = "角色名", paramType = "query", dataTypeClass=String.class)
|
||||
// })
|
||||
@PreAuthorize("@ex.hasAuthority('sys:role:page')")
|
||||
public Result<PageData<SysRoleDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<SysRoleDTO> page = sysRoleService.page(params);
|
||||
|
||||
@@ -160,4 +160,10 @@ public class SysUserController {
|
||||
|
||||
ExcelUtils.exportExcelToTarget(response, null, list, SysUserExcel.class);
|
||||
}
|
||||
|
||||
@PostMapping(value = "list")
|
||||
@ApiOperation(value = "获取用户列表")
|
||||
@LogOperation("获取用户列表")
|
||||
public List<SysUserDTO> list(@ApiIgnore @RequestParam Map<String, Object> params) {
|
||||
return sysUserService.list(params); }
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class FactoryController {
|
||||
@ApiImplicitParam(name = "type", value = "工厂类型", paramType = "query", dataTypeClass = String.class),
|
||||
@ApiImplicitParam(name = "status", value = "状态", paramType = "query", dataTypeClass = Integer.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:factory:page')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:factory:page')")
|
||||
public Result<PageData<FactoryDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<FactoryDTO> page = factoryService.page(params);
|
||||
return new Result<PageData<FactoryDTO>>().ok(page);
|
||||
@@ -61,7 +61,7 @@ public class FactoryController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:factory:info')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:factory:info')")
|
||||
public Result<FactoryDTO> get(@PathVariable("id") Long id){
|
||||
FactoryDTO data = factoryService.get(id);
|
||||
|
||||
@@ -70,8 +70,8 @@ public class FactoryController {
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:factory:save')")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:factory:save')")
|
||||
public Result save(@RequestBody FactoryDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
@@ -83,8 +83,8 @@ public class FactoryController {
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:factory:update')")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:factory:update')")
|
||||
public Result update(@RequestBody FactoryDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -94,8 +94,8 @@ public class FactoryController {
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:factory:delete')")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:factory:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -107,8 +107,8 @@ public class FactoryController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:factory:export')")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:factory:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<FactoryDTO> list = factoryService.list(params);
|
||||
|
||||
@@ -117,11 +117,17 @@ public class FactoryController {
|
||||
|
||||
@PostMapping("status")
|
||||
@ApiOperation("改变状态")
|
||||
//@LogOperation("改变状态")
|
||||
@LogOperation("改变状态")
|
||||
public Result changeStatus(@RequestBody IdParam id){
|
||||
factoryService.changeStatus(id.getId());
|
||||
|
||||
return new Result();
|
||||
}
|
||||
|
||||
@PostMapping(value = "list")
|
||||
@ApiOperation(value = "获取工厂列表")
|
||||
@LogOperation("获取工厂列表")
|
||||
public List<FactoryDTO> list() {
|
||||
return factoryService.list();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
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.FeaturesStageProcedureRelationDTO;
|
||||
import com.cnbm.basic.excel.FeaturesStageProcedureRelationExcel;
|
||||
import com.cnbm.basic.service.IFeaturesStageProcedureRelationService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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-09-01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/basic/featuresStageProcedureRelation")
|
||||
@Api(tags="过程检验-工艺-检验参数 关系表 ")
|
||||
public class FeaturesStageProcedureRelationController {
|
||||
@Autowired
|
||||
private IFeaturesStageProcedureRelationService featuresStageProcedureRelationService;
|
||||
|
||||
@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),
|
||||
@ApiImplicitParam(name = "id", value = "id", paramType = "query", dataTypeClass = Long.class)
|
||||
})
|
||||
@PreAuthorize("@ex.hasAuthority('basic:featuresStageProcedureRelation:page')")
|
||||
public Result<PageData<FeaturesStageProcedureRelationDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<FeaturesStageProcedureRelationDTO> page = featuresStageProcedureRelationService.page(params);
|
||||
|
||||
return new Result<PageData<FeaturesStageProcedureRelationDTO>>().ok(page);
|
||||
}
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:featuresStageProcedureRelation:info')")
|
||||
public Result<FeaturesStageProcedureRelationDTO> get(@PathVariable("id") Long id){
|
||||
FeaturesStageProcedureRelationDTO data = featuresStageProcedureRelationService.get(id);
|
||||
|
||||
return new Result<FeaturesStageProcedureRelationDTO>().ok(data);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:featuresStageProcedureRelation:save')")
|
||||
public Result<Long> save(@RequestBody FeaturesStageProcedureRelationDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
|
||||
featuresStageProcedureRelationService.save(dto);
|
||||
|
||||
return new Result<Long>().ok(dto.getId());
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:featuresStageProcedureRelation:update')")
|
||||
public Result<Long> update(@RequestBody FeaturesStageProcedureRelationDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
|
||||
featuresStageProcedureRelationService.update(dto);
|
||||
|
||||
return new Result<Long>().ok(dto.getId());
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:featuresStageProcedureRelation:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
|
||||
featuresStageProcedureRelationService.delete(ids);
|
||||
|
||||
return new Result();
|
||||
}
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:featuresStageProcedureRelation:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<FeaturesStageProcedureRelationDTO> list = featuresStageProcedureRelationService.list(params);
|
||||
|
||||
ExcelUtils.exportExcelToTarget(response, null, list, FeaturesStageProcedureRelationExcel.class);
|
||||
}
|
||||
|
||||
@PostMapping("batchInsert")
|
||||
@ApiOperation("批量保存")
|
||||
public Result<Long> batchInsert(@RequestBody FeaturesStageProcedureRelationDTO[] lists){
|
||||
//效验数据
|
||||
//ValidatorUtils.validateEntity(lists, AddGroup.class, DefaultGroup.class);
|
||||
|
||||
featuresStageProcedureRelationService.batchInsert(lists);
|
||||
|
||||
return new Result();
|
||||
}
|
||||
|
||||
@DeleteMapping("deleteByStageProcedure")
|
||||
@ApiOperation("删除 依据工序id 检验阶段")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "productId", value = "产品", paramType = "query", dataTypeClass = Long.class),
|
||||
@ApiImplicitParam(name = "inspectionStage", value = "检测阶段", paramType = "query", dataTypeClass = Integer.class),
|
||||
@ApiImplicitParam(name = "workingProcedureId", value = "工序", paramType = "query", dataTypeClass = Long.class)
|
||||
})
|
||||
public Result deleteByStageProcedure(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
|
||||
featuresStageProcedureRelationService.deleteByStageProcedure(params);
|
||||
|
||||
return new Result();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -48,9 +48,11 @@ public class MachineController {
|
||||
@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),
|
||||
@ApiImplicitParam(name = "name", value = "名称", paramType = "query", dataTypeClass = String.class),
|
||||
@ApiImplicitParam(name = "code", value = "编码", paramType = "query", dataTypeClass = String.class),
|
||||
@ApiImplicitParam(name = "status", value = "状态", paramType = "query", dataTypeClass = Integer.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:machine:page')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:machine:page')")
|
||||
public Result<PageData<MachineDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<MachineDTO> page = machineService.page(params);
|
||||
|
||||
@@ -67,7 +69,7 @@ public class MachineController {
|
||||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class),
|
||||
@ApiImplicitParam(name = "status", value = "状态", paramType = "query", dataTypeClass = Integer.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:machine:page')")
|
||||
//@PreAuthorize("@ex.hasAuthority('basic:machine:page')")
|
||||
public Result<PageData<MachineDTO>> page2(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<MachineDTO> page = machineService.page1(params);
|
||||
|
||||
@@ -77,7 +79,7 @@ public class MachineController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:machine:info')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:machine:info')")
|
||||
public Result<MachineDTO> get(@PathVariable("id") Long id){
|
||||
MachineDTO data = machineService.get(id);
|
||||
|
||||
@@ -86,8 +88,8 @@ public class MachineController {
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:machine:save')")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:machine:save')")
|
||||
public Result save(@RequestBody MachineDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
@@ -99,8 +101,8 @@ public class MachineController {
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:machine:update')")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:machine:update')")
|
||||
public Result update(@RequestBody MachineDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -112,8 +114,8 @@ public class MachineController {
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:machine:delete')")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:machine:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -125,8 +127,8 @@ public class MachineController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:machine:export')")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:machine:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<MachineDTO> list = machineService.list(params);
|
||||
|
||||
@@ -135,11 +137,19 @@ public class MachineController {
|
||||
|
||||
@PostMapping("status")
|
||||
@ApiOperation("改变状态")
|
||||
//@LogOperation("改变状态")
|
||||
@LogOperation("改变状态")
|
||||
public Result changeStatus(@RequestBody IdParam id){
|
||||
machineService.changeStatus(id.getId());
|
||||
|
||||
return new Result().ok(true);
|
||||
}
|
||||
|
||||
@PostMapping(value = "list")
|
||||
@ApiOperation(value = "获取机台列表")
|
||||
@LogOperation("获取机台列表")
|
||||
@ApiImplicitParam(name = "status", value = "状态", paramType = "query", dataTypeClass = Integer.class)
|
||||
public List<MachineDTO> list(@ApiIgnore @RequestParam Map<String, Object> params) {
|
||||
return machineService.list(params);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -52,7 +52,7 @@ public class MeasureToolController {
|
||||
@ApiImplicitParam(name = "code", value = "编码", paramType = "query", dataTypeClass = String.class),
|
||||
@ApiImplicitParam(name = "status", value = "状态", paramType = "query", dataTypeClass = Integer.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:measureTool:page')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:measureTool:page')")
|
||||
public Result<PageData<MeasureToolDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<MeasureToolDTO> page = measureToolService.page(params);
|
||||
|
||||
@@ -61,7 +61,7 @@ public class MeasureToolController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:measureTool:info')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:measureTool:info')")
|
||||
public Result<MeasureToolDTO> get(@PathVariable("id") Long id){
|
||||
MeasureToolDTO data = measureToolService.get(id);
|
||||
|
||||
@@ -70,8 +70,8 @@ public class MeasureToolController {
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:measureTool:save')")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:measureTool:save')")
|
||||
public Result save(@RequestBody MeasureToolDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
@@ -83,8 +83,8 @@ public class MeasureToolController {
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:measureTool:update')")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:measureTool:update')")
|
||||
public Result update(@RequestBody MeasureToolDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -96,8 +96,8 @@ public class MeasureToolController {
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:measureTool:delete')")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:measureTool:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -109,8 +109,8 @@ public class MeasureToolController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:measureTool:export')")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:measureTool:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<MeasureToolDTO> list = measureToolService.list(params);
|
||||
|
||||
@@ -119,10 +119,17 @@ public class MeasureToolController {
|
||||
|
||||
@PostMapping("status")
|
||||
@ApiOperation("改变状态")
|
||||
//@LogOperation("改变状态")
|
||||
@LogOperation("改变状态")
|
||||
public Result changeStatus(@RequestBody IdParam id){
|
||||
measureToolService.changeStatus(id.getId());
|
||||
|
||||
return new Result();
|
||||
}
|
||||
|
||||
@PostMapping(value = "list")
|
||||
@ApiOperation(value = "获取量具列表")
|
||||
@LogOperation("获取控制图形列表")
|
||||
public List<MeasureToolDTO> list() {
|
||||
return measureToolService.list();
|
||||
}
|
||||
}
|
||||
@@ -48,9 +48,11 @@ public class PlatformController {
|
||||
@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),
|
||||
@ApiImplicitParam(name = "name", value = "名称", paramType = "query", dataTypeClass = String.class),
|
||||
@ApiImplicitParam(name = "code", value = "编码", paramType = "query", dataTypeClass = String.class),
|
||||
@ApiImplicitParam(name = "status", value = "状态", paramType = "query", dataTypeClass = Integer.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:platform:page')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:platform:page')")
|
||||
public Result<PageData<PlatformDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<PlatformDTO> page = platformService.page(params);
|
||||
|
||||
@@ -59,7 +61,7 @@ public class PlatformController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:platform:info')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:platform:info')")
|
||||
public Result<PlatformDTO> get(@PathVariable("id") Long id){
|
||||
PlatformDTO data = platformService.get(id);
|
||||
|
||||
@@ -68,8 +70,8 @@ public class PlatformController {
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:platform:save')")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:platform:save')")
|
||||
public Result save(@RequestBody PlatformDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
@@ -81,8 +83,8 @@ public class PlatformController {
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:platform:update')")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:platform:update')")
|
||||
public Result update(@RequestBody PlatformDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -94,8 +96,8 @@ public class PlatformController {
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:platform:delete')")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:platform:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -107,8 +109,8 @@ public class PlatformController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:platform:export')")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:platform:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<PlatformDTO> list = platformService.list(params);
|
||||
|
||||
@@ -117,7 +119,7 @@ public class PlatformController {
|
||||
|
||||
@PostMapping("status")
|
||||
@ApiOperation("改变状态")
|
||||
//@LogOperation("改变状态")
|
||||
@LogOperation("改变状态")
|
||||
public Result changeStatus(@RequestBody IdParam id){
|
||||
platformService.changeStatus(id.getId());
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ 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 com.cnbm.common.vo.IdVo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
@@ -54,7 +55,7 @@ public class ProductController {
|
||||
@ApiImplicitParam(name = "product_type_id", value = "产品类型id", paramType = "query", dataTypeClass = Integer.class),
|
||||
@ApiImplicitParam(name = "inspection_stage", value = "检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验", paramType = "query", dataTypeClass = String.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:product:page')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:product:page')")
|
||||
public Result<PageData<ProductDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<ProductDTO> page = productService.page(params);
|
||||
|
||||
@@ -63,7 +64,7 @@ public class ProductController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:product:info')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:product:info')")
|
||||
public Result<ProductDTO> get(@PathVariable("id") Long id){
|
||||
ProductDTO data = productService.get(id);
|
||||
|
||||
@@ -72,21 +73,21 @@ public class ProductController {
|
||||
|
||||
@PostMapping("save")
|
||||
@ApiOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:product:save')")
|
||||
public Result save(@RequestBody ProductDTO dto){
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:product:save')")
|
||||
public IdVo save(@RequestBody ProductDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
|
||||
productService.save(dto);
|
||||
return productService.add(dto);
|
||||
|
||||
return new Result();
|
||||
//return new Result();
|
||||
}
|
||||
|
||||
@PutMapping("update")
|
||||
@ApiOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:product:update')")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:product:update')")
|
||||
public Result update(@RequestBody ProductDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -98,8 +99,8 @@ public class ProductController {
|
||||
|
||||
@DeleteMapping("delete")
|
||||
@ApiOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:product:delete')")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:product:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -111,8 +112,8 @@ public class ProductController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:product:export')")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:product:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<ProductDTO> list = productService.list(params);
|
||||
|
||||
@@ -121,11 +122,18 @@ public class ProductController {
|
||||
|
||||
@PostMapping("status")
|
||||
@ApiOperation("改变状态")
|
||||
//@LogOperation("改变状态")
|
||||
@LogOperation("改变状态")
|
||||
public Result changeStatus(@RequestBody IdParam id){
|
||||
productService.changeStatus(id.getId());
|
||||
|
||||
return new Result();
|
||||
}
|
||||
|
||||
@PostMapping(value = "list")
|
||||
@ApiOperation(value = "获取产品列表")
|
||||
@LogOperation("获取产品列表")
|
||||
public List<ProductDTO> list() {
|
||||
return productService.list();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.cnbm.basic.controller;
|
||||
|
||||
import com.cnbm.admin.annotation.LogOperation;
|
||||
import com.cnbm.basic.dto.ProductWorkingprocedureRelationDTO;
|
||||
import com.cnbm.common.constant.Constant;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.utils.ExcelUtils;
|
||||
@@ -49,7 +50,7 @@ public class ProductFactoryRelationController {
|
||||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class),
|
||||
@ApiImplicitParam(name = "id", value = "id", paramType = "query", dataTypeClass = Long.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFactoryRelation:page')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFactoryRelation:page')")
|
||||
public Result<PageData<ProductFactoryRelationDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<ProductFactoryRelationDTO> page = productFactoryRelationService.page(params);
|
||||
|
||||
@@ -58,7 +59,7 @@ public class ProductFactoryRelationController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFactoryRelation:info')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFactoryRelation:info')")
|
||||
public Result<ProductFactoryRelationDTO> get(@PathVariable("id") Long id){
|
||||
ProductFactoryRelationDTO data = productFactoryRelationService.get(id);
|
||||
|
||||
@@ -67,8 +68,8 @@ public class ProductFactoryRelationController {
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFactoryRelation:save')")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFactoryRelation:save')")
|
||||
public Result save(@RequestBody ProductFactoryRelationDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
@@ -80,8 +81,8 @@ public class ProductFactoryRelationController {
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFactoryRelation:update')")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFactoryRelation:update')")
|
||||
public Result update(@RequestBody ProductFactoryRelationDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -93,8 +94,8 @@ public class ProductFactoryRelationController {
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFactoryRelation:delete')")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFactoryRelation:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -106,12 +107,22 @@ public class ProductFactoryRelationController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFactoryRelation:export')")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFactoryRelation:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<ProductFactoryRelationDTO> list = productFactoryRelationService.list(params);
|
||||
|
||||
ExcelUtils.exportExcelToTarget(response, null, list, ProductFactoryRelationExcel.class);
|
||||
}
|
||||
|
||||
@PostMapping("batchInsertFactory")
|
||||
@ApiOperation("添加多个工厂关联")
|
||||
@LogOperation("添加多个工厂关联")
|
||||
public Result batchInsertFactory(@RequestBody ProductFactoryRelationDTO[] lists){
|
||||
|
||||
productFactoryRelationService.batchInsertFactory(lists);
|
||||
|
||||
return new Result();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2,7 +2,7 @@ package com.cnbm.basic.controller;
|
||||
|
||||
import com.cnbm.admin.annotation.LogOperation;
|
||||
import com.cnbm.admin.params.IdParam;
|
||||
import com.cnbm.basic.dto.WorkingProcedureDTO;
|
||||
import com.cnbm.basic.dto.*;
|
||||
import com.cnbm.basic.entity.ProductFeatures;
|
||||
import com.cnbm.common.constant.Constant;
|
||||
import com.cnbm.common.page.PageData;
|
||||
@@ -13,7 +13,6 @@ 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.ProductFeaturesDTO;
|
||||
import com.cnbm.basic.excel.ProductFeaturesExcel;
|
||||
import com.cnbm.basic.service.IProductFeaturesService;
|
||||
import io.swagger.annotations.Api;
|
||||
@@ -52,7 +51,7 @@ public class ProductFeaturesController {
|
||||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class),
|
||||
@ApiImplicitParam(name = "id", value = "id", paramType = "query", dataTypeClass = Long.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFeatures:page')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFeatures:page')")
|
||||
public Result<PageData<ProductFeaturesDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<ProductFeaturesDTO> page = productFeaturesService.page(params);
|
||||
|
||||
@@ -61,7 +60,7 @@ public class ProductFeaturesController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFeatures:info')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFeatures:info')")
|
||||
public Result<ProductFeaturesDTO> get(@PathVariable("id") Long id){
|
||||
ProductFeaturesDTO data = productFeaturesService.get(id);
|
||||
|
||||
@@ -70,8 +69,8 @@ public class ProductFeaturesController {
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFeatures:save')")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFeatures:save')")
|
||||
public Result save(@RequestBody ProductFeaturesDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
@@ -83,8 +82,8 @@ public class ProductFeaturesController {
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFeatures:update')")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFeatures:update')")
|
||||
public Result update(@RequestBody ProductFeaturesDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -96,8 +95,8 @@ public class ProductFeaturesController {
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFeatures:delete')")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFeatures:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -109,12 +108,16 @@ public class ProductFeaturesController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFeatures:export')")
|
||||
@LogOperation("导出")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "productId", value = "产品", paramType = "query", dataTypeClass = Long.class),
|
||||
@ApiImplicitParam(name = "inspectionStage", value = "检测阶段", paramType = "query", dataTypeClass = Integer.class)
|
||||
})
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFeatures:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<ProductFeaturesDTO> list = productFeaturesService.list(params);
|
||||
List<ProductFeaturesDTO> list = productFeaturesService.getFeaturesList(params);
|
||||
|
||||
ExcelUtils.exportExcelToTarget(response, null, list, ProductFeaturesExcel.class);
|
||||
ExcelUtils.exportExcelToTarget(response, "ProductFeatures", list, ProductFeaturesExcel.class);
|
||||
}
|
||||
|
||||
@PostMapping("getProductFeaturesByProductId")
|
||||
@@ -124,4 +127,49 @@ public class ProductFeaturesController {
|
||||
return new Result<List<ProductFeaturesDTO>>().ok(list);
|
||||
}
|
||||
|
||||
@PostMapping("getFeaturesByStageProcedure")
|
||||
@ApiOperation("查询依据工序id 检验阶段")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "productId", value = "产品", paramType = "query", dataTypeClass = Long.class),
|
||||
//@ApiImplicitParam(name = "workingProcedureId", value = "工序", paramType = "query", dataTypeClass = Long.class),
|
||||
@ApiImplicitParam(name = "inspectionStage", value = "检测阶段", paramType = "query", dataTypeClass = Integer.class)
|
||||
})
|
||||
public Result<List<FeaturesProcedureDTO>> getFeaturesByStageProcedure(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
List<FeaturesProcedureDTO> list = productFeaturesService.getFeaturesByStageProcedure(params);
|
||||
return new Result<List<FeaturesProcedureDTO>>().ok(list);
|
||||
}
|
||||
|
||||
@PutMapping("batchUpdate")
|
||||
@ApiOperation("批量更新特性")
|
||||
public Result batchUpdate(@RequestBody ProductFeaturesDTO[] lists){
|
||||
|
||||
productFeaturesService.batchUpdate(lists);
|
||||
|
||||
return new Result();
|
||||
}
|
||||
|
||||
@PostMapping("getFeaturesList")
|
||||
@ApiOperation("特性列表")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "productId", value = "产品", paramType = "query", dataTypeClass = Long.class),
|
||||
@ApiImplicitParam(name = "inspectionStage", value = "检测阶段", paramType = "query", dataTypeClass = Integer.class)
|
||||
})
|
||||
public Result<List<ProductFeaturesDTO>> getFeaturesList(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
List<ProductFeaturesDTO> list = productFeaturesService.getFeaturesList(params);
|
||||
return new Result<List<ProductFeaturesDTO>>().ok(list);
|
||||
}
|
||||
|
||||
@PostMapping(value = "list")
|
||||
@ApiOperation(value = "获取特性列表")
|
||||
@LogOperation("获取特性列表")
|
||||
public List<ProductFeaturesDTO> list() {
|
||||
return productFeaturesService.list();
|
||||
}
|
||||
|
||||
@PostMapping("getProductFeaturesByType")
|
||||
@ApiOperation("根据特性类型 获取特性列表 计量型1 计数型2")
|
||||
public List<ProductFeaturesDTO> getProductFeaturesByType(Integer type){
|
||||
return productFeaturesService.getProductFeaturesByType(type);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -49,7 +49,7 @@ public class ProductFeaturesHisController {
|
||||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class),
|
||||
@ApiImplicitParam(name = "id", value = "id", paramType = "query", dataTypeClass = Long.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:page')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFeaturesHis:page')")
|
||||
public Result<PageData<ProductFeaturesHisDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<ProductFeaturesHisDTO> page = productFeaturesHisService.page(params);
|
||||
|
||||
@@ -58,7 +58,7 @@ public class ProductFeaturesHisController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:info')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFeaturesHis:info')")
|
||||
public Result<ProductFeaturesHisDTO> get(@PathVariable("id") Long id){
|
||||
ProductFeaturesHisDTO data = productFeaturesHisService.get(id);
|
||||
|
||||
@@ -67,8 +67,8 @@ public class ProductFeaturesHisController {
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:save')")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFeaturesHis:save')")
|
||||
public Result save(@RequestBody ProductFeaturesHisDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
@@ -80,8 +80,8 @@ public class ProductFeaturesHisController {
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:update')")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFeaturesHis:update')")
|
||||
public Result update(@RequestBody ProductFeaturesHisDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -93,8 +93,8 @@ public class ProductFeaturesHisController {
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:delete')")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFeaturesHis:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -106,8 +106,8 @@ public class ProductFeaturesHisController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productFeaturesHis:export')")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productFeaturesHis:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<ProductFeaturesHisDTO> list = productFeaturesHisService.list(params);
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.cnbm.basic.controller;
|
||||
|
||||
import com.cnbm.admin.annotation.LogOperation;
|
||||
import com.cnbm.admin.params.IdParam;
|
||||
import com.cnbm.basic.dto.UnitDTO;
|
||||
import com.cnbm.common.constant.Constant;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.utils.ExcelUtils;
|
||||
@@ -53,7 +54,7 @@ public class ProductTypeController {
|
||||
@ApiImplicitParam(name = "code", value = "编码", paramType = "query", dataTypeClass = String.class),
|
||||
@ApiImplicitParam(name = "status", value = "状态", paramType = "query", dataTypeClass = Integer.class)
|
||||
})
|
||||
// @PreAuthorize("@ex.hasAuthority('code:productType:page')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productType:page')")
|
||||
public Result<PageData<ProductTypeDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<ProductTypeDTO> page = productTypeService.page(params);
|
||||
|
||||
@@ -62,7 +63,7 @@ public class ProductTypeController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
// @PreAuthorize("@ex.hasAuthority('code:productType:info')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productType:info')")
|
||||
public Result<ProductTypeDTO> get(@PathVariable("id") Long id){
|
||||
ProductTypeDTO data = productTypeService.get(id);
|
||||
|
||||
@@ -71,8 +72,8 @@ public class ProductTypeController {
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
// @PreAuthorize("@ex.hasAuthority('code:productType:save')")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productType:save')")
|
||||
public Result save(@RequestBody ProductTypeDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
@@ -84,8 +85,8 @@ public class ProductTypeController {
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
// @PreAuthorize("@ex.hasAuthority('code:productType:update')")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productType:update')")
|
||||
public Result update(@RequestBody ProductTypeDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -97,8 +98,8 @@ public class ProductTypeController {
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
// @PreAuthorize("@ex.hasAuthority('code:productType:delete')")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productType:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -110,8 +111,8 @@ public class ProductTypeController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
// @PreAuthorize("@ex.hasAuthority('code:productType:export')")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productType:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<ProductTypeDTO> list = productTypeService.list(params);
|
||||
|
||||
@@ -120,11 +121,16 @@ public class ProductTypeController {
|
||||
|
||||
@PostMapping("status")
|
||||
@ApiOperation("改变状态")
|
||||
//@LogOperation("改变状态")
|
||||
@LogOperation("改变状态")
|
||||
public Result changeStatus(@RequestBody IdParam id){
|
||||
productTypeService.changeStatus(id.getId());
|
||||
|
||||
return new Result();
|
||||
}
|
||||
|
||||
@PostMapping(value = "list")
|
||||
@ApiOperation(value = "获取产品类型列表")
|
||||
public List<ProductTypeDTO> list() {
|
||||
return productTypeService.list();
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,9 @@
|
||||
package com.cnbm.basic.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
||||
import com.cnbm.admin.annotation.LogOperation;
|
||||
import com.cnbm.admin.params.IdParam;
|
||||
import com.cnbm.basic.dto.SequenceDTO;
|
||||
import com.cnbm.common.constant.Constant;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.utils.ExcelUtils;
|
||||
@@ -48,7 +52,7 @@ public class ProductWorkingprocedureRelationController {
|
||||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class),
|
||||
@ApiImplicitParam(name = "id", value = "id", paramType = "query", dataTypeClass = Long.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:page')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productWorkingprocedureRelation:page')")
|
||||
public Result<PageData<ProductWorkingprocedureRelationDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<ProductWorkingprocedureRelationDTO> page = productWorkingprocedureRelationService.page(params);
|
||||
|
||||
@@ -57,7 +61,7 @@ public class ProductWorkingprocedureRelationController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:info')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productWorkingprocedureRelation:info')")
|
||||
public Result<ProductWorkingprocedureRelationDTO> get(@PathVariable("id") Long id){
|
||||
ProductWorkingprocedureRelationDTO data = productWorkingprocedureRelationService.get(id);
|
||||
|
||||
@@ -66,21 +70,26 @@ public class ProductWorkingprocedureRelationController {
|
||||
|
||||
@PostMapping("save")
|
||||
@ApiOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:save')")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productWorkingprocedureRelation:save')")
|
||||
public Result save(@RequestBody ProductWorkingprocedureRelationDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
|
||||
productWorkingprocedureRelationService.save(dto);
|
||||
|
||||
return new Result();
|
||||
if(ObjectUtils.isNotNull(dto.getWorkingProcedureId())) {
|
||||
return new Result();
|
||||
}
|
||||
else{
|
||||
return new Result().error(1,"该工艺已经绑定");
|
||||
}
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:update')")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productWorkingprocedureRelation:update')")
|
||||
public Result update(@RequestBody ProductWorkingprocedureRelationDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -92,8 +101,8 @@ public class ProductWorkingprocedureRelationController {
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:delete')")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productWorkingprocedureRelation:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -105,8 +114,8 @@ public class ProductWorkingprocedureRelationController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:export')")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:productWorkingprocedureRelation:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<ProductWorkingprocedureRelationDTO> list = productWorkingprocedureRelationService.list(params);
|
||||
|
||||
@@ -115,7 +124,7 @@ public class ProductWorkingprocedureRelationController {
|
||||
|
||||
@GetMapping("getWorkingprocedureByProductId/{productId}")
|
||||
@ApiOperation("查询所有工序 依据产品id")
|
||||
//@LogOperation("查询所有工序 依据产品id")
|
||||
@LogOperation("查询所有工序 依据产品id")
|
||||
public Result<List<ProductWorkingprocedureRelationDTO>> getWorkingprocedureByProductId(@PathVariable("productId") Long productId){
|
||||
List<ProductWorkingprocedureRelationDTO> list = productWorkingprocedureRelationService.getWorkingprocedureByProductId(productId);
|
||||
return new Result<List<ProductWorkingprocedureRelationDTO>>().ok(list);
|
||||
@@ -123,8 +132,8 @@ public class ProductWorkingprocedureRelationController {
|
||||
|
||||
@PostMapping("batchInsertWorkingprocedure")
|
||||
@ApiOperation("添加工序流程")
|
||||
//@LogOperation("添加工序流程")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:productWorkingprocedureRelation:batchInsertWorkingprocedure')")
|
||||
@LogOperation("添加工序流程")
|
||||
//@PreAuthorize("@ex.hasAuthority('basic:productWorkingprocedureRelation:batchInsertWorkingprocedure')")
|
||||
public Result batchInsertWorkingprocedure(@RequestBody ProductWorkingprocedureRelationDTO[] lists){
|
||||
|
||||
productWorkingprocedureRelationService.batchInsertWorkingprocedure(lists);
|
||||
@@ -132,4 +141,30 @@ public class ProductWorkingprocedureRelationController {
|
||||
return new Result();
|
||||
}
|
||||
|
||||
@PutMapping("sequenceUp")
|
||||
@ApiOperation("产品工序上移")
|
||||
// @ApiImplicitParams({
|
||||
// @ApiImplicitParam(name = "productId", value = "产品", paramType = "query", dataTypeClass = Long.class),
|
||||
// @ApiImplicitParam(name = "index", value = "产品工序序号", paramType = "query", dataTypeClass = Integer.class)
|
||||
// })
|
||||
public Result sequenceUp(@RequestBody SequenceDTO sequenceDTO){
|
||||
|
||||
productWorkingprocedureRelationService.sequenceUp(sequenceDTO);
|
||||
|
||||
return new Result();
|
||||
}
|
||||
|
||||
@PutMapping("sequenceDown")
|
||||
@ApiOperation("产品工序下移")
|
||||
// @ApiImplicitParams({
|
||||
// @ApiImplicitParam(name = "productId", value = "产品", paramType = "query", dataTypeClass = Long.class),
|
||||
// @ApiImplicitParam(name = "index", value = "产品工序序号", paramType = "query", dataTypeClass = Integer.class)
|
||||
// })
|
||||
public Result sequenceDown(@RequestBody SequenceDTO sequenceDTO){
|
||||
|
||||
productWorkingprocedureRelationService.sequenceDown(sequenceDTO);
|
||||
|
||||
return new Result();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -49,7 +49,7 @@ public class ShiftController {
|
||||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class),
|
||||
@ApiImplicitParam(name = "id", value = "id", paramType = "query", dataTypeClass = Long.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:shift:page')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:shift:page')")
|
||||
public Result<PageData<ShiftDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<ShiftDTO> page = shiftService.page(params);
|
||||
|
||||
@@ -58,7 +58,7 @@ public class ShiftController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:shift:info')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:shift:info')")
|
||||
public Result<ShiftDTO> get(@PathVariable("id") Long id){
|
||||
ShiftDTO data = shiftService.get(id);
|
||||
|
||||
@@ -67,8 +67,8 @@ public class ShiftController {
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:shift:save')")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:shift:save')")
|
||||
public Result save(@RequestBody ShiftDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
@@ -80,8 +80,8 @@ public class ShiftController {
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:shift:update')")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:shift:update')")
|
||||
public Result update(@RequestBody ShiftDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -93,8 +93,8 @@ public class ShiftController {
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:shift:delete')")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:shift:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -106,12 +106,19 @@ public class ShiftController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:shift:export')")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:shift:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<ShiftDTO> list = shiftService.list(params);
|
||||
|
||||
ExcelUtils.exportExcelToTarget(response, null, list, ShiftExcel.class);
|
||||
}
|
||||
|
||||
@PostMapping(value = "list")
|
||||
@ApiOperation(value = "获取班次列表")
|
||||
@LogOperation("获取班次列表")
|
||||
public List<ShiftDTO> list() {
|
||||
return shiftService.list();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.cnbm.basic.controller;
|
||||
|
||||
import com.cnbm.admin.annotation.LogOperation;
|
||||
import com.cnbm.basic.dto.ShiftDTO;
|
||||
import com.cnbm.common.constant.Constant;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.utils.ExcelUtils;
|
||||
@@ -49,7 +50,7 @@ public class TeamController {
|
||||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class),
|
||||
@ApiImplicitParam(name = "id", value = "id", paramType = "query", dataTypeClass = Long.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:team:page')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:team:page')")
|
||||
public Result<PageData<TeamDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<TeamDTO> page = teamService.page(params);
|
||||
|
||||
@@ -58,7 +59,7 @@ public class TeamController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:team:info')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:team:info')")
|
||||
public Result<TeamDTO> get(@PathVariable("id") Long id){
|
||||
TeamDTO data = teamService.get(id);
|
||||
|
||||
@@ -67,8 +68,8 @@ public class TeamController {
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:team:save')")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:team:save')")
|
||||
public Result save(@RequestBody TeamDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
@@ -80,8 +81,8 @@ public class TeamController {
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:team:update')")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:team:update')")
|
||||
public Result update(@RequestBody TeamDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -93,8 +94,8 @@ public class TeamController {
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:team:delete')")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:team:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -106,12 +107,17 @@ public class TeamController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:team:export')")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:team:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<TeamDTO> list = teamService.list(params);
|
||||
|
||||
ExcelUtils.exportExcelToTarget(response, null, list, TeamExcel.class);
|
||||
}
|
||||
|
||||
@PostMapping(value = "list")
|
||||
@ApiOperation(value = "获取班组列表")
|
||||
@LogOperation("获取班组列表")
|
||||
public List<TeamDTO> list() { return teamService.list(); }
|
||||
|
||||
}
|
||||
@@ -20,10 +20,12 @@ import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import springfox.documentation.annotations.ApiIgnore;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.groups.Default;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -48,9 +50,11 @@ public class UnitController {
|
||||
@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),
|
||||
@ApiImplicitParam(name = "name", value = "名称", paramType = "query", dataTypeClass = String.class),
|
||||
@ApiImplicitParam(name = "code", value = "编码", paramType = "query", dataTypeClass = String.class),
|
||||
@ApiImplicitParam(name = "status", value = "状态", paramType = "query", dataTypeClass = Integer.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:unit:page')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:unit:page')")
|
||||
public Result<PageData<UnitDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<UnitDTO> page = unitService.page(params);
|
||||
|
||||
@@ -59,7 +63,7 @@ public class UnitController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:unit:info')")
|
||||
//@PreAuthorize("@ex.hasAuthority('basic:unit:info')")
|
||||
public Result<UnitDTO> get(@PathVariable("id") Long id){
|
||||
UnitDTO data = unitService.get(id);
|
||||
|
||||
@@ -68,8 +72,8 @@ public class UnitController {
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:unit:save')")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:unit:save')")
|
||||
public Result save(@RequestBody UnitDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
@@ -81,8 +85,8 @@ public class UnitController {
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:unit:update')")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:unit:update')")
|
||||
public Result update(@RequestBody UnitDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -94,8 +98,8 @@ public class UnitController {
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:unit:delete')")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:unit:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -107,8 +111,8 @@ public class UnitController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:unit:export')")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:unit:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<UnitDTO> list = unitService.list(params);
|
||||
|
||||
@@ -117,11 +121,17 @@ public class UnitController {
|
||||
|
||||
@PostMapping("status")
|
||||
@ApiOperation("改变状态")
|
||||
//@LogOperation("改变状态")
|
||||
@LogOperation("改变状态")
|
||||
public Result changeStatus(@RequestBody IdParam id){
|
||||
unitService.changeStatus(id.getId());
|
||||
|
||||
return new Result();
|
||||
}
|
||||
|
||||
@PostMapping(value = "list")
|
||||
@ApiOperation(value = "获取单位列表")
|
||||
@LogOperation("获取单位列表")
|
||||
public List<UnitDTO> list() {
|
||||
return unitService.list();
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,9 @@ package com.cnbm.basic.controller;
|
||||
|
||||
import com.cnbm.admin.annotation.LogOperation;
|
||||
import com.cnbm.admin.params.IdParam;
|
||||
import com.cnbm.basic.dto.UnitDTO;
|
||||
import com.cnbm.basic.dto.WorkingProcedureTypeDTO;
|
||||
import com.cnbm.basic.entity.WorkingProcedure;
|
||||
import com.cnbm.common.constant.Constant;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.utils.ExcelUtils;
|
||||
@@ -52,7 +55,7 @@ public class WorkingProcedureController {
|
||||
@ApiImplicitParam(name = "code", value = "编码", paramType = "query", dataTypeClass = String.class),
|
||||
@ApiImplicitParam(name = "status", value = "状态", paramType = "query", dataTypeClass = Integer.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:workingProcedure:page')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:workingProcedure:page')")
|
||||
public Result<PageData<WorkingProcedureDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<WorkingProcedureDTO> page = workingProcedureService.page(params);
|
||||
|
||||
@@ -61,7 +64,7 @@ public class WorkingProcedureController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:workingProcedure:info')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:workingProcedure:info')")
|
||||
public Result<WorkingProcedureDTO> get(@PathVariable("id") Long id){
|
||||
WorkingProcedureDTO data = workingProcedureService.get(id);
|
||||
|
||||
@@ -70,8 +73,8 @@ public class WorkingProcedureController {
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:workingProcedure:save')")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:workingProcedure:save')")
|
||||
public Result save(@RequestBody WorkingProcedureDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
@@ -83,8 +86,8 @@ public class WorkingProcedureController {
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:workingProcedure:update')")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:workingProcedure:update')")
|
||||
public Result update(@RequestBody WorkingProcedureDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -96,8 +99,8 @@ public class WorkingProcedureController {
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:workingProcedure:delete')")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:workingProcedure:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -109,8 +112,8 @@ public class WorkingProcedureController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:workingProcedure:export')")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:workingProcedure:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<WorkingProcedureDTO> list = workingProcedureService.list(params);
|
||||
|
||||
@@ -119,7 +122,7 @@ public class WorkingProcedureController {
|
||||
|
||||
@PostMapping("status")
|
||||
@ApiOperation("改变状态")
|
||||
//@LogOperation("改变状态")
|
||||
@LogOperation("改变状态")
|
||||
public Result changeStatus(@RequestBody IdParam id){
|
||||
workingProcedureService.changeStatus(id.getId());
|
||||
|
||||
@@ -128,10 +131,27 @@ public class WorkingProcedureController {
|
||||
|
||||
@GetMapping("getWorkingprocedureByProductId/{productId}")
|
||||
@ApiOperation("查询所有工序 依据产品id")
|
||||
//@LogOperation("查询所有工序 依据产品id")
|
||||
@LogOperation("查询所有工序 依据产品id")
|
||||
public Result<List<WorkingProcedureDTO>> getWorkingprocedureByProductId(@PathVariable("productId") Long productId){
|
||||
List<WorkingProcedureDTO> list = workingProcedureService.getWorkingProcedureByProductId(productId);
|
||||
return new Result<List<WorkingProcedureDTO>>().ok(list);
|
||||
}
|
||||
|
||||
@PostMapping(value = "list")
|
||||
@ApiOperation(value = "获取工序列表")
|
||||
public List<WorkingProcedureDTO> list() {
|
||||
return workingProcedureService.list();
|
||||
}
|
||||
|
||||
@PostMapping(value = "listByType/{typeId}")
|
||||
@ApiOperation(value = "根据工序类型 获取工序列表")
|
||||
public List<WorkingProcedure> listByType(@PathVariable("typeId") Long typeId) {
|
||||
return workingProcedureService.listByType(typeId);
|
||||
}
|
||||
|
||||
@PostMapping(value = "listWithType")
|
||||
@ApiOperation(value = "工序类型及对应工序列表")
|
||||
public List<WorkingProcedureTypeDTO> listWithType () {
|
||||
return workingProcedureService.listWithType();
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,7 @@ package com.cnbm.basic.controller;
|
||||
|
||||
import com.cnbm.admin.annotation.LogOperation;
|
||||
import com.cnbm.admin.params.IdParam;
|
||||
import com.cnbm.basic.dto.WorkingProcedureDTO;
|
||||
import com.cnbm.common.constant.Constant;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.utils.ExcelUtils;
|
||||
@@ -48,9 +49,11 @@ public class WorkingProcedureTypeController {
|
||||
@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),
|
||||
@ApiImplicitParam(name = "name", value = "名称", paramType = "query", dataTypeClass = String.class),
|
||||
@ApiImplicitParam(name = "code", value = "编码", paramType = "query", dataTypeClass = String.class),
|
||||
@ApiImplicitParam(name = "status", value = "状态", paramType = "query", dataTypeClass = Integer.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:workingProcedureType:page')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:workingProcedureType:page')")
|
||||
public Result<PageData<WorkingProcedureTypeDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<WorkingProcedureTypeDTO> page = workingProcedureTypeService.page(params);
|
||||
|
||||
@@ -59,7 +62,7 @@ public class WorkingProcedureTypeController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:workingProcedureType:info')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:workingProcedureType:info')")
|
||||
public Result<WorkingProcedureTypeDTO> get(@PathVariable("id") Long id){
|
||||
WorkingProcedureTypeDTO data = workingProcedureTypeService.get(id);
|
||||
|
||||
@@ -68,8 +71,8 @@ public class WorkingProcedureTypeController {
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:workingProcedureType:save')")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:workingProcedureType:save')")
|
||||
public Result save(@RequestBody WorkingProcedureTypeDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
@@ -81,8 +84,8 @@ public class WorkingProcedureTypeController {
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:workingProcedureType:update')")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:workingProcedureType:update')")
|
||||
public Result update(@RequestBody WorkingProcedureTypeDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -94,8 +97,8 @@ public class WorkingProcedureTypeController {
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:workingProcedureType:delete')")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:workingProcedureType:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -107,8 +110,8 @@ public class WorkingProcedureTypeController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:workingProcedureType:export')")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:workingProcedureType:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<WorkingProcedureTypeDTO> list = workingProcedureTypeService.list(params);
|
||||
|
||||
@@ -117,11 +120,17 @@ public class WorkingProcedureTypeController {
|
||||
|
||||
@PostMapping("status")
|
||||
@ApiOperation("改变状态")
|
||||
//@LogOperation("改变状态")
|
||||
@LogOperation("改变状态")
|
||||
public Result changeStatus(@RequestBody IdParam id){
|
||||
workingProcedureTypeService.changeStatus(id.getId());
|
||||
|
||||
return new Result();
|
||||
}
|
||||
|
||||
@PostMapping(value = "list")
|
||||
@ApiOperation(value = "获取工序类型列表")
|
||||
private List<WorkingProcedureTypeDTO> list(@ApiIgnore @RequestParam Map<String, Object> params) {
|
||||
return workingProcedureTypeService.list(params);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.cnbm.basic.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "工艺特性-工序 DTO对象")
|
||||
public class FeaturesProcedureDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "检验参数id,关联product_features表")
|
||||
private Long productFeaturesId;
|
||||
|
||||
@ApiModelProperty(value = "工序id,关联 working_procedure 表")
|
||||
private Long workingProcedureId;
|
||||
}
|
||||
@@ -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-09-01
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "过程检验-工艺-检验参数 关系表 DTO对象")
|
||||
public class FeaturesStageProcedureRelationDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
|
||||
@ApiModelProperty(value = "ID")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "检验参数id,关联product_features表")
|
||||
private Long productFeaturesId;
|
||||
|
||||
@ApiModelProperty(value = "工序id,关联 working_procedure 表")
|
||||
private Long workingProcedureId;
|
||||
|
||||
@ApiModelProperty(value = "(如果为空就代表4个阶段都不是)检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验")
|
||||
private Integer inspectionStage;
|
||||
|
||||
@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;
|
||||
|
||||
}
|
||||
@@ -6,6 +6,7 @@ import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
@@ -82,4 +83,7 @@ public class ProductDTO implements Serializable {
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "工厂")
|
||||
private List<Long> factoryList;
|
||||
|
||||
}
|
||||
@@ -19,7 +19,6 @@ public class ProductFeaturesDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
|
||||
@ApiModelProperty(value = "ID")
|
||||
private Long id;
|
||||
|
||||
@@ -62,15 +61,6 @@ public class ProductFeaturesDTO implements Serializable {
|
||||
@ApiModelProperty(value = "检验参数 规格上线")
|
||||
private Float usl;
|
||||
|
||||
@ApiModelProperty(value = "工序id,关联 working_procedure 表id")
|
||||
private Long workingProcedureId;
|
||||
|
||||
@ApiModelProperty(value = "工序编码,关联 working_procedure 表id")
|
||||
private String workingProcedureCode;
|
||||
|
||||
@ApiModelProperty(value = "工序名称,关联 working_procedure 表id")
|
||||
private String workingProcedureName;
|
||||
|
||||
@ApiModelProperty(value = "分析图形,关联control_graph表id")
|
||||
private Long controlGraphId;
|
||||
|
||||
@@ -122,4 +112,10 @@ public class ProductFeaturesDTO implements Serializable {
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "工序id,关联 working_procedure 表")
|
||||
private Long workingProcedureId;
|
||||
|
||||
@ApiModelProperty(value = "工序 名,关联working_procedure表")
|
||||
private String workingProcedureName;
|
||||
|
||||
}
|
||||
@@ -18,8 +18,6 @@ import java.time.LocalDateTime;
|
||||
public class ProductFeaturesHisDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
|
||||
@ApiModelProperty(value = "ID")
|
||||
private Long id;
|
||||
|
||||
@@ -59,9 +57,6 @@ public class ProductFeaturesHisDTO implements Serializable {
|
||||
@ApiModelProperty(value = "检验参数 规格上线")
|
||||
private Float usl;
|
||||
|
||||
@ApiModelProperty(value = "工序id,关联 working_procedure 表id")
|
||||
private Long workingProcedureId;
|
||||
|
||||
@ApiModelProperty(value = "是否需要spc分析,1 yes;0 no")
|
||||
private Integer isSpc;
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ public class ProductTypeDTO implements Serializable {
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String desc;
|
||||
private String descs;
|
||||
|
||||
@ApiModelProperty(value = "1 可用,0 不可用")
|
||||
private Integer status;
|
||||
|
||||
@@ -33,12 +33,39 @@ public class ProductWorkingprocedureRelationDTO implements Serializable {
|
||||
@ApiModelProperty(value = "工序名称,关联 working_procedure 表")
|
||||
private String workingProcedureName;
|
||||
|
||||
@ApiModelProperty(value = "工序编码,关联 working_procedure 表")
|
||||
private String workingProcedureCode;
|
||||
|
||||
@ApiModelProperty(value = "顺序,工序是有先后顺序的。")
|
||||
private Integer sequence;
|
||||
|
||||
@ApiModelProperty(value = "1 可用,0 不可用")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "node.shape")
|
||||
private String shape;
|
||||
|
||||
@ApiModelProperty(value = "node.x")
|
||||
private Integer x;
|
||||
|
||||
@ApiModelProperty(value = "node.y")
|
||||
private Integer y;
|
||||
|
||||
@ApiModelProperty(value = "node.width")
|
||||
private Integer width;
|
||||
|
||||
@ApiModelProperty(value = "node.width")
|
||||
private Integer height;
|
||||
|
||||
@ApiModelProperty(value = "node.lable")
|
||||
private String lable;
|
||||
|
||||
@ApiModelProperty(value = "字体颜色")
|
||||
private String fontcolor;
|
||||
|
||||
@ApiModelProperty(value = "背景颜色")
|
||||
private String backcolor;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
|
||||
18
ym-baisc/src/main/java/com/cnbm/basic/dto/SequenceDTO.java
Normal file
18
ym-baisc/src/main/java/com/cnbm/basic/dto/SequenceDTO.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package com.cnbm.basic.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "顺序更新参数")
|
||||
public class SequenceDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "产品id")
|
||||
private Long productId;
|
||||
|
||||
@ApiModelProperty(value = "产品工序序号")
|
||||
private Integer index;
|
||||
}
|
||||
@@ -1,11 +1,13 @@
|
||||
package com.cnbm.basic.dto;
|
||||
|
||||
import com.cnbm.basic.entity.WorkingProcedure;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 工序类型表 表
|
||||
@@ -59,4 +61,7 @@ public class WorkingProcedureTypeDTO implements Serializable {
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "工序列表")
|
||||
private List<WorkingProcedure> workingProcedureList;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.cnbm.basic.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 过程检验-工艺-检验参数 关系表
|
||||
* </p>
|
||||
*
|
||||
* @author why
|
||||
* @since 2022-09-01
|
||||
*/
|
||||
@Data
|
||||
@TableName("features_stage_procedure_relation")
|
||||
@ApiModel(value = "FeaturesStageProcedureRelation对象", description = "过程检验-工艺-检验参数 关系表 ")
|
||||
public class FeaturesStageProcedureRelation implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty("检验参数id,关联product_features表")
|
||||
private Long productFeaturesId;
|
||||
|
||||
@ApiModelProperty("工序id,关联 working_procedure 表")
|
||||
private Long workingProcedureId;
|
||||
|
||||
@ApiModelProperty("(如果为空就代表4个阶段都不是)检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验")
|
||||
private Integer inspectionStage;
|
||||
|
||||
@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;
|
||||
|
||||
|
||||
}
|
||||
@@ -58,9 +58,6 @@ public class ProductFeatures implements Serializable {
|
||||
@ApiModelProperty("检验参数 规格上线")
|
||||
private Float usl;
|
||||
|
||||
@ApiModelProperty("工序id,关联 working_procedure 表id")
|
||||
private Long workingProcedureId;
|
||||
|
||||
@ApiModelProperty("分析图形,关联control_graph表id")
|
||||
private Long controlGraphId;
|
||||
|
||||
|
||||
@@ -61,9 +61,6 @@ public class ProductFeaturesHis implements Serializable {
|
||||
@ApiModelProperty("检验参数 规格上线")
|
||||
private Float usl;
|
||||
|
||||
@ApiModelProperty("工序id,关联 working_procedure 表id")
|
||||
private Long workingProcedureId;
|
||||
|
||||
@ApiModelProperty("是否需要spc分析,1 yes;0 no")
|
||||
private Integer isSpc;
|
||||
|
||||
|
||||
@@ -38,6 +38,30 @@ public class ProductWorkingprocedureRelation implements Serializable {
|
||||
@ApiModelProperty("1 可用,0 不可用")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty("node.shape")
|
||||
private String shape;
|
||||
|
||||
@ApiModelProperty("node.x")
|
||||
private Integer x;
|
||||
|
||||
@ApiModelProperty("node.y")
|
||||
private Integer y;
|
||||
|
||||
@ApiModelProperty("node.width")
|
||||
private Integer width;
|
||||
|
||||
@ApiModelProperty("node.width")
|
||||
private Integer height;
|
||||
|
||||
@ApiModelProperty("node.lable")
|
||||
private String lable;
|
||||
|
||||
@ApiModelProperty("字体颜色")
|
||||
private String fontcolor;
|
||||
|
||||
@ApiModelProperty("背景颜色")
|
||||
private String backcolor;
|
||||
|
||||
@ApiModelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
|
||||
@@ -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-09-01
|
||||
*/
|
||||
@Data
|
||||
public class FeaturesStageProcedureRelationExcel {
|
||||
@Excel(name = "ID")
|
||||
private Long id;
|
||||
@Excel(name = "检验参数id,关联product_features表")
|
||||
private Long productFeaturesId;
|
||||
@Excel(name = "工序id,关联 working_procedure 表")
|
||||
private Long workingProcedureId;
|
||||
@Excel(name = "(如果为空就代表4个阶段都不是)检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验")
|
||||
private Integer inspectionStage;
|
||||
@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;
|
||||
|
||||
}
|
||||
@@ -37,8 +37,6 @@ public class ProductFeaturesExcel {
|
||||
private Float sl;
|
||||
@Excel(name = "检验参数 规格上线")
|
||||
private Float usl;
|
||||
@Excel(name = "工序id,关联 working_procedure 表id")
|
||||
private Long workingProcedureId;
|
||||
@Excel(name = "分析图形,关联control_graph表id")
|
||||
private Long controlGraphId;
|
||||
@Excel(name = "是否需要spc分析,1 yes;0 no")
|
||||
|
||||
@@ -39,8 +39,6 @@ public class ProductFeaturesHisExcel {
|
||||
private Float sl;
|
||||
@Excel(name = "检验参数 规格上线")
|
||||
private Float usl;
|
||||
@Excel(name = "工序id,关联 working_procedure 表id")
|
||||
private Long workingProcedureId;
|
||||
@Excel(name = "是否需要spc分析,1 yes;0 no")
|
||||
private Integer isSpc;
|
||||
@Excel(name = "分析图形,关联control_graph表id")
|
||||
|
||||
@@ -20,7 +20,7 @@ public class ProductTypeExcel {
|
||||
@Excel(name = "产品类型 编码")
|
||||
private String code;
|
||||
@Excel(name = "描述")
|
||||
private String desc;
|
||||
private String descs;
|
||||
@Excel(name = "1 可用,0 不可用")
|
||||
private Integer status;
|
||||
@Excel(name = "备注")
|
||||
|
||||
@@ -23,6 +23,22 @@ public class ProductWorkingprocedureRelationExcel {
|
||||
private Integer sequence;
|
||||
@Excel(name = "1 可用,0 不可用")
|
||||
private Integer status;
|
||||
@Excel(name = "node.shape")
|
||||
private String shape;
|
||||
@Excel(name = "node.x")
|
||||
private Integer x;
|
||||
@Excel(name = "node.y")
|
||||
private Integer y;
|
||||
@Excel(name = "node.width")
|
||||
private Integer width;
|
||||
@Excel(name = "node.width")
|
||||
private Integer height;
|
||||
@Excel(name = "node.lable")
|
||||
private String lable;
|
||||
@Excel(name = "字体颜色")
|
||||
private String fontcolor;
|
||||
@Excel(name = "背景颜色")
|
||||
private String backcolor;
|
||||
@Excel(name = "备注")
|
||||
private String remark;
|
||||
@Excel(name = "删除标志,是否有效:1 可用 0不可用")
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.cnbm.basic.mapper;
|
||||
|
||||
import com.cnbm.basic.dto.ProductFeaturesDTO;
|
||||
import com.cnbm.common.dao.BaseDao;
|
||||
import com.cnbm.basic.entity.FeaturesStageProcedureRelation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 过程检验-工艺-检验参数 关系表
|
||||
*
|
||||
* @author why
|
||||
* @since 2022-09-01
|
||||
*/
|
||||
@Mapper
|
||||
public interface FeaturesStageProcedureRelationMapper extends BaseDao<FeaturesStageProcedureRelation> {
|
||||
|
||||
void deleteByStageProcedure(Map<String, Object> params);
|
||||
}
|
||||
@@ -1,9 +1,12 @@
|
||||
package com.cnbm.basic.mapper;
|
||||
|
||||
import com.cnbm.basic.dto.MeasureToolDTO;
|
||||
import com.cnbm.common.dao.BaseDao;
|
||||
import com.cnbm.basic.entity.MeasureTool;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 量具表
|
||||
*
|
||||
@@ -12,5 +15,5 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
*/
|
||||
@Mapper
|
||||
public interface MeasureToolMapper extends BaseDao<MeasureTool> {
|
||||
|
||||
List<MeasureToolDTO> list();
|
||||
}
|
||||
@@ -4,6 +4,8 @@ import com.cnbm.common.dao.BaseDao;
|
||||
import com.cnbm.basic.entity.ProductFactoryRelation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品-工厂 关系表
|
||||
*
|
||||
@@ -12,5 +14,5 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
*/
|
||||
@Mapper
|
||||
public interface ProductFactoryRelationMapper extends BaseDao<ProductFactoryRelation> {
|
||||
|
||||
List<Long> getFactoryListByProductId(Long productId);
|
||||
}
|
||||
@@ -1,11 +1,14 @@
|
||||
package com.cnbm.basic.mapper;
|
||||
|
||||
import com.cnbm.basic.dto.FeaturesProcedureDTO;
|
||||
import com.cnbm.basic.dto.FeaturesStageProcedureRelationDTO;
|
||||
import com.cnbm.basic.dto.ProductFeaturesDTO;
|
||||
import com.cnbm.common.dao.BaseDao;
|
||||
import com.cnbm.basic.entity.ProductFeatures;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 产品特性 表
|
||||
@@ -16,4 +19,14 @@ import java.util.List;
|
||||
@Mapper
|
||||
public interface ProductFeaturesMapper extends BaseDao<ProductFeatures> {
|
||||
List<ProductFeaturesDTO> getProductFeaturesByProductId(Long id);
|
||||
|
||||
List<FeaturesProcedureDTO> getFeaturesByStageProcedure(Map<String, Object> params);
|
||||
|
||||
List<ProductFeaturesDTO> getFeaturesList(Map<String, Object> params);
|
||||
|
||||
String getControlGraphNameById(Long id);
|
||||
|
||||
List<ProductFeaturesDTO> list();
|
||||
|
||||
List<ProductFeaturesDTO> getProductFeaturesByType(Integer type);
|
||||
}
|
||||
@@ -7,6 +7,7 @@ import com.cnbm.basic.entity.Product;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -18,4 +19,5 @@ import java.util.Map;
|
||||
@Mapper
|
||||
public interface ProductMapper extends BaseDao<Product> {
|
||||
// IPage<ProductDTO> page(Map<String, Object> params);
|
||||
List<ProductDTO> list();
|
||||
}
|
||||
@@ -1,9 +1,12 @@
|
||||
package com.cnbm.basic.mapper;
|
||||
|
||||
import com.cnbm.basic.dto.ProductWorkingprocedureRelationDTO;
|
||||
import com.cnbm.common.dao.BaseDao;
|
||||
import com.cnbm.basic.entity.ProductWorkingprocedureRelation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 工序 表
|
||||
*
|
||||
@@ -12,5 +15,5 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
*/
|
||||
@Mapper
|
||||
public interface ProductWorkingprocedureRelationMapper extends BaseDao<ProductWorkingprocedureRelation> {
|
||||
|
||||
List<ProductWorkingprocedureRelationDTO> getWorkingprocedureByProductId(Long productId);
|
||||
}
|
||||
@@ -1,9 +1,12 @@
|
||||
package com.cnbm.basic.mapper;
|
||||
|
||||
import com.cnbm.basic.dto.ShiftDTO;
|
||||
import com.cnbm.common.dao.BaseDao;
|
||||
import com.cnbm.basic.entity.Shift;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 班次 表
|
||||
*
|
||||
@@ -12,5 +15,6 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
*/
|
||||
@Mapper
|
||||
public interface ShiftMapper extends BaseDao<Shift> {
|
||||
|
||||
|
||||
List<ShiftDTO> list();
|
||||
}
|
||||
@@ -1,9 +1,12 @@
|
||||
package com.cnbm.basic.mapper;
|
||||
|
||||
import com.cnbm.basic.dto.TeamDTO;
|
||||
import com.cnbm.common.dao.BaseDao;
|
||||
import com.cnbm.basic.entity.Team;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 班组 表
|
||||
*
|
||||
@@ -12,5 +15,6 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
*/
|
||||
@Mapper
|
||||
public interface TeamMapper extends BaseDao<Team> {
|
||||
|
||||
|
||||
List<TeamDTO> list();
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
package com.cnbm.basic.mapper;
|
||||
|
||||
import com.cnbm.basic.dto.WorkingProcedureDTO;
|
||||
import com.cnbm.basic.dto.WorkingProcedureTypeDTO;
|
||||
import com.cnbm.common.dao.BaseDao;
|
||||
import com.cnbm.basic.entity.WorkingProcedureType;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 工序类型表 表
|
||||
*
|
||||
@@ -12,5 +16,6 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
*/
|
||||
@Mapper
|
||||
public interface WorkingProcedureTypeMapper extends BaseDao<WorkingProcedureType> {
|
||||
|
||||
|
||||
List<WorkingProcedureTypeDTO> list();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 菜单初始SQL
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1561977619142254594, 1067246875800000035, '工厂 表', 'basic/factory', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977619142254595, 1561977619142254594, '查看', NULL, 'basic:factory:page,basic:factory:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977619142254596, 1561977619142254594, '新增', NULL, 'basic:factory:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977619142254597, 1561977619142254594, '修改', NULL, 'basic:factory:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977619142254598, 1561977619142254594, '删除', NULL, 'basic:factory:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977619142254599, 1561977619142254594, '导出', NULL, 'basic:factory:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 菜单初始SQL
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1565241134464434177, 1067246875800000035, '过程检验-工艺-检验参数 关系表 ', 'basic/featuresStageProcedureRelation', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1565241134464434178, 1565241134464434177, '查看', NULL, 'basic:featuresStageProcedureRelation:page,basic:featuresStageProcedureRelation:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1565241134464434179, 1565241134464434177, '新增', NULL, 'basic:featuresStageProcedureRelation:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1565241134464434180, 1565241134464434177, '修改', NULL, 'basic:featuresStageProcedureRelation:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1565241134464434181, 1565241134464434177, '删除', NULL, 'basic:featuresStageProcedureRelation:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1565241134464434182, 1565241134464434177, '导出', NULL, 'basic:featuresStageProcedureRelation:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 菜单初始SQL
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1561978239198765057, 1067246875800000035, '机台表', 'basic/machine', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978239198765058, 1561978239198765057, '查看', NULL, 'basic:machine:page,basic:machine:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978239198765059, 1561978239198765057, '新增', NULL, 'basic:machine:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978239198765060, 1561978239198765057, '修改', NULL, 'basic:machine:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978239198765061, 1561978239198765057, '删除', NULL, 'basic:machine:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978239198765062, 1561978239198765057, '导出', NULL, 'basic:machine:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 菜单初始SQL
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1561978986309140482, 1067246875800000035, '量具表', 'basic/measureTool', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978986309140483, 1561978986309140482, '查看', NULL, 'basic:measureTool:page,basic:measureTool:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978986309140484, 1561978986309140482, '新增', NULL, 'basic:measureTool:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978986309140485, 1561978986309140482, '修改', NULL, 'basic:measureTool:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978986309140486, 1561978986309140482, '删除', NULL, 'basic:measureTool:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978986309140487, 1561978986309140482, '导出', NULL, 'basic:measureTool:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 菜单初始SQL
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1561978141555367938, 1067246875800000035, '站点表', 'basic/platform', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978141555367939, 1561978141555367938, '查看', NULL, 'basic:platform:page,basic:platform:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978141555367940, 1561978141555367938, '新增', NULL, 'basic:platform:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978141555367941, 1561978141555367938, '修改', NULL, 'basic:platform:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978141555367942, 1561978141555367938, '删除', NULL, 'basic:platform:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978141555367943, 1561978141555367938, '导出', NULL, 'basic:platform:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 菜单初始SQL
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1561977729704062978, 1067246875800000035, '产品-工厂 关系表', 'basic/productFactoryRelation', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977729704062979, 1561977729704062978, '查看', NULL, 'basic:productFactoryRelation:page,basic:productFactoryRelation:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977729704062980, 1561977729704062978, '新增', NULL, 'basic:productFactoryRelation:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977729704062981, 1561977729704062978, '修改', NULL, 'basic:productFactoryRelation:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977729704062982, 1561977729704062978, '删除', NULL, 'basic:productFactoryRelation:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977729704062983, 1561977729704062978, '导出', NULL, 'basic:productFactoryRelation:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 菜单初始SQL
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1561978894416162817, 1067246875800000035, '产品特性 历史表', 'basic/productFeaturesHis', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978894416162818, 1561978894416162817, '查看', NULL, 'basic:productFeaturesHis:page,basic:productFeaturesHis:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978894416162819, 1561978894416162817, '新增', NULL, 'basic:productFeaturesHis:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978894416162820, 1561978894416162817, '修改', NULL, 'basic:productFeaturesHis:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978894416162821, 1561978894416162817, '删除', NULL, 'basic:productFeaturesHis:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978894416162822, 1561978894416162817, '导出', NULL, 'basic:productFeaturesHis:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 菜单初始SQL
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1561978720398680066, 1067246875800000035, '产品特性 表', 'basic/productFeatures', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978720398680067, 1561978720398680066, '查看', NULL, 'basic:productFeatures:page,basic:productFeatures:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978720398680068, 1561978720398680066, '新增', NULL, 'basic:productFeatures:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978720398680069, 1561978720398680066, '修改', NULL, 'basic:productFeatures:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978720398680070, 1561978720398680066, '删除', NULL, 'basic:productFeatures:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978720398680071, 1561978720398680066, '导出', NULL, 'basic:productFeatures:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 菜单初始SQL
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1561975128501645313, 1067246875800000035, '产品类型 表', 'basic/productType', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561975128501645314, 1561975128501645313, '查看', NULL, 'basic:productType:page,basic:productType:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561975128501645315, 1561975128501645313, '新增', NULL, 'basic:productType:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561975128501645316, 1561975128501645313, '修改', NULL, 'basic:productType:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561975128501645317, 1561975128501645313, '删除', NULL, 'basic:productType:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561975128501645318, 1561975128501645313, '导出', NULL, 'basic:productType:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 菜单初始SQL
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1561978609518055426, 1067246875800000035, '产品-工序 关系表', 'basic/productWorkingprocedureRelation', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978609518055427, 1561978609518055426, '查看', NULL, 'basic:productWorkingprocedureRelation:page,basic:productWorkingprocedureRelation:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978609518055428, 1561978609518055426, '新增', NULL, 'basic:productWorkingprocedureRelation:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978609518055429, 1561978609518055426, '修改', NULL, 'basic:productWorkingprocedureRelation:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978609518055430, 1561978609518055426, '删除', NULL, 'basic:productWorkingprocedureRelation:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978609518055431, 1561978609518055426, '导出', NULL, 'basic:productWorkingprocedureRelation:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 菜单初始SQL
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1561977860146929666, 1067246875800000035, '产品 表', 'basic/product', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977860146929667, 1561977860146929666, '查看', NULL, 'basic:product:page,basic:product:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977860146929668, 1561977860146929666, '新增', NULL, 'basic:product:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977860146929669, 1561977860146929666, '修改', NULL, 'basic:product:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977860146929670, 1561977860146929666, '删除', NULL, 'basic:product:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977860146929671, 1561977860146929666, '导出', NULL, 'basic:product:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 菜单初始SQL
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1561977446785724417, 1067246875800000035, '班次 表', 'basic/shift', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977446785724418, 1561977446785724417, '查看', NULL, 'basic:shift:page,basic:shift:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977446785724419, 1561977446785724417, '新增', NULL, 'basic:shift:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977446785724420, 1561977446785724417, '修改', NULL, 'basic:shift:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977446785724421, 1561977446785724417, '删除', NULL, 'basic:shift:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977446785724422, 1561977446785724417, '导出', NULL, 'basic:shift:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 菜单初始SQL
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1561977547536990209, 1067246875800000035, '班组 表', 'basic/team', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977547536990210, 1561977547536990209, '查看', NULL, 'basic:team:page,basic:team:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977547536990211, 1561977547536990209, '新增', NULL, 'basic:team:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977547536990212, 1561977547536990209, '修改', NULL, 'basic:team:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977547536990213, 1561977547536990209, '删除', NULL, 'basic:team:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561977547536990214, 1561977547536990209, '导出', NULL, 'basic:team:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 菜单初始SQL
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1561976675012771841, 1067246875800000035, '单位 表', 'basic/unit', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561976675012771842, 1561976675012771841, '查看', NULL, 'basic:unit:page,basic:unit:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561976675012771843, 1561976675012771841, '新增', NULL, 'basic:unit:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561976675012771844, 1561976675012771841, '修改', NULL, 'basic:unit:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561976675012771845, 1561976675012771841, '删除', NULL, 'basic:unit:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561976675012771846, 1561976675012771841, '导出', NULL, 'basic:unit:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 菜单初始SQL
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1561978394501234689, 1067246875800000035, '工序类型表 表', 'basic/workingProcedureType', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978394501234690, 1561978394501234689, '查看', NULL, 'basic:workingProcedureType:page,basic:workingProcedureType:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978394501234691, 1561978394501234689, '新增', NULL, 'basic:workingProcedureType:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978394501234692, 1561978394501234689, '修改', NULL, 'basic:workingProcedureType:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978394501234693, 1561978394501234689, '删除', NULL, 'basic:workingProcedureType:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978394501234694, 1561978394501234689, '导出', NULL, 'basic:workingProcedureType:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 菜单初始SQL
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1561978465661812738, 1067246875800000035, '工序 表', 'basic/workingProcedure', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978465661812739, 1561978465661812738, '查看', NULL, 'basic:workingProcedure:page,basic:workingProcedure:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978465661812740, 1561978465661812738, '新增', NULL, 'basic:workingProcedure:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978465661812741, 1561978465661812738, '修改', NULL, 'basic:workingProcedure:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978465661812742, 1561978465661812738, '删除', NULL, 'basic:workingProcedure:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1561978465661812743, 1561978465661812738, '导出', NULL, 'basic:workingProcedure:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now());
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.cnbm.basic.service;
|
||||
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.CrudService;
|
||||
import com.cnbm.basic.dto.FeaturesStageProcedureRelationDTO;
|
||||
import com.cnbm.basic.entity.FeaturesStageProcedureRelation;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 过程检验-工艺-检验参数 关系表
|
||||
*
|
||||
* @author why
|
||||
* @since 2022-09-01
|
||||
*/
|
||||
public interface IFeaturesStageProcedureRelationService extends CrudService<FeaturesStageProcedureRelation, FeaturesStageProcedureRelationDTO> {
|
||||
PageData<FeaturesStageProcedureRelationDTO> page (Map<String, Object> params);
|
||||
|
||||
FeaturesStageProcedureRelationDTO get(Long id);
|
||||
|
||||
void save(FeaturesStageProcedureRelationDTO dto);
|
||||
|
||||
void update(FeaturesStageProcedureRelationDTO dto);
|
||||
|
||||
void delete(Long[] ids);
|
||||
|
||||
void batchInsert(FeaturesStageProcedureRelationDTO[] lists);
|
||||
|
||||
void deleteByStageProcedure(Map<String, Object> params);
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import com.cnbm.common.service.CrudService;
|
||||
import com.cnbm.basic.dto.MeasureToolDTO;
|
||||
import com.cnbm.basic.entity.MeasureTool;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -25,4 +26,6 @@ public interface IMeasureToolService extends CrudService<MeasureTool, MeasureToo
|
||||
void delete(Long[] ids);
|
||||
|
||||
boolean changeStatus(Long id);
|
||||
|
||||
List<MeasureToolDTO> list();
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.cnbm.basic.service;
|
||||
|
||||
import com.cnbm.basic.dto.ProductWorkingprocedureRelationDTO;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.CrudService;
|
||||
import com.cnbm.basic.dto.ProductFactoryRelationDTO;
|
||||
@@ -25,4 +26,6 @@ public interface IProductFactoryRelationService extends CrudService<ProductFacto
|
||||
|
||||
void delete(Long[] ids);
|
||||
|
||||
void batchInsertFactory(ProductFactoryRelationDTO[] lists);
|
||||
|
||||
}
|
||||
@@ -1,5 +1,8 @@
|
||||
package com.cnbm.basic.service;
|
||||
|
||||
import com.cnbm.basic.dto.FactoryDTO;
|
||||
import com.cnbm.basic.dto.FeaturesProcedureDTO;
|
||||
import com.cnbm.basic.dto.FeaturesStageProcedureRelationDTO;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.CrudService;
|
||||
import com.cnbm.basic.dto.ProductFeaturesDTO;
|
||||
@@ -26,4 +29,14 @@ public interface IProductFeaturesService extends CrudService<ProductFeatures, Pr
|
||||
void delete(Long[] ids);
|
||||
|
||||
List<ProductFeaturesDTO> getProductFeaturesByProductId(Long id);
|
||||
|
||||
List<FeaturesProcedureDTO> getFeaturesByStageProcedure(Map<String, Object> params);
|
||||
|
||||
void batchUpdate(ProductFeaturesDTO[] lists);
|
||||
|
||||
List<ProductFeaturesDTO> getFeaturesList(Map<String, Object> params);
|
||||
|
||||
List<ProductFeaturesDTO> list();
|
||||
|
||||
List<ProductFeaturesDTO> getProductFeaturesByType(Integer type);
|
||||
}
|
||||
@@ -4,7 +4,9 @@ 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 com.cnbm.common.vo.IdVo;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -18,7 +20,7 @@ public interface IProductService extends CrudService<Product, ProductDTO> {
|
||||
|
||||
ProductDTO get(Long id);
|
||||
|
||||
void save(ProductDTO dto);
|
||||
IdVo add(ProductDTO dto);
|
||||
|
||||
void update(ProductDTO dto);
|
||||
|
||||
@@ -26,4 +28,6 @@ public interface IProductService extends CrudService<Product, ProductDTO> {
|
||||
|
||||
boolean changeStatus(Long id);
|
||||
|
||||
List<ProductDTO> list();
|
||||
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.cnbm.basic.service;
|
||||
|
||||
import com.cnbm.basic.dto.FactoryDTO;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.CrudService;
|
||||
import com.cnbm.basic.dto.ProductTypeDTO;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.cnbm.basic.service;
|
||||
|
||||
import com.cnbm.basic.dto.SequenceDTO;
|
||||
import com.cnbm.basic.dto.WorkingProcedureDTO;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.CrudService;
|
||||
@@ -29,4 +30,8 @@ public interface IProductWorkingprocedureRelationService extends CrudService<Pro
|
||||
List<ProductWorkingprocedureRelationDTO> getWorkingprocedureByProductId(Long productId);
|
||||
|
||||
void batchInsertWorkingprocedure(ProductWorkingprocedureRelationDTO[] lists);
|
||||
|
||||
void sequenceUp(SequenceDTO sequenceDTO);
|
||||
|
||||
void sequenceDown(SequenceDTO sequenceDTO);
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import com.cnbm.common.service.CrudService;
|
||||
import com.cnbm.basic.dto.ShiftDTO;
|
||||
import com.cnbm.basic.entity.Shift;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -23,4 +24,6 @@ public interface IShiftService extends CrudService<Shift, ShiftDTO> {
|
||||
void update(ShiftDTO dto);
|
||||
|
||||
void delete(Long[] ids);
|
||||
|
||||
List<ShiftDTO> list();
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import com.cnbm.common.service.CrudService;
|
||||
import com.cnbm.basic.dto.TeamDTO;
|
||||
import com.cnbm.basic.entity.Team;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -23,4 +24,6 @@ public interface ITeamService extends CrudService<Team, TeamDTO> {
|
||||
void update(TeamDTO dto);
|
||||
|
||||
void delete(Long[] ids);
|
||||
|
||||
List<TeamDTO> list();
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.cnbm.basic.service;
|
||||
|
||||
import com.cnbm.basic.dto.WorkingProcedureTypeDTO;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.CrudService;
|
||||
import com.cnbm.basic.dto.WorkingProcedureDTO;
|
||||
@@ -30,4 +31,8 @@ public interface IWorkingProcedureService extends CrudService<WorkingProcedure,
|
||||
List<WorkingProcedureDTO> getWorkingProcedureByProductId(Long productId);
|
||||
|
||||
List<WorkingProcedureDTO> list();
|
||||
|
||||
List<WorkingProcedure> listByType(Long typeId);
|
||||
|
||||
List<WorkingProcedureTypeDTO> listWithType();
|
||||
}
|
||||
@@ -3,6 +3,7 @@ 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.admin.utils.BaseSupportUtils;
|
||||
import com.cnbm.basic.dto.MachineDTO;
|
||||
import com.cnbm.basic.dto.ProductTypeDTO;
|
||||
import com.cnbm.basic.entity.ProductType;
|
||||
@@ -67,6 +68,7 @@ public class FactoryServiceImpl extends CrudServiceImpl<FactoryMapper, Factory,
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(FactoryDTO dto) {
|
||||
Factory entity = ConvertUtils.sourceToTarget(dto, Factory.class);
|
||||
BaseSupportUtils.setCommonField(entity);
|
||||
insert(entity);
|
||||
}
|
||||
|
||||
@@ -74,6 +76,7 @@ public class FactoryServiceImpl extends CrudServiceImpl<FactoryMapper, Factory,
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(FactoryDTO dto) {
|
||||
Factory entity = ConvertUtils.sourceToTarget(dto, Factory.class);
|
||||
BaseSupportUtils.setUpdateCommonField(entity);
|
||||
updateById(entity);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
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.admin.utils.BaseSupportUtils;
|
||||
import com.cnbm.basic.dto.ProductFeaturesDTO;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||
import com.cnbm.basic.dto.FeaturesStageProcedureRelationDTO;
|
||||
import com.cnbm.basic.mapper.FeaturesStageProcedureRelationMapper;
|
||||
import com.cnbm.basic.entity.FeaturesStageProcedureRelation;
|
||||
import com.cnbm.basic.service.IFeaturesStageProcedureRelationService;
|
||||
import com.cnbm.common.utils.ConvertUtils;
|
||||
import com.cnbm.common.validator.ValidatorUtils;
|
||||
import com.cnbm.common.validator.group.AddGroup;
|
||||
import com.cnbm.common.validator.group.DefaultGroup;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 过程检验-工艺-检验参数 关系表
|
||||
*
|
||||
* @author why
|
||||
* @since 2022-09-01
|
||||
*/
|
||||
@Service
|
||||
public class FeaturesStageProcedureRelationServiceImpl extends CrudServiceImpl<FeaturesStageProcedureRelationMapper, FeaturesStageProcedureRelation, FeaturesStageProcedureRelationDTO> implements IFeaturesStageProcedureRelationService {
|
||||
|
||||
@Autowired
|
||||
private FeaturesStageProcedureRelationMapper mapper;
|
||||
|
||||
@Override
|
||||
public QueryWrapper<FeaturesStageProcedureRelation> getWrapper(Map<String, Object> params){
|
||||
String id = (String)params.get("id");
|
||||
|
||||
QueryWrapper<FeaturesStageProcedureRelation> wrapper = new QueryWrapper<>();
|
||||
wrapper.eq(StringUtils.isNotBlank(id), "id", id);
|
||||
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageData<FeaturesStageProcedureRelationDTO> page (Map<String, Object> params){
|
||||
IPage<FeaturesStageProcedureRelation> page = baseDao.selectPage(
|
||||
getPage(params, "id", true),
|
||||
getWrapper(params)
|
||||
);
|
||||
return getPageData(page, FeaturesStageProcedureRelationDTO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FeaturesStageProcedureRelationDTO get(Long id) {
|
||||
FeaturesStageProcedureRelation entity = baseDao.selectById(id);
|
||||
return ConvertUtils.sourceToTarget(entity, FeaturesStageProcedureRelationDTO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(FeaturesStageProcedureRelationDTO dto) {
|
||||
FeaturesStageProcedureRelation entity = ConvertUtils.sourceToTarget(dto, FeaturesStageProcedureRelation.class);
|
||||
BaseSupportUtils.setCommonField(entity);
|
||||
insert(entity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(FeaturesStageProcedureRelationDTO dto) {
|
||||
FeaturesStageProcedureRelation entity = ConvertUtils.sourceToTarget(dto, FeaturesStageProcedureRelation.class);
|
||||
BaseSupportUtils.setUpdateCommonField(entity);
|
||||
updateById(entity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void delete(Long[] ids) {
|
||||
//删除
|
||||
deleteBatchIds(Arrays.asList(ids));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void batchInsert(FeaturesStageProcedureRelationDTO[] lists) {
|
||||
for(FeaturesStageProcedureRelationDTO dto:lists){
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
BaseSupportUtils.setCommonField(dto);
|
||||
save(dto);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void deleteByStageProcedure(Map<String, Object> params){
|
||||
|
||||
mapper.deleteByStageProcedure(params);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.cnbm.admin.utils.BaseSupportUtils;
|
||||
import com.cnbm.basic.entity.Platform;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||
@@ -12,6 +13,7 @@ import com.cnbm.basic.mapper.MachineMapper;
|
||||
import com.cnbm.basic.entity.Machine;
|
||||
import com.cnbm.basic.service.IMachineService;
|
||||
import com.cnbm.common.utils.ConvertUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -36,8 +38,12 @@ public class MachineServiceImpl extends CrudServiceImpl<MachineMapper, Machine,
|
||||
|
||||
@Override
|
||||
public QueryWrapper<Machine> getWrapper(Map<String, Object> params){
|
||||
String name = (String)params.get("name");
|
||||
String code = (String)params.get("code");
|
||||
|
||||
QueryWrapper<Machine> 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"));
|
||||
|
||||
return wrapper;
|
||||
@@ -90,6 +96,7 @@ public class MachineServiceImpl extends CrudServiceImpl<MachineMapper, Machine,
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(MachineDTO dto) {
|
||||
Machine entity = ConvertUtils.sourceToTarget(dto, Machine.class);
|
||||
BaseSupportUtils.setCommonField(entity);
|
||||
insert(entity);
|
||||
}
|
||||
|
||||
@@ -97,6 +104,7 @@ public class MachineServiceImpl extends CrudServiceImpl<MachineMapper, Machine,
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(MachineDTO dto) {
|
||||
Machine entity = ConvertUtils.sourceToTarget(dto, Machine.class);
|
||||
BaseSupportUtils.setUpdateCommonField(entity);
|
||||
updateById(entity);
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ 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.admin.utils.BaseSupportUtils;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||
import com.cnbm.basic.dto.MeasureToolDTO;
|
||||
@@ -11,11 +12,13 @@ import com.cnbm.basic.entity.MeasureTool;
|
||||
import com.cnbm.basic.service.IMeasureToolService;
|
||||
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;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -59,6 +62,7 @@ public class MeasureToolServiceImpl extends CrudServiceImpl<MeasureToolMapper, M
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(MeasureToolDTO dto) {
|
||||
MeasureTool entity = ConvertUtils.sourceToTarget(dto, MeasureTool.class);
|
||||
BaseSupportUtils.setCommonField(entity);
|
||||
insert(entity);
|
||||
}
|
||||
|
||||
@@ -66,6 +70,7 @@ public class MeasureToolServiceImpl extends CrudServiceImpl<MeasureToolMapper, M
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(MeasureToolDTO dto) {
|
||||
MeasureTool entity = ConvertUtils.sourceToTarget(dto, MeasureTool.class);
|
||||
BaseSupportUtils.setUpdateCommonField(entity);
|
||||
updateById(entity);
|
||||
}
|
||||
|
||||
@@ -86,4 +91,14 @@ public class MeasureToolServiceImpl extends CrudServiceImpl<MeasureToolMapper, M
|
||||
deleteBatchIds(Arrays.asList(ids));
|
||||
}
|
||||
|
||||
@Autowired
|
||||
private MeasureToolMapper mapper;
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public List<MeasureToolDTO> list() {
|
||||
List<MeasureToolDTO> list = mapper.list();
|
||||
return list;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3,6 +3,7 @@ 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.admin.utils.BaseSupportUtils;
|
||||
import com.cnbm.basic.dto.FactoryDTO;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||
@@ -34,8 +35,12 @@ private PlatformMapper mapper;
|
||||
|
||||
@Override
|
||||
public QueryWrapper<Platform> getWrapper(Map<String, Object> params){
|
||||
String name = (String)params.get("name");
|
||||
String code = (String)params.get("code");
|
||||
|
||||
QueryWrapper<Platform> 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"));
|
||||
|
||||
return wrapper;
|
||||
@@ -60,6 +65,7 @@ private PlatformMapper mapper;
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(PlatformDTO dto) {
|
||||
Platform entity = ConvertUtils.sourceToTarget(dto, Platform.class);
|
||||
BaseSupportUtils.setCommonField(entity);
|
||||
insert(entity);
|
||||
}
|
||||
|
||||
@@ -67,6 +73,7 @@ private PlatformMapper mapper;
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(PlatformDTO dto) {
|
||||
Platform entity = ConvertUtils.sourceToTarget(dto, Platform.class);
|
||||
BaseSupportUtils.setUpdateCommonField(entity);
|
||||
updateById(entity);
|
||||
}
|
||||
|
||||
|
||||
@@ -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.admin.utils.BaseSupportUtils;
|
||||
import com.cnbm.basic.dto.ProductWorkingprocedureRelationDTO;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||
import com.cnbm.basic.dto.ProductFactoryRelationDTO;
|
||||
@@ -9,6 +11,9 @@ import com.cnbm.basic.mapper.ProductFactoryRelationMapper;
|
||||
import com.cnbm.basic.entity.ProductFactoryRelation;
|
||||
import com.cnbm.basic.service.IProductFactoryRelationService;
|
||||
import com.cnbm.common.utils.ConvertUtils;
|
||||
import com.cnbm.common.validator.ValidatorUtils;
|
||||
import com.cnbm.common.validator.group.AddGroup;
|
||||
import com.cnbm.common.validator.group.DefaultGroup;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@@ -54,6 +59,7 @@ public class ProductFactoryRelationServiceImpl extends CrudServiceImpl<ProductFa
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(ProductFactoryRelationDTO dto) {
|
||||
ProductFactoryRelation entity = ConvertUtils.sourceToTarget(dto, ProductFactoryRelation.class);
|
||||
BaseSupportUtils.setCommonField(entity);
|
||||
insert(entity);
|
||||
}
|
||||
|
||||
@@ -61,6 +67,7 @@ public class ProductFactoryRelationServiceImpl extends CrudServiceImpl<ProductFa
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(ProductFactoryRelationDTO dto) {
|
||||
ProductFactoryRelation entity = ConvertUtils.sourceToTarget(dto, ProductFactoryRelation.class);
|
||||
BaseSupportUtils.setUpdateCommonField(entity);
|
||||
updateById(entity);
|
||||
}
|
||||
|
||||
@@ -71,4 +78,14 @@ public class ProductFactoryRelationServiceImpl extends CrudServiceImpl<ProductFa
|
||||
deleteBatchIds(Arrays.asList(ids));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void batchInsertFactory(ProductFactoryRelationDTO[] lists) {
|
||||
for(ProductFactoryRelationDTO dto:lists){
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
BaseSupportUtils.setCommonField(dto);
|
||||
save(dto);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2,6 +2,7 @@ package com.cnbm.basic.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.cnbm.admin.utils.BaseSupportUtils;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||
import com.cnbm.basic.dto.ProductFeaturesHisDTO;
|
||||
@@ -55,6 +56,7 @@ public class ProductFeaturesHisServiceImpl extends CrudServiceImpl<ProductFeatur
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(ProductFeaturesHisDTO dto) {
|
||||
ProductFeaturesHis entity = ConvertUtils.sourceToTarget(dto, ProductFeaturesHis.class);
|
||||
BaseSupportUtils.setCommonField(entity);
|
||||
insert(entity);
|
||||
}
|
||||
|
||||
@@ -62,6 +64,7 @@ public class ProductFeaturesHisServiceImpl extends CrudServiceImpl<ProductFeatur
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(ProductFeaturesHisDTO dto) {
|
||||
ProductFeaturesHis entity = ConvertUtils.sourceToTarget(dto, ProductFeaturesHis.class);
|
||||
BaseSupportUtils.setUpdateCommonField(entity);
|
||||
updateById(entity);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,18 +4,20 @@ 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.admin.params.IdParam;
|
||||
import com.cnbm.basic.dto.ProductFeaturesHisDTO;
|
||||
import com.cnbm.basic.dto.WorkingProcedureDTO;
|
||||
import com.cnbm.admin.utils.BaseSupportUtils;
|
||||
import com.cnbm.basic.dto.*;
|
||||
import com.cnbm.basic.entity.ProductFeaturesHis;
|
||||
import com.cnbm.basic.entity.ProductWorkingprocedureRelation;
|
||||
import com.cnbm.basic.entity.WorkingProcedure;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||
import com.cnbm.basic.dto.ProductFeaturesDTO;
|
||||
import com.cnbm.basic.mapper.ProductFeaturesMapper;
|
||||
import com.cnbm.basic.entity.ProductFeatures;
|
||||
import com.cnbm.basic.service.IProductFeaturesService;
|
||||
import com.cnbm.common.utils.ConvertUtils;
|
||||
import com.cnbm.common.validator.ValidatorUtils;
|
||||
import com.cnbm.common.validator.group.DefaultGroup;
|
||||
import com.cnbm.common.validator.group.UpdateGroup;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -63,7 +65,9 @@ public class ProductFeaturesServiceImpl extends CrudServiceImpl<ProductFeaturesM
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(ProductFeaturesDTO dto) {
|
||||
|
||||
ProductFeatures entity = ConvertUtils.sourceToTarget(dto, ProductFeatures.class);
|
||||
BaseSupportUtils.setCommonField(entity);
|
||||
insert(entity);
|
||||
}
|
||||
|
||||
@@ -73,6 +77,16 @@ public class ProductFeaturesServiceImpl extends CrudServiceImpl<ProductFeaturesM
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(ProductFeaturesDTO dto) {
|
||||
//若控制图配置为“单值移动极差”,样本量为1
|
||||
// if (dto.getControlGraphName()=="单值移动极差"){
|
||||
// dto.setSampleSize(1);
|
||||
// }
|
||||
if(dto.getControlGraphId()!=null){
|
||||
String controlGraphName = mapper.getControlGraphNameById(dto.getControlGraphId());
|
||||
if((controlGraphName!=null) && (controlGraphName.equals("单值移动极差"))) {
|
||||
dto.setSampleSize(1);
|
||||
}
|
||||
}
|
||||
//当产品特性出现update的时候,就会把旧数据 全量备份到这张表
|
||||
ProductFeatures oentity = baseDao.selectById(dto.getId());
|
||||
ProductFeaturesHisDTO history = ConvertUtils.sourceToTarget(oentity, ProductFeaturesHisDTO.class);
|
||||
@@ -81,6 +95,7 @@ public class ProductFeaturesServiceImpl extends CrudServiceImpl<ProductFeaturesM
|
||||
productFeaturesHisServiceImpl.save(history);
|
||||
//更新
|
||||
ProductFeatures entity = ConvertUtils.sourceToTarget(dto, ProductFeatures.class);
|
||||
BaseSupportUtils.setUpdateCommonField(entity);
|
||||
updateById(entity);
|
||||
|
||||
}
|
||||
@@ -122,4 +137,41 @@ public class ProductFeaturesServiceImpl extends CrudServiceImpl<ProductFeaturesM
|
||||
deleteBatchIds(Arrays.asList(ids));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<FeaturesProcedureDTO> getFeaturesByStageProcedure(Map<String, Object> params){
|
||||
List<FeaturesProcedureDTO> list = mapper.getFeaturesByStageProcedure(params);
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void batchUpdate(ProductFeaturesDTO[] lists) {
|
||||
for(ProductFeaturesDTO dto:lists){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
BaseSupportUtils.setUpdateCommonField(dto);
|
||||
update(dto);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ProductFeaturesDTO> getFeaturesList(Map<String, Object> params){
|
||||
List<ProductFeaturesDTO> list = mapper.getFeaturesList(params);
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public List<ProductFeaturesDTO> list() {
|
||||
List<ProductFeaturesDTO> list = mapper.list();
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public List<ProductFeaturesDTO> getProductFeaturesByType(Integer type) {
|
||||
List<ProductFeaturesDTO> listByType = mapper.getProductFeaturesByType(type);
|
||||
return listByType;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -4,7 +4,9 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.cnbm.admin.utils.BaseSupportUtils;
|
||||
import com.cnbm.basic.entity.ProductType;
|
||||
import com.cnbm.basic.mapper.ProductFactoryRelationMapper;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||
import com.cnbm.basic.dto.ProductDTO;
|
||||
@@ -12,6 +14,7 @@ import com.cnbm.basic.mapper.ProductMapper;
|
||||
import com.cnbm.basic.entity.Product;
|
||||
import com.cnbm.basic.service.IProductService;
|
||||
import com.cnbm.common.utils.ConvertUtils;
|
||||
import com.cnbm.common.vo.IdVo;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -19,6 +22,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -45,7 +49,7 @@ public class ProductServiceImpl extends CrudServiceImpl<ProductMapper, Product,
|
||||
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);
|
||||
wrapper.like(StringUtils.isNotBlank(inspection_stage), "inspection_stage", inspection_stage);
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
@@ -75,23 +79,35 @@ public class ProductServiceImpl extends CrudServiceImpl<ProductMapper, Product,
|
||||
return productDTOPageData;
|
||||
}
|
||||
|
||||
@Autowired
|
||||
private ProductFactoryRelationMapper relationMapper;
|
||||
|
||||
@Override
|
||||
public ProductDTO get(Long id) {
|
||||
Product entity = baseDao.selectById(id);
|
||||
return ConvertUtils.sourceToTarget(entity, ProductDTO.class);
|
||||
ProductDTO dto = ConvertUtils.sourceToTarget(entity, ProductDTO.class);
|
||||
|
||||
List<Long> factoryList = relationMapper.getFactoryListByProductId(id);
|
||||
dto.setFactoryList(factoryList);
|
||||
//return ConvertUtils.sourceToTarget(entity, ProductDTO.class);
|
||||
return dto;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(ProductDTO dto) {
|
||||
public IdVo add(ProductDTO dto) {
|
||||
Product entity = ConvertUtils.sourceToTarget(dto, Product.class);
|
||||
BaseSupportUtils.setCommonField(entity);
|
||||
insert(entity);
|
||||
//返回新增产品id
|
||||
return IdVo.builder().id(entity.getId()).build();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(ProductDTO dto) {
|
||||
Product entity = ConvertUtils.sourceToTarget(dto, Product.class);
|
||||
BaseSupportUtils.setUpdateCommonField(entity);
|
||||
updateById(entity);
|
||||
}
|
||||
|
||||
@@ -112,4 +128,11 @@ public class ProductServiceImpl extends CrudServiceImpl<ProductMapper, Product,
|
||||
deleteBatchIds(Arrays.asList(ids));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public List<ProductDTO> list() {
|
||||
List<ProductDTO> list = mapper.list();
|
||||
return list;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.cnbm.admin.dto.SysDictDataDTO;
|
||||
import com.cnbm.admin.entity.SysDictDataEntity;
|
||||
import com.cnbm.admin.utils.BaseSupportUtils;
|
||||
import com.cnbm.basic.dto.FactoryDTO;
|
||||
import com.cnbm.common.constant.Constant;
|
||||
import com.cnbm.common.page.PageData;
|
||||
@@ -68,6 +69,7 @@ public class ProductTypeServiceImpl extends CrudServiceImpl<ProductTypeMapper, P
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(ProductTypeDTO dto) {
|
||||
ProductType entity = ConvertUtils.sourceToTarget(dto, ProductType.class);
|
||||
BaseSupportUtils.setCommonField(entity);
|
||||
insert(entity);
|
||||
}
|
||||
|
||||
@@ -75,6 +77,7 @@ public class ProductTypeServiceImpl extends CrudServiceImpl<ProductTypeMapper, P
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(ProductTypeDTO dto) {
|
||||
ProductType entity = ConvertUtils.sourceToTarget(dto, ProductType.class);
|
||||
BaseSupportUtils.setUpdateCommonField(entity);
|
||||
updateById(entity);
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,10 @@ 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.admin.utils.BaseSupportUtils;
|
||||
import com.cnbm.basic.dto.ProductFeaturesDTO;
|
||||
import com.cnbm.basic.dto.SequenceDTO;
|
||||
import com.cnbm.basic.dto.WorkingProcedureDTO;
|
||||
import com.cnbm.basic.entity.WorkingProcedure;
|
||||
import com.cnbm.basic.mapper.ProductMapper;
|
||||
@@ -16,14 +20,13 @@ import com.cnbm.common.utils.ConvertUtils;
|
||||
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 org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 工序 表
|
||||
@@ -34,6 +37,9 @@ import java.util.Map;
|
||||
@Service
|
||||
public class ProductWorkingprocedureRelationServiceImpl extends CrudServiceImpl<ProductWorkingprocedureRelationMapper, ProductWorkingprocedureRelation, ProductWorkingprocedureRelationDTO> implements IProductWorkingprocedureRelationService {
|
||||
|
||||
@Autowired
|
||||
private ProductWorkingprocedureRelationMapper mapper;
|
||||
|
||||
@Override
|
||||
public QueryWrapper<ProductWorkingprocedureRelation> getWrapper(Map<String, Object> params){
|
||||
String id = (String)params.get("id");
|
||||
@@ -59,17 +65,40 @@ public class ProductWorkingprocedureRelationServiceImpl extends CrudServiceImpl<
|
||||
return ConvertUtils.sourceToTarget(entity, ProductWorkingprocedureRelationDTO.class);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(ProductWorkingprocedureRelationDTO dto) {
|
||||
ProductWorkingprocedureRelation entity = ConvertUtils.sourceToTarget(dto, ProductWorkingprocedureRelation.class);
|
||||
insert(entity);
|
||||
//判断数据是否已经绑定过
|
||||
QueryWrapper<ProductWorkingprocedureRelation> wrapper = new QueryWrapper<>();
|
||||
wrapper.eq(ObjectUtils.isNotNull(dto.getProductId()),"product_id",dto.getProductId())
|
||||
.eq(ObjectUtils.isNotNull(dto.getWorkingProcedureId()),"working_procedure_id",dto.getWorkingProcedureId());
|
||||
ProductWorkingprocedureRelation test = mapper.selectOne(wrapper);
|
||||
|
||||
if(Objects.isNull(test)){
|
||||
ProductWorkingprocedureRelation entity = ConvertUtils.sourceToTarget(dto, ProductWorkingprocedureRelation.class);
|
||||
//设置工序顺序
|
||||
List<ProductWorkingprocedureRelationDTO> list = getWorkingprocedureByProductId(dto.getProductId());
|
||||
if (list.isEmpty()) {
|
||||
entity.setSequence(1);
|
||||
} else {
|
||||
ProductWorkingprocedureRelationDTO lastDto = list.get(list.size() - 1);
|
||||
Integer lastSequence = lastDto.getSequence();
|
||||
entity.setSequence(lastSequence + 1);
|
||||
}
|
||||
BaseSupportUtils.setCommonField(entity);
|
||||
insert(entity);
|
||||
}
|
||||
else{
|
||||
dto.setWorkingProcedureId(null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(ProductWorkingprocedureRelationDTO dto) {
|
||||
ProductWorkingprocedureRelation entity = ConvertUtils.sourceToTarget(dto, ProductWorkingprocedureRelation.class);
|
||||
BaseSupportUtils.setUpdateCommonField(entity);
|
||||
updateById(entity);
|
||||
}
|
||||
|
||||
@@ -80,6 +109,7 @@ public class ProductWorkingprocedureRelationServiceImpl extends CrudServiceImpl<
|
||||
deleteBatchIds(Arrays.asList(ids));
|
||||
}
|
||||
|
||||
/*
|
||||
@Autowired
|
||||
private WorkingProcedureServiceImpl workingProcedureServiceImpl;
|
||||
|
||||
@@ -91,19 +121,81 @@ public class ProductWorkingprocedureRelationServiceImpl extends CrudServiceImpl<
|
||||
List<ProductWorkingprocedureRelationDTO> dtoList = ConvertUtils.sourceToTarget(relationList, ProductWorkingprocedureRelationDTO.class);
|
||||
//设置工序名称
|
||||
for (ProductWorkingprocedureRelationDTO dto:dtoList){
|
||||
String workingProcedureName = workingProcedureServiceImpl.selectById(dto.getWorkingProcedureId()).getName();
|
||||
WorkingProcedure workingProcedure = workingProcedureServiceImpl.selectById(dto.getWorkingProcedureId());
|
||||
String workingProcedureName = null;
|
||||
String workingProcedureCode = null;
|
||||
if(workingProcedure!=null){
|
||||
workingProcedureName = workingProcedure.getName();
|
||||
workingProcedureCode = workingProcedure.getCode();
|
||||
}
|
||||
dto.setWorkingProcedureName(workingProcedureName);
|
||||
dto.setWorkingProcedureCode(workingProcedureCode);
|
||||
}
|
||||
return dtoList;
|
||||
}
|
||||
*/
|
||||
|
||||
@Override
|
||||
public List<ProductWorkingprocedureRelationDTO> getWorkingprocedureByProductId(Long productId){
|
||||
List<ProductWorkingprocedureRelationDTO> list= mapper.getWorkingprocedureByProductId(productId);
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void batchInsertWorkingprocedure(ProductWorkingprocedureRelationDTO[] lists) {
|
||||
for(ProductWorkingprocedureRelationDTO dto:lists){
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
BaseSupportUtils.setCommonField(dto);
|
||||
save(dto);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void sequenceUp(SequenceDTO sequenceDTO)
|
||||
{
|
||||
Integer index = sequenceDTO.getIndex();
|
||||
Long productId = sequenceDTO.getProductId();
|
||||
//排序为最前不能再上移
|
||||
if(index!= 1){
|
||||
List<ProductWorkingprocedureRelationDTO> list = getWorkingprocedureByProductId(productId);
|
||||
ProductWorkingprocedureRelationDTO dto = list.get(index-1);
|
||||
ProductWorkingprocedureRelationDTO beforeDto = list.get(index-2);
|
||||
|
||||
//交换顺序
|
||||
Integer dtoSequence = dto.getSequence();
|
||||
Integer beforeDtoSequence = beforeDto.getSequence();
|
||||
|
||||
dto.setSequence(beforeDtoSequence);
|
||||
beforeDto.setSequence(dtoSequence);
|
||||
|
||||
update(dto);
|
||||
update(beforeDto);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void sequenceDown(SequenceDTO sequenceDTO)
|
||||
{
|
||||
Integer index = sequenceDTO.getIndex();
|
||||
Long productId = sequenceDTO.getProductId();
|
||||
List<ProductWorkingprocedureRelationDTO> list = getWorkingprocedureByProductId(productId);
|
||||
//排序为最后不能再下移
|
||||
if(index !=list.size()){
|
||||
ProductWorkingprocedureRelationDTO dto = list.get(index-1);
|
||||
ProductWorkingprocedureRelationDTO afterDto = list.get(index);
|
||||
|
||||
//交换顺序
|
||||
Integer dtoSequence = dto.getSequence();
|
||||
Integer afterDtoSequence = afterDto.getSequence();
|
||||
|
||||
dto.setSequence(afterDtoSequence);
|
||||
afterDto.setSequence(dtoSequence);
|
||||
|
||||
update(dto);
|
||||
update(afterDto);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,7 @@ package com.cnbm.basic.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.cnbm.admin.utils.BaseSupportUtils;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||
import com.cnbm.basic.dto.ShiftDTO;
|
||||
@@ -10,10 +11,12 @@ import com.cnbm.basic.entity.Shift;
|
||||
import com.cnbm.basic.service.IShiftService;
|
||||
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;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -25,6 +28,9 @@ import java.util.Map;
|
||||
@Service
|
||||
public class ShiftServiceImpl extends CrudServiceImpl<ShiftMapper, Shift, ShiftDTO> implements IShiftService {
|
||||
|
||||
@Autowired
|
||||
private ShiftMapper mapper;
|
||||
|
||||
@Override
|
||||
public QueryWrapper<Shift> getWrapper(Map<String, Object> params){
|
||||
String id = (String)params.get("id");
|
||||
@@ -55,6 +61,7 @@ public class ShiftServiceImpl extends CrudServiceImpl<ShiftMapper, Shift, ShiftD
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(ShiftDTO dto) {
|
||||
Shift entity = ConvertUtils.sourceToTarget(dto, Shift.class);
|
||||
BaseSupportUtils.setCommonField(entity);
|
||||
insert(entity);
|
||||
}
|
||||
|
||||
@@ -62,6 +69,7 @@ public class ShiftServiceImpl extends CrudServiceImpl<ShiftMapper, Shift, ShiftD
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(ShiftDTO dto) {
|
||||
Shift entity = ConvertUtils.sourceToTarget(dto, Shift.class);
|
||||
BaseSupportUtils.setUpdateCommonField(entity);
|
||||
updateById(entity);
|
||||
}
|
||||
|
||||
@@ -72,4 +80,11 @@ public class ShiftServiceImpl extends CrudServiceImpl<ShiftMapper, Shift, ShiftD
|
||||
deleteBatchIds(Arrays.asList(ids));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public List<ShiftDTO> list() {
|
||||
List<ShiftDTO> list = mapper.list();
|
||||
return list;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2,8 +2,7 @@ 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.ProductTypeDTO;
|
||||
import com.cnbm.basic.entity.ProductType;
|
||||
import com.cnbm.admin.utils.BaseSupportUtils;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||
import com.cnbm.basic.dto.TeamDTO;
|
||||
@@ -12,11 +11,13 @@ import com.cnbm.basic.entity.Team;
|
||||
import com.cnbm.basic.service.ITeamService;
|
||||
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;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -28,6 +29,9 @@ import java.util.Map;
|
||||
@Service
|
||||
public class TeamServiceImpl extends CrudServiceImpl<TeamMapper, Team, TeamDTO> implements ITeamService {
|
||||
|
||||
@Autowired
|
||||
private TeamMapper mapper;
|
||||
|
||||
@Override
|
||||
public QueryWrapper<Team> getWrapper(Map<String, Object> params){
|
||||
String id = (String)params.get("id");
|
||||
@@ -57,6 +61,7 @@ public class TeamServiceImpl extends CrudServiceImpl<TeamMapper, Team, TeamDTO>
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(TeamDTO dto) {
|
||||
Team entity = ConvertUtils.sourceToTarget(dto, Team.class);
|
||||
BaseSupportUtils.setCommonField(entity);
|
||||
insert(entity);
|
||||
}
|
||||
|
||||
@@ -64,6 +69,7 @@ public class TeamServiceImpl extends CrudServiceImpl<TeamMapper, Team, TeamDTO>
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(TeamDTO dto) {
|
||||
Team entity = ConvertUtils.sourceToTarget(dto, Team.class);
|
||||
BaseSupportUtils.setUpdateCommonField(entity);
|
||||
updateById(entity);
|
||||
}
|
||||
|
||||
@@ -74,4 +80,11 @@ public class TeamServiceImpl extends CrudServiceImpl<TeamMapper, Team, TeamDTO>
|
||||
deleteBatchIds(Arrays.asList(ids));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public List<TeamDTO> list() {
|
||||
List<TeamDTO> list = mapper.list();
|
||||
return list;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3,6 +3,7 @@ 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.admin.utils.BaseSupportUtils;
|
||||
import com.cnbm.basic.dto.FactoryDTO;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||
@@ -11,6 +12,7 @@ import com.cnbm.basic.entity.Unit;
|
||||
import com.cnbm.basic.mapper.UnitMapper;
|
||||
import com.cnbm.basic.service.IUnitService;
|
||||
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;
|
||||
@@ -33,8 +35,12 @@ public class UnitServiceImpl extends CrudServiceImpl<UnitMapper, Unit, UnitDTO>
|
||||
|
||||
@Override
|
||||
public QueryWrapper<Unit> getWrapper(Map<String, Object> params){
|
||||
String name = (String)params.get("name");
|
||||
String code = (String)params.get("code");
|
||||
|
||||
QueryWrapper<Unit> 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"));
|
||||
|
||||
return wrapper;
|
||||
@@ -59,6 +65,7 @@ public class UnitServiceImpl extends CrudServiceImpl<UnitMapper, Unit, UnitDTO>
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(UnitDTO dto) {
|
||||
Unit entity = ConvertUtils.sourceToTarget(dto, Unit.class);
|
||||
BaseSupportUtils.setCommonField(entity);
|
||||
insert(entity);
|
||||
}
|
||||
|
||||
@@ -66,6 +73,7 @@ public class UnitServiceImpl extends CrudServiceImpl<UnitMapper, Unit, UnitDTO>
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(UnitDTO dto) {
|
||||
Unit entity = ConvertUtils.sourceToTarget(dto, Unit.class);
|
||||
BaseSupportUtils.setUpdateCommonField(entity);
|
||||
updateById(entity);
|
||||
}
|
||||
|
||||
|
||||
@@ -3,12 +3,15 @@ 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.admin.utils.BaseSupportUtils;
|
||||
import com.cnbm.basic.dto.UnitDTO;
|
||||
import com.cnbm.basic.dto.WorkingProcedureTypeDTO;
|
||||
import com.cnbm.basic.entity.Machine;
|
||||
import com.cnbm.basic.entity.ProductWorkingprocedureRelation;
|
||||
import com.cnbm.basic.entity.WorkingProcedureType;
|
||||
import com.cnbm.basic.mapper.ProductWorkingprocedureRelationMapper;
|
||||
import com.cnbm.basic.mapper.UnitMapper;
|
||||
import com.cnbm.basic.mapper.WorkingProcedureTypeMapper;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||
import com.cnbm.basic.dto.WorkingProcedureDTO;
|
||||
@@ -105,6 +108,7 @@ public class WorkingProcedureServiceImpl extends CrudServiceImpl<WorkingProcedur
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(WorkingProcedureDTO dto) {
|
||||
WorkingProcedure entity = ConvertUtils.sourceToTarget(dto, WorkingProcedure.class);
|
||||
BaseSupportUtils.setCommonField(entity);
|
||||
insert(entity);
|
||||
}
|
||||
|
||||
@@ -112,6 +116,7 @@ public class WorkingProcedureServiceImpl extends CrudServiceImpl<WorkingProcedur
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(WorkingProcedureDTO dto) {
|
||||
WorkingProcedure entity = ConvertUtils.sourceToTarget(dto, WorkingProcedure.class);
|
||||
BaseSupportUtils.setUpdateCommonField(entity);
|
||||
updateById(entity);
|
||||
}
|
||||
|
||||
@@ -153,11 +158,36 @@ public class WorkingProcedureServiceImpl extends CrudServiceImpl<WorkingProcedur
|
||||
@Autowired
|
||||
private WorkingProcedureMapper workingProcedureMapper;
|
||||
|
||||
@Autowired
|
||||
private WorkingProcedureTypeMapper workingProcedureTypeMapper;
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public List<WorkingProcedureDTO> list() {
|
||||
List<WorkingProcedureDTO> list = workingProcedureMapper.list();
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public List<WorkingProcedure> listByType(Long typeId) {
|
||||
QueryWrapper<WorkingProcedure> wrapper = new QueryWrapper<>();
|
||||
wrapper.eq(ObjectUtils.isNotNull(typeId), "working_procedure_type_id", typeId);
|
||||
List<WorkingProcedure> listOfType = workingProcedureMapper.selectList(wrapper);
|
||||
|
||||
return listOfType;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public List<WorkingProcedureTypeDTO> listWithType () {
|
||||
List<WorkingProcedureTypeDTO> workingProcedureTypeDTOList = workingProcedureTypeMapper.list();
|
||||
for(WorkingProcedureTypeDTO workingProcedureTypeDTO: workingProcedureTypeDTOList){
|
||||
List<WorkingProcedure> workingProcedureList = listByType(workingProcedureTypeDTO.getId());
|
||||
if(workingProcedureList!=null & workingProcedureList.size() > 0)
|
||||
workingProcedureTypeDTO.setWorkingProcedureList(workingProcedureList);
|
||||
}
|
||||
return workingProcedureTypeDTOList;
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@ 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.admin.utils.BaseSupportUtils;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||
import com.cnbm.basic.dto.WorkingProcedureTypeDTO;
|
||||
@@ -29,8 +30,12 @@ public class WorkingProcedureTypeServiceImpl extends CrudServiceImpl<WorkingProc
|
||||
|
||||
@Override
|
||||
public QueryWrapper<WorkingProcedureType> getWrapper(Map<String, Object> params){
|
||||
String name = (String)params.get("name");
|
||||
String code = (String)params.get("code");
|
||||
|
||||
QueryWrapper<WorkingProcedureType> 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"));
|
||||
|
||||
return wrapper;
|
||||
@@ -55,6 +60,7 @@ public class WorkingProcedureTypeServiceImpl extends CrudServiceImpl<WorkingProc
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(WorkingProcedureTypeDTO dto) {
|
||||
WorkingProcedureType entity = ConvertUtils.sourceToTarget(dto, WorkingProcedureType.class);
|
||||
BaseSupportUtils.setCommonField(entity);
|
||||
insert(entity);
|
||||
}
|
||||
|
||||
@@ -62,6 +68,7 @@ public class WorkingProcedureTypeServiceImpl extends CrudServiceImpl<WorkingProc
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(WorkingProcedureTypeDTO dto) {
|
||||
WorkingProcedureType entity = ConvertUtils.sourceToTarget(dto, WorkingProcedureType.class);
|
||||
BaseSupportUtils.setUpdateCommonField(entity);
|
||||
updateById(entity);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cnbm.basic.mapper.FeaturesStageProcedureRelationMapper">
|
||||
<resultMap type="com.cnbm.basic.entity.FeaturesStageProcedureRelation" id="FeaturesStageProcedureRelationMap">
|
||||
<id column="id" property="id" />
|
||||
<id column="product_features_id" property="productFeaturesId" />
|
||||
<id column="working_procedure_id" property="workingProcedureId" />
|
||||
<id column="inspection_stage" property="inspectionStage" />
|
||||
<id column="remark" property="remark" />
|
||||
<id column="valid" property="valid" />
|
||||
<id column="creator_id" property="creatorId" />
|
||||
<id column="creator_name" property="creatorName" />
|
||||
<id column="create_time" property="createTime" />
|
||||
<id column="updater_id" property="updaterId" />
|
||||
<id column="updater_name" property="updaterName" />
|
||||
<id column="update_time" property="updateTime" />
|
||||
<id column="version" property="version" />
|
||||
</resultMap>
|
||||
|
||||
<select id="deleteByStageProcedure">
|
||||
delete fspr from features_stage_procedure_relation fspr
|
||||
inner join product_workingprocedure_relation pwr ON pwr.working_procedure_id=fspr.working_procedure_id
|
||||
where fspr.working_procedure_id = #{workingProcedureId}
|
||||
and fspr.inspection_stage = #{inspectionStage}
|
||||
and pwr.product_id = #{productId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -2,10 +2,9 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cnbm.basic.mapper.MeasureToolMapper">
|
||||
|
||||
<select id="page" resultType="com.cnbm.basic.dto.ProductDTO">
|
||||
select product.*,product_type.name as productType
|
||||
from product
|
||||
left join product_type ON product.product_type_id = product_type.id
|
||||
<select id="list" resultType="com.cnbm.basic.dto.MeasureToolDTO">
|
||||
select * from measure_tool
|
||||
order by id asc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -2,4 +2,9 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cnbm.basic.mapper.ProductFactoryRelationMapper">
|
||||
|
||||
<select id="getFactoryListByProductId" resultType="Long">
|
||||
select factory_id from product_factory_relation
|
||||
where product_id = #{productId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -3,9 +3,8 @@
|
||||
<mapper namespace="com.cnbm.basic.mapper.ProductFeaturesMapper">
|
||||
|
||||
<select id="getProductFeaturesByProductId" resultType="com.cnbm.basic.dto.ProductFeaturesDTO">
|
||||
select p.*,w.code as workingProcedureCode,w.name as workingProcedureName,m.name as measureToolName,u.name as unitName,c.name as controlGraphName
|
||||
select p.*,m.name as measureToolName,u.name as unitName,c.name as controlGraphName
|
||||
from product_features p
|
||||
LEFT JOIN working_procedure w ON p.working_procedure_id=w.id
|
||||
LEFT JOIN measure_tool m ON p.measure_tool_id=m.id
|
||||
LEFT JOIN unit u ON p.unit_id=u.id
|
||||
LEFT JOIN control_graph c ON p.control_graph_id=c.id
|
||||
@@ -15,4 +14,77 @@
|
||||
order by p.id asc
|
||||
</select>
|
||||
|
||||
<select id="getFeaturesByStageProcedure" resultType="com.cnbm.basic.dto.FeaturesProcedureDTO">
|
||||
select pf.id as productFeaturesId, fspr.working_procedure_id as workingProcedureId
|
||||
from features_stage_procedure_relation fspr
|
||||
LEFT JOIN product_features pf ON pf.id=fspr.product_features_id
|
||||
<where>
|
||||
fspr.valid = 1
|
||||
<if test="productId != null">
|
||||
and pf.product_id = #{productId}
|
||||
</if>
|
||||
<if test="inspectionStage != null">
|
||||
and fspr.inspection_stage = #{inspectionStage}
|
||||
</if>
|
||||
</where>
|
||||
order by pf.id asc
|
||||
</select>
|
||||
|
||||
<!--
|
||||
<select id="getFeaturesByStageProcedure" resultType="com.cnbm.basic.dto.ProductFeaturesDTO">
|
||||
select *
|
||||
from product_features pf
|
||||
LEFT JOIN features_stage_procedure_relation fspr ON pf.id=fspr.product_features_id
|
||||
LEFT JOIN product_workingprocedure_relation pwr ON pwr.working_procedure_id=fspr.working_procedure_id
|
||||
<where>
|
||||
fspr.valid = 1
|
||||
<if test="productId != null">
|
||||
and pwr.product_id = #{productId}
|
||||
</if>
|
||||
<if test="inspectionStage != null">
|
||||
and fspr.inspection_stage = #{inspectionStage}
|
||||
</if>
|
||||
<if test="workingProcedureId != null">
|
||||
and fspr.working_procedure_id = #{workingProcedureId}
|
||||
</if>
|
||||
</where>
|
||||
order by pf.id asc
|
||||
</select>
|
||||
-->
|
||||
<select id="getFeaturesList" resultType="com.cnbm.basic.dto.ProductFeaturesDTO">
|
||||
select pf.*,m.name as measureToolName,u.name as unitName,c.name as controlGraphName
|
||||
from product_features pf
|
||||
left join features_stage_procedure_relation fspr ON pf.id=fspr.product_features_id
|
||||
LEFT JOIN measure_tool m ON pf.measure_tool_id=m.id
|
||||
LEFT JOIN unit u ON pf.unit_id=u.id
|
||||
LEFT JOIN control_graph c ON pf.control_graph_id=c.id
|
||||
<where>
|
||||
fspr.valid = 1
|
||||
<if test="productId != null">
|
||||
and pf.product_id = #{productId}
|
||||
</if>
|
||||
<if test="inspectionStage != null">
|
||||
and fspr.inspection_stage = #{inspectionStage}
|
||||
</if>
|
||||
</where>
|
||||
order by pf.id asc
|
||||
</select>
|
||||
|
||||
<select id="getControlGraphNameById" resultType="String">
|
||||
select name from control_graph where id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="list" resultType="com.cnbm.basic.dto.ProductFeaturesDTO">
|
||||
select * from product_features
|
||||
order by id asc
|
||||
</select>
|
||||
|
||||
<select id="getProductFeaturesByType" resultType="com.cnbm.basic.dto.ProductFeaturesDTO">
|
||||
select * from product_features
|
||||
<where>
|
||||
valid = 1 AND type = #{type}
|
||||
</where>
|
||||
order by id asc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -2,4 +2,9 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cnbm.basic.mapper.ProductMapper">
|
||||
|
||||
<select id="list" resultType="com.cnbm.basic.dto.ProductDTO">
|
||||
select * from product
|
||||
order by id asc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -2,4 +2,19 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cnbm.basic.mapper.ProductWorkingprocedureRelationMapper">
|
||||
|
||||
<select id="getWorkingprocedureByProductId" resultType="com.cnbm.basic.dto.ProductWorkingprocedureRelationDTO">
|
||||
select pwr.*, wp.name as workingProcedureName, wp.code as workingProcedureCode
|
||||
from product_workingprocedure_relation pwr
|
||||
LEFT JOIN working_procedure wp ON pwr.working_procedure_id=wp.id
|
||||
<where>
|
||||
pwr.valid = 1
|
||||
<if test="productId != null">
|
||||
and pwr.product_id=#{productId}
|
||||
</if>
|
||||
</where>
|
||||
|
||||
order by pwr.sequence asc
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -2,4 +2,9 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cnbm.basic.mapper.ShiftMapper">
|
||||
|
||||
<select id="list" resultType="com.cnbm.basic.dto.ShiftDTO">
|
||||
select * from shift
|
||||
order by id asc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -2,4 +2,9 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cnbm.basic.mapper.TeamMapper">
|
||||
|
||||
<select id="list" resultType="com.cnbm.basic.dto.TeamDTO">
|
||||
select * from team
|
||||
order by id asc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
<mapper namespace="com.cnbm.basic.mapper.WorkingProcedureMapper">
|
||||
|
||||
<select id="list" resultType="com.cnbm.basic.dto.WorkingProcedureDTO">
|
||||
select * from working_procedure
|
||||
order by id asc
|
||||
select wp.*,wpt.name as workingProcedureTypeName from working_procedure wp
|
||||
LEFT JOIN working_procedure_type wpt ON wp.working_procedure_type_id=wpt.id
|
||||
order by wp.id asc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cnbm.basic.mapper.WorkingProcedureTypeMapper">
|
||||
|
||||
<select id="list" resultType="com.cnbm.basic.dto.WorkingProcedureTypeDTO">
|
||||
select * from working_procedure_type
|
||||
order by id asc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -15,5 +15,12 @@
|
||||
<build>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
</build>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-math3</artifactId>
|
||||
<version>3.6.1</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -28,7 +28,6 @@ public class Math {
|
||||
d[6] = new Double(10.2);
|
||||
d[7] = new Double(11.7);
|
||||
|
||||
;
|
||||
System.out.println("均值: "+getMean(d)+",,标准差:"+StandardDiviation(d)+",极差:"+range(d));
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user