| | |
| | | |
| | | import com.lf.server.entity.data.MetaEntity; |
| | | import com.lf.server.helper.FileHelper; |
| | | import com.lf.server.helper.StringHelper; |
| | | import com.lf.server.service.all.BaseUploadService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | */ |
| | | private MetaEntity createMetaEntity(MetaEntity entity, MetaEntity mf, String filePath) { |
| | | MetaEntity me = new MetaEntity(); |
| | | me.setDepid(entity.getDepid()); |
| | | me.setEventid(StringHelper.getGuid()); |
| | | me.setDirid(entity.getDirid()); |
| | | me.setDepid(entity.getDepid()); |
| | | me.setVerid(entity.getVerid()); |
| | | me.setName(mf.getName()); |
| | | me.setType("file"); |
| | | me.setGuid(entity.getGuid()); |
| | | me.setPath(FileHelper.getRelativePath(filePath)); |
| | | me.setName(mf.getName()); |
| | | me.setSizes(mf.getSizes()); |
| | | me.setCreateTime(entity.getCreateTime()); |
| | | me.setCreateUser(entity.getCreateUser()); |