From 57fa3510fe6573f70a5dfc043a775da32530fbc6 Mon Sep 17 00:00:00 2001 From: zhangc <zc@123> Date: 星期六, 15 三月 2025 16:22:12 +0800 Subject: [PATCH] 配置信息 --- src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java | 53 ++++++++++++++++++++++++----------------------------- 1 files changed, 24 insertions(+), 29 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java index f2d45cb..254ae97 100644 --- a/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java @@ -5,13 +5,12 @@ import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.core.common.Cools; import com.core.common.R; -import com.core.exception.CoolException; import com.zy.asrs.domain.enums.TaskStatusType; import com.zy.asrs.domain.enums.WorkNoType; import com.zy.asrs.entity.*; +import com.zy.asrs.entity.param.TaskCreateParam; import com.zy.asrs.entity.param.TaskOverParam; import com.zy.asrs.entity.param.WMSAndAGVInterfaceParam; -import com.zy.asrs.entity.param.TaskCreateParam; import com.zy.asrs.service.*; import com.zy.asrs.utils.Utils; import com.zy.common.service.CommonService; @@ -34,25 +33,6 @@ @Service public class OpenServiceImpl implements OpenService { - @Autowired - private TaskWrkService taskWrkService; - @Autowired - private SlaveProperties slaveProperties; - @Autowired - private ApiLogService apiLogService; - - @Autowired - private StaDescService staDescService; - @Autowired - private CommonService commonService; - @Autowired - private LocMastService locMastService; - @Autowired - private BasDevpService basDevpService; - - - @Value("${wms.url}") - private String wmsUrl; public ArrayList<String> wharfCode1 = new ArrayList<String>() {{ add("J-1101"); add("J-1103"); @@ -63,15 +43,30 @@ add("H-1101"); add("G-1101"); }}; - + @Autowired + private TaskWrkService taskWrkService; + @Autowired + private SlaveProperties slaveProperties; + @Autowired + private ApiLogService apiLogService; + @Autowired + private StaDescService staDescService; + @Autowired + private CommonService commonService; + @Autowired + private LocMastService locMastService; + @Autowired + private BasDevpService basDevpService; + @Value("${wms.url}") + private String wmsUrl; @Override public HashMap<String, Object> taskCreate(TaskCreateParam param) { - HashMap<String,Object> map=new HashMap<>(); + HashMap<String, Object> map = new HashMap<>(); TaskWrk taskWrk = taskWrkService.selectByTaskNo(param.getTaskNo()); if (taskWrk != null) { - map.put("Code","0"); - map.put("Msg",param.getTaskNo()+"浠诲姟宸茬粡鐢熸垚锛�"); + map.put("Code", "0"); + map.put("Msg", param.getTaskNo() + "浠诲姟宸茬粡鐢熸垚锛�"); return map; } @@ -123,12 +118,12 @@ } if (!taskWrkService.insert(taskWrk)) { - map.put("Code","0"); - map.put("Msg",param.getTaskNo()+"鍒涘缓浠诲姟澶辫触锛�"); + map.put("Code", "0"); + map.put("Msg", param.getTaskNo() + "鍒涘缓浠诲姟澶辫触锛�"); return map; } - map.put("Code","1"); - map.put("Msg","ok"); + map.put("Code", "1"); + map.put("Msg", "ok"); return map; } -- Gitblit v1.9.1