|
|
@@ -737,11 +737,16 @@ public class PdaSMTServiceImpl implements PdaSMTService {
|
|
|
if(bar_code.toString().contains(rs.getString("psl_prodcode"))){
|
|
|
pr_code = rs.getString("psl_prodcode");
|
|
|
}else{
|
|
|
- String [] stringArr= rs.getString("repcode").split(",");
|
|
|
- for (String s : stringArr) {
|
|
|
- if (bar_code.toString().contains(s)) {
|
|
|
- pr_code = s;
|
|
|
+ try {
|
|
|
+ String[] stringArr = rs.getString("repcode").split(",");
|
|
|
+ for (String s : stringArr) {
|
|
|
+ if (bar_code.toString().contains(s)) {
|
|
|
+ pr_code = s;
|
|
|
+ }
|
|
|
}
|
|
|
+ }catch (Exception ex)
|
|
|
+ {
|
|
|
+
|
|
|
}
|
|
|
if(pr_code == null || ("").equals(pr_code)){
|
|
|
showSmtError(APIErrorCode.DATA_NOT_FOUND,"物料["+bar_code+"]不是该站位需要上料的物料",handleType,linecode,location,ps_prodcode,"料号"+bar_code,bool,table);
|