|
@@ -2633,10 +2633,13 @@ public class ZhcxCommissionCheckServiceImpl extends ServiceImpl<ZhcxCommissionCh
|
|
|
}
|
|
|
}
|
|
|
} else if (textval.indexOf("适用设备类型:") != -1) {
|
|
|
- templateDo.setProduct_type(textval.split(":")[1]);
|
|
|
+ String[] protypearr = textval.split(":");
|
|
|
+ if (protypearr.length == 2) {
|
|
|
+ templateDo.setProduct_type(protypearr[1]);
|
|
|
+ }
|
|
|
} else if (textval.indexOf("检验前所具备条件:") != -1) {
|
|
|
String[] beforetexts = textval.split(":");
|
|
|
- if (StringUtils.isNotBlank(beforetexts[1])) {
|
|
|
+ if (beforetexts.length == 2 && StringUtils.isNotBlank(beforetexts[1])) {
|
|
|
String[] beforearr = beforetexts[1].split(" ");
|
|
|
for (String beforestr : beforearr) {
|
|
|
if (StringUtils.isNotBlank(beforestr)) {
|