| | |
| | | import com.google.gson.reflect.TypeToken; |
| | | import com.whyc.dto.*; |
| | | import com.whyc.pojo.db_abe_ram.AbeInf; |
| | | import com.whyc.pojo.db_param.PageParam; |
| | | import com.whyc.pojo.db_wms.Task; |
| | | import com.whyc.util.HttpUtil; |
| | | import com.whyc.util.JsonUtil; |
| | | import com.whyc.util.ThreadLocalUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import sun.applet.Main; |
| | | |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | |
| | | return response; |
| | | } |
| | | |
| | | public Response stopTask(WmsTaskStopDto stopDto) { |
| | | String httpUrl = "http://192.168.10.133:8051"+"/api/wms_task/inbound"; |
| | | public Response cancelTask(WmsTaskCancelDto stopDto) { |
| | | String httpUrl = "http://192.168.10.133:8051"+"/api/wms_task/force_send"; |
| | | Response response = HttpUtil.doPost(httpUrl, JsonUtil.getGson().toJson(stopDto)); |
| | | //对结果进行处理 |
| | | if(response.getCode() == 1){ //请求成功,data有正常数据 |
| | | String dataStr = (String) response.getData(); |
| | | WmsResponseTaskStopDto responseInside = JsonUtil.getGson().fromJson(dataStr, WmsResponseTaskStopDto.class); |
| | | WmsResponseTaskCancelDto responseInside = JsonUtil.getGson().fromJson(dataStr, WmsResponseTaskCancelDto.class); |
| | | response.set(1,responseInside); |
| | | /*if(responseInside.getCode() ==0) { |
| | | |