package com.sunda.spmsweb.wmscontroller;


import com.sunda.spmscommon.ResponseResult;
import com.sunda.spmswms.service.ISapDeliveryNoteLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 单据日志信息表
 * </p>
 *
 * @author Wayne
 * @since 2020-11-24
 */
@RestController
@Api(tags = "单据日志信息", description = "单据日志信息接口")
@RequestMapping("/docLog")
public class DocumentLogController {

    @Autowired
    ISapDeliveryNoteLogService iSapDeliveryNoteLogService;

    @RequestMapping("/getDocLog")
    @ApiOperation(value = "获取单据日志信息", notes = "获取单据日志信息\n" +
            "获取单据日志信息，入参可为：\n" +
            "交货单号: 1180066459\n" +
            "上下架任务uuid: 71513ac4eb45467db47311d4e2b21089, b950f9640ae14c418b630e21cbe5cd65\n" +
            "盘点单据任务uuid: 2bd35b830798445991e4f6c3adc3bde4\n" +
            "出库任务uuid: b860d9902dd84760af7ab62bf7b7e7eb\n" +
            "装箱单号等: PL00027371",
            httpMethod = "POST")
    public ResponseResult getDocLog(String documentNumber) {
        return ResponseResult.success().add("getDocLog", iSapDeliveryNoteLogService.getDocumentLogs(documentNumber));
    }


}
