inspect-server/src/main/resources/mapper/InsSampleMapper.xml
@@ -61,6 +61,7 @@
        <result property="tell" column="tell" jdbcType="VARCHAR"/>
        <result property="lastValue" column="last_value" jdbcType="VARCHAR"/>
        <result property="insResult" column="ip_ins_result" jdbcType="INTEGER"/>
        <result property="isBinding" column="ip_is_binding" jdbcType="INTEGER"/>
        <result property="state" column="state" jdbcType="INTEGER"/>
        <result property="insBushId" column="ins_bush_id" jdbcType="INTEGER"/>
        <result property="insSampleId" column="ins_sample_id" jdbcType="INTEGER"/>
@@ -69,6 +70,7 @@
        <result property="createTime" column="ip_create_time" jdbcType="TIMESTAMP"/>
        <result property="updateTime" column="ip_update_time" jdbcType="TIMESTAMP"/>
        <result property="templateId" column="template_id" jdbcType="INTEGER"/>
        <result property="templateRowIndex" column="template_row_index" jdbcType="INTEGER"/>
        <result property="methodS" column="method_s"/>
        <result property="tell" column="tell"/>
        <result property="dic" column="dic"/>
@@ -141,15 +143,17 @@
               man_day,
               bsm,
               ask,
               `last_value`,
               ip.ins_result  ip_ins_result,
               state,
                `last_value`,
                ip.ins_result  ip_ins_result,
                ip.is_binding  ip_is_binding,
                state,
               ins_sample_id,
               ip.create_user ip_create_user,
               ip.update_user ip_update_user,
               ip.create_time ip_create_time,
               ip.update_time ip_update_time,
               template_id,
               template_row_index,
               ipr.ins_value,
               ipr.com_value,
               ipr.equip_value,
@@ -192,7 +196,9 @@
        ira.url,
        ira.url_s,
        ira.temp_url_pdf,
        iiq.is_copper
        iiq.is_copper,
        iiq.is_split_order,
        iiq.material_prop AS material_prop
        FROM
        ins_order io
        LEFT JOIN ins_sample isa ON isa.ins_order_id = io.id
@@ -250,7 +256,7 @@
        <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
            ${ew.customSqlSegment}
        </if>
        ORDER BY send_time asc
        ORDER BY send_time desc
    </select>
@@ -355,6 +361,7 @@
               tell,
               `last_value`,
               ip.ins_result  ip_ins_result,
               ip.is_binding  ip_is_binding,
               state,
               ins_sample_id,
               ip.create_user ip_create_user,
@@ -414,6 +421,7 @@
               ask,
               `last_value`,
               ip.ins_result  ip_ins_result,
               ip.is_binding  ip_is_binding,
               state,
               ins_sample_id,
               ip.create_user ip_create_user,
@@ -504,6 +512,7 @@
               tell,
               `last_value`,
               ip.ins_result  ip_ins_result,
               ip.is_binding  ip_is_binding,
               state,
               ins_sample_id,
               ip.create_user ip_create_user,
@@ -516,12 +525,13 @@
               ipr.equip_value,
               ip.method_s,
               ip.radius,
               ip.structure_item_parameter_id,
               isa.special_standard_method
        from ins_sample isa
                 left join ins_product ip on isa.id = ip.ins_sample_id
                 left join ins_product_result ipr on ip.id = ipr.ins_product_id
        where ins_order_id = #{id}
          and ip.standard_method_list_id is not null
          and (ip.standard_method_list_id is not null or ip.template_row_index is not null)
          and state = 1
          and ip.is_binding != 1
        order by ip.sort asc,
@@ -542,7 +552,7 @@
          and ip.son_laboratory = #{laboratory}
          and ins_fiber_id is null
          and ins_fibers_id is null
          and standard_method_list_id is not null
          and (standard_method_list_id is not null or template_row_index is not null)
        /* 电缆配置标识 */
        <if test="cableTag == null or cableTag == ''">
            and ip.cable_tag is null
@@ -569,7 +579,7 @@
        and ip.son_laboratory = #{laboratory}
        and ins_fiber_id is null
        and ins_fibers_id is null
        and standard_method_list_id is not null
        and (standard_method_list_id is not null or template_row_index is not null)
        and ip.raw_material_tag = #{rawMaterialTag}
        order by sort asc
    </select>