【fix sonar】ImportExcelUtil文件
This commit is contained in:
+4
-4
@@ -41,8 +41,8 @@ public class ImportExcelUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<String> importDateSave(List<Object> list, Class serviceClass,List<String> errorMessage,String errorFlag) {
|
public static List<String> importDateSave(List<Object> list, Class<?> serviceClass,List<String> errorMessage,String errorFlag) {
|
||||||
IService bean =(IService) SpringContextUtils.getBean(serviceClass);
|
IService<Object> bean =(IService) SpringContextUtils.getBean(serviceClass);
|
||||||
for (int i = 0; i < list.size(); i++) {
|
for (int i = 0; i < list.size(); i++) {
|
||||||
try {
|
try {
|
||||||
boolean save = bean.save(list.get(i));
|
boolean save = bean.save(list.get(i));
|
||||||
@@ -70,8 +70,8 @@ public class ImportExcelUtil {
|
|||||||
return errorMessage;
|
return errorMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<String> importDateSaveOne(Object obj, Class serviceClass,List<String> errorMessage,int i,String errorFlag) {
|
public static List<String> importDateSaveOne(Object obj, Class<?> serviceClass, List<String> errorMessage, int i, String errorFlag) {
|
||||||
IService bean =(IService) SpringContextUtils.getBean(serviceClass);
|
IService<Object> bean = (IService) SpringContextUtils.getBean(serviceClass);
|
||||||
try {
|
try {
|
||||||
boolean save = bean.save(obj);
|
boolean save = bean.save(obj);
|
||||||
if(!save){
|
if(!save){
|
||||||
|
|||||||
Reference in New Issue
Block a user