【fix sonar】ImportExcelUtil文件
This commit is contained in:
+1
-2
@@ -6,7 +6,6 @@ import com.jero.common.api.vo.Result;
|
|||||||
import com.jero.common.constant.CommonConstant;
|
import com.jero.common.constant.CommonConstant;
|
||||||
import com.jero.common.exception.JeroBootException;
|
import com.jero.common.exception.JeroBootException;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.poi.ss.formula.functions.T;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -20,7 +19,7 @@ public class ImportExcelUtil {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Result<JSONObject> imporReturnRes(int errorLines, int successLines, List<String> errorMessage){
|
public static Result imporReturnRes(int errorLines, int successLines, List<String> errorMessage){
|
||||||
if (errorLines == 0) {
|
if (errorLines == 0) {
|
||||||
return Result.OK("共" + successLines + "行数据全部导入成功!");
|
return Result.OK("共" + successLines + "行数据全部导入成功!");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
+1
-1
@@ -424,7 +424,7 @@ public class SysDepartController {
|
|||||||
query.orderByAsc(SysDepart::getOrgCode);
|
query.orderByAsc(SysDepart::getOrgCode);
|
||||||
if(oConvertUtils.isNotEmpty(id)){
|
if(oConvertUtils.isNotEmpty(id)){
|
||||||
String[] arr = id.split(",");
|
String[] arr = id.split(",");
|
||||||
query.in(SysDepart::getId,arr);
|
query.in(SysDepart::getId,Arrays.asList(arr));
|
||||||
}
|
}
|
||||||
List<SysDepart> ls = this.sysDepartService.list(query);
|
List<SysDepart> ls = this.sysDepartService.list(query);
|
||||||
return Result.OK(ls);
|
return Result.OK(ls);
|
||||||
|
|||||||
Reference in New Issue
Block a user