| | |
| | | import com.kangaroohy.milo.model.ReadWriteEntity; |
| | | import com.kangaroohy.milo.service.MiloService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @Autowired |
| | | MiloService miloService; |
| | | |
| | | @Value("${websocketUrl}") |
| | | private String websocketUrl; |
| | | |
| | | @GetMapping("/forceUpload") |
| | | public void forceUpload() throws Exception { |
| | | ReadWriteEntity entity = new ReadWriteEntity(OPCElement.OP121_ZZ_CODE_CHECK, 1); |
| | | miloService.writeToOpcByte(entity); |
| | | } |
| | | |
| | | @GetMapping("/websocketUrl") |
| | | public String websocketName() { |
| | | return websocketUrl; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询订单排产列表 |
| | | */ |