| | |
| | | and machine_code in (select code from mdm_machine where machine_group_code=#{machineGroupCode}) |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | <select id="pageQuery" resultType="org.springblade.mdm.program.vo.NcProgramVO"> |
| | | select id,nc_node_id,machine_code,part_no,part_no_edition,process_name,craft_edition from mdm_nc_program p |
| | | where is_deleted=0 and is_last_edition=1 and (category='program' or category='subprogram') |
| | | <where> |
| | | |
| | | <if test="query.name!=null and query.name!=''"> |
| | | and p.name like CONCAT('%', #{query.name,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <!-- |
| | | <select id="getLastNcProgram" resultType="org.springblade.mdm.program.entity.NcProgram"> |
| | | select <include refid="all_columns"/> from mdm_nc_program |