|
@@ -1,7 +1,7 @@
|
|
|
-package com.java110.web.components;
|
|
|
|
|
|
|
+package com.java110.front.components;
|
|
|
|
|
|
|
|
import com.java110.core.context.IPageData;
|
|
import com.java110.core.context.IPageData;
|
|
|
-import com.java110.web.smo.ICompanyServiceSMO;
|
|
|
|
|
|
|
+import com.java110.front.smo.ICompanyServiceSMO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
import org.springframework.http.ResponseEntity;
|
|
@@ -17,49 +17,54 @@ public class CompanyComponent {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
ICompanyServiceSMO companyServiceSMOImpl;
|
|
ICompanyServiceSMO companyServiceSMOImpl;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 获取商户类型
|
|
* 获取商户类型
|
|
|
|
|
+ *
|
|
|
* @param pd
|
|
* @param pd
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
- public ResponseEntity<String> getStoreType(IPageData pd){
|
|
|
|
|
|
|
+ public ResponseEntity<String> getStoreType(IPageData pd) {
|
|
|
ResponseEntity<String> responseEntity = null;
|
|
ResponseEntity<String> responseEntity = null;
|
|
|
- try{
|
|
|
|
|
- responseEntity = companyServiceSMOImpl.getStoreType(pd);
|
|
|
|
|
- }catch (Exception e){
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ responseEntity = companyServiceSMOImpl.getStoreType(pd);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
|
|
responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
|
|
|
- }finally {
|
|
|
|
|
|
|
+ } finally {
|
|
|
return responseEntity;
|
|
return responseEntity;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 保存公司信息
|
|
* 保存公司信息
|
|
|
|
|
+ *
|
|
|
* @param pd
|
|
* @param pd
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
- public ResponseEntity<String> saveCompanyInfo(IPageData pd){
|
|
|
|
|
|
|
+ public ResponseEntity<String> saveCompanyInfo(IPageData pd) {
|
|
|
ResponseEntity<String> responseEntity = null;
|
|
ResponseEntity<String> responseEntity = null;
|
|
|
- try{
|
|
|
|
|
- responseEntity = companyServiceSMOImpl.saveCompanyInfo(pd);
|
|
|
|
|
- }catch (Exception e){
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ responseEntity = companyServiceSMOImpl.saveCompanyInfo(pd);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
|
|
responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
|
|
|
- }finally {
|
|
|
|
|
|
|
+ } finally {
|
|
|
return responseEntity;
|
|
return responseEntity;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 功能描述: 查询所有省市
|
|
* 功能描述: 查询所有省市
|
|
|
|
|
+ *
|
|
|
* @param pd
|
|
* @param pd
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
- public ResponseEntity<String> getAreas(IPageData pd){
|
|
|
|
|
|
|
+ public ResponseEntity<String> getAreas(IPageData pd) {
|
|
|
ResponseEntity<String> responseEntity = null;
|
|
ResponseEntity<String> responseEntity = null;
|
|
|
- try{
|
|
|
|
|
- responseEntity = companyServiceSMOImpl.getAreas(pd);
|
|
|
|
|
- }catch (Exception e){
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ responseEntity = companyServiceSMOImpl.getAreas(pd);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
|
|
responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
|
|
|
- }finally {
|
|
|
|
|
|
|
+ } finally {
|
|
|
return responseEntity;
|
|
return responseEntity;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|