|
@@ -5,10 +5,13 @@ import com.ruoyi.common.core.web.page.PageDomain;
|
|
|
import com.ruoyi.common.core.web.page.TableSupport;
|
|
|
import com.sooka.sponest.data.api.digitalagriculture.domain.FarmGarbageTransfer;
|
|
|
import com.sooka.sponest.data.api.digitalagriculture.service.RemoteGarbageTransferInfoService;
|
|
|
+import com.sooka.sponest.mobile.system.camera.service.AppCameraService;
|
|
|
+import com.sooka.sponest.mobile.utils.PictureReplaceAll;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* 垃圾转输站
|
|
@@ -20,6 +23,9 @@ public class GarbageTransferController {
|
|
|
@Resource
|
|
|
RemoteGarbageTransferInfoService remoteGarbageTransferInfoService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ AppCameraService appCameraService;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 新增垃圾转输站
|
|
@@ -72,6 +78,13 @@ public class GarbageTransferController {
|
|
|
*/
|
|
|
@GetMapping("/GarbageTransferInfo/edit")
|
|
|
public AjaxResult garbageTransferInfoEdit(String id) {
|
|
|
- return remoteGarbageTransferInfoService.garbageTransferInfoEdit(id);
|
|
|
+ AjaxResult ajaxResult = remoteGarbageTransferInfoService.garbageTransferInfoEdit(id);
|
|
|
+ if("200".equals(ajaxResult.get("code").toString())){
|
|
|
+ Map<String, Object> info = (Map<String, Object>) ajaxResult.get("data");
|
|
|
+ PictureReplaceAll.StringToList(info);
|
|
|
+ return appCameraService.selectCameraByIds(info);
|
|
|
+ }else{
|
|
|
+ return ajaxResult;
|
|
|
+ }
|
|
|
}
|
|
|
}
|