|
@@ -1,13 +1,12 @@
|
|
|
package com.benyun.core.controller;
|
|
|
|
|
|
+import com.benyun.core.entity.*;
|
|
|
import com.benyun.core.entity.vo.TypeByBody;
|
|
|
import com.benyun.core.entity.vo.WdInfoVo;
|
|
|
-import com.benyun.core.service.WdRecycleService;
|
|
|
+import com.benyun.core.service.*;
|
|
|
import com.ruoyi.common.core.domain.R;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
@@ -16,9 +15,25 @@ import java.util.List;
|
|
|
@RequestMapping("/recycle/wd")
|
|
|
public class WdRecycleController {
|
|
|
|
|
|
+
|
|
|
@Autowired
|
|
|
WdRecycleService wdRecycleService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ StoreWdService storeWdService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ HouseWdService houseWdService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ BuildWdService buildWdService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ TrafficWdService trafficWdService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ EnterpriseWdService enterpriseWdService;
|
|
|
+
|
|
|
|
|
|
//获取网点回收站列表
|
|
|
@GetMapping("/list")
|
|
@@ -27,6 +42,53 @@ public class WdRecycleController {
|
|
|
return R.ok(list);
|
|
|
}
|
|
|
|
|
|
+ //获取门店网点类型明细
|
|
|
+ @GetMapping("/storeWdInfo")
|
|
|
+ public R storeWdInfo(String wdId){
|
|
|
+ StoreWd storeWd = storeWdService.storeWdInfo(wdId);
|
|
|
+ return R.ok(storeWd);
|
|
|
+ }
|
|
|
|
|
|
+ //获取小区网点类型明细
|
|
|
+ @GetMapping("/houseWdInfo")
|
|
|
+ public R houseWddInfo(String wdId){
|
|
|
+ HouseWd houseWd = houseWdService.houseWddInfo(wdId);
|
|
|
+ return R.ok(houseWd);
|
|
|
+ }
|
|
|
+
|
|
|
+ //获取楼宇网点类型明细
|
|
|
+ @GetMapping("/buildWdInfo")
|
|
|
+ public R buildWdInfo(String wdId){
|
|
|
+ BuildWd buildWd = buildWdService.buildWdInfo(wdId);
|
|
|
+ return R.ok(buildWd);
|
|
|
+ }
|
|
|
+
|
|
|
+ //获取交通设施网点类型明细
|
|
|
+ @GetMapping("/trafficWdInfo")
|
|
|
+ public R trafficWdInfo(String wdId){
|
|
|
+ TrafficWd trafficWd = trafficWdService.trafficWdInfo(wdId);
|
|
|
+ return R.ok(trafficWd);
|
|
|
+ }
|
|
|
+
|
|
|
+ //获取公司网点类型明细
|
|
|
+ @GetMapping("/enterpriseWdInfo")
|
|
|
+ public R enterpriseWdInfo(String wdId){
|
|
|
+ EnterpriseWd enterpriseWd = enterpriseWdService.enterpriseWdInfo(wdId);
|
|
|
+ return R.ok(enterpriseWd);
|
|
|
+ }
|
|
|
+
|
|
|
+ //移除
|
|
|
+ @DeleteMapping("/deleteWd/{wdId}")
|
|
|
+ public R deleteWd(@PathVariable("wdId") String wdId){
|
|
|
+ wdRecycleService.deleteWd(wdId);
|
|
|
+ return R.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+ //恢复
|
|
|
+ @PutMapping("/recoverWd")
|
|
|
+ public R recoverWd(@RequestBody String wdId){
|
|
|
+ wdRecycleService.recoverWd(wdId);
|
|
|
+ return R.ok();
|
|
|
+ }
|
|
|
|
|
|
}
|