|
|
@@ -120,6 +120,10 @@ public class PdaSpmServiceImpl implements PdaSpmService {
|
|
|
//PDA扫码上料,限制状态必须为‘已开封’,回温时间必须小于24H
|
|
|
checkLoading(barcode);
|
|
|
//线别转大写处理,必须存在且已审核
|
|
|
+ boolean macodeCheck = baseDao.checkIf("make","ma_code = '"+macode+"' and nvl(ma_statuscode,' ') = 'STARTED'");
|
|
|
+ if(!macodeCheck){
|
|
|
+ throw new APIErrorException(APIErrorCode.DATA_NOT_FOUND,"工单: "+macode+",不存在或未下放!");
|
|
|
+ }
|
|
|
if(StringUtil.hasText(linecode)){
|
|
|
linecode = linecode.toUpperCase();
|
|
|
boolean lineCheck = baseDao.checkIf("line","upper(li_code) = '"+linecode+"' and nvl(li_status,' ') = '已审核'");
|