|
@@ -6,10 +6,7 @@ import com.ruoyi.common.core.web.page.TableSupport;
|
|
|
import com.sooka.sponest.mobile.data.emergency.domain.AppEnterpriseVO;
|
|
|
import com.sooka.sponest.mobile.data.emergency.feign.service.RemoteEnterpriseService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
@@ -26,6 +23,7 @@ public class AppEnterpriseController {
|
|
|
|
|
|
/**
|
|
|
* 获取企业列表
|
|
|
+ *
|
|
|
* @param vo
|
|
|
* @return
|
|
|
*/
|
|
@@ -42,4 +40,9 @@ public class AppEnterpriseController {
|
|
|
public AjaxResult getEnterpriseDetails(@RequestBody AppEnterpriseVO vo) {
|
|
|
return enterpriseService.getEnterpriseDetails(vo.getBusEnterpriseId());
|
|
|
}
|
|
|
+
|
|
|
+ @PostMapping("/addEnterprise")
|
|
|
+ public AjaxResult addEnterprise(@RequestBody AppEnterpriseVO vo) {
|
|
|
+ return enterpriseService.addEnterprise(vo);
|
|
|
+ }
|
|
|
}
|