From 981107bb993776ed20dfa2173948b8eae6ae989b Mon Sep 17 00:00:00 2001
From: shicf <shi_chongfu@163.com>
Date: 星期日, 13 七月 2025 13:52:59 +0800
Subject: [PATCH] 版本升级
---
src/main/java/com/product/mobile/core/controller/ContactPersonController.java | 34 ++++++++++++++++++++--------------
1 files changed, 20 insertions(+), 14 deletions(-)
diff --git a/src/main/java/com/product/mobile/core/controller/ContactPersonController.java b/src/main/java/com/product/mobile/core/controller/ContactPersonController.java
index 3a1c060..035945a 100644
--- a/src/main/java/com/product/mobile/core/controller/ContactPersonController.java
+++ b/src/main/java/com/product/mobile/core/controller/ContactPersonController.java
@@ -1,5 +1,6 @@
package com.product.mobile.core.controller;
+import com.product.common.lang.StringUtils;
import com.product.core.config.CoreConst;
import com.product.core.controller.support.AbstractBaseController;
import com.product.core.entity.FieldSetEntity;
@@ -14,9 +15,9 @@
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
-
/**
* 閫氳繀褰�
+ *
* @Date 2022/3/3 19:54
* @Desc
*/
@@ -24,19 +25,24 @@
@RequestMapping("/api/mobile")
public class ContactPersonController extends AbstractBaseController {
- @Autowired
- ContanctOrgListService contanctOrgListService;
+ @Autowired
+ ContanctOrgListService contanctOrgListService;
- @RequestMapping(value = "/contact/org/list/{version}", method = RequestMethod.POST)
- @ApiVersion(1)
- public String contactOrgList(HttpServletRequest request) {
- FieldSetEntity fse = null;
- Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
- if (bean != null) {
- RequestParameterEntity reqp = (RequestParameterEntity) bean;
- fse = reqp.getFormData();
- }
- return this.OK_List(contanctOrgListService.orgList(fse));
- }
+ @RequestMapping(value = "/contact/org/list/{version}", method = RequestMethod.POST)
+ @ApiVersion(1)
+ public String contactOrgList(HttpServletRequest request) {
+ FieldSetEntity fse = null;
+ Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA);
+ if (bean != null) {
+ RequestParameterEntity reqp = (RequestParameterEntity) bean;
+ fse = reqp.getFormData();
+ }
+ if (StringUtils.isEmpty(fse.getString("orgCode"))) {//寤惰繜鍔犺浇鏃讹紝鎸囧畾閮ㄩ棬
+ return this.OK_List(contanctOrgListService.orgList(fse));
+ } else {
+ return this.OK_List(contanctOrgListService.orgList(fse.getString("orgCode")));
+ }
+
+ }
}
--
Gitblit v1.9.2