From 05520044ac93b37b33145975534735ac3bb44b39 Mon Sep 17 00:00:00 2001 From: linfso Date: Sun, 16 Jun 2024 11:33:54 +0800 Subject: [PATCH] md --- .../erp/web/emis/EmisCommonController.java | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisCommonController.java b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisCommonController.java index a59358f26..b90d55bcf 100644 --- a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisCommonController.java +++ b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisCommonController.java @@ -34,6 +34,7 @@ import com.xdadan.erp.emis.domain.vo.Sender; import com.xdadan.erp.emis.domain.vo.WaybillOrder; import com.xdadan.erp.emis.service.*; import com.xdadan.erp.emis.utils.WaybillHelper; +import com.xdadan.erp.system.service.ISysConfigService; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; @@ -66,6 +67,10 @@ public class EmisCommonController extends EmisBaseController @Autowired private IEmisRegionService emisRegionService; + + @Autowired + private ISysConfigService configService; + @Autowired private EmisBaseService emisBaseService; @@ -109,6 +114,35 @@ public class EmisCommonController extends EmisBaseController } } + /** + * 获取APP版本 + { + version: '1.0.1', + versionCode: 101, + apkUrl: 'http://192.168.1.7:5173/static/t.apk', + // apkUrl: 'http://oss-emis.tanex56.com/sapp/sdg/hdbg.png', + wgtUrl: 'http://192.168.1.7:5173/static/t.wgt?t.wgt', + // whiteDeviceIds: ['F9E778C90D0E9A8DA9D95AA97B00A3FB'], + } + + * @return + */ + + @RequestMapping(value = "/getLastAppVersion") + public AjaxResult getLastAppVersion() + { + try { + String LastAppVersion = configService.selectConfigByKey("sys.app.version"); + return AjaxResult.success("获取成功",LastAppVersion); + + }catch (Exception ex){ + ex.printStackTrace(); + return AjaxResult.error(ex.getMessage()); + } + } + + + /** * 获取电子面单单号 */