DimensionSetEntity<\/strong> \u5b9e\u4f53\u9700\u8981\u5bf9\u5176\u8fdb\u884c\u6982\u62ec\uff0c\u5e76\u4e14\u4ec5\u4f7f\u7528\u4e00\u4e2a\u590d\u6742\u7684\u65b9\u6cd5\uff0c\u5728\u914d\u7f6e\u597d\u6240\u6709\u7ef4\u5ea6\u540e\uff0c\u4f7f\u7528\u63d2\u4ef6\u52a0\u8f7d\u6240\u6709\u7ef4\u5ea6\uff0c\u8fd9\u4e9b\u7ef4\u5ea6\u4f1a\u81ea\u52a8\u521b\u5efa\uff0c\u56e0\u4e3a\u6bcf\u4e2a\u5b9e\u73b0\u90fd\u6709\u4e0d\u540c\u7684\u7ef4\u5ea6\u2026\u2026\u5728\u6211\u4eec\u7684\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4e0d\u9700\u8981\u989d\u5916\u7684\u590d\u6742\u6027\uff0c\u56e0\u4e3a\u6211\u4eec\u5df2\u7ecf\u77e5\u9053\u5e76\u62e5\u6709\u6211\u4eec\u60f3\u8981\u663e\u793a\u7684\u7ef4\u5ea6\u3002\u4fdd\u6301\u7b80\u5355\uff01<\/p>\n\n\n\n\u8fd9\u91cc\u6709 3 \u79cd\u65b9\u6cd5\uff08\u6211\u51b3\u5b9a\u5c06\u903b\u8f91\u653e\u5728\u4e00\u79cd\u901a\u7528\u65b9\u6cd5\u4e2d\uff0c\u6240\u4ee5\u6709 4 \u79cd\uff09\u3002<\/p>\n\n\n\n
\npublic class FTDDimensionSetView extends common\n{\n private static str getSQLStringForDimension(DimensionRefFieldName _dimensionName)\n {\n DimensionAttribute dimensionAttribute = DimensionAttribute::findByName(_dimensionName);\n\n return dimensionAttribute.DimensionValueColumnName;\n }\n\n private static str getDepartment()\n {\n return FTDDimensionSetView::getSQLStringForDimension(FTDDimensionUtils::Department);\n }\n\n private static str getCostCenter()\n {\n return FTDDimensionSetView::getSQLStringForDimension(FTDDimensionUtils::CostCenter);\n }\n\n private static str getRetailChannel()\n {\n return FTDDimensionSetView::getSQLStringForDimension(FTDDimensionUtils::RetailChannel);\n }\n\n}\n<\/pre>\n\n\n\n\u5728\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\uff0c\u6211\u4eec\u5c06\u4ece\u914d\u7f6e\u5b83\u4eec\u7684\u8868 DimensionAttribute \u4e2d\u83b7\u53d6 SQL \u4e2d\u7684\u5217\u540d\u79f0\uff08\u5bf9 VS \u9690\u85cf\uff09\u3002\uff08FTDDimensionUtils \u7c7b\u4e2d\u7684\u503c\u53ea\u662f\u8be5\u8868\u7684\u540d\u79f0\u5b57\u6bb5\u7684\u503c\uff09\u3002<\/p>\n\n\n\n