| | |
| | | return R.data(list); |
| | | } |
| | | |
| | | /** |
| | | * 分页 |
| | | */ |
| | | |
| | | @Operation(summary = "程序分页查询", description = "用于在编制节点选择流程对应的程序") |
| | | @GetMapping("/programpickpage") |
| | | public R<IPage<NcNodeProgramVO>> page(NcNodeProgramQueryVO query) { |
| | |
| | | private String partNo; |
| | | |
| | | /** |
| | | * 描述 |
| | | */ |
| | | private String description; |
| | | /** |
| | | * 是否固化 |
| | | */ |
| | | //private Integer isCured; |
| | | private Integer isCured; |
| | | /** |
| | | * 过期日期 |
| | | */ |
| | |
| | | */ |
| | | private Integer isLocked; |
| | | /** |
| | | * 是否测试程序 |
| | | */ |
| | | private Integer isTest; |
| | | /** |
| | | * 任务分派时间 |
| | | */ |
| | | private LocalDateTime taskAssignTime; |
| | |
| | | <!-- <select id="parentTree" resultMap="treeNodeResultMap">--> |
| | | <!-- select id, parent_id, dict_value as title, id as "value", id as "key" from blade_dict where is_deleted = 0 and parent_id = 0--> |
| | | <!-- </select>--> |
| | | <sql id="prog_all_columns">id,tenant_id,nc_node_id,code,name,package_name,machine_code,part_no,is_cured, |
| | | <sql id="prog_all_columns">id,tenant_id,nc_node_id,code,name,machine_code,part_no,is_cured, |
| | | expire_date,process_edition,is_last_edition,is_locked,task_assign_time,status,create_dept,is_deleted,create_time,create_user,update_time,update_user</sql> |
| | | <select id="getCuredNcProgram" resultMap="BaseResultMap"> |
| | | select <include refid="prog_all_columns"/> from mdm_nc_program |
| | |
| | | <!-- <select id="parentTree" resultMap="treeNodeResultMap">--> |
| | | <!-- select id, parent_id, dict_value as title, id as "value", id as "key" from blade_dict where is_deleted = 0 and parent_id = 0--> |
| | | <!-- </select>--> |
| | | <sql id="all_columns">id,tenant_id,nc_node_id,code,name,package_name,machine_code,part_no,is_cured, |
| | | <sql id="all_columns">id,tenant_id,nc_node_id,code,name,machine_code,part_no,is_cured, |
| | | expire_date,process_edition,is_last_edition,is_locked,task_assign_time,status,create_dept,is_deleted,create_time,create_user,update_time,update_user</sql> |
| | | <select id="getCuredNcProgram" resultMap="BaseResultMap"> |
| | | select <include refid="all_columns"/> from mdm_nc_program |
| | |
| | | |
| | | @Schema(description = "工序版本") |
| | | private String processEdition; |
| | | |
| | | /** |
| | | * 是否测试程序。1是;0否 |
| | | */ |
| | | private Integer isTest; |
| | | } |
| | |
| | | @Schema(description = "备注") |
| | | private String remark; |
| | | |
| | | |
| | | @Schema(description = "图号版次") |
| | | private String drawingNoEdition; |
| | | |
| | | @Schema(description = "工序,如“精铣”") |
| | | private String processName; |
| | | |
| | |
| | | |
| | | @Schema(description = "零组件号/图号") |
| | | private String partNo; |
| | | @Schema(description = "零组件号/图号版次") |
| | | private String partNoEdition; |
| | | |
| | | @Schema(description = "是否测试程序.1是;0否") |
| | | private Integer isTest; |
| | | } |
| | |
| | | `process_edition` varchar(40) DEFAULT NULL COMMENT '工序版次,升版就是变更改该字段,需要保留历史记录', |
| | | `is_last_edition` int NOT NULL COMMENT '是否最新版次,1:最新版次;0:历史版次,主要取该字段=1的数据,0是历史版次', |
| | | `is_locked` int DEFAULT NULL COMMENT '锁定状态,1:锁定;0:正常', |
| | | `is_test` int DEFAULT NULL COMMENT '是否测试程序,1:是;0:否', |
| | | `task_assign_time` datetime DEFAULT NULL COMMENT '程序的任务下发的时间(用于检查是否为重复的任务)', |
| | | `status` int DEFAULT NULL COMMENT '业务状态', |
| | | `create_dept` bigint DEFAULT NULL COMMENT '创建单位', |