From 909f5e3b1f539dd88f099deb0e41d844a9e79b12 Mon Sep 17 00:00:00 2001 From: xyiege Date: Thu, 20 Oct 2022 10:54:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=A7=92=E8=89=B2=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=8B=E7=9A=84=E5=88=86=E9=85=8D=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/AccountRatioDetailService.java | 16 ++++++++++++++++ .../impl/AccountRatioDetailServiceImpl.java | 19 +++++++++++++++++++ .../mapper/szwh/AccountRatioDetailMapper.xml | 9 ++++++++- 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 src/main/java/cn/chjyj/szwh/service/AccountRatioDetailService.java create mode 100644 src/main/java/cn/chjyj/szwh/service/impl/AccountRatioDetailServiceImpl.java diff --git a/src/main/java/cn/chjyj/szwh/service/AccountRatioDetailService.java b/src/main/java/cn/chjyj/szwh/service/AccountRatioDetailService.java new file mode 100644 index 0000000..de70b3a --- /dev/null +++ b/src/main/java/cn/chjyj/szwh/service/AccountRatioDetailService.java @@ -0,0 +1,16 @@ +package cn.chjyj.szwh.service; + +import cn.chjyj.szwh.bean.AccountRatioDetail; + + +/** + * 资金分配细节 + */ +public interface AccountRatioDetailService { + /** + * 查询具体的分配比例 + * @param id + * @return + */ + AccountRatioDetail getAccRatioDetailUnderRole(Integer id,Integer roleid); +} diff --git a/src/main/java/cn/chjyj/szwh/service/impl/AccountRatioDetailServiceImpl.java b/src/main/java/cn/chjyj/szwh/service/impl/AccountRatioDetailServiceImpl.java new file mode 100644 index 0000000..b924fe6 --- /dev/null +++ b/src/main/java/cn/chjyj/szwh/service/impl/AccountRatioDetailServiceImpl.java @@ -0,0 +1,19 @@ +package cn.chjyj.szwh.service.impl; + +import cn.chjyj.szwh.bean.AccountRatioDetail; +import cn.chjyj.szwh.mapper.AccountRatioDetailMapper; +import cn.chjyj.szwh.service.AccountRatioDetailService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + + +@Service +public class AccountRatioDetailServiceImpl implements AccountRatioDetailService { + @Autowired + private AccountRatioDetailMapper accountRatioDetailMapper; + + @Override + public AccountRatioDetail getAccRatioDetailUnderRole(Integer id, Integer roleid) { + return accountRatioDetailMapper.getAccRatioDetailByIdRole(id,2); + } +} diff --git a/src/main/resources/mapper/szwh/AccountRatioDetailMapper.xml b/src/main/resources/mapper/szwh/AccountRatioDetailMapper.xml index 3c10ead..945b316 100644 --- a/src/main/resources/mapper/szwh/AccountRatioDetailMapper.xml +++ b/src/main/resources/mapper/szwh/AccountRatioDetailMapper.xml @@ -17,7 +17,14 @@ )SELECT * FROM mm ORDER BY id DESC; - + + + +