|
@@ -1020,7 +1020,7 @@ public class CustomExcelImportUtil {
|
|
|
record.setNo(sbNo);// 需要根据no来判断设备的id
|
|
|
record.setStandardHours("0");
|
|
|
record.setEnable(1);
|
|
|
- setRemark(row, record);
|
|
|
+ setNoRemark(row, record);
|
|
|
}
|
|
|
|
|
|
private static void setRemark(Row row, CheckStandard record) {
|
|
@@ -1038,6 +1038,15 @@ public class CustomExcelImportUtil {
|
|
|
record.setRemark("车间");
|
|
|
}
|
|
|
}
|
|
|
+ private static void setNoRemark(Row row, CheckStandard record) {
|
|
|
+ if(StringUtils.isNotEmpty(row.getCell(0).getStringCellValue()) || StringUtils.isNotEmpty(row.getCell(1).getStringCellValue()) ){
|
|
|
+ record.setCheckUserType(1);
|
|
|
+ record.setRemark("车间");
|
|
|
+ }else{
|
|
|
+ record.setCheckUserType(2);
|
|
|
+ record.setRemark("维修");
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
private static void setPeriod(Row row, CheckStandard record) {
|
|
|
if(StringUtils.isNotBlank(row.getCell(0).getStringCellValue())){
|