| | |
| | | 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; |
| | |
| | | */ |
| | | @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); |
| | | |
| | | //创建MVCC保存对象 |
| | |
| | | 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); |
| | | |