package com.zg.project.Inventory.HdInventory;

import com.zg.framework.web.domain.AjaxResult;
import com.zg.project.Inventory.AutoInventory.service.ISodService;
import com.zg.project.Inventory.domain.dto.QueryDTO;
import com.zg.project.wisdom.service.IRkInfoService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
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 java.util.Map;

@RestController
@RequestMapping("/HdInventory")
public class HdInventoryController {
    @Autowired
    private IRkInfoService rkInfoService;

    @ApiModelProperty("开始匹配")
    @PostMapping("/match")
    public AjaxResult match(@RequestBody QueryDTO dto) {

        dto.setScanType(0);

//        dto.setDeviceId("0");

        rkInfoService.matchWithStatus(dto);

        return AjaxResult.success();

    }

}
