|
|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
package cn.iocoder.yudao.module.mes.controller.admin.record;
|
|
|
|
|
|
|
|
|
|
import cn.iocoder.yudao.module.mes.dal.dataobject.record.RecordSuijiangDO;
|
|
|
|
|
import cn.iocoder.yudao.module.mes.dal.dataobject.record.*;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
@ -23,8 +23,6 @@ import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
|
|
|
|
|
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
|
|
|
|
|
|
|
|
|
|
import cn.iocoder.yudao.module.mes.controller.admin.record.vo.*;
|
|
|
|
|
import cn.iocoder.yudao.module.mes.dal.dataobject.record.RecordTemplateDO;
|
|
|
|
|
import cn.iocoder.yudao.module.mes.dal.dataobject.record.RecordChengxingDO;
|
|
|
|
|
import cn.iocoder.yudao.module.mes.service.record.RecordTemplateService;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
@ -179,4 +177,302 @@ public class RecordTemplateController {
|
|
|
|
|
return success(recordTemplateService.getRecordChengxing(id));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ==================== 子表(热压记录) ====================
|
|
|
|
|
|
|
|
|
|
@GetMapping("/record-reya/page")
|
|
|
|
|
@Operation(summary = "获得热压记录分页")
|
|
|
|
|
@Parameter(name = "recordId", description = "记录id")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:query')")
|
|
|
|
|
public CommonResult<PageResult<RecordReyaDO>> getRecordReyaPage(PageParam pageReqVO,
|
|
|
|
|
@RequestParam("recordId") Long recordId) {
|
|
|
|
|
return success(recordTemplateService.getRecordReyaPage(pageReqVO, recordId));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/record-reya/create")
|
|
|
|
|
@Operation(summary = "创建热压记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:create')")
|
|
|
|
|
public CommonResult<Long> createRecordReya(@Valid @RequestBody RecordReyaDO recordReya) {
|
|
|
|
|
return success(recordTemplateService.createRecordReya(recordReya));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PutMapping("/record-reya/update")
|
|
|
|
|
@Operation(summary = "更新热压记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:update')")
|
|
|
|
|
public CommonResult<Boolean> updateRecordReya(@Valid @RequestBody RecordReyaDO recordReya) {
|
|
|
|
|
recordTemplateService.updateRecordReya(recordReya);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@DeleteMapping("/record-reya/delete")
|
|
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
|
|
@Operation(summary = "删除热压记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:delete')")
|
|
|
|
|
public CommonResult<Boolean> deleteRecordReya(@RequestParam("id") Long id) {
|
|
|
|
|
recordTemplateService.deleteRecordReya(id);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/record-reya/get")
|
|
|
|
|
@Operation(summary = "获得热压记录")
|
|
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:query')")
|
|
|
|
|
public CommonResult<RecordReyaDO> getRecordReya(@RequestParam("id") Long id) {
|
|
|
|
|
return success(recordTemplateService.getRecordReya(id));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ==================== 子表(切边记录) ====================
|
|
|
|
|
|
|
|
|
|
@GetMapping("/record-qiebian/page")
|
|
|
|
|
@Operation(summary = "获得切边记录分页")
|
|
|
|
|
@Parameter(name = "recordId", description = "记录id")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:query')")
|
|
|
|
|
public CommonResult<PageResult<RecordQiebianDO>> getRecordQiebianPage(PageParam pageReqVO,
|
|
|
|
|
@RequestParam("recordId") Long recordId) {
|
|
|
|
|
return success(recordTemplateService.getRecordQiebianPage(pageReqVO, recordId));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/record-qiebian/create")
|
|
|
|
|
@Operation(summary = "创建切边记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:create')")
|
|
|
|
|
public CommonResult<Long> createRecordQiebian(@Valid @RequestBody RecordQiebianDO recordQiebian) {
|
|
|
|
|
return success(recordTemplateService.createRecordQiebian(recordQiebian));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PutMapping("/record-qiebian/update")
|
|
|
|
|
@Operation(summary = "更新切边记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:update')")
|
|
|
|
|
public CommonResult<Boolean> updateRecordQiebian(@Valid @RequestBody RecordQiebianDO recordQiebian) {
|
|
|
|
|
recordTemplateService.updateRecordQiebian(recordQiebian);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@DeleteMapping("/record-qiebian/delete")
|
|
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
|
|
@Operation(summary = "删除切边记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:delete')")
|
|
|
|
|
public CommonResult<Boolean> deleteRecordQiebian(@RequestParam("id") Long id) {
|
|
|
|
|
recordTemplateService.deleteRecordQiebian(id);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/record-qiebian/get")
|
|
|
|
|
@Operation(summary = "获得切边记录")
|
|
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:query')")
|
|
|
|
|
public CommonResult<RecordQiebianDO> getRecordQiebian(@RequestParam("id") Long id) {
|
|
|
|
|
return success(recordTemplateService.getRecordQiebian(id));
|
|
|
|
|
}
|
|
|
|
|
// ==================== 子表(打包记录) ====================
|
|
|
|
|
|
|
|
|
|
@GetMapping("/record-dabao/page")
|
|
|
|
|
@Operation(summary = "获得打包记录分页")
|
|
|
|
|
@Parameter(name = "recordId", description = "记录id")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:query')")
|
|
|
|
|
public CommonResult<PageResult<RecordDabaoDO>> getRecordDabaoPage(PageParam pageReqVO,
|
|
|
|
|
@RequestParam("recordId") Long recordId) {
|
|
|
|
|
return success(recordTemplateService.getRecordDabaoPage(pageReqVO, recordId));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/record-dabao/create")
|
|
|
|
|
@Operation(summary = "创建打包记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:create')")
|
|
|
|
|
public CommonResult<Long> createRecordDabao(@Valid @RequestBody RecordDabaoDO recordDabao) {
|
|
|
|
|
return success(recordTemplateService.createRecordDabao(recordDabao));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PutMapping("/record-dabao/update")
|
|
|
|
|
@Operation(summary = "更新打包记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:update')")
|
|
|
|
|
public CommonResult<Boolean> updateRecordDabao(@Valid @RequestBody RecordDabaoDO recordDabao) {
|
|
|
|
|
recordTemplateService.updateRecordDabao(recordDabao);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@DeleteMapping("/record-dabao/delete")
|
|
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
|
|
@Operation(summary = "删除打包记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:delete')")
|
|
|
|
|
public CommonResult<Boolean> deleteRecordDabao(@RequestParam("id") Long id) {
|
|
|
|
|
recordTemplateService.deleteRecordDabao(id);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/record-dabao/get")
|
|
|
|
|
@Operation(summary = "获得打包记录")
|
|
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:query')")
|
|
|
|
|
public CommonResult<RecordDabaoDO> getRecordDabao(@RequestParam("id") Long id) {
|
|
|
|
|
return success(recordTemplateService.getRecordDabao(id));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ==================== 子表(打浆记录) ====================
|
|
|
|
|
|
|
|
|
|
@GetMapping("/record-dajiang/page")
|
|
|
|
|
@Operation(summary = "获得打浆记录分页")
|
|
|
|
|
@Parameter(name = "recordId", description = "记录id")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:query')")
|
|
|
|
|
public CommonResult<PageResult<RecordDajiangDO>> getRecordDajiangPage(PageParam pageReqVO,
|
|
|
|
|
@RequestParam("recordId") Long recordId) {
|
|
|
|
|
return success(recordTemplateService.getRecordDajiangPage(pageReqVO, recordId));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/record-dajiang/create")
|
|
|
|
|
@Operation(summary = "创建打浆记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:create')")
|
|
|
|
|
public CommonResult<Long> createRecordDajiang(@Valid @RequestBody RecordDajiangDO recordDajiang) {
|
|
|
|
|
return success(recordTemplateService.createRecordDajiang(recordDajiang));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PutMapping("/record-dajiang/update")
|
|
|
|
|
@Operation(summary = "更新打浆记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:update')")
|
|
|
|
|
public CommonResult<Boolean> updateRecordDajiang(@Valid @RequestBody RecordDajiangDO recordDajiang) {
|
|
|
|
|
recordTemplateService.updateRecordDajiang(recordDajiang);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@DeleteMapping("/record-dajiang/delete")
|
|
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
|
|
@Operation(summary = "删除打浆记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:delete')")
|
|
|
|
|
public CommonResult<Boolean> deleteRecordDajiang(@RequestParam("id") Long id) {
|
|
|
|
|
recordTemplateService.deleteRecordDajiang(id);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/record-dajiang/get")
|
|
|
|
|
@Operation(summary = "获得打浆记录")
|
|
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:query')")
|
|
|
|
|
public CommonResult<RecordDajiangDO> getRecordDajiang(@RequestParam("id") Long id) {
|
|
|
|
|
return success(recordTemplateService.getRecordDajiang(id));
|
|
|
|
|
}
|
|
|
|
|
// ==================== 子表(干燥记录) ====================
|
|
|
|
|
|
|
|
|
|
@GetMapping("/record-ganzao/page")
|
|
|
|
|
@Operation(summary = "获得干燥记录分页")
|
|
|
|
|
@Parameter(name = "recordId", description = "记录id")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:query')")
|
|
|
|
|
public CommonResult<PageResult<RecordGanzaoDO>> getRecordGanzaoPage(PageParam pageReqVO,
|
|
|
|
|
@RequestParam("recordId") Long recordId) {
|
|
|
|
|
return success(recordTemplateService.getRecordGanzaoPage(pageReqVO, recordId));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/record-ganzao/create")
|
|
|
|
|
@Operation(summary = "创建干燥记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:create')")
|
|
|
|
|
public CommonResult<Long> createRecordGanzao(@Valid @RequestBody RecordGanzaoDO recordGanzao) {
|
|
|
|
|
return success(recordTemplateService.createRecordGanzao(recordGanzao));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PutMapping("/record-ganzao/update")
|
|
|
|
|
@Operation(summary = "更新干燥记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:update')")
|
|
|
|
|
public CommonResult<Boolean> updateRecordGanzao(@Valid @RequestBody RecordGanzaoDO recordGanzao) {
|
|
|
|
|
recordTemplateService.updateRecordGanzao(recordGanzao);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@DeleteMapping("/record-ganzao/delete")
|
|
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
|
|
@Operation(summary = "删除干燥记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:delete')")
|
|
|
|
|
public CommonResult<Boolean> deleteRecordGanzao(@RequestParam("id") Long id) {
|
|
|
|
|
recordTemplateService.deleteRecordGanzao(id);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/record-ganzao/get")
|
|
|
|
|
@Operation(summary = "获得干燥记录")
|
|
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:query')")
|
|
|
|
|
public CommonResult<RecordGanzaoDO> getRecordGanzao(@RequestParam("id") Long id) {
|
|
|
|
|
return success(recordTemplateService.getRecordGanzao(id));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ==================== 子表(加湿记录) ====================
|
|
|
|
|
|
|
|
|
|
@GetMapping("/record-jiashi/page")
|
|
|
|
|
@Operation(summary = "获得加湿记录分页")
|
|
|
|
|
@Parameter(name = "recordId", description = "记录id")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:query')")
|
|
|
|
|
public CommonResult<PageResult<RecordJiashiDO>> getRecordJiashiPage(PageParam pageReqVO,
|
|
|
|
|
@RequestParam("recordId") Long recordId) {
|
|
|
|
|
return success(recordTemplateService.getRecordJiashiPage(pageReqVO, recordId));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/record-jiashi/create")
|
|
|
|
|
@Operation(summary = "创建加湿记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:create')")
|
|
|
|
|
public CommonResult<Long> createRecordJiashi(@Valid @RequestBody RecordJiashiDO recordJiashi) {
|
|
|
|
|
return success(recordTemplateService.createRecordJiashi(recordJiashi));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PutMapping("/record-jiashi/update")
|
|
|
|
|
@Operation(summary = "更新加湿记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:update')")
|
|
|
|
|
public CommonResult<Boolean> updateRecordJiashi(@Valid @RequestBody RecordJiashiDO recordJiashi) {
|
|
|
|
|
recordTemplateService.updateRecordJiashi(recordJiashi);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@DeleteMapping("/record-jiashi/delete")
|
|
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
|
|
@Operation(summary = "删除加湿记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:delete')")
|
|
|
|
|
public CommonResult<Boolean> deleteRecordJiashi(@RequestParam("id") Long id) {
|
|
|
|
|
recordTemplateService.deleteRecordJiashi(id);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/record-jiashi/get")
|
|
|
|
|
@Operation(summary = "获得加湿记录")
|
|
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:query')")
|
|
|
|
|
public CommonResult<RecordJiashiDO> getRecordJiashi(@RequestParam("id") Long id) {
|
|
|
|
|
return success(recordTemplateService.getRecordJiashi(id));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ==================== 子表(检验记录) ====================
|
|
|
|
|
|
|
|
|
|
@GetMapping("/record-pinjian/page")
|
|
|
|
|
@Operation(summary = "获得检验记录分页")
|
|
|
|
|
@Parameter(name = "recordId", description = "记录id")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:query')")
|
|
|
|
|
public CommonResult<PageResult<RecordPinjianDO>> getRecordPinjianPage(PageParam pageReqVO,
|
|
|
|
|
@RequestParam("recordId") Long recordId) {
|
|
|
|
|
return success(recordTemplateService.getRecordPinjianPage(pageReqVO, recordId));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/record-pinjian/create")
|
|
|
|
|
@Operation(summary = "创建检验记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:create')")
|
|
|
|
|
public CommonResult<Long> createRecordPinjian(@Valid @RequestBody RecordPinjianDO recordPinjian) {
|
|
|
|
|
return success(recordTemplateService.createRecordPinjian(recordPinjian));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PutMapping("/record-pinjian/update")
|
|
|
|
|
@Operation(summary = "更新检验记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:update')")
|
|
|
|
|
public CommonResult<Boolean> updateRecordPinjian(@Valid @RequestBody RecordPinjianDO recordPinjian) {
|
|
|
|
|
recordTemplateService.updateRecordPinjian(recordPinjian);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@DeleteMapping("/record-pinjian/delete")
|
|
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
|
|
@Operation(summary = "删除检验记录")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:delete')")
|
|
|
|
|
public CommonResult<Boolean> deleteRecordPinjian(@RequestParam("id") Long id) {
|
|
|
|
|
recordTemplateService.deleteRecordPinjian(id);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/record-pinjian/get")
|
|
|
|
|
@Operation(summary = "获得检验记录")
|
|
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:record-template:query')")
|
|
|
|
|
public CommonResult<RecordPinjianDO> getRecordPinjian(@RequestParam("id") Long id) {
|
|
|
|
|
return success(recordTemplateService.getRecordPinjian(id));
|
|
|
|
|
}
|
|
|
|
|
}
|