package com.panzhihua.service_community.api;
|
|
import com.panzhihua.common.model.vos.R;
|
import com.panzhihua.common.model.vos.community.ComMngBuildingExcelVO;
|
import com.panzhihua.service_community.service.ComActBuildingService;
|
import lombok.extern.slf4j.Slf4j;
|
import org.checkerframework.checker.units.qual.A;
|
import org.springframework.web.bind.annotation.*;
|
|
import javax.annotation.Resource;
|
import java.util.List;
|
|
/**
|
* @author xyh
|
* @date 2021/6/10 13:39
|
*/
|
@Slf4j
|
@RestController
|
@RequestMapping("/building")
|
public class BuildingApi {
|
|
@Resource
|
private ComActBuildingService comActBuildingService;
|
|
|
@PostMapping("/batchSave")
|
R listSaveBuildingExcelVO(@RequestBody List<ComMngBuildingExcelVO> newVoList, @RequestParam("communityId") Long communityId, @RequestParam("streetId")Long streetId){
|
|
return comActBuildingService.batchSaveBuilding(newVoList,communityId,streetId);
|
}
|
}
|