上下架读取商品名称

master
e 2019-08-26 18:19:32 +08:00
parent 8212bf1f6f
commit 149ec26524
1 changed files with 8 additions and 4 deletions

View File

@ -494,11 +494,15 @@ public class MdGoodsController extends BaseController {
String hql = " from MdGoodsEntity where 1 = 1 ";
D0.setOK(true);
if(!StringUtil.isEmpty(searchstr)) {
hql=hql+" and shpBianMa like '%" + searchstr + "%'";
}
hql=hql+" and (shpBianMa like '%" + searchstr + "%'";
hql=hql+" or shpTiaoMa like '%" + searchstr + "%')";
}
if(!StringUtil.isEmpty(searchstr2)) {
hql=hql+" and shpTiaoMa like '%" + searchstr2 + "%'";
}
hql=hql+" and (shpTiaoMa like '%" + searchstr2 + "%'";
hql=hql+" or shpBianMa like '%" + searchstr2 + "%')";
}
List<MdGoodsEntity> listMdGoodss = mdGoodsService.findHql(hql);
D0.setOK(true);