huanghongfa
2021-09-02 177249c76aeea0b4bf8d8816d4994e3b445b45ce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.panzhihua.service_community.api;
 
import java.util.List;
 
import javax.annotation.Resource;
 
import org.springframework.web.bind.annotation.*;
 
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;
 
/**
 * @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) {
 
        return comActBuildingService.batchSaveBuilding(newVoList, communityId);
    }
}