杜洪波
2024-08-23 9a6140574003ec25e95e0248785843c3598168c4
src/main/java/com/product/file/service/DocumentService.java
@@ -504,9 +504,15 @@
    @Override
    public DataTableEntity getApplyDocument(FieldSetEntity fse) throws BaseException {
        String document_name = fse.getString("document_name");
        String filter="file_name like '%"+document_name+"'%";
        DataTableEntity product_oa_document = baseDao.listTable("product_oa_document",filter);
        DataTableEntity product_oa_document;
        if(ObjectUtil.isNotEmpty(fse.getString("document_name"))){
            String document_name = fse.getString("document_name");
            String filter="file_name like '%"+document_name+"'%";
            product_oa_document = baseDao.listTable("product_oa_document",filter);
        }else {
            product_oa_document = baseDao.listTable("product_oa_document");
        }
        return product_oa_document;
    }
@@ -595,4 +601,11 @@
        DataTableEntity dataTableEntity = baseDao.listTable(sb.toString());
        return dataTableEntity;
    }
    @Override
    public FieldSetEntity getApplayInfo(FieldSetEntity fes) throws BaseException {
        String uuid = fes.getString("uuid");
        FieldSetEntity product_oa_document_borrow = baseDao.getFieldSetEntity("product_oa_document_borrow", uuid, false);
        return product_oa_document_borrow;
    }
}