Przeglądaj źródła

调整:工资条excel导入时公司名称不得超过20字

Qifeng-Wu 5 lat temu
rodzic
commit
071d5143e1

+ 9 - 0
happy-job-module-hpjob/src/main/java/com/jeeplus/modules/hpuser/service/HpPayrollService.java

@@ -95,6 +95,15 @@ public class HpPayrollService extends CrudService<HpPayrollMapper, HpPayroll> {
                     list.add(errorMessage);
                     return list;
                 }
+                if (!StringUtils.isBlank(result[i][3].trim()) && result[i][3].trim().length()>20) {
+                    failureNum++;
+                    errorIndex=i+1;
+                    errorMessage="公司名称不得超过20字";
+                    list.add(failureNum);
+                    list.add(errorIndex);
+                    list.add(errorMessage);
+                    return list;
+                }
                 if (!StringUtils.isBlank(result[i][4].trim()) && result[i][4].trim().length()>20) {
                     failureNum++;
                     errorIndex=i+1;