基于条码查询

master
erzhongxmu 2020-04-24 23:32:08 +08:00
parent 9922f066d7
commit 4b7168e5c2
5 changed files with 864 additions and 784 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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);

View File

@ -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 + "'";

View File

@ -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);

View File

@ -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;
}