From 25a638e0d5f282d26ff9da47e5b7aa5c9c1603d4 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期三, 23 十月 2024 18:34:20 +0800 Subject: [PATCH] Merge branch '2.0' of http://120.76.84.145:10101/gitblit/r/java/IgoTravel into 2.0 --- UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/AgreementServiceImpl.java | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/AgreementServiceImpl.java b/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/AgreementServiceImpl.java index 085a374..b39514c 100644 --- a/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/AgreementServiceImpl.java +++ b/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/AgreementServiceImpl.java @@ -24,10 +24,16 @@ * @throws Exception */ @Override - public String queryByType(Integer type) throws Exception { - String s = agreementMapper.queryByType(type, 1); + public String queryByType(Integer type, Integer language) throws Exception { + if(null == language){ + language = 2; + } + if(type == 16 || type == 15 || type == 13 || type == 7 || type == 4 || type == 5 || type == 8 || type == 9 || type == 10){ + language = 1; + } + String s = agreementMapper.queryByType(type, language, 1); if(ToolUtil.isEmpty(s)){ - s = agreementMapper.queryByType(type, null); + s = agreementMapper.queryByType(type, language, null); } return s; } -- Gitblit v1.7.1