yangys
2025-06-20 09474c2fbb6d261585d1f366e37e85edd6b35065
blade-service/blade-mdm/src/main/java/org/springblade/mdm/machineback/mapper/MachineBackFileMapper.xml
@@ -28,6 +28,8 @@
        </if>
      </where>
    </select>
    <!--机床回传程序处理分页-->
    <select id="handlePageQuery" resultType="org.springblade.mdm.machineback.vo.MachineBackFileVO">
        select f.id,p.name program_name,p.is_cured,f.create_time,m.code machine_code, m.name machine_name,f.create_time arrived_time
        from mdm_machine_back_file f join mdm_machine m on f.machine_code=m.code
@@ -35,13 +37,11 @@
        <where>
        f.status=2 and f.is_deleted=0
        <if test="query.machineSpec!=null and query.machineSpec!=''">
            and m.machine_spec=#{query.machineSpec,jdbcType=VARCHAR}
        <if test="query.confirmTimeBegin!=null">
            and m.confirm_time$gt;=#{query.confirmTimeBegin}
        </if>
        <if test="query.keyword!=null and query.keyword!=''">
            and (m.code like CONCAT('%', #{query.keyword,jdbcType=VARCHAR},'%') or m.name like CONCAT('%', #{query.keyword,jdbcType=VARCHAR},'%')
            or p.name like CONCAT('%', #{query.keyword,jdbcType=VARCHAR},'%')
            )
        <if test="query.confirmTimeEnd!=null">
            and m.confirm_time$lt;#{query.confirmTimeEnd}
        </if>
        </where>
    </select>