Merge branch 'master' into cc_20250723_Decoration

# Conflicts:
#	coolstore-partner-web/src/main/java/com/cool/store/controller/webb/OpenApiController.java
This commit is contained in:
shuo.wang
2025-07-24 15:29:31 +08:00
10 changed files with 50 additions and 15 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>