| | |
| | | import org.springblade.mdm.machinefile.vo.MachineBackFileHandleExcelVO; |
| | | import org.springblade.mdm.machinefile.vo.MachineAcceptedFileHandleQueryVO; |
| | | import org.springblade.mdm.machinefile.vo.MachineAcceptedFileVO; |
| | | import org.springblade.mdm.program.service.programannotation.AnnotationUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | ExcelUtil.export(response, "机床回传程序" + DateUtil.time(), "机床回传程序表", list, MachineBackFileHandleExcelVO.class); |
| | | } |
| | | |
| | | String parseProgramStatusName(Integer programStatus){ |
| | | /** |
| | | * 转换状态为显示文本 |
| | | * @param programStatus 程序状态编码 |
| | | * @return 状态名称 |
| | | */ |
| | | String parseProgramStatusName(String programStatus){ |
| | | if(programStatus == null){ |
| | | return "未知"; |
| | | } |
| | | String txt; |
| | | |
| | | switch(programStatus){ |
| | | case 1: |
| | | txt = "试切"; |
| | | break; |
| | | case 2: |
| | | txt = "固化"; |
| | | break; |
| | | case 3: |
| | | txt = "临时更改单"; |
| | | break; |
| | | default: |
| | | txt = "未知"; |
| | | } |
| | | return txt; |
| | | return switch (programStatus) { |
| | | case AnnotationUtil.SQ -> "试切"; |
| | | case AnnotationUtil.GH -> "固化"; |
| | | case AnnotationUtil.LG -> "临时更改单"; |
| | | default -> "未知"; |
| | | }; |
| | | } |
| | | } |