|
|
|
@ -555,7 +555,7 @@ public class CollectController extends Controller {
|
|
|
|
|
XSSFCell cell = sheet.getRow(j).getCell(excel_column_idx);
|
|
|
|
|
if (StrKit.isBlank(PoiUtil.getValue(cell).toString())) {
|
|
|
|
|
PoiUtil.addComment(wb, cell, "此处不能为空!");
|
|
|
|
|
PoiUtil.fillColor(wb, cell, IndexedColors.YELLOW.getIndex());
|
|
|
|
|
PoiUtil.changeColor(cell, IndexedColors.YELLOW.getIndex());
|
|
|
|
|
flag = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -568,7 +568,7 @@ public class CollectController extends Controller {
|
|
|
|
|
if (StrKit.isBlank(value)) value = "&*^&Y&*(&*(&*()*(";
|
|
|
|
|
if (options.indexOf(value) < 0) {
|
|
|
|
|
PoiUtil.addComment(wb, cell, "未从指定范围内选择有效值!");
|
|
|
|
|
PoiUtil.fillColor(wb, cell, IndexedColors.YELLOW.getIndex());
|
|
|
|
|
PoiUtil.changeColor(cell, IndexedColors.YELLOW.getIndex());
|
|
|
|
|
flag = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|