liujie
2025-06-09 70d2a5d0f9c6951b2d4cac954041ed73582ff7eb
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/StreetApi.java
@@ -1,10 +1,13 @@
package com.panzhihua.service_community.api;
import java.io.IOException;
import java.util.List;
import javax.annotation.Resource;
import com.panzhihua.common.model.vos.community.ComActVO;
import com.panzhihua.service_community.service.CodDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@@ -19,6 +22,7 @@
import com.panzhihua.service_community.service.ComStreetService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.multipart.MultipartFile;
/**
 * @Author: llming
@@ -30,6 +34,8 @@
public class StreetApi {
    @Resource
    private ComStreetService comStreetService;
    @Autowired
    private CodDataService codDataService;
    /**
     * 新增街道
@@ -120,4 +126,9 @@
        return comStreetService.repssStreet(comActVO);
    }
    @PostMapping("importData")
    public void importData(@RequestParam("file") MultipartFile file) throws IOException {
        codDataService.importData(file);
    }
}