|
@@ -262,12 +262,12 @@ public class InsurancePolicyController {
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name="id",value = "每月投保单ID",required = true,paramType = "query")
|
|
|
})
|
|
|
- public MessageResult<Map> attachmentList(String id, @RequestAttribute String subject){
|
|
|
+ public MessageResult<List<String>> attachmentList(String id, @RequestAttribute String subject){
|
|
|
|
|
|
//当前用户ID
|
|
|
System.out.println(subject);
|
|
|
|
|
|
- MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
+ MessageResult<List<String>> msgResult = new MessageResult<List<String>>();
|
|
|
|
|
|
Map<String,String> map = new HashMap<String,String>();
|
|
|
|
|
@@ -277,13 +277,14 @@ public class InsurancePolicyController {
|
|
|
|
|
|
String[] files = file.split(";");
|
|
|
|
|
|
- if(files.length==2){
|
|
|
- map.put("file1",files[0]);
|
|
|
- map.put("file2",files[1]);
|
|
|
+ List<String> fileList = new ArrayList<String>();
|
|
|
+
|
|
|
+ for (String str:files) {
|
|
|
+ fileList.add(str);
|
|
|
}
|
|
|
|
|
|
msgResult.setResult(true);
|
|
|
- msgResult.setData(map);
|
|
|
+ msgResult.setData(fileList);
|
|
|
|
|
|
return msgResult;
|
|
|
}
|