package com.tykj.dev.device.sendback.controller;

import com.tykj.dev.config.swagger.AutoDocument;
import com.tykj.dev.device.sendback.entity.domain.RepelEscrow;
import com.tykj.dev.device.sendback.entity.vo.HistorySelectSendBillVo;
import com.tykj.dev.device.sendback.service.HistorySendBillService;
import com.tykj.dev.device.sendback.service.RepelBusinessService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

/**
 * @author zjm
 * @version 1.0.0
 * @ClassName HistoryPepairContriller.java
 * @Description TODO
 * @createTime 2021年09月17日 10:21:00
 */
@RestController
@RequestMapping(value = "/historySend")
@AutoDocument
@Api(tags = "清退直属代管模块", description = "清退直属代管模块")
public class RepelEscrowContriller {
    @Autowired
    RepelBusinessService repelBusinessService;


    @ApiOperation(value = "添加相关数据接口",notes = "分为两个阶段使用 1.选择设备阶段，需要传deviceLibraries集合，以及escrowStatus为2。第2阶段 上传签字单据，fileRetList集合以及escrowStatus为2")
    @PostMapping("/addDate")
    public ResponseEntity toDb(@RequestBody RepelEscrow repelEscrow ){
        repelBusinessService.saveRepelEscrow(repelEscrow);
        return ResponseEntity.ok("ok");
    }

}
