From 79582548158672b6de0d7e2f916789040de9b1df Mon Sep 17 00:00:00 2001 From: xyiege Date: Fri, 4 Nov 2022 14:35:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E9=85=8D=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=9A=84=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/szwh/AccountRatioSettingMapper.xml | 2 +- src/test/java/cn/chjyj/szwh/OtherTest.java | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/resources/mapper/szwh/AccountRatioSettingMapper.xml b/src/main/resources/mapper/szwh/AccountRatioSettingMapper.xml index cf42e0d..1b8b2b1 100644 --- a/src/main/resources/mapper/szwh/AccountRatioSettingMapper.xml +++ b/src/main/resources/mapper/szwh/AccountRatioSettingMapper.xml @@ -23,7 +23,7 @@ from - where status=1 and is_delete=0 + where status=1 and is_deleted=0 limit 1; diff --git a/src/test/java/cn/chjyj/szwh/OtherTest.java b/src/test/java/cn/chjyj/szwh/OtherTest.java index 93dc711..5014c49 100644 --- a/src/test/java/cn/chjyj/szwh/OtherTest.java +++ b/src/test/java/cn/chjyj/szwh/OtherTest.java @@ -3,6 +3,7 @@ package cn.chjyj.szwh; import cn.chjyj.szwh.utils.RedisKeys; import cn.chjyj.szwh.utils.RedisUtil; import cn.chjyj.szwh.utils.RedisUtils; +import cn.chjyj.szwh.utils.SzCarUtils; import com.alibaba.fastjson2.JSONArray; import com.alibaba.fastjson2.JSONObject; import org.junit.Test; @@ -75,4 +76,15 @@ public class OtherTest { System.out.println(jsonArray.get(a)); } } + + /** + * 测试购物车 + */ + @Test + public void getCarInfoTest(){ + String useris="899998-000000001640-3"; + String key="car_"+useris; + Map mp =SzCarUtils.getCar(key); + System.out.println(mp); + } }