From 0be0f02a23158694e6c72d899b75670283a5fcf1 Mon Sep 17 00:00:00 2001 From: 6c <420680616@qq.com> Date: 星期三, 07 五月 2025 09:23:03 +0800 Subject: [PATCH] 移动端-应用 --- src/main/java/com/product/mobile/core/controller/CommonMVCController.java | 53 +++++++++++++++++++++++++++++++++++++---------------- 1 files changed, 37 insertions(+), 16 deletions(-) diff --git a/src/main/java/com/product/mobile/core/controller/CommonMVCController.java b/src/main/java/com/product/mobile/core/controller/CommonMVCController.java index 209dde8..b7a8649 100644 --- a/src/main/java/com/product/mobile/core/controller/CommonMVCController.java +++ b/src/main/java/com/product/mobile/core/controller/CommonMVCController.java @@ -1,26 +1,21 @@ package com.product.mobile.core.controller; -import javax.servlet.http.HttpServletRequest; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RestController; - import com.product.admin.service.PublicService; import com.product.core.config.CoreConst; import com.product.core.controller.support.AbstractBaseController; -import com.product.core.entity.DataTableEntity; import com.product.core.entity.FieldSetEntity; import com.product.core.entity.RequestParameterEntity; import com.product.core.exception.BaseException; import com.product.core.spring.context.SpringMVCContextHolder; import com.product.mobile.core.config.MobileCoreCode; import com.product.mobile.core.service.CommonMVCService; -import com.product.mobile.core.service.NavBarManagerService; -import com.product.mobile.core.service.SignInService; import com.product.module.sys.version.ApiVersion; -import com.product.org.admin.config.CmnCode; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.servlet.http.HttpServletRequest; /** * 鎵嬫満绔�氱敤鏌ヨ @@ -54,7 +49,7 @@ String flow_detail_uuid=commonMVCService.getApproveDetailUUID(fse.getTableName(),fse.getString("uuid")); if(flow_detail_uuid==null) { FieldSetEntity fs=publicService.getFieldSetEntity(fse, true); - + return this.result_OK_List(fs); }else { return this.OK_Add(flow_detail_uuid); @@ -62,14 +57,14 @@ } catch (BaseException e) { return this.error(e); } catch (Exception e) { - + return this.error(MobileCoreCode.GET_DATA_FAIL); } } /** * 鍔犺浇MVC锛屽寘鎷紝褰撳墠鎸夐挳锛屾寜閽搷浣滅晫闈紝鐣岄潰鍚庨潰鐨勬洿鎸夐挳 * ///鏌ュ嚭MVC涓寜閽搷浣滅殑鐣岄潰锛岀晫闈㈠悗闈㈢殑鎵�鏈夋寜閽� - * + * * @param request * @return */ @@ -94,7 +89,7 @@ } /** * 鎵ц绉诲姩绔�佹潵鐨勮〃杈惧紡鍒版暟鎹簱涓墽琛岋紝寰楀埌缁撴灉杩斿洖 - * + * * @param request * @return */ @@ -117,5 +112,31 @@ return this.error(MobileCoreCode.GET_ROUTER_FAIL); } } - + + /** + * 鏍规嵁鎸夐挳uuid鎵惧埌杩炴帴鐨勭涓�涓〉闈� + * + * @param request + * @return + */ + @RequestMapping(value = "/get-next-page-info/{version}", method = RequestMethod.POST) + @ApiVersion(1) + public String getNextPageByButtonUUID(HttpServletRequest request) { + try { + FieldSetEntity fse = null; + Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA); + if (bean != null) { + RequestParameterEntity reqp = (RequestParameterEntity) bean; + fse = reqp.getFormData(); + } + return OK_List(commonMVCService.getNextPageByButtonUUID(fse)); + } catch (BaseException e) { + SpringMVCContextHolder.getSystemLogger().error(e); + e.printStackTrace(); + return error(e); + } catch (Exception e) { + e.printStackTrace(); + return error(MobileCoreCode.GET_MVC_PAGE_INFO_FAIL); + } + } } -- Gitblit v1.9.2