| @@ -16,6 +16,4 @@ public interface TtMerchantPoiMapper extends CommonMapper<TtMerchantPoi, Long> { | |||||
| int deleteByUpdate(Long id); | int deleteByUpdate(Long id); | ||||
| Map<String,Long> findMerchantIdMap(TtMerchantPoi record); | |||||
| } | } | ||||
| @@ -778,7 +778,18 @@ public class TtMerchantPoiServiceImpl implements TtMerchantPoiService { | |||||
| @Override | @Override | ||||
| public Map<String, Long> queryPoiMerchantIdMap(TtMerchantPoi merchantPoiQ) { | public Map<String, Long> queryPoiMerchantIdMap(TtMerchantPoi merchantPoiQ) { | ||||
| return ttMerchantPoiMapper.findMerchantIdMap(merchantPoiQ); | |||||
| List<TtMerchantPoi> poiList = ttMerchantPoiMapper.findList(merchantPoiQ); | |||||
| if (null != poiList) { | |||||
| Map<String,Long> poiMerchantIdMap = new HashMap<String,Long>(); | |||||
| for (int i = 0 ; i < poiList.size(); i++) { | |||||
| TtMerchantPoi poi = poiList.get(i); | |||||
| if (StringUtils.isNotBlank(poi.getPoiId())) { | |||||
| poiMerchantIdMap.put(poi.getPoiId(), poi.getId()); | |||||
| } | |||||
| } | |||||
| return poiMerchantIdMap; | |||||
| } | |||||
| return null; | |||||
| } | } | ||||
| @@ -141,17 +141,6 @@ | |||||
| <include refid="dynamicWhereConditions"/> | <include refid="dynamicWhereConditions"/> | ||||
| </select> | </select> | ||||
| <select id="findMerchantIdMap" parameterType="com.iformall.domain.po.TtMerchantPoi" resultType="Map"> | |||||
| select `poi_id`,`id` | |||||
| from tt_merchant_poi where poi_id is not null and poi_id != '' | |||||
| <if test=" null != tenantId and '' != tenantId"> | |||||
| and `tenant_id` = #{tenantId} | |||||
| </if> | |||||
| <if test=" null != parentTenantId and '' != parentTenantId"> | |||||
| and `parent_tenant_id` = #{parentTenantId} | |||||
| </if> | |||||
| </select> | |||||
| <update id="deleteByUpdate" parameterType="Long"> | <update id="deleteByUpdate" parameterType="Long"> | ||||
| update tt_merchant_poi set is_del = 1 | update tt_merchant_poi set is_del = 1 | ||||
| where id = #{id} | where id = #{id} | ||||