|
|
@@ -4,6 +4,7 @@ import java.util.List;
|
|
|
|
|
|
import com.fs.app.annotation.Login;
|
|
|
import com.fs.common.core.domain.R;
|
|
|
+import com.fs.his.param.FsAttachmentList;
|
|
|
import com.fs.his.param.FsAttachmentPageParam;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
@@ -74,6 +75,30 @@ public class AttachmentController extends AppBaseController
|
|
|
return fsAttachmentService.insertFsAttachment(fsAttachment);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 新增附件管理
|
|
|
+ */
|
|
|
+ @PostMapping("/addList")
|
|
|
+ @Login
|
|
|
+ @ApiOperation("新增附件管理")
|
|
|
+ public R addList(@RequestBody FsAttachmentList fsAttachment)
|
|
|
+ {
|
|
|
+
|
|
|
+ String userId = getUserId();
|
|
|
+ List<String> urlList = fsAttachment.getUrlList();
|
|
|
+ if(urlList == null || urlList.isEmpty()) return R.error("请选择文件");
|
|
|
+ FsAttachment insertEntity;
|
|
|
+ for (String s : urlList) {
|
|
|
+ insertEntity = new FsAttachment();
|
|
|
+ insertEntity.setUserId(Long.parseLong(userId));
|
|
|
+ insertEntity.setUrl(s);
|
|
|
+ insertEntity.setType(fsAttachment.getType());
|
|
|
+ insertEntity.setParentId(fsAttachment.getParentId());
|
|
|
+ fsAttachmentService.insertFsAttachment(insertEntity);
|
|
|
+ }
|
|
|
+ return R.ok();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 修改附件管理
|
|
|
*/
|