package com.njcn.device.pq.controller;


import com.njcn.common.pojo.enums.response.CommonResponseEnum;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.common.utils.HttpResultUtil;
import com.njcn.user.pojo.po.Dept;
import com.njcn.web.controller.BaseController;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;


/**
 * pqs
 * 主要用于单位更新时候同步台账表里的相关单位信息
 * @author cdf
 * @date 2023/5/17
 */
@RestController
@RequiredArgsConstructor
@Slf4j
@RequestMapping("pmsLedger")
public class PqLedgerDeptController extends BaseController {




    /**
     * 针对pms兼容的空方法勿删
     * @author cdf
     * @date 2023/5/17
     */
    @PostMapping("update")
    @ApiIgnore
    public HttpResult<Object> updateLedger(@RequestBody Dept dept){
        String methodDescribe = getMethodDescribe("updateLedger");
        return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
    }
}

