11package seven ;
22
3- import org .apache .poi .ss .formula .functions .T ;
43import seven .callBack .PackageDataInterface ;
54import seven .config .Config ;
65import seven .savewapper .SaveExcel ;
109import seven .savewapper .wapperRef .sysWppers .ResExportObj ;
1110import seven .wapperInt .ReaderMap ;
1211import seven .wapperInt .ReaderObj ;
13- import seven .wapperInt .wapperRef .WrapperObj ;
1412import seven .wapperInt .wapperRef .sysWppers .ResWrapperMap ;
1513import seven .wapperInt .wapperRef .sysWppers .ResWrapperObj ;
1614
@@ -51,9 +49,8 @@ private ExcelFactory() {
5149 * 读取Excel
5250 *
5351 * @param FilePath 路径
54- * @param r 包装类
5552 * @return Wrapper
56- * @throws Exception
53+ * @throws Exception Exception
5754 */
5855 public static ReaderMap getMaps (String FilePath ) throws Exception {
5956 return (ReaderMap ) new ResWrapperMap (it ->{}).init (FilePath );
@@ -63,9 +60,8 @@ public static ReaderMap getMaps(String FilePath) throws Exception {
6360 * 读取Excel
6461 *
6562 * @param FilePath 路径
66- * @param r 包装类
6763 * @return Wrapper
68- * @throws Exception
64+ * @throws Exception Exception
6965 */
7066 public static <T > ReaderObj <T > getBeans (Class clazz ,String FilePath ) throws Exception {
7167 return new ResWrapperObj (clazz ,it ->{}).init (FilePath );
@@ -77,7 +73,7 @@ public static <T> ReaderObj<T> getBeans(Class clazz,String FilePath) throws Exce
7773 * @param FilePath 路径
7874 * @param r 包装类
7975 * @return Wrapper
80- * @throws Exception
76+ * @throws Exception Exception
8177 */
8278 public static ReaderMap getMaps (String FilePath , Consumer <Config > config ) throws Exception {
8379 return (ReaderMap ) new ResWrapperMap (config ).init (FilePath );
@@ -87,7 +83,9 @@ public static ReaderMap getMaps(String FilePath, Consumer<Config> config) throws
8783 * 读取Excel
8884 *
8985 * @param FilePath 路径
90- * @param r 包装类
86+ * @param clazz clazz
87+ * @param config config
88+ * @param <T> t
9189 * @return Wrapper
9290 * @throws Exception
9391 */
@@ -97,75 +95,58 @@ public static <T> ReaderObj<T> getBeans(Class clazz,String FilePath, Consumer<Co
9795
9896 /**
9997 * 读取Excel
100- *
101- * @param FilePath 路径
102- * @param r 包装类
98+ * @param file file
10399 * @return Wrapper
104- * @throws Exception
100+ * @throws Exception Exception
105101 */
106102 public static ReaderMap getMaps (File file ) throws Exception {
107103 return (ReaderMap ) new ResWrapperMap (it ->{}).init (file );
108104 }
109105
110106 /**
111107 * 读取Excel
112- *
113- * @param FilePath 路径
114- * @param r 包装类
108+ * @param clazz clazz
109+ * @param file file
110+ * @param <T> T
115111 * @return Wrapper
116- * @throws Exception
112+ * @throws Exception Exception
117113 */
118- public static <T > ReaderObj <T > getBeans (Class clazz ,File file ) throws Exception {
114+ public static <T > ReaderObj <T > getBeans (Class <?> clazz ,File file ) throws Exception {
119115 return new ResWrapperObj (clazz ,it ->{}).init (file );
120116 }
121117
122118 /**
123119 * 读取Excel
124- *
125- * @param FilePath 路径
126- * @param r 包装类
120+ * @param file file
121+ * @param config config
127122 * @return Wrapper
128- * @throws Exception
123+ * @throws Exception Exception
129124 */
130125 public static ReaderMap getMaps (File file , Consumer <Config > config ) throws Exception {
131126 return (ReaderMap ) new ResWrapperMap (config ).init (file );
132127 }
133128
129+
134130 /**
135131 * 读取Excel
136- *
137- * @param FilePath 路径
138- * @param r 包装类
139- * @return Wrapper
140- * @throws Exception
132+ * @param clazz clazz
133+ * @param file file
134+ * @param config config
135+ * @param <T> <T>
136+ * @return T
137+ * @throws Exception Exception
141138 */
142- public static <T > ReaderObj <T > getBeans (Class clazz ,File file , Consumer <Config > config ) throws Exception {
139+ public static <T > ReaderObj <T > getBeans (Class <?> clazz ,File file , Consumer <Config > config ) throws Exception {
143140 return new ResWrapperObj (clazz , config ).init (file );
144141 }
145142
146-
147-
148-
149-
150-
151-
152-
153-
154-
155-
156-
157-
158-
159-
160-
161-
162143 /**
163144 * 保存Excel
164- *
165- * @param bean
166- * @param FilePath
145+ * @param <T> T
146+ * @param bean bean
147+ * @param FilePath FilePath
167148 * @return SaveExcel
168- * @throws Exception
149+ * @throws Exception Exception
169150 */
170151 public static <T > SaveExcel <T > saveExcel (List <? extends T > bean , String FilePath ) throws Exception {
171152 if (bean .size () < 1 ) {
@@ -180,9 +161,9 @@ public static <T> SaveExcel<T> saveExcel(List<? extends T> bean, String FilePath
180161 /**
181162 * 保存Excel
182163 *
183- * @param bean
164+ * @param bean bean
184165 * @return SaveExcel
185- * @throws Exception
166+ * @throws Exception Exception
186167 */
187168 public static SaveExcel saveExcel (List <? extends Object > bean ) throws Exception {
188169 if (bean .size () < 1 ) {
@@ -198,10 +179,10 @@ public static SaveExcel saveExcel(List<? extends Object> bean) throws Exception
198179 /**
199180 * 保存Excel
200181 *
201- * @param resultSet
202- * @param FilePath
182+ * @param resultSet resultSet
183+ * @param FilePath FilePath
203184 * @return SaveExcel
204- * @throws Exception
185+ * @throws Exception Exception
205186 */
206187 public static SaveExcel saveExcel (ResultSet resultSet , String FilePath ) throws Exception {
207188 return new ResExportDBMap (resultSet , FilePath );
@@ -210,11 +191,11 @@ public static SaveExcel saveExcel(ResultSet resultSet, String FilePath) throws E
210191 /**
211192 * 保存Excel
212193 *
213- * @param resultSet
214- * @param FilePath
215- * @param packageDataInterface
194+ * @param resultSet resultSet
195+ * @param FilePath FilePath
196+ * @param packageDataInterface packageDataInterface
216197 * @return SaveExcel
217- * @throws Exception
198+ * @throws Exception Exception
218199 */
219200 public static SaveExcel saveExcel (ResultSet resultSet , String FilePath , PackageDataInterface packageDataInterface ) throws Exception {
220201 return new ResExportDBObj (resultSet , FilePath , packageDataInterface );
@@ -223,10 +204,10 @@ public static SaveExcel saveExcel(ResultSet resultSet, String FilePath, PackageD
223204 /**
224205 * 保存Excel
225206 *
226- * @param resultSet
227- * @param type
207+ * @param resultSet resultSet
208+ * @param type type
228209 * @return SaveExcel
229- * @throws Exception
210+ * @throws Exception Exception
230211 */
231212 public static SaveExcel saveExcel (ResultSet resultSet , Class type ) throws Exception {
232213 return new ResExportDBObj (resultSet , type );
@@ -236,9 +217,9 @@ public static SaveExcel saveExcel(ResultSet resultSet, Class type) throws Except
236217 /**
237218 * 保存Excel
238219 *
239- * @param resultSet
220+ * @param resultSet resultSet
240221 * @return SaveExcel
241- * @throws Exception
222+ * @throws Exception Exception
242223 */
243224 public static SaveExcel saveExcel (ResultSet resultSet ) throws Exception {
244225 return new ResExportDBMap (resultSet );
0 commit comments