| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得过程检验单") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-ipqc:query')") |
| | | public CommonResult<MesQcIpqcRespVO> getIpqc(@RequestParam("id") Long id) { |
| | | MesQcIpqcDO ipqc = ipqcService.getIpqc(id); |
| | | return success(buildIpqcRespVOList(Collections.singletonList(ipqc)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得过程检验单分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-ipqc:query')") |
| | | public CommonResult<PageResult<MesQcIpqcRespVO>> getIpqcPage(@Valid MesQcIpqcPageReqVO pageReqVO) { |
| | | PageResult<MesQcIpqcDO> pageResult = ipqcService.getIpqcPage(pageReqVO); |
| | | return success(new PageResult<>(buildIpqcRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | String value = detail.getValue(); |
| | | String remark = detail.getRemark(); |
| | | // 格式化为 "指标名称:值" 或 "指标名称:值(备注)" |
| | | String indicatorStr = indicatorName + ":" + value; |
| | | String indicatorStr = indicatorName + ":" + (StrUtil.isBlank(value) ? "未填写" : value); |
| | | if (StrUtil.isNotBlank(remark)) { |
| | | indicatorStr += "(" + remark + ")"; |
| | | } |