Commit 7e513f08 authored by hanson.yao's avatar hanson.yao

修改编号批量查询文档修改

parent d0c132cf
......@@ -136,9 +136,9 @@ public class DxDocController extends AbstractBaseController {
}
//@ApiOperation("通过编号批量获取Document对象")
@GetMapping(value = "findByNumbers")
public ApiResult findByNumber(@RequestParam("number") List<String> number) {
public ApiResult findByNumber(@RequestParam("numbers") List<String> number) {
try {
return ApiResult.ok(this.getService().findByNumbers(number));
return ApiResult.ok(DxDocService.findByNumbers(number));
} catch (Exception e) {
e.printStackTrace();
return ApiResult.error("505", e.getLocalizedMessage(), e);
......
......@@ -207,7 +207,7 @@ public class DxDocService implements RemoteAccess {
* @return
*/
public List<DxDocumentVO> findByNumbers(List<String> var1) throws Exception {
public static List<DxDocumentVO> findByNumbers(List<String> var1) throws Exception {
List<DxDocumentVO> result = new ArrayList<DxDocumentVO>();
List<WTDocument> docs = DocUtil.getDocs(var1);
for (WTDocument doc : docs) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment