feat:接口调整

This commit is contained in:
苏竹红
2025-07-23 09:48:47 +08:00
parent 1751b28dc7
commit 1b88d4e15a
7 changed files with 47 additions and 12 deletions

View File

@@ -76,5 +76,11 @@ public class StoreDao {
return storeMapper.list();
}
public List<StoreDO> getStoreNumByStoreCodes(List<String> storeCodeIds) {
if(CollectionUtils.isEmpty(storeCodeIds)) {
return Lists.newArrayList();
}
return storeMapper.getStoreNumByStoreCodes(storeCodeIds);
}
}

View File

@@ -43,4 +43,6 @@ public interface StoreMapper {
List<StoreAreaDTO> getStoreAreaList( @Param("storeIds") List<String> storeIds);
List<StoreDO> getStoreNumByStoreCodes(@Param("storeCodeIds") List<String> storeCodeIds);
}

View File

@@ -144,6 +144,15 @@
</where>
</select>
<select id="getStoreNumByStoreCodes" resultMap="BaseResultMap">
select *
from store_${enterpriseId}
where is_delete = 'effective'
<if test="storeCodeIds != null">
<foreach collection="storeCodeIds" item="item" separator="," open="and store_num in (" close=")">
#{item}
</foreach>
</if>
</select>
</mapper>