| | |
| | | import java.lang.reflect.Field; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 附件 |
| | | * @author WWW |
| | | */ |
| | | @Service |
| | | @SuppressWarnings("ALL") |
| | | public class AttachService implements AttachMapper { |
| | | @Autowired |
| | | AttachMapper attachMapper; |
| | |
| | | return attachMapper.selectFmeLogs(tabs); |
| | | } |
| | | |
| | | /** |
| | | * 查询FME日志 |
| | | */ |
| | | public List<FmeLogEntity> selectFmeLogs() { |
| | | if (StringHelper.isEmpty(tabs)) { |
| | | tabs = UploadAttachService.getTabs().replace("'", ""); |
| | |
| | | return attachMapper.insertAttachByMeta(tab, tabGuid, metaName, dirid); |
| | | } |
| | | |
| | | /** |
| | | * 同步附件 |
| | | */ |
| | | public void syncAttaches(FmeLogEntity entity) { |
| | | String tab = entity.getPgNs() + "." + entity.getTcdm(); |
| | | String fieldName = UploadAttachService.ATTACH_TABS.get(tab); |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取目录编码 |
| | | */ |
| | | private String getDirid(BaseEntity be) { |
| | | if (StringHelper.isEmpty(be.getDirid())) { |
| | | return null; |
| | |
| | | return StringHelper.getRightLike(dirid); |
| | | } |
| | | |
| | | /** |
| | | * 根据父ID查询记录 |
| | | */ |
| | | private List<?> selectRowsByParentid(String entity, String parentid, String field) { |
| | | BasicMapper baseMapper = ClassHelper.getBasicMapper(entity); |
| | | if (null == baseMapper) { |