@Api(module=edoc,
value="\u516c\u6587Rest\u7684\u52a8\u6001\u63a5\u53e3",
type=DYNAMIC)
public interface EdocResourceDynamic
extends EdocDynamicApi
| 限定符和类型 | 方法和说明 |
|---|---|
default java.lang.String |
getDjAgentUrlHook(DjAgentDynamicBean djAgentDynamicBean)
获取全文签批服务地址的Hook
示例:
String getDjAgentUrlHook(String defaultUrl, String aipServiceUrl, String enableDomestic, String path){
djAgentDynamicBean.getDefaultUrl();
djAgentDynamicBean.getRequest();
return 客开的URL;
}
|
default void |
getGovdocSummaryOfFlipInfoHandler(com.seeyon.ctp.util.FlipInfo flipInfo)
EdocResource.getGovdocSummaryComment方法中,Rest接口“获取公文意见列表”需要对最终的公文意见进行过滤二次封装,提供一个二次封装的钩子,二次开发通过flipInfo.setData来改变结果集数据
示例:
|
default void |
summaryCommentListFilter(EdocResourceBean edocResourceBean)
对应EdocResource.summaryComment接口中,对意见数据进行过滤
示例:
void summaryCommentListFilter(EdocResourceBean edocResourceBean){
if (departmentId !
|
default void |
summaryCommentPreHook(EdocResourceBean edocResourceBean)
对应EdocResource.summaryComment接口中,增加前置动作\
示例
void summaryCommentPreHook(EdocResourceBean edocResourceBean){
// 设置flipInfo最大数据为1000
edocResourceBean.getRequest().getParameterValues("xxId");
edocResourceBean.getFlipInfo().setSize(1000);
}
|
getModuleDes, getModuleName@ApiOperation(name="\u83b7\u53d6\u5904\u7406\u540e\u7684\u516c\u6587\u610f\u89c1\u7ed3\u679c\u96c6\u5206\u9875\u5bf9\u8c61",
value="\u83b7\u53d6\u5904\u7406\u540e\u7684\u516c\u6587\u610f\u89c1\u7ed3\u679c\u96c6\u5206\u9875\u5bf9\u8c61",
scenes="Rest\u63a5\u53e3\u201c\u83b7\u53d6\u516c\u6587\u610f\u89c1\u5217\u8868\u201d\u9700\u8981\u5bf9\u6700\u7ec8\u7684\u516c\u6587\u610f\u89c1\u8fdb\u884c\u8fc7\u6ee4\u4e8c\u6b21\u5c01\u88c5\uff0c\u4e8c\u6b21\u5f00\u53d1\u9700\u8981\u6539\u53d8\u7ed3\u679c\u96c6",
createDate="2022/3/19 14:35")
default void getGovdocSummaryOfFlipInfoHandler(@ApiParam(name="flipInfo",value="[flipInfo]",required=true,classType=com.seeyon.ctp.util.FlipInfo.class)
com.seeyon.ctp.util.FlipInfo flipInfo)
throws com.seeyon.ctp.common.exceptions.BusinessException
flipInfo - 标准产品产生的公文意见结果集分页对象,通过Listcom.seeyon.ctp.common.exceptions.BusinessExceptiondefault void summaryCommentPreHook(EdocResourceBean edocResourceBean)
void summaryCommentPreHook(EdocResourceBean edocResourceBean){
// 设置flipInfo最大数据为1000
edocResourceBean.getRequest().getParameterValues("xxId");
edocResourceBean.getFlipInfo().setSize(1000);
}
edocResourceBean - default void summaryCommentListFilter(EdocResourceBean edocResourceBean)
void summaryCommentListFilter(EdocResourceBean edocResourceBean){
if (departmentId != null) {
try {
LOGGER.info("--zhouhx-- 移动端公文意见过滤开始");
ZgyzManager zgyzManager = (ZgyzManager) AppContext.getBean("zgyzManager");
zgyzManager.filterComment(commentList, departmentId, "true".equals(isCheck));
LOGGER.info("--zhouhx-- 移动端公文意见过滤结束");
} catch (Exception e) {
LOGGER.error("中国一重意见过滤异常:", e);
}
flipInfo.setTotal(commentList.size());
flipInfo.setSize(20);
List memoryPaging = DBAgent.memoryPaging(commentList, flipInfo);
flipInfo.setData(memoryPaging);
commentList = flipInfo.getData();
}
}
edocResourceBean - default java.lang.String getDjAgentUrlHook(DjAgentDynamicBean djAgentDynamicBean)
String getDjAgentUrlHook(String defaultUrl, String aipServiceUrl, String enableDomestic, String path){
djAgentDynamicBean.getDefaultUrl();
djAgentDynamicBean.getRequest();
return 客开的URL;
}
djAgentDynamicBean -