增加个模拟盘点的接口

hubei-jinshennong
LAPTOP-S9HJSOEB\昊天 8 months ago
parent c6ae6756b2
commit 7a343121f0

@ -2,6 +2,7 @@ package com.zhehekeji.web.controller;
import com.zhehekeji.core.pojo.Result; import com.zhehekeji.core.pojo.Result;
import com.zhehekeji.web.service.TestService; import com.zhehekeji.web.service.TestService;
import com.zhehekeji.web.service.cron.PLCConnectionExample;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -13,6 +14,8 @@ import javax.annotation.Resource;
@RestController @RestController
public class TestController { public class TestController {
@Resource
PLCConnectionExample plcConnectionExample;
@Resource @Resource
private TestService testService; private TestService testService;
@ -29,6 +32,13 @@ public class TestController {
return Result.success(); return Result.success();
} }
//writePlcDataStatusErr
@ApiOperation("自动盘点")
@GetMapping("/writePlcDataStatusErr/{id}/{leftRight}")
public Result writePlcDataStatusErr(@PathVariable String id,@PathVariable Integer leftRight){
plcConnectionExample.writePlcDataStatusErr(id,leftRight);
return Result.success();
}
} }

Loading…
Cancel
Save