| | |
| | | import com.product.core.transfer.Transactional; |
| | | import com.product.server.report.config.CmnConst; |
| | | import com.product.server.report.config.ReportCode; |
| | | import com.product.server.report.config.SystemCode; |
| | | import com.product.server.report.service.idel.IGenerateEChartService; |
| | | import com.product.util.BaseUtil; |
| | | import com.product.util.SystemParamReplace; |
| | |
| | | // object.put("function",this.functionArray(uuid)); |
| | | return object; |
| | | } |
| | | sql_text = "SELECT user_id,SUM(countNo) countNo, type \n" + |
| | | "FROM ( \t\n" + |
| | | "\tSELECT receiver user_id,COUNT(receiver) countNo,'待办' as type \n" + |
| | | "\tFROM product_oa_cooperate_flow_node \n" + |
| | | "\tWHERE status IN (0,1) \n" + |
| | | "\tGROUP BY receiver \t\n" + |
| | | ") a \n" + |
| | | "WHERE user_id=13563 \n" + |
| | | "GROUP BY user_id,type"; |
| | | DataTableEntity valueData = baseDao.listTable(sql_text,new Object[]{}); |
| | | //获取报表配置属性表 加echarts配置属性 |
| | | //只能查询到关联属性值的属性表,如果父级属性下有多个相同子属性。通过grouping分组。 |
| | |
| | | */ |
| | | @Transactional |
| | | @Override |
| | | public List<String> releaseConfig(FieldSetEntity fse, String module_uuid, String parentCode) { |
| | | public List<String> releaseConfig(FieldSetEntity fse, String parentModuleUUID) { |
| | | |
| | | //获取指定发布目录信息 |
| | | FieldSetEntity fseParentModuleData = baseDao.getFieldSetEntity(CmnConst.PRODUCT_SYS_FUNCTIONS, parentModuleUUID, false); |
| | | if (fseParentModuleData == null) { |
| | | throw new BaseException(SystemCode.PUBLISH_REPORT_FAIL_MODULE_NO_EXIST.getValue(), SystemCode.PUBLISH_REPORT_FAIL_MODULE_NO_EXIST.getText()); |
| | | } |
| | | |
| | | FieldSetEntity fseReport=baseDao.getFieldSetEntity(CmnConst.PRODUCT_SYS_REPORT_CONFIG, fse.getUUID(), false); |
| | | |
| | |
| | | fseFunction.setTableName(CmnConst.PRODUCT_SYS_FUNCTIONS); |
| | | //1.创建MVC(系统MVC目录下) |
| | | //生成功能编码 |
| | | codeService.createCode(fseFunction,CmnConst.PRODUCT_SYS_FUNCTIONS, CmnConst.TRICODE, parentCode); |
| | | codeService.createCode(fseFunction,CmnConst.PRODUCT_SYS_FUNCTIONS, CmnConst.TRICODE, fseParentModuleData.getString(CmnConst.TRICODE)); |
| | | String function_tricode=fseFunction.getString(CmnConst.TRICODE); |
| | | fseFunction.setTableName(CmnConst.PRODUCT_SYS_FUNCTIONS); |
| | | fseFunction.setValue(CmnConst.TRICODE, function_tricode); //功能编码 |
| | | fseFunction.setValue(CmnConst.MODULE_UUID, module_uuid); //所属模块UUID |
| | | fseFunction.setValue(CmnConst.TABLE_UUID, CmnConst.PRODUCT_SYS_REPORT_CONFIG); //功能关联表 |
| | | fseFunction.setValue(CmnConst.FUNCTION_NAME, fseReport.getString(CmnConst.REPORT_NAME)); //功能名称 |
| | | fseFunction.setValue(CmnConst.FUNCTION_DESCRIPTION, fseReport.getString(CmnConst.REPORT_NAME)); //功能描述 |
| | |
| | | fseFunction.setValue(CmnConst.FUNCTION_TYPE_UUID, 1); //功能类型-业务功能 |
| | | fseFunction.setValue(CmnConst.CLIENT_TYPE_UUID, "web"); //客户端类型 |
| | | fseFunction.setValue(CmnConst.VERSION_UUID, "001"); //版本uuid |
| | | fseFunction.setValue(CmnConst.TRICODE_PARENT, parentCode); |
| | | fseFunction.setValue(CmnConst.TRICODE_PARENT, fseParentModuleData.getString(CmnConst.TRICODE)); |
| | | fseFunction.setValue("data_type", 1); //类型 1为功能 |
| | | BaseUtil.createCreatorAndCreationTime(SpringMVCContextHolder.getCurrentUser(), fseFunction); |
| | | |