|  |  |  | 
|---|
|  |  |  | package com.dy.pipIrrMwTestRtu.p206V1_0_0; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.dy.common.webUtil.BaseResponse; | 
|---|
|  |  |  | import com.dy.pipIrrMwTestRtu.tcpClient.upData.UpCd38; | 
|---|
|  |  |  | import com.dy.pipIrrMwTestRtu.tcpClient.upData.UpCd83Close; | 
|---|
|  |  |  | import com.dy.pipIrrMwTestRtu.tcpClient.upData.UpCd83Open; | 
|---|
|  |  |  | import com.dy.pipIrrMwTestRtu.tcpClient.upData.UpCd84; | 
|---|
|  |  |  | import lombok.extern.slf4j.Slf4j; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.GetMapping; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RequestMapping; | 
|---|
|  |  |  | 
|---|
|  |  |  | @GetMapping(path = "test") | 
|---|
|  |  |  | public BaseResponse<String> test(String com) { | 
|---|
|  |  |  | if(com.equals("83Open")){ | 
|---|
|  |  |  | this.cd83Open() ; | 
|---|
|  |  |  | UpCd83Open.upData(); | 
|---|
|  |  |  | }else if(com.equals("83Close")){ | 
|---|
|  |  |  | this.cd83Close() ; | 
|---|
|  |  |  | UpCd83Close.upData(); | 
|---|
|  |  |  | }else if(com.equals("84")){ | 
|---|
|  |  |  | UpCd84.upData(); | 
|---|
|  |  |  | }else if(com.equals("38")){ | 
|---|
|  |  |  | UpCd38.upData(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | BaseResponse<String> rt = new BaseResponse<String>() ; | 
|---|
|  |  |  | rt.setCode("001") ; | 
|---|
|  |  |  | 
|---|
|  |  |  | rt.setSuccess(true) ; | 
|---|
|  |  |  | return rt ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private void cd83Open(){ | 
|---|
|  |  |  | UpCd83Open.upCd83Data(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private void cd83Close(){ | 
|---|
|  |  |  | UpCd83Close.upCd83Data(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|