|
@@ -1855,13 +1855,14 @@ public class PdaSMTServiceImpl implements PdaSMTService {
|
|
|
for(Map<String ,Object> mapnow:rs.getResultList()) {
|
|
for(Map<String ,Object> mapnow:rs.getResultList()) {
|
|
|
if (barcode.toString().contains(mapnow.get("psl_prodcode").toString())) {
|
|
if (barcode.toString().contains(mapnow.get("psl_prodcode").toString())) {
|
|
|
pr_code =mapnow.get("psl_prodcode").toString();
|
|
pr_code =mapnow.get("psl_prodcode").toString();
|
|
|
- } else {
|
|
|
|
|
- String[] stringArr = mapnow.get("repcode").toString().split(",");
|
|
|
|
|
- for (String s : stringArr) {
|
|
|
|
|
- if (barcode.toString().contains(s)) {
|
|
|
|
|
- pr_code = s;
|
|
|
|
|
|
|
+ } else {try {
|
|
|
|
|
+ String[] stringArr = mapnow.get("repcode").toString().split(",");
|
|
|
|
|
+ for (String s : stringArr) {
|
|
|
|
|
+ if (barcode.toString().contains(s)) {
|
|
|
|
|
+ pr_code = s;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ }catch(Exception e){}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if(pr_code == null || ("").equals(pr_code)){
|
|
if(pr_code == null || ("").equals(pr_code)){
|