Merge branch 'zigonggao_dev' into huacheng_test
| | |
| | | RecommendResult recommendResult = new RecommendResult(); |
| | | List<KeywordEntity> keywordEntityList = new ArrayList<>(); |
| | | List<TransactionEvent> transactionEventEntities = baseMapper.queryMatterNameList(keyWord, null); |
| | | List<TransactionEvent> transactionEvents = baseMapper.queryAssociateNamesList(keyWord, null); |
| | | recommendResult.setTransactionEventList(transactionEventEntities); |
| | | List<String> list = new ArrayList<>(); |
| | | for (TransactionEvent transactionEvent : transactionEventEntities) { |
| | | if (transactionEvent.getAssociateNames() != null) { |
| | | for (TransactionEvent transactionEvent : transactionEvents) { |
| | | // 直接返回办事指南名称 |
| | | list.add(transactionEvent.getMatterName()); |
| | | // 遍历关键词列表 可能后面流程更改会遇到暂时保存代码; |
| | | /* if (transactionEvent.getAssociateNames() != null) { |
| | | String[] associateNames = transactionEvent.getAssociateNames().split(","); |
| | | for (String associateName : associateNames) { |
| | | list.add(associateName); |
| | | } |
| | | } |
| | | }*/ |
| | | } |
| | | String[] keywords = list.stream().distinct().collect(Collectors.joining(",")).split(",");//去重 |
| | | for (String keyword : keywords) { |
| | |
| | | |
| | | <select id="selectByKeyWord" resultMap="OrganizationChartResult"> |
| | | <include refid="selectOrganizationChartVo"/> |
| | | where organization_name like concat('%', #{keyWord}, '%') or #{keyWord} like concat('%', organization_name, '%') |
| | | or((detailed_address like concat('%', #{keyWord}, '%') or #{keyWord} like concat('%', detailed_address, '%')) and TRIM(detailed_address) != '') |
| | | or((resume like concat('%', #{keyWord}, '%') or #{keyWord} like concat('%', resume, '%')) and TRIM(resume) != '' ) |
| | | where organization_name like concat('%', #{keyWord}, '%') |
| | | or((detailed_address like concat('%', #{keyWord}, '%') ) and TRIM(detailed_address) !='') |
| | | or((resume like concat('%', #{keyWord}, '%') ) and TRIM(resume) != '' ) |
| | | </select> |
| | | |
| | | <select id="selectByCode" resultMap="OrganizationChartResult"> |
| | |
| | | <include refid="selectTransactionEventEntityVo"/> |
| | | <where> |
| | | <if test="matterName != null and matterName != ''"> |
| | | AND (matter_name like concat('%', #{matterName}, '%') or #{matterName} like concat('%', matter_name, '%')) |
| | | AND (matter_name like concat('%', #{matterName}, '%') ) |
| | | </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} )) |