基于条码查询
parent
9922f066d7
commit
4b7168e5c2
File diff suppressed because it is too large
Load Diff
|
@ -357,7 +357,24 @@ public class WvGiController extends BaseController {
|
|||
|
||||
}
|
||||
|
||||
hql=hql+" and goodsId = '" + searchstr2 + "'";
|
||||
// hql=hql+" and goodsId = '" + searchstr2 + "'";
|
||||
String[] ss = searchstr2.split(",");
|
||||
if (ss.length == 1) {
|
||||
hql = hql + " and goodsId = '" + searchstr2 + "'";
|
||||
|
||||
} else {
|
||||
String insearch = "";
|
||||
for (String s : ss) {
|
||||
if (StringUtil.isNotEmpty(insearch)) {
|
||||
insearch = insearch + " or goodsId = '" + s + "'";
|
||||
} else {
|
||||
insearch = "goodsId = '" + s + "'";
|
||||
}
|
||||
hql = hql + " and (" + insearch + ")";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
List<WvGiEntity> listWvGis=wvGiService.findHql(hql);
|
||||
|
|
|
@ -357,7 +357,27 @@ public class WvGiNoticeController extends BaseController {
|
|||
}catch (Exception e){
|
||||
|
||||
}
|
||||
hql=hql+" and goodsId = '" + searchstr2 + "'";
|
||||
// hql=hql+" and goodsId = '" + searchstr2 + "'";
|
||||
|
||||
|
||||
String[] ss = searchstr2.split(",");
|
||||
if (ss.length == 1) {
|
||||
hql = hql + " and goodsId = '" + searchstr2 + "'";
|
||||
|
||||
} else {
|
||||
String insearch = "";
|
||||
for (String s : ss) {
|
||||
if (StringUtil.isNotEmpty(insearch)) {
|
||||
insearch = insearch + " or goodsId = '" + s + "'";
|
||||
} else {
|
||||
insearch = "goodsId = '" + s + "'";
|
||||
}
|
||||
hql = hql + " and (" + insearch + ")";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
if(!StringUtil.isEmpty(searchstr3)) {
|
||||
hql=hql+" and binId = '" + searchstr3 + "'";
|
||||
|
|
|
@ -345,7 +345,24 @@ public class WvNoticeController extends BaseController {
|
|||
}catch (Exception e){
|
||||
|
||||
}
|
||||
hql=hql+" and goodsCode = '" + searchstr2 + "'";
|
||||
String[] ss = searchstr2.split(",");
|
||||
if (ss.length == 1) {
|
||||
hql = hql + " and goodsCode = '" + searchstr2 + "'";
|
||||
|
||||
} else {
|
||||
String insearch = "";
|
||||
for (String s : ss) {
|
||||
if (StringUtil.isNotEmpty(insearch)) {
|
||||
insearch = insearch + " or goodsCode = '" + s + "'";
|
||||
} else {
|
||||
insearch = "goodsCode = '" + s + "'";
|
||||
}
|
||||
hql = hql + " and (" + insearch + ")";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
// hql=hql+" and goodsCode in (:alist)";
|
||||
}
|
||||
|
||||
List<WvNoticeEntity> listWvNotices=wvNoticeService.findHql(hql);
|
||||
|
|
|
@ -403,7 +403,7 @@ public class wmUtil {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public static boolean checkstcoka(String binid,String tinid,String goodsid,String prodate,String basecount) {
|
||||
boolean flag = false;
|
||||
try {
|
||||
|
@ -477,8 +477,18 @@ public class wmUtil {
|
|||
if("yes".equals(ResourceUtil.getConfigByName("sptmon"))){
|
||||
try{
|
||||
SystemService systemService = ApplicationContextUtil.getContext().getBean(SystemService.class);
|
||||
MdGoodsEntity t = systemService.findByProperty(MdGoodsEntity.class,"shpTiaoMa",tiaoma).get(0);
|
||||
return t.getShpBianMa();
|
||||
|
||||
String ttr= "";
|
||||
|
||||
List<MdGoodsEntity> t = systemService.findByProperty(MdGoodsEntity.class,"shpTiaoMa",tiaoma) ;
|
||||
for(MdGoodsEntity tt :t){
|
||||
if(StringUtil.isNotEmpty(ttr)){
|
||||
ttr = ttr+","+tt.getShpBianMa();
|
||||
}else{
|
||||
ttr = tt.getShpBianMa();
|
||||
}
|
||||
}
|
||||
return ttr;
|
||||
}catch (Exception e){
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue