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

修改搜索bug

上级 7f64a5ff
......@@ -229,8 +229,8 @@
`create_time`,
`item_categorytwo`,
`item_descrition_id`
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},'%')
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},'%'))
<if test="order != null ">
order by item_price ${order}
</if>
......
......@@ -222,18 +222,27 @@ public class PayTest {
}
@Test
public void testBigdecimal(){
BigDecimal b=new BigDecimal("0");
public void testBigdecimal() {
BigDecimal b = new BigDecimal("0");
}
@Test
public void test01(){
String hour="00:00:0-1";
public void test01() {
String hour = "00:00:0-1";
System.out.println(hour.contains("-1"));
if (hour.contains("-1")) {
hour.substring(0,7);
hour=hour+"0";
hour.substring(0, 7);
hour = hour + "0";
}
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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论