| | |
| | | import com.product.core.dao.BaseDao; |
| | | import com.product.core.entity.FieldSetEntity; |
| | | import com.product.core.permission.PermissionService; |
| | | import com.product.core.websocket.config.CmnConst; |
| | | import com.product.lucene.util.FileUtils; |
| | | import com.product.util.BaseUtil; |
| | | |
| | | import org.apache.lucene.analysis.Analyzer; |
| | | import org.apache.lucene.analysis.cn.smart.SmartChineseAnalyzer; |
| | | import org.apache.lucene.document.*; |
| | | import org.apache.lucene.index.IndexWriter; |
| | |
| | | |
| | | //获取附件信息 |
| | | FieldSetEntity fseAttachment=baseDao.getFieldSetEntity("product_sys_attachments", uuid, false); |
| | | baseDao.loadPromptData(fseAttachment); |
| | | if (fseAttachment!=null) { |
| | | StringBuilder filter=new StringBuilder(); |
| | | filter.append(fseAttachment.getString("attachment_data_field")); |
| | |
| | | json.put("title", fseService.getString(fseConfig.getString("title_field"))); |
| | | json.put("function_name", fseFunction.getString("function_name")); |
| | | } |
| | | json.put("created_by", fseAttachment.getString(CmnConst.CREATED_BY)); |
| | | } |
| | | } |
| | | } |