package com.pqs9200.controller.point;

import com.njcn.enums.LogTypeEnum;
import com.njcn.pojo.commons.HttpResult;
import com.njcn.pojo.pointInfo.LineLedger;
import com.njcn.pojo.pointInfo.LineLedgerVO;
import com.njcn.pojo.pointInfo.PointInfo;
import com.njcn.service.log.UserLogDetailService;
import com.njcn.service.point.PointBaseInfoService;
import com.njcn.utils.PubUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @Author: Sunwei 【sunW2016@163.com】
 * @Description:
 * @Date: Create in 13:22 2018/5/28
 * @Modified By:
 */
@RestController
public class PointBaseInfoController {
    @Autowired
    private PointBaseInfoService pointBaseInfoService;

    @Autowired
    UserLogDetailService userLog;

    /**
     * 监测点台账信息查询
     * @author cdf
     * @date 2021/9/14
     */
    @PostMapping("getLineLedger")
    public HttpResult getLineLedger(@RequestBody LineLedgerVO lineLedgerVO){
        List<LineLedger> list = pointBaseInfoService.getLineLedger(lineLedgerVO);

        return PubUtils.assignmentResult(list,200,"监测点台账信息查询成功");
    }
}
