AttachmentServiceImpl.java 752 B

1234567891011121314151617181920212223242526272829303132
  1. package com.goafanti.admin.service.impl;
  2. import org.springframework.stereotype.Service;
  3. import com.goafanti.admin.service.AttachmentService;
  4. import com.goafanti.common.model.Attachment;
  5. @Service
  6. public class AttachmentServiceImpl implements AttachmentService {
  7. @Override
  8. public Attachment insert(Attachment f) {
  9. // aftFileMapper.insert(f);
  10. return f;
  11. }
  12. @Override
  13. public Attachment selectAftFileBySign(String sign) {
  14. // return aftFileMapper.selectAftFileBySign(sign);
  15. return null;
  16. }
  17. @Override
  18. public Attachment selectByReceivbles(String sign) {
  19. Attachment a=new Attachment();
  20. String url=String.format("/tmp/%s%s", sign,".xls");
  21. a.setFileName("模板.xls");
  22. a.setFilePath(url);
  23. return a;
  24. }
  25. }