上下架读取商品名称
parent
8212bf1f6f
commit
149ec26524
|
@ -494,11 +494,15 @@ public class MdGoodsController extends BaseController {
|
||||||
String hql = " from MdGoodsEntity where 1 = 1 ";
|
String hql = " from MdGoodsEntity where 1 = 1 ";
|
||||||
D0.setOK(true);
|
D0.setOK(true);
|
||||||
if(!StringUtil.isEmpty(searchstr)) {
|
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)) {
|
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);
|
List<MdGoodsEntity> listMdGoodss = mdGoodsService.findHql(hql);
|
||||||
D0.setOK(true);
|
D0.setOK(true);
|
||||||
|
|
Loading…
Reference in New Issue