liuxm
2024-05-21 55cb4daf506ad8f3c637f6e3d9bc7df41e538b2e
pms-parent/pms-global/src/main/resources/mapper/PltProductQualityInspectionItemsMapper.xml
@@ -70,15 +70,12 @@
    <select id="selectSome" resultMap="BaseResultMap">
        select
        <include refid="part_Column_List" >
            <property name="alias" value="t"/>
        </include>
        <include refid="Base_Column_List" />
        from plt_product_quality_inspection_items t
        inner join plt_product p on t.pro_id = p.id
        where t.deleted!=1
        <trim prefix="and" suffixOverrides="and">
            <if test="proName != null and proName != ''">
                p.name like concat('%', #{proName}, '%') and
            <if test="proId != null and proId != ''">
                t.pro_id=#{proId} and
            </if>
            <if test="item != null  and item != ''">
                t.item like concat('%', #{item}, '%') and
@@ -95,11 +92,10 @@
    <select id="selectSomeCount" resultType="java.lang.Long">
        select count(1)
        from plt_product_quality_inspection_items t
        inner join plt_product p on t.pro_id = p.id
        where t.deleted!=1
        <trim prefix="and" suffixOverrides="and">
            <if test="proName != null and proName != ''">
                p.name like concat('%', #{proName}, '%') and
            <if test="proId != null and proId != ''">
                t.pro_id=#{proId} and
            </if>
            <if test="item != null  and item != ''">
                t.item like concat('%', #{item}, '%') and