|
|
@ -40,6 +40,7 @@ import com.epmet.feign.EpmetCommonServiceOpenFeignClient; |
|
|
|
import com.epmet.service.IcNeighborHoodService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
|
|
|
|
@ -132,9 +133,11 @@ public class IcNeighborHoodController { |
|
|
|
* @date 2022/2/12 10:47 上午 |
|
|
|
*/ |
|
|
|
@PostMapping("neighborhoodimport") |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result neighborhoodImport(@LoginUser TokenDto tokenDTO, @RequestParam("file") MultipartFile file, |
|
|
|
@RequestParam("orgId")String orgId, |
|
|
|
@RequestParam("orgType")String orgType) throws IOException { |
|
|
|
log.info("地址:" + file.getResource().getURI().getPath().toString()); |
|
|
|
ImportInfoFormDTO formDTO = new ImportInfoFormDTO(); |
|
|
|
formDTO.setCustomerId(tokenDTO.getCustomerId()); |
|
|
|
formDTO.setOrgType(orgType); |
|
|
|