yanghui
2022-11-10 dd99da83d2708dc1fdb84f9fa71b5e63d5579338
flower_city/src/main/resources/mapper/TransactionEventMapper.xml
@@ -153,10 +153,12 @@
        <include refid="selectTransactionEventList"/>
        <where>
            <if test="keyword != null and keyword != ''">
                AND (matter_name like concat('%', #{keyword}, '%')) or
                AND (
                    (matter_name like concat('%', #{keyword}, '%')) or
                    (department_id in (SELECT id FROM automessage_organization_chart WHERE organization_name like concat('%', #{keyword}, '%')))
                    or (classify_id in (SELECT id FROM automessage_classify_administration WHERE classify_name like concat('%', #{keyword}, '%')))
                    or (associate_names like concat('%', #{keyword}, '%'))
                    )
            </if>
            <if test="classifyGrade != null and classifyGrade != ''">
                AND (select classify_grade from automessage_classify_administration where automessage_classify_administration.id=classify_id) = #{classifyGrade}
@@ -203,7 +205,7 @@
        <if test="departmentArea != null">department_area,</if>
        <if test="classifyId != null and classifyId != '' ">classify_id,</if>
        <if test="matterName != null and matterName != '' ">matter_name,</if>
        <if test="associateIds != null and associateIds != '' ">associate_ids,</if>
        <if test="associateIds != null ">associate_ids,</if>
        <if test="transactionNum != null ">transaction_num,</if>
        <if test="browseNum != null  ">browse_num,</if>
        <if test="basicInformation != null and basicInformation != '' ">basic_information,</if>
@@ -211,7 +213,7 @@
        <if test="applicationMaterial != null and applicationMaterial != '' ">application_material,</if>
        <if test="handlingProcedures != null and handlingProcedures != '' ">handling_procedures,</if>
        <if test="rates != null and rates != '' ">rates,</if>
        <if test="associateNames != null and associateNames != '' ">associate_names,</if>
        <if test="associateNames != null  ">associate_names,</if>
        <if test="queryTime != null">query_time,</if>
        <if test="basicInformationUrl != null and basicInformationUrl != '' ">basic_information_url,</if>
        <if test="acceptConditionsUrl != null and acceptConditionsUrl != '' ">accept_conditions_url,</if>
@@ -245,7 +247,7 @@
        <if test="departmentArea != null">#{departmentArea},</if>
        <if test="classifyId != null and classifyId != '' ">#{classifyId},</if>
        <if test="matterName != null and matterName != '' ">#{matterName},</if>
        <if test="associateIds != null and associateIds != '' ">#{associateIds},</if>
        <if test="associateIds != null ">#{associateIds},</if>
        <if test="transactionNum != null ">#{transactionNum},</if>
        <if test="browseNum != null  ">#{browseNum},</if>
        <if test="basicInformation != null and basicInformation != '' ">#{basicInformation},</if>
@@ -253,7 +255,7 @@
        <if test="applicationMaterial != null and applicationMaterial != '' ">#{applicationMaterial},</if>
        <if test="handlingProcedures != null and handlingProcedures != '' ">#{handlingProcedures},</if>
        <if test="rates != null and rates != '' ">#{rates},</if>
        <if test="associateNames != null and associateNames != '' ">#{associateNames},</if>
        <if test="associateNames != null  ">#{associateNames},</if>
        <if test="queryTime != null">#{queryTime},</if>
        <if test="basicInformationUrl != null and basicInformationUrl != '' ">#{basicInformationUrl},</if>
        <if test="acceptConditionsUrl != null and acceptConditionsUrl != '' ">#{acceptConditionsUrl},</if>
@@ -292,7 +294,7 @@
            <if test="departmentArea != null">department_area=#{departmentArea},</if>
            <if test="classifyId != null and classifyId != '' ">classify_id=#{classifyId},</if>
            <if test="matterName != null and matterName != '' ">matter_name=#{matterName},</if>
            <if test="associateIds != null and associateIds != '' ">associate_ids=#{associateIds},</if>
            <if test="associateIds != null  ">associate_ids=#{associateIds},</if>
            <if test="transactionNum != null ">transaction_num=#{transactionNum},</if>
            <if test="browseNum != null  ">browse_num=#{browseNum},</if>
            <if test="basicInformation != null">basic_information=#{basicInformation},</if>
@@ -300,7 +302,7 @@
            <if test="applicationMaterial != null ">application_material=#{applicationMaterial},</if>
            <if test="handlingProcedures != null ">handling_procedures=#{handlingProcedures},</if>
            <if test="rates != null ">rates=#{rates},</if>
            <if test="associateNames != null and associateNames != '' ">associate_names=#{associateNames},</if>
            <if test="associateNames != null ">associate_names=#{associateNames},</if>
            <if test="queryTime != null">query_time=#{queryTime},</if>
            <if test="basicInformationUrl != null">basic_information_url=#{basicInformationUrl},</if>
            <if test="acceptConditionsUrl != null  ">accept_conditions_url=#{acceptConditionsUrl},</if>
@@ -441,9 +443,10 @@
    </select>
    <select id="selectSearchList" resultType="com.dg.core.db.manual.pojo.Search">
        select  id, title, content,classify_id, type  from   ( select  id,matter_name title,concat((select classify_name from  automessage_classify_administration
        select  id, title, content,classify_id, type,parentClassifyId  from   ( select  id,matter_name title,concat((select classify_name from  automessage_classify_administration
                                                                                                    where id=(select parent_id from  automessage_classify_administration  where id=automessage_transaction_event.classify_id)),
                                                                                                   '/',(select classify_name from  automessage_classify_administration  where id=automessage_transaction_event.classify_id)) content,classify_id,
                                                                                                   '/',(select classify_name from  automessage_classify_administration  where id=automessage_transaction_event.classify_id)) content,
                                                                   classify_id,(select parent_id from automessage_classify_administration  where id=automessage_transaction_event.classify_id) parentClassifyId,
                                                                       2 type from automessage_transaction_event) k
        where  k.title like concat('%',#{keyWord}, '%') or k.content like concat('%',#{keyWord}, '%')
    </select>