|
@@ -4,6 +4,7 @@ import java.util.List;
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
@@ -43,10 +44,35 @@ public class EnterpriseController {
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public Enterprise getEnterprise() {
|
|
public Enterprise getEnterprise() {
|
|
|
Enterprise enterprise = SystemSession.getUser().getEnterprise();
|
|
Enterprise enterprise = SystemSession.getUser().getEnterprise();
|
|
|
- enterprise.setAdmin(userService.findUserByUserUU(enterprise.getEnAdminuu()));
|
|
|
|
|
|
|
+ enterprise.setAdmin(userService.findUserByUserUU(enterprise
|
|
|
|
|
+ .getEnAdminuu()));
|
|
|
return enterprise;
|
|
return enterprise;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 修改企业基本资料
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @RequestMapping(method = RequestMethod.POST)
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public void updateEnterprise(@RequestBody Enterprise enterprise) {
|
|
|
|
|
+ enterprise = enterpriseService.save(enterprise);
|
|
|
|
|
+ SystemSession.getUser().setCurrentEnterprise(enterprise);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 申请SAAS服务
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @RequestMapping(value="/applySaas", method = RequestMethod.POST)
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public void applySaas(Long enUU, String enSaasUrl, String enAdminPassword) {
|
|
|
|
|
+ Enterprise enterprise = enterpriseService.applySaas(enUU, enSaasUrl, enAdminPassword);
|
|
|
|
|
+ SystemSession.getUser().setCurrentEnterprise(enterprise);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 企业成长历程
|
|
* 企业成长历程
|
|
|
*
|
|
*
|