|
|
@@ -224,7 +224,13 @@ public class PdaSMTServiceImpl implements PdaSMTService {
|
|
|
throw new APIErrorException(APIErrorCode.DATA_NOT_FOUND, "飞达已绑定站位"+fe_location);
|
|
|
}
|
|
|
}else {
|
|
|
- throw new APIErrorException(APIErrorCode.DATA_NOT_FOUND, "飞达"+fe_code+"不存在");
|
|
|
+ rs=baseDao.queryForRowSet("select bar_code from barcode where bar_code='"+fe_code+"'");
|
|
|
+ if(rs.next()){
|
|
|
+ bar_code=rs.getString("bar_code");
|
|
|
+ }else
|
|
|
+ {
|
|
|
+ throw new APIErrorException(APIErrorCode.DATA_NOT_FOUND, "飞达或料卷"+fe_code+"不存在");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
rs = baseDao.queryForRowSet("select bar_remain,nvl(bar_place,1)bar_place,bar_prodcode,bar_code from barcode where bar_code=? ",bar_code);
|