| | |
| | | List<TransactionEvent> queryMatterNameList(@Param("matterName") String matterName,@Param("classifyId") String classifyId); |
| | | |
| | | /** |
| | | * 导办事务搜索(不带分页)(关联词) |
| | | * @param associateNames |
| | | * @return |
| | | */ |
| | | List<TransactionEvent> queryAssociateNamesList(@Param("associateNames") String associateNames,@Param("classifyId") String classifyId); |
| | | |
| | | /** |
| | | * 导办事务搜索统计数量 |
| | | * @param matterName |
| | | * @return |
| | |
| | | queryResults.setSearchList(searches); |
| | | List<Search> searchesAssociate = baseMapper.selectSearchAssociateDistinct(keyWord); |
| | | for (Search search:searchesAssociate) { |
| | | search.setTransactionEventList(baseMapper.queryMatterNameList(keyWord,search.getClassifyId().toString())); |
| | | search.setTransactionEventList(baseMapper.queryAssociateNamesList(keyWord,search.getClassifyId().toString())); |
| | | } |
| | | queryResults.setTransactionEventList(searchesAssociate); |
| | | queryResults.setKeywordEntityList( keywordMapper.selectByName(keyWord)); |
| | |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | <select id="queryAssociateNamesList" resultMap="TransactionEventEntityResult"> |
| | | <include refid="selectTransactionEventEntityVo"/> |
| | | <where> |
| | | <if test="associateNames != null and associateNames != ''"> |
| | | AND (associate_names like concat('%', #{associateNames}, '%') or #{associateNames} like concat('%', associate_names, '%')) |
| | | </if> |
| | | <if test="classifyId != null and classifyId != ''"> |
| | | and (classify_id= #{classifyId} or classify_id in (select id FROM automessage_classify_administration where parent_id =#{classifyId} )) |
| | | </if> |
| | | |
| | | </where> |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | <select id="sumTransactionNum" resultMap="TransactionEventEntityResult"> |
| | | select sum(transaction_num)sumTransactionNum,count(*) counttransaction FROM automessage_transaction_event |
| | | </select> |