提交 c8ed5a9a authored 作者: zgy's avatar zgy

修改搜索bug

上级 7f64a5ff
...@@ -229,8 +229,8 @@ ...@@ -229,8 +229,8 @@
`create_time`, `create_time`,
`item_categorytwo`, `item_categorytwo`,
`item_descrition_id` `item_descrition_id`
from tb_cf_station_item where enable_flag=1 and item_name like concat('%',#{name},'%') or item_brief like concat('%',#{name},'%') from tb_cf_station_item where enable_flag=1 and (item_name like concat('%',#{name},'%') or item_brief like concat('%',#{name},'%')
or item_tags like concat('%',#{name},'%') or item_tags like concat('%',#{name},'%'))
<if test="order != null "> <if test="order != null ">
order by item_price ${order} order by item_price ${order}
</if> </if>
......
...@@ -222,18 +222,27 @@ public class PayTest { ...@@ -222,18 +222,27 @@ public class PayTest {
} }
@Test @Test
public void testBigdecimal(){ public void testBigdecimal() {
BigDecimal b=new BigDecimal("0"); BigDecimal b = new BigDecimal("0");
} }
@Test @Test
public void test01(){ public void test01() {
String hour="00:00:0-1"; String hour = "00:00:0-1";
System.out.println(hour.contains("-1")); System.out.println(hour.contains("-1"));
if (hour.contains("-1")) { if (hour.contains("-1")) {
hour.substring(0,7); hour.substring(0, 7);
hour=hour+"0"; hour = hour + "0";
} }
System.out.println(hour); System.out.println(hour);
} }
@Test
public void testString() {
String urls = "[\"https://diaosaas-prod.oss-cn-shenzhen.aliyuncs.com/africa-shop/null/157864293680710851.png\",\"https://diaosaas-prod.oss-cn-shenzhen.aliyuncs.com/africa-shop/null/157864293681310503.png\",\"https://diaosaas-prod.oss-cn-shenzhen.aliyuncs.com/africa-shop/null/157864293680810696.png\",\"https://diaosaas-prod.oss-cn-shenzhen.aliyuncs.com/africa-shop/null/157864293681610328.png\",\"https://diaosaas-prod.oss-cn-shenzhen.aliyuncs.com/africa-shop/null/157864293680510821.png\"]";
String str = urls.substring(1,urls.lastIndexOf("]"));
String s = str.replace("\"", "");
System.out.println(s);
}
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论