From aa38b103d900e5bbb3c2a789a770b755683ae2c0 Mon Sep 17 00:00:00 2001 From: xyiege Date: Fri, 22 Jul 2022 13:54:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=83=A8=E5=88=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/chjyj/szwh/mapper/AccountRatioSettingMapper.java | 7 +++++++ .../chjyj/szwh/mapper/AccountRatioSettingMapperTest.java | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/cn/chjyj/szwh/mapper/AccountRatioSettingMapper.java b/src/main/java/cn/chjyj/szwh/mapper/AccountRatioSettingMapper.java index 3bdb678..3b42c54 100644 --- a/src/main/java/cn/chjyj/szwh/mapper/AccountRatioSettingMapper.java +++ b/src/main/java/cn/chjyj/szwh/mapper/AccountRatioSettingMapper.java @@ -36,6 +36,13 @@ public interface AccountRatioSettingMapper { */ int countAcRs(); + /** + * 安装天骄统计 + * @param map + * @return + */ + int countAccountRatioSetting(@Param("map") Map map); + /** * 变更状态 * @param id diff --git a/src/test/java/cn/chjyj/szwh/mapper/AccountRatioSettingMapperTest.java b/src/test/java/cn/chjyj/szwh/mapper/AccountRatioSettingMapperTest.java index b3a18f6..37c1e5f 100644 --- a/src/test/java/cn/chjyj/szwh/mapper/AccountRatioSettingMapperTest.java +++ b/src/test/java/cn/chjyj/szwh/mapper/AccountRatioSettingMapperTest.java @@ -31,10 +31,14 @@ public class AccountRatioSettingMapperTest { Map imap =new HashMap<>(); int starrs=0; int limit=10; + imap.put("rule_name","测试"); List slist = accountRatioSettingMapper.getRatioSettingList(imap,starrs,limit); for(AccountRatioSetting acs:slist){ System.out.println(acs.getRuleName()); } - System.out.println(slist.size()); + + //统计符合条件的数量 + int ret = accountRatioSettingMapper.countAccountRatioSetting(imap); + System.out.println(ret); } } \ No newline at end of file