|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //检测是否为呆滞料 | 
|---|
|  |  |  | String matnr = findLocNoAttributeVo.getMatnr(); | 
|---|
|  |  |  | Mat mat = matService.selectByMatnr(matnr); | 
|---|
|  |  |  | if (mat == null) { | 
|---|
|  |  |  | throw new CoolException(matnr + "物料信息不存在"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (staDescId != 10) { | 
|---|
|  |  |  | //检测是否为呆滞料 | 
|---|
|  |  |  | String matnr = findLocNoAttributeVo.getMatnr(); | 
|---|
|  |  |  | Mat mat = matService.selectByMatnr(matnr); | 
|---|
|  |  |  | if (mat == null) { | 
|---|
|  |  |  | throw new CoolException(matnr + "物料信息不存在"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (mat.getTscp() != null && mat.getTscp() == 1) { | 
|---|
|  |  |  | crnList.add(0, 1); | 
|---|
|  |  |  | if (mat.getTscp() != null && mat.getTscp() == 1) { | 
|---|
|  |  |  | crnList.add(0, 1); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }else if (barcode.startsWith("16")) { | 
|---|
|  |  |  | crnList.add(6); | 
|---|