refactor(auth): 移除多个模块中的权限校验注解
- 移除会员模块地址控制器中的权限校验注解
- 移除售后模块问题控制器中的权限校验注解
- 移除售后模块退货控制器中的权限校验注解
- 移除售后模块工单控制器中的权限校验注解
- 移除售后模块回访控制器中的权限校验注解
- 移除AI模块API密钥控制器中的权限校验注解
- 移除AI模块知识库控制器中的权限校验注解
- 移除AI模块知识文档控制器中的权限校验注解
- 移除AI模块知识分段控制器中的权限校验注解
- 移除AI模块模型控制器中的权限校验注解
- 移除基础模块API访问日志控制器中的权限校验注解
- 移除基础模块API错误日志控制器中的权限校验注解
- 移除BI模块图表配置控制器中的权限校验注解
- 移除BI模块数据源配置控制器中的权限校验注解
- 移除工作流模块业务附件控制器中的权限校验注解
- 移除工作流模块流程分类控制器中的权限校验注解
- 移除工作流模块动态表单控制器中的权限校验注解
- 移除工作流模块流程模型控制器中的权限校验注解
- 移除工作流模块OA请假控制器中的权限校验注解
- 移除工作流模块OA通知控制器中的权限校验注解
- 移除工作流模块免审批控制器中的权限校验注解
- 移除工作流模块流程定义控制器中的权限校验注解
- 移除工作流模块流程表达式控制器中的权限校验注解
- 移除工作流模块流程实例控制器中的权限校验注解
- 移除工作流模块抄送流程控制器中的权限校验注解
- 移除工作流模块流程监听器控制器中的权限校验注解
- 移除工作流模块任务控制器中的权限校验注解
- 移除工作流模块用户组控制器中的权限校验注解
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | src/api/im/manager/channel/index.ts(1,44): error TS2307: Cannot find module '........packageseffects |
| | | equestsrc' or its corresponding type declarations. |
| | | src/api/im/manager/channel/material/index.ts(1,44): error TS2307: Cannot find module '..........packageseffects |
| | | equestsrc' or its corresponding type declarations. |
| | | src/api/im/manager/channel/message/index.ts(1,44): error TS2307: Cannot find module '..........packageseffects |
| | | equestsrc' or its corresponding type declarations. |
| | | src/api/im/manager/face/item/index.ts(1,44): error TS2307: Cannot find module '..........packageseffects |
| | | equestsrc' or its corresponding type declarations. |
| | | src/api/im/manager/face/pack/index.ts(1,44): error TS2307: Cannot find module '..........packageseffects |
| | | equestsrc' or its corresponding type declarations. |
| | | src/api/im/manager/face/userItem/index.ts(1,44): error TS2307: Cannot find module '..........packageseffects |
| | | equestsrc' or its corresponding type declarations. |
| | | src/api/im/manager/friend/index.ts(1,44): error TS2307: Cannot find module '........packageseffects |
| | | equestsrc' or its corresponding type declarations. |
| | | src/api/im/manager/friend/request/index.ts(1,44): error TS2307: Cannot find module '..........packageseffects |
| | | equestsrc' or its corresponding type declarations. |
| | | src/api/im/manager/group/index.ts(1,44): error TS2307: Cannot find module '........packageseffects |
| | | equestsrc' or its corresponding type declarations. |
| | | src/api/im/manager/group/request/index.ts(1,44): error TS2307: Cannot find module '..........packageseffects |
| | | equestsrc' or its corresponding type declarations. |
| | | src/api/im/manager/message/group/index.ts(1,44): error TS2307: Cannot find module '..........packageseffects |
| | | equestsrc' or its corresponding type declarations. |
| | | src/api/im/manager/message/private/index.ts(1,44): error TS2307: Cannot find module '..........packageseffects |
| | | equestsrc' or its corresponding type declarations. |
| | | src/api/im/manager/rtc/index.ts(1,44): error TS2307: Cannot find module '........packageseffects |
| | | equestsrc' or its corresponding type declarations. |
| | | src/api/im/manager/sensitiveword/index.ts(1,44): error TS2307: Cannot find module '........packageseffects |
| | | equestsrc' or its corresponding type declarations. |
| | | src/api/mes/pro/workorder/process/index.ts(1,15): error TS2440: Import declaration conflicts with local declaration of 'MesProWorkOrderProcessApi'. |
| | | src/components/tinymce/editor.vue(147,21): error TS2345: Argument of type '{ url: any; name: any; id: any; } | { url?: undefined; name?: undefined; id?: undefined; }' is not assignable to parameter of type 'string | PromiseLike<string>'. |
| | | Type '{ url: any; name: any; id: any; }' is not assignable to type 'string | PromiseLike<string>'. |
| | | src/components/upload/file-upload.vue(83,9): error TS2322: Type 'string[] | number[]' is not assignable to type 'string[]'. |
| | | Type 'number[]' is not assignable to type 'string[]'. |
| | | Type 'number' is not assignable to type 'string'. |
| | | src/components/upload/file-upload.vue(103,63): error TS2698: Spread types may only be created from object types. |
| | | src/components/upload/file-upload.vue(198,5): error TS2322: Type '(file: File, onUploadProgress?: ((progressEvent: AxiosProgressEvent) => void) | undefined) => Promise<{ url: any; name: any; id: any; } | { url?: undefined; name?: undefined; id?: undefined; }>' is not assignable to type '(file: File, onUploadProgress?: ((progressEvent: AxiosProgressEvent) => void) | undefined) => Promise<AxiosResponse<any, any, {}>>'. |
| | | Type 'Promise<{ url: any; name: any; id: any; } | { url?: undefined; name?: undefined; id?: undefined; }>' is not assignable to type 'Promise<AxiosResponse<any, any, {}>>'. |
| | | Type '{ url: any; name: any; id: any; } | { url?: undefined; name?: undefined; id?: undefined; }' is not assignable to type 'AxiosResponse<any, any, {}>'. |
| | | Type '{ url: any; name: any; id: any; }' is missing the following properties from type 'AxiosResponse<any, any, {}>': data, status, statusText, headers, config |
| | | src/components/upload/image-upload.vue(88,9): error TS2322: Type 'string[] | number[]' is not assignable to type 'string | string[]'. |
| | | Type 'number[]' is not assignable to type 'string | string[]'. |
| | | Type 'number[]' is not assignable to type 'string[]'. |
| | | Type 'number' is not assignable to type 'string'. |
| | | src/components/upload/image-upload.vue(93,10): error TS2339: Property 'map' does not exist on type 'string | string[]'. |
| | | Property 'map' does not exist on type 'string'. |
| | | src/components/upload/image-upload.vue(93,15): error TS7006: Parameter 'item' implicitly has an 'any' type. |
| | | src/components/upload/image-upload.vue(93,21): error TS7006: Parameter 'i' implicitly has an 'any' type. |
| | | src/components/upload/image-upload.vue(205,5): error TS2322: Type '(file: File, onUploadProgress?: ((progressEvent: AxiosProgressEvent) => void) | undefined) => Promise<{ url: any; name: any; id: any; } | { url?: undefined; name?: undefined; id?: undefined; }>' is not assignable to type '(file: File, onUploadProgress?: ((progressEvent: AxiosProgressEvent) => void) | undefined) => Promise<AxiosResponse<any, any, {}>>'. |
| | | Type 'Promise<{ url: any; name: any; id: any; } | { url?: undefined; name?: undefined; id?: undefined; }>' is not assignable to type 'Promise<AxiosResponse<any, any, {}>>'. |
| | | Type '{ url: any; name: any; id: any; } | { url?: undefined; name?: undefined; id?: undefined; }' is not assignable to type 'AxiosResponse<any, any, {}>'. |
| | | Type '{ url: any; name: any; id: any; }' is missing the following properties from type 'AxiosResponse<any, any, {}>': data, status, statusText, headers, config |
| | | src/packages/@core/base/design/vite.config.ts(2,30): error TS2307: Cannot find module '../../../../internal/vite-config/src' or its corresponding type declarations. |
| | | src/packages/@core/base/shared/src/cache/__tests__/storage-manager.test.ts(1,54): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/base/shared/src/color/__tests__/convert.test.ts(1,38): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/base/shared/src/utils/__tests__/date.test.ts(4,65): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/base/shared/src/utils/__tests__/diff.test.ts(1,38): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/base/shared/src/utils/__tests__/dom.test.ts(1,54): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/base/shared/src/utils/__tests__/inference.test.ts(1,38): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/base/shared/src/utils/__tests__/letter.test.ts(1,38): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/base/shared/src/utils/__tests__/resources.test.ts(1,54): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/base/shared/src/utils/__tests__/resources.test.ts(47,28): error TS7019: Rest parameter 'nodes' implicitly has an 'any[]' type. |
| | | src/packages/@core/base/shared/src/utils/__tests__/resources.test.ts(63,20): error TS2339: Property 'dispatchEvent' does not exist on type 'never'. |
| | | src/packages/@core/base/shared/src/utils/__tests__/stack.test.ts(1,50): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/base/shared/src/utils/__tests__/state-handler.test.ts(1,38): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/base/shared/src/utils/__tests__/tree.test.ts(1,38): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/base/shared/src/utils/__tests__/unique.test.ts(1,38): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/base/shared/src/utils/__tests__/update-css-variables.test.ts(1,28): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/base/shared/src/utils/__tests__/util.test.ts(1,38): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/base/shared/src/utils/__tests__/window.test.ts(1,65): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/composables/src/__tests__/use-sortable.test.ts(3,54): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/preferences/__tests__/config.test.ts(1,38): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/preferences/__tests__/preferences.test.ts(1,65): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/preferences/__tests__/preferences.test.ts(15,33): error TS7006: Parameter 'query' implicitly has an 'any' type. |
| | | src/packages/@core/preferences/__tests__/preferences.test.ts(126,35): error TS7006: Parameter 'query' implicitly has an 'any' type. |
| | | src/packages/@core/preferences/__tests__/preferences.test.ts(285,7): error TS2322: Type '{ readonly fields: readonly [{ readonly component: "switch"; readonly defaultValue: true; readonly key: "enableWorkbench"; readonly label: "å¯ç¨å·¥ä½å°"; }, { readonly component: "select"; readonly defaultValue: "single"; readonly key: "tenantMode"; readonly label: "ç§æ·æ¨¡å¼"; readonly options: readonly [...]; }]; readonly ta...' is not assignable to type 'PreferencesExtension<CustomPreferencesRecord>'. |
| | | Types of property 'fields' are incompatible. |
| | | The type 'readonly [{ readonly component: "switch"; readonly defaultValue: true; readonly key: "enableWorkbench"; readonly label: "å¯ç¨å·¥ä½å°"; }, { readonly component: "select"; readonly defaultValue: "single"; readonly key: "tenantMode"; readonly label: "ç§æ·æ¨¡å¼"; readonly options: readonly [...]; }]' is 'readonly' and cannot be assigned to the mutable type 'AnyCustomPreferencesField[]'. |
| | | src/packages/@core/preferences/__tests__/preferences.test.ts(316,7): error TS2322: Type '{ readonly fields: readonly [{ readonly component: "number"; readonly componentProps: { readonly max: 10; readonly min: 2; readonly step: 2; }; readonly defaultValue: 4; readonly key: "pageSize"; readonly label: "å页大å°"; }]; readonly tabLabel: "æ©å±"; readonly title: "ä¸å¡å好"; }' is not assignable to type 'PreferencesExtension<CustomPreferencesRecord>'. |
| | | Types of property 'fields' are incompatible. |
| | | The type 'readonly [{ readonly component: "number"; readonly componentProps: { readonly max: 10; readonly min: 2; readonly step: 2; }; readonly defaultValue: 4; readonly key: "pageSize"; readonly label: "å页大å°"; }]' is 'readonly' and cannot be assigned to the mutable type 'AnyCustomPreferencesField[]'. |
| | | src/packages/@core/preferences/__tests__/preferences.test.ts(482,57): error TS7006: Parameter 'key' implicitly has an 'any' type. |
| | | src/packages/@core/preferences/__tests__/preferences.test.ts(530,56): error TS7006: Parameter 'query' implicitly has an 'any' type. |
| | | src/packages/@core/ui-kit/form-ui/__tests__/form-api.test.ts(1,54): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/ui-kit/form-ui/src/form-render/form.vue(56,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/packages/@core/ui-kit/layout-ui/src/components/layout-content.vue(29,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/packages/@core/ui-kit/popup-ui/src/drawer/__tests__/drawer-api.test.ts(3,54): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/ui-kit/popup-ui/src/drawer/drawer.vue(57,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/packages/@core/ui-kit/popup-ui/src/modal/__tests__/modal-api.test.ts(3,54): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/@core/ui-kit/popup-ui/src/modal/modal.vue(49,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/packages/@core/ui-kit/popup-ui/src/modal/modal.vue(53,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/packages/@core/ui-kit/tabs-ui/src/components/tabs-chrome/tabs.vue(31,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/packages/@core/ui-kit/tabs-ui/src/components/tabs-chrome/tabs.vue(33,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/packages/@core/ui-kit/tabs-ui/src/tabs-view.vue(32,3): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/packages/effects/common-ui/src/components/iframe/iframe.vue(13,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/packages/effects/common-ui/src/components/page/__tests__/page.test.ts(3,38): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/effects/layouts/src/widgets/preferences/preferences-drawer.vue(507,16): error TS2345: Argument of type '{ copyrightCompanyName: string | undefined; copyrightCompanySiteLink: string | undefined; copyrightDate: string | undefined; copyrightEnable: boolean | undefined; copyrightIcp: string | undefined; copyrightIcpLink: string | undefined; }' is not assignable to parameter of type '{ readonly disabled: boolean; readonly copyrightEnable?: boolean | undefined; readonly copyrightDate?: string | undefined; readonly copyrightIcp?: string | undefined; readonly copyrightIcpLink?: string | undefined; ... 7 more ...; readonly "onUpdate:copyrightIcpLink"?: ((value: string | undefined) => any) | undefine...'. |
| | | Property 'disabled' is missing in type '{ copyrightCompanyName: string | undefined; copyrightCompanySiteLink: string | undefined; copyrightDate: string | undefined; copyrightEnable: boolean | undefined; copyrightIcp: string | undefined; copyrightIcpLink: string | undefined; }' but required in type '{ readonly disabled: boolean; readonly copyrightEnable?: boolean | undefined; readonly copyrightDate?: string | undefined; readonly copyrightIcp?: string | undefined; readonly copyrightIcpLink?: string | undefined; ... 7 more ...; readonly "onUpdate:copyrightIcpLink"?: ((value: string | undefined) => any) | undefine...'. |
| | | src/packages/effects/request/src/request-client/modules/downloader.test.ts(3,54): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/effects/request/src/request-client/modules/sse.test.ts(3,54): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/effects/request/src/request-client/modules/sse.test.ts(97,38): error TS7006: Parameter 'config' implicitly has an 'any' type. |
| | | src/packages/effects/request/src/request-client/modules/uploader.test.ts(3,54): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/effects/request/src/request-client/request-client.test.ts(3,61): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/icons/src/offline-icons.ts(6,31): error TS2307: Cannot find module '@iconify/vue' or its corresponding type declarations. |
| | | src/packages/stores/src/modules/access.test.ts(2,50): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/stores/src/modules/tabbar.test.ts(4,54): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/stores/src/modules/user.test.ts(2,50): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/utils/src/helpers/__tests__/find-menu-by-path.test.ts(1,38): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/utils/src/helpers/__tests__/generate-menus.test.ts(5,42): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/utils/src/helpers/__tests__/generate-routes-frontend.test.ts(3,38): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/packages/utils/src/helpers/__tests__/generate-routes-frontend.test.ts(41,25): error TS2345: Argument of type 'RouteRecordRaw | undefined' is not assignable to parameter of type 'RouteRecordRaw'. |
| | | Type 'undefined' is not assignable to type 'RouteRecordRaw'. |
| | | src/packages/utils/src/helpers/__tests__/generate-routes-frontend.test.ts(45,25): error TS2345: Argument of type 'RouteRecordRaw | undefined' is not assignable to parameter of type 'RouteRecordRaw'. |
| | | Type 'undefined' is not assignable to type 'RouteRecordRaw'. |
| | | src/packages/utils/src/helpers/__tests__/generate-routes-frontend.test.ts(49,25): error TS2345: Argument of type 'RouteRecordRaw | undefined' is not assignable to parameter of type 'RouteRecordRaw'. |
| | | Type 'undefined' is not assignable to type 'RouteRecordRaw'. |
| | | src/packages/utils/src/helpers/__tests__/merge-route-modules.test.ts(5,38): error TS2307: Cannot find module 'vitest' or its corresponding type declarations. |
| | | src/store/mall/kefu.ts(1,46): error TS2307: Cannot find module '#/api/mall/promotion/kefu/conversation' or its corresponding type declarations. |
| | | src/store/mall/kefu.ts(2,41): error TS2307: Cannot find module '#/api/mall/promotion/kefu/message' or its corresponding type declarations. |
| | | src/store/mall/kefu.ts(11,8): error TS2307: Cannot find module '#/api/mall/promotion/kefu/conversation' or its corresponding type declarations. |
| | | src/store/mall/kefu.ts(84,10): error TS7006: Parameter 'item' implicitly has an 'any' type. |
| | | src/store/mall/kefu.ts(93,63): error TS7006: Parameter 'a' implicitly has an 'any' type. |
| | | src/store/mall/kefu.ts(93,66): error TS7006: Parameter 'b' implicitly has an 'any' type. |
| | | src/views/_core/profile/modules/profile-user.vue(41,29): error TS2322: Type '{ url: any; name: any; id: any; } | { url?: undefined; name?: undefined; id?: undefined; }' is not assignable to type 'string | undefined'. |
| | | Type '{ url: any; name: any; id: any; }' is not assignable to type 'string'. |
| | | src/views/aftersales/return/detail.vue(126,31): error TS2352: Conversion of type 'SaleOrder' to type 'Record<string, unknown>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. |
| | | Index signature for type 'string' is missing in type 'SaleOrder'. |
| | | src/views/aftersales/return/detail.vue(140,31): error TS2352: Conversion of type 'SaleOrder' to type 'Record<string, unknown>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. |
| | | Index signature for type 'string' is missing in type 'SaleOrder'. |
| | | src/views/aftersales/ticket/modules/form.vue(147,33): error TS2352: Conversion of type 'Ticket' to type 'Record<string, unknown>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. |
| | | Index signature for type 'string' is missing in type 'Ticket'. |
| | | src/views/aftersales/ticket/modules/form.vue(158,31): error TS2352: Conversion of type 'SaleOrder' to type 'Record<string, unknown>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. |
| | | Index signature for type 'string' is missing in type 'SaleOrder'. |
| | | src/views/aftersales/ticket/modules/form.vue(185,36): error TS2344: Type 'TicketItem | null' does not satisfy the constraint 'object'. |
| | | Type 'null' is not assignable to type 'object'. |
| | | src/views/aftersales/ticket/modules/form.vue(230,29): error TS2352: Conversion of type 'Ticket' to type 'Record<string, unknown>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. |
| | | Index signature for type 'string' is missing in type 'Ticket'. |
| | | src/views/ai/image/index/index.vue(24,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/views/basicData/mdm/index.vue(286,42): error TS2345: Argument of type 'CheckedType' is not assignable to parameter of type 'boolean'. |
| | | Type 'string' is not assignable to type 'boolean'. |
| | | src/views/bi/config/chart/index.vue(104,13): error TS2554: Expected 1 arguments, but got 0. |
| | | src/views/bi/dashboard/chart-options.ts(116,5): error TS2322: Type '{ avoidLabelOverlap: true; data: { name: string; value: number; }[]; emphasis: { itemStyle: { shadowBlur: number; shadowColor: string; }; label: { fontSize: number; fontWeight: "bold"; show: true; }; scaleSize: number; }; itemStyle: { ...; }; label: { ...; }; radius: string[]; type: "pie"; }[]' is not assignable to type 'SeriesOption$1 | SeriesOption$1[] | undefined'. |
| | | Type '{ avoidLabelOverlap: true; data: { name: string; value: number; }[]; emphasis: { itemStyle: { shadowBlur: number; shadowColor: string; }; label: { fontSize: number; fontWeight: "bold"; show: true; }; scaleSize: number; }; itemStyle: { ...; }; label: { ...; }; radius: string[]; type: "pie"; }[]' is not assignable to type 'MapSeriesOption$1 | LineSeriesOption$1 | CustomSeriesOption$1 | TreeSeriesOption$1 | ... 19 more ... | SeriesOption$1[]'. |
| | | Type '{ avoidLabelOverlap: true; data: { name: string; value: number; }[]; emphasis: { itemStyle: { shadowBlur: number; shadowColor: string; }; label: { fontSize: number; fontWeight: "bold"; show: true; }; scaleSize: number; }; itemStyle: { ...; }; label: { ...; }; radius: string[]; type: "pie"; }' is not assignable to type 'SeriesOption$1'. |
| | | The types of 'itemStyle.color' are incompatible between these types. |
| | | Type '(params: { dataIndex: number; }) => string | undefined' is not assignable to type 'ZRColor | ((params: PieCallbackDataParams) => ZRColor) | undefined'. |
| | | Type '(params: { dataIndex: number; }) => string | undefined' is not assignable to type '(params: PieCallbackDataParams) => ZRColor'. |
| | | Type 'string | undefined' is not assignable to type 'ZRColor'. |
| | | Type 'undefined' is not assignable to type 'ZRColor'. |
| | | src/views/bi/dashboard/chart-options.ts(184,5): error TS2322: Type '{ formatter: (params: { value: [number, number]; }) => string; trigger: "item"; backgroundColor: string; borderColor: string; borderWidth: number; padding: number[]; textStyle: { color: string; fontSize: number; }; }' is not assignable to type 'TooltipOption | TooltipOption[] | undefined'. |
| | | Types of property 'formatter' are incompatible. |
| | | Type '(params: { value: [number, number]; }) => string' is not assignable to type 'string | TooltipFormatterCallback<TopLevelFormatterParams> | undefined'. |
| | | Type '(params: { value: [number, number]; }) => string' is not assignable to type 'TooltipFormatterCallback<TopLevelFormatterParams>'. |
| | | Types of parameters 'params' and 'params' are incompatible. |
| | | Type 'TopLevelFormatterParams' is not assignable to type '{ value: [number, number]; }'. |
| | | Type 'CallbackDataParams' is not assignable to type '{ value: [number, number]; }'. |
| | | Types of property 'value' are incompatible. |
| | | Type 'string | number | Date | Dictionary<OptionDataValue> | OptionDataValue[] | OptionDataItemObject<OptionDataValue> | null | undefined' is not assignable to type '[number, number]'. |
| | | Type 'undefined' is not assignable to type '[number, number]'. |
| | | src/views/bi/dashboard/modules/ChartCard.vue(58,18): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/bi/dashboard/modules/ChartCard.vue(59,18): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/bi/decision/forecast-analysis/index.vue(93,27): error TS2532: Object is possibly 'undefined'. |
| | | src/views/bi/decision/trend-analysis/index.vue(69,27): error TS2532: Object is possibly 'undefined'. |
| | | src/views/bi/warehouse/chart-options.ts(45,5): error TS2322: Type '{ barGap: string; barMaxWidth: number; data: number[]; emphasis: { itemStyle: { shadowBlur: number; shadowColor: string | undefined; }; }; itemStyle: { borderRadius: number[]; color: { colorStops: { color: string | undefined; offset: number; }[]; ... 4 more ...; y2: number; }; }; name: string; type: "bar"; }[]' is not assignable to type 'SeriesOption$1 | SeriesOption$1[] | undefined'. |
| | | Type '{ barGap: string; barMaxWidth: number; data: number[]; emphasis: { itemStyle: { shadowBlur: number; shadowColor: string | undefined; }; }; itemStyle: { borderRadius: number[]; color: { colorStops: { color: string | undefined; offset: number; }[]; ... 4 more ...; y2: number; }; }; name: string; type: "bar"; }[]' is not assignable to type 'MapSeriesOption$1 | LineSeriesOption$1 | CustomSeriesOption$1 | TreeSeriesOption$1 | ... 19 more ... | SeriesOption$1[]'. |
| | | Type '{ barGap: string; barMaxWidth: number; data: number[]; emphasis: { itemStyle: { shadowBlur: number; shadowColor: string | undefined; }; }; itemStyle: { borderRadius: number[]; color: { colorStops: { color: string | undefined; offset: number; }[]; ... 4 more ...; y2: number; }; }; name: string; type: "bar"; }[]' is not assignable to type 'SeriesOption$1[]'. |
| | | Type '{ barGap: string; barMaxWidth: number; data: number[]; emphasis: { itemStyle: { shadowBlur: number; shadowColor: string | undefined; }; }; itemStyle: { borderRadius: number[]; color: { colorStops: { color: string | undefined; offset: number; }[]; ... 4 more ...; y2: number; }; }; name: string; type: "bar"; }' is not assignable to type 'SeriesOption$1'. |
| | | Type '{ barGap: string; barMaxWidth: number; data: number[]; emphasis: { itemStyle: { shadowBlur: number; shadowColor: string | undefined; }; }; itemStyle: { borderRadius: number[]; color: { colorStops: { color: string | undefined; offset: number; }[]; ... 4 more ...; y2: number; }; }; name: string; type: "bar"; }' is not assignable to type 'BarSeriesOption$1'. |
| | | Type '{ barGap: string; barMaxWidth: number; data: number[]; emphasis: { itemStyle: { shadowBlur: number; shadowColor: string | undefined; }; }; itemStyle: { borderRadius: number[]; color: { colorStops: { color: string | undefined; offset: number; }[]; ... 4 more ...; y2: number; }; }; name: string; type: "bar"; }' is not assignable to type 'BarSeriesOption'. |
| | | The types of 'itemStyle.color' are incompatible between these types. |
| | | Type '{ colorStops: { color: string | undefined; offset: number; }[]; type: "linear"; x: number; y: number; x2: number; y2: number; }' is not assignable to type 'ZRColor | ((params: CallbackDataParams) => ZRColor) | undefined'. |
| | | Type '{ colorStops: { color: string | undefined; offset: number; }[]; type: "linear"; x: number; y: number; x2: number; y2: number; }' is not assignable to type 'LinearGradientObject | ((params: CallbackDataParams) => ZRColor)'. |
| | | Type '{ colorStops: { color: string | undefined; offset: number; }[]; type: "linear"; x: number; y: number; x2: number; y2: number; }' is not assignable to type 'LinearGradientObject'. |
| | | Types of property 'colorStops' are incompatible. |
| | | Type '{ color: string | undefined; offset: number; }[]' is not assignable to type 'GradientColorStop[]'. |
| | | Type '{ color: string | undefined; offset: number; }' is not assignable to type 'GradientColorStop'. |
| | | Types of property 'color' are incompatible. |
| | | Type 'string | undefined' is not assignable to type 'string'. |
| | | Type 'undefined' is not assignable to type 'string'. |
| | | src/views/bi/warehouse/chart-options.ts(93,5): error TS2322: Type '{ avoidLabelOverlap: true; data: { name: string; value: number; }[]; emphasis: { itemStyle: { shadowBlur: number; shadowColor: string; }; label: { fontSize: number; fontWeight: "bold"; show: true; }; scaleSize: number; }; itemStyle: { ...; }; label: { ...; }; radius: string[]; type: "pie"; }[]' is not assignable to type 'SeriesOption$1 | SeriesOption$1[] | undefined'. |
| | | Type '{ avoidLabelOverlap: true; data: { name: string; value: number; }[]; emphasis: { itemStyle: { shadowBlur: number; shadowColor: string; }; label: { fontSize: number; fontWeight: "bold"; show: true; }; scaleSize: number; }; itemStyle: { ...; }; label: { ...; }; radius: string[]; type: "pie"; }[]' is not assignable to type 'MapSeriesOption$1 | LineSeriesOption$1 | CustomSeriesOption$1 | TreeSeriesOption$1 | ... 19 more ... | SeriesOption$1[]'. |
| | | Type '{ avoidLabelOverlap: true; data: { name: string; value: number; }[]; emphasis: { itemStyle: { shadowBlur: number; shadowColor: string; }; label: { fontSize: number; fontWeight: "bold"; show: true; }; scaleSize: number; }; itemStyle: { ...; }; label: { ...; }; radius: string[]; type: "pie"; }' is not assignable to type 'SeriesOption$1'. |
| | | The types of 'itemStyle.color' are incompatible between these types. |
| | | Type '(params: { dataIndex: number; }) => string | undefined' is not assignable to type 'ZRColor | ((params: PieCallbackDataParams) => ZRColor) | undefined'. |
| | | Type '(params: { dataIndex: number; }) => string | undefined' is not assignable to type '(params: PieCallbackDataParams) => ZRColor'. |
| | | Type 'string | undefined' is not assignable to type 'ZRColor'. |
| | | Type 'undefined' is not assignable to type 'ZRColor'. |
| | | src/views/bi/warehouse/chart-options.ts(124,26): error TS18048: 'seed' is possibly 'undefined'. |
| | | src/views/bi/warehouse/chart-options.ts(126,17): error TS18048: 'lng' is possibly 'undefined'. |
| | | src/views/bi/warehouse/chart-options.ts(126,50): error TS18048: 'lat' is possibly 'undefined'. |
| | | src/views/bi/warehouse/chart-options.ts(131,11): error TS2532: Object is possibly 'undefined'. |
| | | src/views/bi/warehouse/chart-options.ts(131,42): error TS2532: Object is possibly 'undefined'. |
| | | src/views/bi/warehouse/chart-options.ts(131,56): error TS2532: Object is possibly 'undefined'. |
| | | src/views/bi/warehouse/chart-options.ts(132,11): error TS2532: Object is possibly 'undefined'. |
| | | src/views/bi/warehouse/chart-options.ts(132,42): error TS2532: Object is possibly 'undefined'. |
| | | src/views/bi/warehouse/chart-options.ts(132,56): error TS2532: Object is possibly 'undefined'. |
| | | src/views/bi/warehouse/chart-options.ts(189,5): error TS2322: Type '({ name: string; type: "scatter"; coordinateSystem: string; data: { name: string; value: number[]; }[]; symbolSize: (val: number[]) => number; silent: true; itemStyle: { color: { type: "radial"; x: number; y: number; r: number; colorStops: { ...; }[]; }; }; emphasis: { ...; }; zlevel: number; } | { ...; } | { ...; }...' is not assignable to type 'SeriesOption$1 | SeriesOption$1[] | undefined'. |
| | | Type '({ name: string; type: "scatter"; coordinateSystem: string; data: { name: string; value: number[]; }[]; symbolSize: (val: number[]) => number; silent: true; itemStyle: { color: { type: "radial"; x: number; y: number; r: number; colorStops: { ...; }[]; }; }; emphasis: { ...; }; zlevel: number; } | { ...; } | { ...; }...' is not assignable to type 'MapSeriesOption$1 | LineSeriesOption$1 | CustomSeriesOption$1 | TreeSeriesOption$1 | ... 19 more ... | SeriesOption$1[]'. |
| | | Type '({ name: string; type: "scatter"; coordinateSystem: string; data: { name: string; value: number[]; }[]; symbolSize: (val: number[]) => number; silent: true; itemStyle: { color: { type: "radial"; x: number; y: number; r: number; colorStops: { ...; }[]; }; }; emphasis: { ...; }; zlevel: number; } | { ...; } | { ...; }...' is not assignable to type 'SeriesOption$1[]'. |
| | | Type '{ name: string; type: "lines"; coordinateSystem: string; data: { coords: (number[] | undefined)[]; }[]; lineStyle: { color: { type: "linear"; x: number; y: number; x2: number; y2: number; colorStops: { offset: number; color: string; }[]; }; ... 4 more ...; shadowColor: string; }; effect: { ...; }; zlevel: number; }' is not assignable to type 'SeriesOption$1'. |
| | | Types of property 'data' are incompatible. |
| | | Type '{ coords: (number[] | undefined)[]; }[]' is not assignable to type 'ArrayLike<number> | LinesDataItemOption[] | undefined'. |
| | | Type '{ coords: (number[] | undefined)[]; }[]' is not assignable to type 'LinesDataItemOption[]'. |
| | | Type '{ coords: (number[] | undefined)[]; }' is not assignable to type 'LinesDataItemOption'. |
| | | Types of property 'coords' are incompatible. |
| | | Type '(number[] | undefined)[]' is not assignable to type 'number[][]'. |
| | | Type 'number[] | undefined' is not assignable to type 'number[]'. |
| | | Type 'undefined' is not assignable to type 'number[]'. |
| | | src/views/bi/warehouse/chart-options.ts(380,5): error TS2322: Type '{ backgroundColor: string; borderColor: string; borderWidth: number; padding: number[]; textStyle: { color: string; fontSize: number; fontFamily: string; }; formatter: (params: { name?: string; value?: number[]; }) => string; trigger: "item"; }' is not assignable to type 'TooltipOption | TooltipOption[] | undefined'. |
| | | Types of property 'formatter' are incompatible. |
| | | Type '(params: { name?: string; value?: number[]; }) => string' is not assignable to type 'string | TooltipFormatterCallback<TopLevelFormatterParams> | undefined'. |
| | | Type '(params: { name?: string; value?: number[]; }) => string' is not assignable to type 'TooltipFormatterCallback<TopLevelFormatterParams>'. |
| | | Types of parameters 'params' and 'params' are incompatible. |
| | | Type 'TopLevelFormatterParams' is not assignable to type '{ name?: string | undefined; value?: number[] | undefined; }'. |
| | | Type 'CallbackDataParams' is not assignable to type '{ name?: string | undefined; value?: number[] | undefined; }'. |
| | | Types of property 'value' are incompatible. |
| | | Type 'string | number | Date | Dictionary<OptionDataValue> | OptionDataValue[] | OptionDataItemObject<OptionDataValue> | null | undefined' is not assignable to type 'number[] | undefined'. |
| | | Type 'null' is not assignable to type 'number[] | undefined'. |
| | | src/views/bi/warehouse/chart-options.ts(391,45): error TS2532: Object is possibly 'undefined'. |
| | | src/views/bi/warehouse/chart-options.ts(462,67): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/bi/warehouse/chart-options.ts(464,5): error TS2322: Type '{ formatter: (p: { dataIndex: number; }) => string; trigger: "item"; backgroundColor: string; borderColor: string; borderWidth: number; padding: number[]; textStyle: { color: string; fontSize: number; }; }' is not assignable to type 'TooltipOption | TooltipOption[] | undefined'. |
| | | Types of property 'formatter' are incompatible. |
| | | Type '(p: { dataIndex: number; }) => string' is not assignable to type 'string | TooltipFormatterCallback<TopLevelFormatterParams> | undefined'. |
| | | Type '(p: { dataIndex: number; }) => string' is not assignable to type 'TooltipFormatterCallback<TopLevelFormatterParams>'. |
| | | Types of parameters 'p' and 'params' are incompatible. |
| | | Type 'TopLevelFormatterParams' is not assignable to type '{ dataIndex: number; }'. |
| | | Property 'dataIndex' is missing in type 'CallbackDataParams[]' but required in type '{ dataIndex: number; }'. |
| | | src/views/bi/warehouse/chart-options.ts(466,94): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/bi/warehouse/index.vue(109,35): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/bi/warehouse/index.vue(128,35): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/bi/warehouse/index.vue(149,7): error TS2322: Type 'string | undefined' is not assignable to type 'string'. |
| | | Type 'undefined' is not assignable to type 'string'. |
| | | src/views/bi/warehouse/index.vue(180,27): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/bi/warehouse/index.vue(181,28): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/bi/warehouse/index.vue(192,24): error TS2532: Object is possibly 'undefined'. |
| | | src/views/bi/warehouse/index.vue(192,43): error TS2532: Object is possibly 'undefined'. |
| | | src/views/bi/warehouse/index.vue(203,29): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/bi/warehouse/index.vue(203,62): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/bi/warehouse/index.vue(224,39): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/bi/warehouse/index.vue(225,40): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/bi/warehouse/index.vue(246,27): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/bi/warehouse/index.vue(247,26): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/bi/warehouse/index.vue(267,23): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/bi/warehouse/index.vue(267,37): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/bi/warehouse/index.vue(303,43): error TS2532: Object is possibly 'undefined'. |
| | | src/views/bi/warehouse/index.vue(303,65): error TS2532: Object is possibly 'undefined'. |
| | | src/views/bi/warehouse/index.vue(320,36): error TS2532: Object is possibly 'undefined'. |
| | | src/views/bi/warehouse/index.vue(320,58): error TS2532: Object is possibly 'undefined'. |
| | | src/views/bpm/components/bpmn-process-designer/package/designer/ProcessDesigner.vue(135,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/views/bpm/components/bpmn-process-designer/package/penal/multi-instance/ElementMultiInstance.vue(74,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/views/bpm/components/bpmn-process-designer/package/penal/task/task-components/UserTask.vue(73,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/views/bpm/components/simple-process-design/components/nodes-config/trigger-node-config.vue(74,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/views/bpm/components/simple-process-design/components/nodes/child-process-node.vue(34,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/views/bpm/components/simple-process-design/components/nodes/copy-task-node.vue(34,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/views/bpm/components/simple-process-design/components/nodes/delay-timer-node.vue(32,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/views/bpm/components/simple-process-design/components/nodes/router-node.vue(35,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/views/bpm/components/simple-process-design/components/nodes/start-user-node.vue(40,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/views/bpm/components/simple-process-design/components/nodes/user-task-node.vue(40,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/views/bpm/processInstance/detail/modules/operation-button.vue(130,1): error TS2578: Unused '@ts-expect-error' directive. |
| | | src/views/crm/backlog/modules/contract-audit-list.vue(22,22): error TS2339: Property 'processInstanceId' does not exist on type 'Contract'. |
| | | src/views/crm/backlog/modules/contract-remind-list.vue(22,22): error TS2339: Property 'processInstanceId' does not exist on type 'Contract'. |
| | | src/views/crm/product/components/edit-table.vue(43,28): error TS2503: Cannot find namespace 'CrmProductApi'. |
| | | src/views/crm/report/index.vue(82,21): error TS2322: Type '[string, string] | null' is not assignable to type '[string, string] | [Dayjs, Dayjs] | undefined'. |
| | | Type 'null' is not assignable to type '[string, string] | [Dayjs, Dayjs] | undefined'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(70,5): error TS2322: Type 'undefined' is not assignable to type 'number'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(71,5): error TS2322: Type 'undefined' is not assignable to type 'string'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(72,5): error TS2322: Type 'undefined' is not assignable to type 'string'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(75,5): error TS2322: Type 'undefined' is not assignable to type 'string'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(78,5): error TS2322: Type 'undefined' is not assignable to type 'number'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(79,5): error TS2322: Type 'undefined' is not assignable to type 'number'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(88,58): error TS2339: Property 'seq' does not exist on type '{ id: number; itemId: number; itemName: string; itemCode: string; itemBarCode?: string | undefined; itemSpecification?: string | undefined; itemUnitName: string; itemUnitName2?: string | undefined; ... 7 more ...; remark?: string | undefined; }'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(88,70): error TS2339: Property 'seq' does not exist on type 'SaleQuotationItem'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(193,34): error TS2339: Property 'itemId' does not exist on type 'never'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(194,21): error TS2339: Property 'itemName' does not exist on type 'never'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(198,27): error TS2339: Property 'itemName' does not exist on type 'never'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(203,28): error TS2339: Property 'quotationPrice' does not exist on type 'never'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(206,54): error TS2345: Argument of type 'ValueType' is not assignable to parameter of type 'number'. |
| | | Type 'string' is not assignable to type 'number'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(208,27): error TS2339: Property 'quotationPrice' does not exist on type 'never'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(213,28): error TS2339: Property 'count' does not exist on type 'never'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(216,45): error TS2345: Argument of type 'ValueType' is not assignable to parameter of type 'number'. |
| | | Type 'string' is not assignable to type 'number'. |
| | | src/views/crm/saleQuotation/modules/item-form.vue(218,27): error TS2339: Property 'count' does not exist on type 'never'. |
| | | src/views/erp/purchase/in/modules/form.vue(195,27): error TS2339: Property 'attachmentList' does not exist on type '{ id?: number | undefined; no?: string | undefined; supplierId?: number | undefined; inTime?: Date | undefined; totalCount?: number | undefined; totalPrice?: number | undefined; ... 19 more ...; orderNo?: string | undefined; }'. |
| | | src/views/erp/purchase/in/modules/form.vue(196,40): error TS2339: Property 'attachmentList' does not exist on type '{ id?: number | undefined; no?: string | undefined; supplierId?: number | undefined; inTime?: Date | undefined; totalCount?: number | undefined; totalPrice?: number | undefined; ... 19 more ...; orderNo?: string | undefined; }'. |
| | | src/views/erp/purchase/in/modules/form.vue(196,60): error TS7006: Parameter 'item' implicitly has an 'any' type. |
| | | src/views/erp/purchase/request/index.vue(287,24): error TS2551: Property 'inStatus' does not exist on type 'PurchaseRequest'. Did you mean 'status'? |
| | | src/views/erp/purchase/request/index.vue(288,29): error TS2551: Property 'inStatus' does not exist on type 'PurchaseRequest'. Did you mean 'status'? |
| | | src/views/erp/purchase/request/index.vue(289,29): error TS2551: Property 'inStatus' does not exist on type 'PurchaseRequest'. Did you mean 'status'? |
| | | src/views/erp/purchase/request/modules/form.vue(87,25): error TS2339: Property 'qcCheckFlag' does not exist on type 'PurchaseRequestItem'. |
| | | src/views/erp/purchase/request/modules/item-form.vue(101,24): error TS2345: Argument of type '{ id: undefined; productId: undefined; productUnitId: undefined; productUnitName: undefined; productBarCode: undefined; count: number; productPrice: undefined; taxPercent: undefined; demandTime: undefined; remark: undefined; totalPrice: number; qcCheckFlag: boolean; }' is not assignable to parameter of type '{ id?: number | undefined; productId: number; productName?: string | undefined; productUnitId?: number | undefined; productUnitName?: string | undefined; productBarCode?: string | undefined; ... 4 more ...; remark?: string | undefined; }'. |
| | | Types of property 'productId' are incompatible. |
| | | Type 'undefined' is not assignable to type 'number'. |
| | | src/views/erp/purchase/request/modules/item-form.vue(107,58): error TS2339: Property 'seq' does not exist on type '{ id?: number | undefined; productId: number; productName?: string | undefined; productUnitId?: number | undefined; productUnitName?: string | undefined; productBarCode?: string | undefined; ... 4 more ...; remark?: string | undefined; }'. |
| | | src/views/erp/purchase/request/modules/item-form.vue(107,70): error TS2339: Property 'seq' does not exist on type 'PurchaseRequestItem'. |
| | | src/views/erp/purchase/request/modules/item-form.vue(131,58): error TS2339: Property 'seq' does not exist on type '{ id?: number | undefined; productId: number; productName?: string | undefined; productUnitId?: number | undefined; productUnitName?: string | undefined; productBarCode?: string | undefined; ... 4 more ...; remark?: string | undefined; }'. |
| | | src/views/erp/purchase/request/modules/item-form.vue(147,9): error TS2339: Property 'totalPrice' does not exist on type 'PurchaseRequestItem'. |
| | | src/views/erp/purchase/request/modules/item-form.vue(185,30): error TS2322: Type 'number | undefined' is not assignable to type 'number'. |
| | | Type 'undefined' is not assignable to type 'number'. |
| | | src/views/erp/purchase/request/modules/item-form.vue(238,30): error TS2339: Property 'qcCheckFlag' does not exist on type '{ id?: number | undefined; productId: number; productName?: string | undefined; productUnitId?: number | undefined; productUnitName?: string | undefined; productBarCode?: string | undefined; ... 4 more ...; remark?: string | undefined; }'. |
| | | src/views/erp/purchase/request/modules/item-form.vue(243,27): error TS2339: Property 'qcCheckFlag' does not exist on type '{ id?: number | undefined; productId: number; productName?: string | undefined; productUnitId?: number | undefined; productUnitName?: string | undefined; productBarCode?: string | undefined; ... 4 more ...; remark?: string | undefined; }'. |
| | | src/views/erp/purchase/request/modules/order-form.vue(52,5): error TS2322: Type 'SupplierVO[]' is not assignable to type '{ id: number; name: string; }[] | { id: number; name: string; }[]'. |
| | | Type 'SupplierVO[]' is not assignable to type '{ id: number; name: string; }[]'. |
| | | Type 'SupplierVO' is not assignable to type '{ id: number; name: string; }'. |
| | | Types of property 'id' are incompatible. |
| | | Type 'number | undefined' is not assignable to type 'number'. |
| | | Type 'undefined' is not assignable to type 'number'. |
| | | src/views/erp/purchase/return/modules/form.vue(195,27): error TS2339: Property 'attachmentList' does not exist on type '{ id?: number | undefined; no?: string | undefined; supplierId?: number | undefined; returnTime?: Date | undefined; totalCount?: number | undefined; totalPrice: number; refundPrice?: number | undefined; ... 10 more ...; orderNo?: string | undefined; }'. |
| | | src/views/erp/purchase/return/modules/form.vue(196,40): error TS2339: Property 'attachmentList' does not exist on type '{ id?: number | undefined; no?: string | undefined; supplierId?: number | undefined; returnTime?: Date | undefined; totalCount?: number | undefined; totalPrice: number; refundPrice?: number | undefined; ... 10 more ...; orderNo?: string | undefined; }'. |
| | | src/views/erp/purchase/return/modules/form.vue(196,60): error TS7006: Parameter 'item' implicitly has an 'any' type. |
| | | src/views/erp/purchase/statistics/price.vue(123,20): error TS18048: 'row.priceChangeRate' is possibly 'undefined'. |
| | | src/views/erp/purchase/statistics/price.vue(126,25): error TS18048: 'row.priceChangeRate' is possibly 'undefined'. |
| | | src/views/erp/purchase/statistics/uncompleted.vue(138,20): error TS18048: 'row.daysOverdue' is possibly 'undefined'. |
| | | src/views/erp/sale/order/data.ts(51,7): error TS2353: Object literal may only specify known properties, and 'slots' does not exist in type '({ component: "Input"; componentProps?: MappedComponentProps<Partial<ExtractPropTypes<Omit<{ id: StringConstructor; placeholder: { type: PropType<string | number>; }; autocomplete: StringConstructor; ... 41 more ...; allowClear: { ...; }; }, "wrapperClassName" | ... 2 more ... | "inputClassName">>>> | undefined; } &...'. |
| | | src/views/erp/sale/order/index.vue(392,23): error TS2322: Type '() => boolean | undefined' is not assignable to type 'boolean | ((action: ActionItem) => boolean) | undefined'. |
| | | Type '() => boolean | undefined' is not assignable to type '(action: ActionItem) => boolean'. |
| | | Type 'boolean | undefined' is not assignable to type 'boolean'. |
| | | Type 'undefined' is not assignable to type 'boolean'. |
| | | src/views/erp/sale/return/modules/form.vue(146,7): error TS2353: Object literal may only specify known properties, and 'totalCount' does not exist in type 'SaleReturnItem'. |
| | | src/views/erp/sale/return/modules/form.vue(240,25): error TS2352: Conversion of type 'PageResult<SaleOrder>' to type 'Record<string, unknown>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. |
| | | Index signature for type 'string' is missing in type 'PageResult<SaleOrder>'. |
| | | src/views/erp/sale/return/modules/form.vue(242,23): error TS2532: Object is possibly 'undefined'. |
| | | src/views/erp/sale/return/modules/item-form.vue(174,5): error TS2322: Type 'string | undefined' is not assignable to type 'string'. |
| | | Type 'undefined' is not assignable to type 'string'. |
| | | src/views/erp/stock/warehouseMapping/modules/form.vue(36,29): error TS2345: Argument of type 'Recordable<any>' is not assignable to parameter of type 'WarehouseMapping'. |
| | | Type 'Recordable<any>' is missing the following properties from type 'WarehouseMapping': erpWarehouseId, mesWarehouseId, status |
| | | src/views/erp/stock/warehouseMapping/modules/form.vue(39,29): error TS2345: Argument of type 'Recordable<any>' is not assignable to parameter of type 'WarehouseMapping'. |
| | | Type 'Recordable<any>' is missing the following properties from type 'WarehouseMapping': erpWarehouseId, mesWarehouseId, status |
| | | src/views/hrm/employee/contract/modules/terminate.vue(80,39): error TS2345: Argument of type '{ id: number; }' is not assignable to parameter of type 'TerminateReq'. |
| | | Type '{ id: number; }' is missing the following properties from type 'TerminateReq': terminateStatus, terminateDate, terminateReason |
| | | src/views/hrm/employee/modules/social-security-list.vue(2,15): error TS2614: Module '"./form.vue"' has no exported member 'FormType'. Did you mean to use 'import FormType from "./form.vue"' instead? |
| | | src/views/hrm/employee/modules/social-security-list.vue(130,8): error TS2322: Type '({ title: string; dataIndex: string; width: number; key?: undefined; fixed?: undefined; } | { title: string; dataIndex: string; width: number; key: string; fixed?: undefined; } | { title: string; key: string; width: number; fixed: string; dataIndex?: undefined; })[]' is not assignable to type '(ColumnGroupType<any> | ColumnType<any>)[]'. |
| | | Type '{ title: string; dataIndex: string; width: number; key?: undefined; fixed?: undefined; } | { title: string; dataIndex: string; width: number; key: string; fixed?: undefined; } | { title: string; key: string; width: number; fixed: string; dataIndex?: undefined; }' is not assignable to type 'ColumnGroupType<any> | ColumnType<any>'. |
| | | Type '{ title: string; key: string; width: number; fixed: string; dataIndex?: undefined; }' is not assignable to type 'ColumnGroupType<any> | ColumnType<any>'. |
| | | Type '{ title: string; key: string; width: number; fixed: string; dataIndex?: undefined; }' is not assignable to type 'ColumnType<any>'. |
| | | Types of property 'fixed' are incompatible. |
| | | Type 'string' is not assignable to type 'FixedType | undefined'. |
| | | src/views/hrm/leave/index.vue(192,40): error TS2345: Argument of type 'number | undefined' is not assignable to parameter of type 'number'. |
| | | Type 'undefined' is not assignable to type 'number'. |
| | | src/views/hrm/salary/calculation/index.vue(262,10): error TS2322: Type '({ title: string; dataIndex: string; width: number; fixed: string; } | { title: string; dataIndex: string; width: number; fixed?: undefined; })[]' is not assignable to type '(ColumnGroupType<any> | ColumnType<any>)[]'. |
| | | Type '{ title: string; dataIndex: string; width: number; fixed: string; } | { title: string; dataIndex: string; width: number; fixed?: undefined; }' is not assignable to type 'ColumnGroupType<any> | ColumnType<any>'. |
| | | Type '{ title: string; dataIndex: string; width: number; fixed: string; }' is not assignable to type 'ColumnGroupType<any> | ColumnType<any>'. |
| | | Type '{ title: string; dataIndex: string; width: number; fixed: string; }' is not assignable to type 'ColumnType<any>'. |
| | | Types of property 'fixed' are incompatible. |
| | | Type 'string' is not assignable to type 'FixedType | undefined'. |
| | | src/views/hrm/salary/calculation/index.vue(279,16): error TS2322: Type '(val: number) => void' is not assignable to type '(value: ValueType) => void'. |
| | | Types of parameters 'val' and 'value' are incompatible. |
| | | Type 'ValueType' is not assignable to type 'number'. |
| | | Type 'string' is not assignable to type 'number'. |
| | | src/views/hrm/salary/calculation/index.vue(289,16): error TS2322: Type '(val: number) => void' is not assignable to type '(value: ValueType) => void'. |
| | | Types of parameters 'val' and 'value' are incompatible. |
| | | Type 'ValueType' is not assignable to type 'number'. |
| | | Type 'string' is not assignable to type 'number'. |
| | | src/views/hrm/salary/calculation/index.vue(299,16): error TS2322: Type '(val: number) => void' is not assignable to type '(value: ValueType) => void'. |
| | | Types of parameters 'val' and 'value' are incompatible. |
| | | Type 'ValueType' is not assignable to type 'number'. |
| | | Type 'string' is not assignable to type 'number'. |
| | | src/views/hrm/salary/calculation/index.vue(309,16): error TS2322: Type '(val: number) => void' is not assignable to type '(value: ValueType) => void'. |
| | | Types of parameters 'val' and 'value' are incompatible. |
| | | Type 'ValueType' is not assignable to type 'number'. |
| | | Type 'string' is not assignable to type 'number'. |
| | | src/views/hrm/salary/calculation/index.vue(319,16): error TS2322: Type '(val: number) => void' is not assignable to type '(value: ValueType) => void'. |
| | | Types of parameters 'val' and 'value' are incompatible. |
| | | Type 'ValueType' is not assignable to type 'number'. |
| | | Type 'string' is not assignable to type 'number'. |
| | | src/views/hrm/salary/calculation/index.vue(329,16): error TS2322: Type '(val: number) => void' is not assignable to type '(value: ValueType) => void'. |
| | | Types of parameters 'val' and 'value' are incompatible. |
| | | Type 'ValueType' is not assignable to type 'number'. |
| | | Type 'string' is not assignable to type 'number'. |
| | | src/views/hrm/salary/calculation/index.vue(339,16): error TS2322: Type '(val: number) => void' is not assignable to type '(value: ValueType) => void'. |
| | | Types of parameters 'val' and 'value' are incompatible. |
| | | Type 'ValueType' is not assignable to type 'number'. |
| | | Type 'string' is not assignable to type 'number'. |
| | | src/views/hrm/salary/calculation/index.vue(349,16): error TS2322: Type '(val: number) => void' is not assignable to type '(value: ValueType) => void'. |
| | | Types of parameters 'val' and 'value' are incompatible. |
| | | Type 'ValueType' is not assignable to type 'number'. |
| | | Type 'string' is not assignable to type 'number'. |
| | | src/views/hrm/salary/calculation/index.vue(359,16): error TS2322: Type '(val: number) => void' is not assignable to type '(value: ValueType) => void'. |
| | | Types of parameters 'val' and 'value' are incompatible. |
| | | Type 'ValueType' is not assignable to type 'number'. |
| | | Type 'string' is not assignable to type 'number'. |
| | | src/views/hrm/salary/calculation/index.vue(369,16): error TS2322: Type '(val: number) => void' is not assignable to type '(value: ValueType) => void'. |
| | | Types of parameters 'val' and 'value' are incompatible. |
| | | Type 'ValueType' is not assignable to type 'number'. |
| | | Type 'string' is not assignable to type 'number'. |
| | | src/views/hrm/salary/calculation/index.vue(379,16): error TS2322: Type '(val: number) => void' is not assignable to type '(value: ValueType) => void'. |
| | | Types of parameters 'val' and 'value' are incompatible. |
| | | Type 'ValueType' is not assignable to type 'number'. |
| | | Type 'string' is not assignable to type 'number'. |
| | | src/views/hrm/salary/employee-social-security/modules/history.vue(47,64): error TS2322: Type 'null' is not assignable to type 'boolean | undefined'. |
| | | src/views/hrm/salary/leave-type-config/index.vue(94,53): error TS18048: 'row.deductionRatio' is possibly 'undefined'. |
| | | src/views/hrm/salary/payment/modules/detail.vue(101,60): error TS2322: Type 'null' is not assignable to type 'boolean | undefined'. |
| | | src/views/hrm/salary/payment/modules/detail.vue(117,8): error TS2322: Type '({ title: string; dataIndex: string; width: number; fixed: string; key?: undefined; } | { title: string; dataIndex: string; width: number; fixed?: undefined; key?: undefined; } | { title: string; dataIndex: string; width: number; fixed: string; key: string; })[]' is not assignable to type '(ColumnGroupType<any> | ColumnType<any>)[]'. |
| | | Type '{ title: string; dataIndex: string; width: number; fixed: string; key?: undefined; } | { title: string; dataIndex: string; width: number; fixed?: undefined; key?: undefined; } | { title: string; dataIndex: string; width: number; fixed: string; key: string; }' is not assignable to type 'ColumnGroupType<any> | ColumnType<any>'. |
| | | Type '{ title: string; dataIndex: string; width: number; fixed: string; key?: undefined; }' is not assignable to type 'ColumnGroupType<any> | ColumnType<any>'. |
| | | Type '{ title: string; dataIndex: string; width: number; fixed: string; key?: undefined; }' is not assignable to type 'ColumnType<any>'. |
| | | Types of property 'fixed' are incompatible. |
| | | Type 'string' is not assignable to type 'FixedType | undefined'. |
| | | src/views/hrm/salary/payment/modules/detail.vue(122,8): error TS2322: Type '{ selectedRowKeys: number[]; onChange: (selectedRowKeys: number[]) => void; } | undefined' is not assignable to type 'TableRowSelection<any> | undefined'. |
| | | Type '{ selectedRowKeys: number[]; onChange: (selectedRowKeys: number[]) => void; }' is not assignable to type 'TableRowSelection<any>'. |
| | | Types of property 'onChange' are incompatible. |
| | | Type '(selectedRowKeys: number[]) => void' is not assignable to type '(selectedRowKeys: Key[], selectedRows: any[]) => void'. |
| | | Types of parameters 'selectedRowKeys' and 'selectedRowKeys' are incompatible. |
| | | Type 'Key[]' is not assignable to type 'number[]'. |
| | | Type 'Key' is not assignable to type 'number'. |
| | | Type 'string' is not assignable to type 'number'. |
| | | src/views/hrm/salary/payment/modules/detail.vue(136,180): error TS2345: Argument of type 'DataIndex' is not assignable to parameter of type 'string'. |
| | | Type 'number' is not assignable to type 'string'. |
| | | src/views/hrm/salary/payment/modules/detail.vue(137,22): error TS2538: Type 'readonly (string | number)[]' cannot be used as an index type. |
| | | src/views/hrm/salary/tax-rate-config/index.vue(120,13): error TS18048: 'row.taxRate' is possibly 'undefined'. |
| | | src/views/mes/cal/scheduleDetail/index.vue(101,13): error TS2783: 'pageNo' is specified more than once, so this usage will be overwritten. |
| | | src/views/mes/cal/scheduleDetail/index.vue(102,13): error TS2783: 'pageSize' is specified more than once, so this usage will be overwritten. |
| | | src/views/mes/cal/scheduleDetail/index.vue(149,24): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/mes/cal/scheduleDetail/index.vue(152,24): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/mes/cal/scheduleDetail/index.vue(155,24): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/mes/cal/scheduleDetail/modules/check-view.vue(120,12): error TS2322: Type '(input: string, option: OptionItem) => boolean' is not assignable to type 'boolean | FilterFunc<DefaultOptionType> | undefined'. |
| | | Type '(input: string, option: OptionItem) => boolean' is not assignable to type 'FilterFunc<DefaultOptionType>'. |
| | | Types of parameters 'option' and 'option' are incompatible. |
| | | Type 'DefaultOptionType | undefined' is not assignable to type 'OptionItem'. |
| | | Type 'undefined' is not assignable to type 'OptionItem'. |
| | | src/views/mes/cal/scheduleDetail/modules/check-view.vue(128,19): error TS2322: Type 'string[] | undefined' is not assignable to type '[string, string] | [Dayjs, Dayjs] | undefined'. |
| | | Type 'string[]' is not assignable to type '[string, string] | [Dayjs, Dayjs] | undefined'. |
| | | Type 'string[]' is not assignable to type '[Dayjs, Dayjs]'. |
| | | Target requires 2 element(s) but source may have fewer. |
| | | src/views/mes/md/item/components/select.vue(148,22): error TS2532: Object is possibly 'undefined'. |
| | | src/views/mes/md/item/components/select.vue(149,22): error TS2532: Object is possibly 'undefined'. |
| | | src/views/mes/md/item/components/select.vue(150,22): error TS2532: Object is possibly 'undefined'. |
| | | src/views/mes/md/item/components/select.vue(151,22): error TS2532: Object is possibly 'undefined'. |
| | | src/views/mes/pd/ctc/components/select.vue(61,6): error TS2322: Type '(v: number | undefined) => void' is not assignable to type '(val: SelectValue) => void'. |
| | | Types of parameters 'v' and 'val' are incompatible. |
| | | Type 'SelectValue' is not assignable to type 'number | undefined'. |
| | | Type 'string' is not assignable to type 'number'. |
| | | src/views/mes/pd/project/data.ts(1,15): error TS2305: Module '"#/adapter/form"' has no exported member 'ExtendedFormApi'. |
| | | src/views/mes/pd/project/modules/document-list.vue(133,20): error TS2339: Property 'fileUrl' does not exist on type 'Document'. |
| | | src/views/mes/pd/project/modules/document-list.vue(133,40): error TS2339: Property 'fileUrl' does not exist on type 'Document'. |
| | | src/views/mes/pd/project/modules/user-select.vue(59,6): error TS2322: Type '(val: number) => void' is not assignable to type '(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void'. |
| | | Types of parameters 'val' and 'value' are incompatible. |
| | | Type 'SelectValue' is not assignable to type 'number'. |
| | | Type 'undefined' is not assignable to type 'number'. |
| | | src/views/mes/pd/project/modules/workflow-timeline.vue(27,38): error TS2345: Argument of type 'number' is not assignable to parameter of type '0 | 1 | 2 | 3 | 4 | 5'. |
| | | src/views/mes/pro/mps/index.vue(127,32): error TS18048: 'firstRow' is possibly 'undefined'. |
| | | src/views/mes/pro/task/modules/schedule-form.vue(55,24): error TS2339: Property 'routeId' does not exist on type 'WorkOrder'. |
| | | src/views/mes/pro/task/modules/schedule-form.vue(56,35): error TS2339: Property 'routeId' does not exist on type 'WorkOrder'. |
| | | src/views/mes/pro/workorder-center/index.vue(31,45): error TS2694: Namespace '"D:/\u725B\u9A6C/\u5357\u901A/\u540E\u7AEF/mom-pro2-after/mom-pro2-before/src/api/mes/pro/workorder/index".MesProWorkOrderApi' has no exported member 'WorkOrderProgress'. |
| | | src/views/mes/pro/workorder-center/index.vue(199,23): error TS18048: 'row.quantityScheduled' is possibly 'undefined'. |
| | | src/views/mes/pro/workorder-center/index.vue(199,47): error TS18048: 'row.quantity' is possibly 'undefined'. |
| | | src/views/mes/pro/workorder-center/index.vue(206,23): error TS18048: 'row.quantityScheduled' is possibly 'undefined'. |
| | | src/views/mes/pro/workorder-center/index.vue(206,47): error TS18048: 'row.quantity' is possibly 'undefined'. |
| | | src/views/mes/pro/workorder-center/index.vue(215,30): error TS18048: '__VLS_ctx.archiveDetailRef' is possibly 'undefined'. |
| | | src/views/mes/pro/workorder-center/index.vue(215,47): error TS2339: Property 'value' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<Props, TypeEmitsToOptions<Emits>>, { open: (code?: string | undefined) => void; }, {}, {}, {}, ComponentOptionsMixin, ... 19 more ..., { ...; }>'. |
| | | src/views/mes/pro/workorder/index.vue(229,101): error TS2339: Property 'progress' does not exist on type 'ProcessProgress'. |
| | | src/views/mes/pro/workorder/index.vue(232,58): error TS2339: Property 'progress' does not exist on type 'ProcessProgress'. |
| | | src/views/mes/pro/workorder/index.vue(305,30): error TS18048: '__VLS_ctx.archiveDetailRef' is possibly 'undefined'. |
| | | src/views/mes/pro/workorder/index.vue(305,47): error TS2339: Property 'value' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<Props, TypeEmitsToOptions<Emits>>, { open: (code?: string | undefined) => void; }, {}, {}, {}, ComponentOptionsMixin, ... 19 more ..., { ...; }>'. |
| | | src/views/mes/pro/workorder/modules/process-list.vue(16,22): error TS7016: Could not find a declaration file for module 'sortablejs'. 'D:/ç马/åé/å端/mom-pro2-after/mom-pro2-before/node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/Sortable.min.js' implicitly has an 'any' type. |
| | | If the 'sortablejs' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sortablejs' |
| | | src/views/mes/pro/workorder/modules/process-list.vue(99,13): error TS7006: Parameter 'evt' implicitly has an 'any' type. |
| | | src/views/mes/workbench/components/tabs/FeedbackTab.vue(2,34): error TS2307: Cannot find module '../../../types' or its corresponding type declarations. |
| | | src/views/mes/workbench/components/tabs/TaskDetailTab.vue(2,34): error TS2307: Cannot find module '../../../types' or its corresponding type declarations. |
| | | src/views/srm/statistics/index.vue(56,5): error TS2322: Type '{ type: "bar"; data: number[]; itemStyle: { color: (params: any) => string | undefined; }; }[]' is not assignable to type 'SeriesOption$1 | SeriesOption$1[] | undefined'. |
| | | Type '{ type: "bar"; data: number[]; itemStyle: { color: (params: any) => string | undefined; }; }[]' is not assignable to type 'MapSeriesOption$1 | LineSeriesOption$1 | CustomSeriesOption$1 | TreeSeriesOption$1 | ... 19 more ... | SeriesOption$1[]'. |
| | | Type '{ type: "bar"; data: number[]; itemStyle: { color: (params: any) => string | undefined; }; }' is not assignable to type 'SeriesOption$1'. |
| | | The types of 'itemStyle.color' are incompatible between these types. |
| | | Type '(params: any) => string | undefined' is not assignable to type 'ZRColor | ((params: CallbackDataParams) => ZRColor) | undefined'. |
| | | Type '(params: any) => string | undefined' is not assignable to type '(params: CallbackDataParams) => ZRColor'. |
| | | Type 'string | undefined' is not assignable to type 'ZRColor'. |
| | | Type 'undefined' is not assignable to type 'ZRColor'. |
| | | src/views/srm/supplier/components/select-dialog.vue(185,40): error TS2345: Argument of type 'Record<string, unknown>' is not assignable to parameter of type 'PageParam'. |
| | | Type 'Record<string, unknown>' is missing the following properties from type 'PageParam': pageNo, pageSize |
| | | src/views/srm/supplierApply/index.vue(219,33): error TS2339: Property 'CHECK' does not exist on type '{ DOWNLOAD: string; UPLOAD: string; ADD: string; EDIT: string; DELETE: string; REFRESH: string; SEARCH: string; FILTER: string; MORE: string; VIEW: string; COPY: string; CLOSE: string; BOOK: string; AUDIT: string; CALC: string; SCAN: string; }'. |
| | | src/views/srm/supplierApply/index.vue(227,33): error TS2339: Property 'CHECK' does not exist on type '{ DOWNLOAD: string; UPLOAD: string; ADD: string; EDIT: string; DELETE: string; REFRESH: string; SEARCH: string; FILTER: string; MORE: string; VIEW: string; COPY: string; CLOSE: string; BOOK: string; AUDIT: string; CALC: string; SCAN: string; }'. |
| | | src/views/srm/supplierApply/index.vue(235,33): error TS2339: Property 'CHECK' does not exist on type '{ DOWNLOAD: string; UPLOAD: string; ADD: string; EDIT: string; DELETE: string; REFRESH: string; SEARCH: string; FILTER: string; MORE: string; VIEW: string; COPY: string; CLOSE: string; BOOK: string; AUDIT: string; CALC: string; SCAN: string; }'. |
| | | src/views/srm/supplierApply/index.vue(243,33): error TS2339: Property 'CHECK' does not exist on type '{ DOWNLOAD: string; UPLOAD: string; ADD: string; EDIT: string; DELETE: string; REFRESH: string; SEARCH: string; FILTER: string; MORE: string; VIEW: string; COPY: string; CLOSE: string; BOOK: string; AUDIT: string; CALC: string; SCAN: string; }'. |
| | | src/views/srm/supplierCertificate/index.vue(136,15): error TS2322: Type '"warning"' is not assignable to type 'ButtonType | undefined'. |
| | | src/views/srm/supplierCertificate/modules/form.vue(70,10): error TS2352: Conversion of type 'CertificateVO' to type 'Record<string, unknown>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. |
| | | Index signature for type 'string' is missing in type 'CertificateVO'. |
| | | src/views/srm/tender/detail.vue(57,3): error TS2322: Type 'SupplierVO[]' is not assignable to type '{ id: number; name: string; }[] | { id: number; name: string; }[]'. |
| | | Type 'SupplierVO[]' is not assignable to type '{ id: number; name: string; }[]'. |
| | | Type 'SupplierVO' is not assignable to type '{ id: number; name: string; }'. |
| | | Types of property 'id' are incompatible. |
| | | Type 'number | undefined' is not assignable to type 'number'. |
| | | Type 'undefined' is not assignable to type 'number'. |
| | | src/views/srm/tender/detail.vue(67,57): error TS2345: Argument of type '{ tenderProjectId: number; }' is not assignable to parameter of type 'TenderMaterialVO'. |
| | | Property 'productName' is missing in type '{ tenderProjectId: number; }' but required in type 'TenderMaterialVO'. |
| | | src/views/srm/tender/detail.vue(115,3): error TS2322: Type '{ tenderProjectId: number; }' is not assignable to type 'TenderMaterialVO | { id?: number | undefined; tenderProjectId: number; productId?: number | undefined; productCode?: string | undefined; productName: string; productSpec?: string | undefined; ... 4 more ...; sort?: number | undefined; }'. |
| | | Property 'productName' is missing in type '{ tenderProjectId: number; }' but required in type '{ id?: number | undefined; tenderProjectId: number; productId?: number | undefined; productCode?: string | undefined; productName: string; productSpec?: string | undefined; unit?: string | undefined; quantity?: number | undefined; techRequirement?: string | undefined; estimatedPrice?: number | undefined; sort?: numb...'. |
| | | src/views/srm/tender/detail.vue(164,58): error TS2345: Argument of type 'number | undefined' is not assignable to parameter of type 'number'. |
| | | Type 'undefined' is not assignable to type 'number'. |
| | | src/views/srm/tender/detail.vue(784,125): error TS2538: Type 'undefined' cannot be used as an index type. |
| | | src/views/srm/tender/modules/form.vue(98,10): error TS2352: Conversion of type 'TenderProjectVO' to type 'Record<string, unknown>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. |
| | | Index signature for type 'string' is missing in type 'TenderProjectVO'. |
| | | src/views/wls/approval/config/data.ts(65,13): error TS2769: No overload matches this call. |
| | | The last overload gave the following error. |
| | | Type '(checked: boolean) => void' is not assignable to type '(checked: CheckedType, e: Event) => void'. |
| | | Types of parameters 'checked' and 'checked' are incompatible. |
| | | Type 'CheckedType' is not assignable to type 'boolean'. |
| | | Type 'string' is not assignable to type 'boolean'. |
| | | src/views/wls/approval/config/data.ts(85,13): error TS2769: No overload matches this call. |
| | | The last overload gave the following error. |
| | | Type '(checked: boolean) => void' is not assignable to type '(checked: CheckedType, e: Event) => void'. |
| | | Types of parameters 'checked' and 'checked' are incompatible. |
| | | Type 'CheckedType' is not assignable to type 'boolean'. |
| | | Type 'string' is not assignable to type 'boolean'. |
| | | src/views/wls/approval/config/data.ts(105,13): error TS2769: No overload matches this call. |
| | | The last overload gave the following error. |
| | | Type '(checked: boolean) => void' is not assignable to type '(checked: CheckedType, e: Event) => void'. |
| | | Types of parameters 'checked' and 'checked' are incompatible. |
| | | Type 'CheckedType' is not assignable to type 'boolean'. |
| | | Type 'string' is not assignable to type 'boolean'. |
| | | src/views/wls/approval/config/data.ts(125,13): error TS2769: No overload matches this call. |
| | | The last overload gave the following error. |
| | | Type '(checked: boolean) => void' is not assignable to type '(checked: CheckedType, e: Event) => void'. |
| | | Types of parameters 'checked' and 'checked' are incompatible. |
| | | Type 'CheckedType' is not assignable to type 'boolean'. |
| | | Type 'string' is not assignable to type 'boolean'. |
| | | src/views/wls/approval/config/index.vue(68,16): error TS2352: Conversion of type '{ columns: Columns<any> | undefined; height: string; keepSource: true; data: Ref<any[], any[]>; proxyConfig: { ajax: { query: ({ page }: ProxyAjaxQueryParams<any>, formValues: any) => Promise<...>; }; }; rowConfig: { ...; }; toolbarConfig: { ...; }; }' to type 'VxeTableGridOptions<any>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. |
| | | Types of property 'data' are incompatible. |
| | | Type 'Ref<any[], any[]>' is missing the following properties from type 'any[]': length, pop, push, concat, and 35 more. |
| | | src/views/wls/approval/config/modules/process-config-form.vue(75,17): error TS2339: Property 'bizType' does not exist on type 'Promise<Recordable<any>>'. |
| | | src/views/wls/arrivalnotice/modules/po-select-dialog.vue(108,22): error TS2345: Argument of type 'number | undefined' is not assignable to parameter of type 'number'. |
| | | Type 'undefined' is not assignable to type 'number'. |
| | | src/views/wls/itemreceipt/modules/an-select-dialog.vue(114,22): error TS2345: Argument of type 'number | undefined' is not assignable to parameter of type 'number'. |
| | | Type 'undefined' is not assignable to type 'number'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(58,33): error TS2741: Property 'triggerFields' is missing in type '{ show: () => false; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(59,40): error TS2741: Property 'triggerFields' is missing in type '{ show: () => false; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(60,35): error TS2741: Property 'triggerFields' is missing in type '{ show: () => false; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(61,34): error TS2741: Property 'triggerFields' is missing in type '{ show: () => false; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(62,35): error TS2741: Property 'triggerFields' is missing in type '{ show: () => false; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(63,32): error TS2741: Property 'triggerFields' is missing in type '{ show: () => true; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(64,41): error TS2741: Property 'triggerFields' is missing in type '{ show: () => false; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(65,33): error TS2741: Property 'triggerFields' is missing in type '{ show: () => false; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(66,37): error TS2741: Property 'triggerFields' is missing in type '{ show: () => false; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(75,31): error TS2741: Property 'triggerFields' is missing in type '{ show: () => boolean; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(76,38): error TS2741: Property 'triggerFields' is missing in type '{ show: () => true; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(77,33): error TS2741: Property 'triggerFields' is missing in type '{ show: () => boolean; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(78,32): error TS2741: Property 'triggerFields' is missing in type '{ show: () => boolean; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(79,33): error TS2741: Property 'triggerFields' is missing in type '{ show: () => boolean; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(80,30): error TS2741: Property 'triggerFields' is missing in type '{ show: () => boolean; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(81,39): error TS2741: Property 'triggerFields' is missing in type '{ show: () => boolean; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(82,31): error TS2741: Property 'triggerFields' is missing in type '{ show: () => boolean; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(83,35): error TS2741: Property 'triggerFields' is missing in type '{ show: () => boolean; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(412,33): error TS2741: Property 'triggerFields' is missing in type '{ show: () => false; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(413,40): error TS2741: Property 'triggerFields' is missing in type '{ show: () => false; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(414,35): error TS2741: Property 'triggerFields' is missing in type '{ show: () => false; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(415,34): error TS2741: Property 'triggerFields' is missing in type '{ show: () => false; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(416,35): error TS2741: Property 'triggerFields' is missing in type '{ show: () => false; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(417,41): error TS2741: Property 'triggerFields' is missing in type '{ show: () => false; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(418,33): error TS2741: Property 'triggerFields' is missing in type '{ show: () => false; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(419,37): error TS2741: Property 'triggerFields' is missing in type '{ show: () => false; }' but required in type 'FormItemDependencies'. |
| | | src/views/wls/materialstock/components/stock-adjust-modal.vue(439,3): error TS2322: Type 'Ref<string, string>' is not assignable to type 'string'. |
| | | src/views/wls/productsales/data.ts(135,37): error TS2551: Property 'salesOrderCode' does not exist on type 'SalesNotice'. Did you mean 'saleOrderCode'? |
| | | src/views/wls/returnsales/modules/form.vue(194,63): error TS2339: Property 'saleOrderId' does not exist on type 'ReturnSales'. |
| | | src/views/wls/returnsales/modules/form.vue(200,25): error TS2352: Conversion of type 'PageResult<SaleOrder>' to type 'Record<string, unknown>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. |
| | | Index signature for type 'string' is missing in type 'PageResult<SaleOrder>'. |
| | | src/views/wls/returnsales/modules/form.vue(202,29): error TS2532: Object is possibly 'undefined'. |
| | | src/views/wls/returnsales/modules/line-form.vue(103,56): error TS2532: Object is possibly 'undefined'. |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | -- ============================================================ |
| | | -- éè´å
¥åºå忶审æ¹ï¼2026-10-24ï¼ |
| | | -- |
| | | -- èæ¯ï¼ |
| | | -- éè´å
¥åºä¸å¡ä¸èµ°å®¡æ¹ï¼ç¶æç±ãæäº¤ / æ§è¡ä¸æ¶ / æ§è¡å
¥åºãç´æ¥æ¨è¿ï¼ |
| | | -- è稿(0) -> å¾
䏿¶(2) -> å¾
æ§è¡å
¥åº(3) -> 已宿(4) |
| | | -- |
| | | -- 说æï¼ |
| | | -- 1. å
³éãç³»ç»ç®¡ç - 审æ¹é
ç½®ãä¸ç item_receipt_approve å¼å
³ï¼ |
| | | -- æäº¤æ¶ä¸åæ ¡éªå®¡æ¹äººé
ç½®ï¼ä¹ä¸ä¼åå建 BPM æµç¨å®ä¾ã |
| | | -- 2. åå²éçç审æ¹ä¸ BPM å®ä¾ä¸ä¼å½±ååæ®ç¶æï¼ç¶æååçå¬å¨å·²ç§»é¤ï¼ï¼ |
| | | -- å¦éæ¸
çå¯å¨ãåååå
¬ - æçæµç¨ãä¸åæ¶å¯¹åºæµç¨ã |
| | | -- ============================================================ |
| | | |
| | | UPDATE system_approval_config |
| | | SET approval_enabled = 0 |
| | | WHERE biz_type = 'item_receipt_approve'; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | -- æ¸
ç已忶æ¥å£æ¥è¯¢æéæ ¡éªæå¯¹åºçæé®åè§è²å
³èã |
| | | -- 页é¢èåï¼type = 2ï¼ä¿çï¼ä»ç¨äºéæ¥è¯¢æ¥å£çæéä¹ä¿çã |
| | | -- æ§è¡åéå·æ°æéç¼åæé坿å¡ã |
| | | START TRANSACTION; |
| | | UPDATE system_role_menu rm |
| | | JOIN system_menu m ON m.id = rm.menu_id |
| | | SET rm.deleted = b'1', rm.update_time = NOW() |
| | | WHERE rm.deleted = b'0' AND m.deleted = b'0' AND m.type = 3 |
| | | AND m.permission IN ( |
| | | 'aftersales:problem:query', |
| | | 'aftersales:return:query', |
| | | 'aftersales:ticket:query', |
| | | 'aftersales:visit:query', |
| | | 'ai:api-key:query', |
| | | 'ai:knowledge:query', |
| | | 'ai:model:query', |
| | | 'bi:chart-config:query', |
| | | 'bi:dashboard:query', |
| | | 'bi:data-source-config:query', |
| | | 'bpm:business-attach:query', |
| | | 'bpm:category:query', |
| | | 'bpm:form:query', |
| | | 'bpm:model:query', |
| | | 'bpm:oa-leave:query', |
| | | 'bpm:oa-notice:query', |
| | | 'bpm:process-auto-approve:query', |
| | | 'bpm:process-definition:query', |
| | | 'bpm:process-expression:query', |
| | | 'bpm:process-instance-cc:query', |
| | | 'bpm:process-listener:query', |
| | | 'bpm:task:query', |
| | | 'bpm:user-group:query', |
| | | 'crm:business-status:query', |
| | | 'crm:business:query', |
| | | 'crm:clue:query', |
| | | 'crm:contact:query', |
| | | 'crm:contract-config:query', |
| | | 'crm:contract:query', |
| | | 'crm:customer-limit-config:query', |
| | | 'crm:customer-pool-config:query', |
| | | 'crm:customer:query', |
| | | 'crm:invoice:query', |
| | | 'crm:receivable-plan:query', |
| | | 'crm:receivable:query', |
| | | 'crm:sale-quotation:query', |
| | | 'crm:sales-target:query', |
| | | 'crm:statistics-customer:query', |
| | | 'crm:statistics-funnel:query', |
| | | 'crm:statistics-performance:query', |
| | | 'crm:statistics-portrait:query', |
| | | 'crm:statistics-rank:query', |
| | | 'energy:alert:query', |
| | | 'energy:analysis:query', |
| | | 'energy:record:query', |
| | | 'erp:account:query', |
| | | 'erp:finance-payment:query', |
| | | 'erp:finance-receipt:query', |
| | | 'erp:purchase-invoice:query', |
| | | 'erp:purchase-order:query', |
| | | 'erp:purchase-request:query', |
| | | 'erp:sale-order:query', |
| | | 'erp:statistics:query', |
| | | 'erp:supplier:query', |
| | | 'hrm:attendance-exception:query', |
| | | 'hrm:attendance-holiday:query', |
| | | 'hrm:attendance-record:query', |
| | | 'hrm:attendance-rule:query', |
| | | 'hrm:attendance-summary:query', |
| | | 'hrm:employee-contract:query', |
| | | 'hrm:employee-schedule:query', |
| | | 'hrm:employee-social-security:query', |
| | | 'hrm:employee:query', |
| | | 'hrm:leave-type-config:query', |
| | | 'hrm:leave:query', |
| | | 'hrm:overtime:query', |
| | | 'hrm:resignation:query', |
| | | 'hrm:salary-calculation:query', |
| | | 'hrm:salary-payment:query', |
| | | 'hrm:salary-structure:query', |
| | | 'hrm:shift:query', |
| | | 'hrm:social-security-scheme:query', |
| | | 'hrm:social-security:query', |
| | | 'hrm:tax-rate-config:query', |
| | | 'hrm:transfer:query', |
| | | 'im:manager:channel-material:query', |
| | | 'im:manager:channel-message:query', |
| | | 'im:manager:channel:query', |
| | | 'im:manager:face-pack-item:query', |
| | | 'im:manager:face-pack:query', |
| | | 'im:manager:face-user-item:query', |
| | | 'im:manager:friend-request:query', |
| | | 'im:manager:friend:query', |
| | | 'im:manager:group-request:query', |
| | | 'im:manager:group:query', |
| | | 'im:manager:message:query', |
| | | 'im:manager:rtc:query', |
| | | 'im:manager:sensitive-word:query', |
| | | 'im:manager:statistics:query', |
| | | 'infra:api-access-log:query', |
| | | 'infra:api-error-log:query', |
| | | 'infra:codegen:query', |
| | | 'infra:config:query', |
| | | 'infra:data-source-config:query', |
| | | 'infra:demo01-contact:query', |
| | | 'infra:demo02-category:query', |
| | | 'infra:demo03-student:query', |
| | | 'infra:file-config:query', |
| | | 'infra:file:query', |
| | | 'infra:job:query', |
| | | 'mdm:brand:query', |
| | | 'mdm:item-category:query', |
| | | 'mdm:item:query', |
| | | 'mdm:unit:query', |
| | | 'mdm:warehouse:query', |
| | | 'member:config:query', |
| | | 'member:experience-record:query', |
| | | 'member:group:query', |
| | | 'member:level-record:query', |
| | | 'member:level:query', |
| | | 'member:tag:query', |
| | | 'member:user:query', |
| | | 'mes:cal-holiday:query', |
| | | 'mes:cal-plan:query', |
| | | 'mes:cal-team-shift:query', |
| | | 'mes:cal-team:query', |
| | | 'mes:dv-check-plan:query', |
| | | 'mes:dv-check-record:query', |
| | | 'mes:dv-machinery-type:query', |
| | | 'mes:dv-machinery:query', |
| | | 'mes:dv-mainten-record:query', |
| | | 'mes:dv-metering-check:query', |
| | | 'mes:dv-metering:query', |
| | | 'mes:dv-repair:query', |
| | | 'mes:dv-spare:query', |
| | | 'mes:dv-subject:query', |
| | | 'mes:home:query', |
| | | 'mes:md-item-type:query', |
| | | 'mes:md-item:query', |
| | | 'mes:md-unit-measure:query', |
| | | 'mes:md-workshop:query', |
| | | 'mes:md-workstation:query', |
| | | 'mes:pd-archive:query', |
| | | 'mes:pd-document-audit:query', |
| | | 'mes:pd-document:query', |
| | | 'mes:pd-process-param-template:query', |
| | | 'mes:pd-process-param:query', |
| | | 'mes:pd-project:query', |
| | | 'mes:pro-andon-config:query', |
| | | 'mes:pro-andon-record:query', |
| | | 'mes:pro-card:query', |
| | | 'mes:pro-feedback:query', |
| | | 'mes:pro-mps:query', |
| | | 'mes:pro-process:query', |
| | | 'mes:pro-route:query', |
| | | 'mes:pro-task-issue:query', |
| | | 'mes:pro-task:query', |
| | | 'mes:pro-work-order:query', |
| | | 'mes:pro-workrecord:query', |
| | | 'mes:qc-defect:query', |
| | | 'mes:qc-indicator:query', |
| | | 'mes:qc-inspection-ledger:query', |
| | | 'mes:qc-ipqc:query', |
| | | 'mes:qc-iqc:query', |
| | | 'mes:qc-ncr:query', |
| | | 'mes:qc-oqc:query', |
| | | 'mes:qc-pending-inspect:query', |
| | | 'mes:qc-rqc:query', |
| | | 'mes:qc-template:query', |
| | | 'mes:tm-tool-type:query', |
| | | 'mes:tm-tool:query', |
| | | 'mes:wm-arrival-notice:query', |
| | | 'mes:wm-barcode-config:query', |
| | | 'mes:wm-barcode:query', |
| | | 'mes:wm-batch:query', |
| | | 'mes:wm-item-receipt:query', |
| | | 'mes:wm-material-stock:query', |
| | | 'mes:wm-misc-issue:query', |
| | | 'mes:wm-outsource-issue:query', |
| | | 'mes:wm-outsource-receipt:query', |
| | | 'mes:wm-package:query', |
| | | 'mes:wm-product-issue:query', |
| | | 'mes:wm-product-produce:query', |
| | | 'mes:wm-product-receipt:query', |
| | | 'mes:wm-product-sales:query', |
| | | 'mes:wm-return-issue:query', |
| | | 'mes:wm-return-sales:query', |
| | | 'mes:wm-return-vendor:query', |
| | | 'mes:wm-sales-notice:query', |
| | | 'mes:wm-sn:query', |
| | | 'mes:wm-stock-taking-plan:query', |
| | | 'mes:wm-stock-taking-task:query', |
| | | 'mes:wm-transaction:query', |
| | | 'mes:wm-transfer:query', |
| | | 'mes:wm-warehouse:query', |
| | | 'mes:wm:misc-receipt:query', |
| | | 'point:record:query', |
| | | 'point:sign-in-config:query', |
| | | 'point:sign-in-record:query', |
| | | 'qc-report:instance:query', |
| | | 'qc-report:template:query', |
| | | 'srm:bid-award:query', |
| | | 'srm:bid-evaluation:query', |
| | | 'srm:bid-open:query', |
| | | 'srm:statistics:query', |
| | | 'srm:supplier-apply:query', |
| | | 'srm:supplier-certificate:query', |
| | | 'srm:supplier-contact:query', |
| | | 'srm:supplier-evaluation:query', |
| | | 'srm:supplier-quote:query', |
| | | 'srm:supplier:query', |
| | | 'srm:tender-bid:query', |
| | | 'srm:tender-config:query', |
| | | 'srm:tender-project:query', |
| | | 'system:dept:query', |
| | | 'system:dict:query', |
| | | 'system:login-log:query', |
| | | 'system:mail-account:query', |
| | | 'system:mail-log:query', |
| | | 'system:mail-template:query', |
| | | 'system:menu:query', |
| | | 'system:notice:query', |
| | | 'system:notify-message:query', |
| | | 'system:notify-template:query', |
| | | 'system:oauth2-client:query', |
| | | 'system:operate-log:query', |
| | | 'system:post:query', |
| | | 'system:role:query', |
| | | 'system:sms-channel:query', |
| | | 'system:sms-log:query', |
| | | 'system:sms-template:query', |
| | | 'system:social-client:query', |
| | | 'system:social-user:query', |
| | | 'system:storage-attachment:query', |
| | | 'system:tenant-package:query', |
| | | 'system:tenant:query', |
| | | 'system:user:query' |
| | | ); |
| | | UPDATE system_menu |
| | | SET deleted = b'1', update_time = NOW() |
| | | WHERE deleted = b'0' AND type = 3 |
| | | AND permission IN ( |
| | | 'aftersales:problem:query', |
| | | 'aftersales:return:query', |
| | | 'aftersales:ticket:query', |
| | | 'aftersales:visit:query', |
| | | 'ai:api-key:query', |
| | | 'ai:knowledge:query', |
| | | 'ai:model:query', |
| | | 'bi:chart-config:query', |
| | | 'bi:dashboard:query', |
| | | 'bi:data-source-config:query', |
| | | 'bpm:business-attach:query', |
| | | 'bpm:category:query', |
| | | 'bpm:form:query', |
| | | 'bpm:model:query', |
| | | 'bpm:oa-leave:query', |
| | | 'bpm:oa-notice:query', |
| | | 'bpm:process-auto-approve:query', |
| | | 'bpm:process-definition:query', |
| | | 'bpm:process-expression:query', |
| | | 'bpm:process-instance-cc:query', |
| | | 'bpm:process-listener:query', |
| | | 'bpm:task:query', |
| | | 'bpm:user-group:query', |
| | | 'crm:business-status:query', |
| | | 'crm:business:query', |
| | | 'crm:clue:query', |
| | | 'crm:contact:query', |
| | | 'crm:contract-config:query', |
| | | 'crm:contract:query', |
| | | 'crm:customer-limit-config:query', |
| | | 'crm:customer-pool-config:query', |
| | | 'crm:customer:query', |
| | | 'crm:invoice:query', |
| | | 'crm:receivable-plan:query', |
| | | 'crm:receivable:query', |
| | | 'crm:sale-quotation:query', |
| | | 'crm:sales-target:query', |
| | | 'crm:statistics-customer:query', |
| | | 'crm:statistics-funnel:query', |
| | | 'crm:statistics-performance:query', |
| | | 'crm:statistics-portrait:query', |
| | | 'crm:statistics-rank:query', |
| | | 'energy:alert:query', |
| | | 'energy:analysis:query', |
| | | 'energy:record:query', |
| | | 'erp:account:query', |
| | | 'erp:finance-payment:query', |
| | | 'erp:finance-receipt:query', |
| | | 'erp:purchase-invoice:query', |
| | | 'erp:purchase-order:query', |
| | | 'erp:purchase-request:query', |
| | | 'erp:sale-order:query', |
| | | 'erp:statistics:query', |
| | | 'erp:supplier:query', |
| | | 'hrm:attendance-exception:query', |
| | | 'hrm:attendance-holiday:query', |
| | | 'hrm:attendance-record:query', |
| | | 'hrm:attendance-rule:query', |
| | | 'hrm:attendance-summary:query', |
| | | 'hrm:employee-contract:query', |
| | | 'hrm:employee-schedule:query', |
| | | 'hrm:employee-social-security:query', |
| | | 'hrm:employee:query', |
| | | 'hrm:leave-type-config:query', |
| | | 'hrm:leave:query', |
| | | 'hrm:overtime:query', |
| | | 'hrm:resignation:query', |
| | | 'hrm:salary-calculation:query', |
| | | 'hrm:salary-payment:query', |
| | | 'hrm:salary-structure:query', |
| | | 'hrm:shift:query', |
| | | 'hrm:social-security-scheme:query', |
| | | 'hrm:social-security:query', |
| | | 'hrm:tax-rate-config:query', |
| | | 'hrm:transfer:query', |
| | | 'im:manager:channel-material:query', |
| | | 'im:manager:channel-message:query', |
| | | 'im:manager:channel:query', |
| | | 'im:manager:face-pack-item:query', |
| | | 'im:manager:face-pack:query', |
| | | 'im:manager:face-user-item:query', |
| | | 'im:manager:friend-request:query', |
| | | 'im:manager:friend:query', |
| | | 'im:manager:group-request:query', |
| | | 'im:manager:group:query', |
| | | 'im:manager:message:query', |
| | | 'im:manager:rtc:query', |
| | | 'im:manager:sensitive-word:query', |
| | | 'im:manager:statistics:query', |
| | | 'infra:api-access-log:query', |
| | | 'infra:api-error-log:query', |
| | | 'infra:codegen:query', |
| | | 'infra:config:query', |
| | | 'infra:data-source-config:query', |
| | | 'infra:demo01-contact:query', |
| | | 'infra:demo02-category:query', |
| | | 'infra:demo03-student:query', |
| | | 'infra:file-config:query', |
| | | 'infra:file:query', |
| | | 'infra:job:query', |
| | | 'mdm:brand:query', |
| | | 'mdm:item-category:query', |
| | | 'mdm:item:query', |
| | | 'mdm:unit:query', |
| | | 'mdm:warehouse:query', |
| | | 'member:config:query', |
| | | 'member:experience-record:query', |
| | | 'member:group:query', |
| | | 'member:level-record:query', |
| | | 'member:level:query', |
| | | 'member:tag:query', |
| | | 'member:user:query', |
| | | 'mes:cal-holiday:query', |
| | | 'mes:cal-plan:query', |
| | | 'mes:cal-team-shift:query', |
| | | 'mes:cal-team:query', |
| | | 'mes:dv-check-plan:query', |
| | | 'mes:dv-check-record:query', |
| | | 'mes:dv-machinery-type:query', |
| | | 'mes:dv-machinery:query', |
| | | 'mes:dv-mainten-record:query', |
| | | 'mes:dv-metering-check:query', |
| | | 'mes:dv-metering:query', |
| | | 'mes:dv-repair:query', |
| | | 'mes:dv-spare:query', |
| | | 'mes:dv-subject:query', |
| | | 'mes:home:query', |
| | | 'mes:md-item-type:query', |
| | | 'mes:md-item:query', |
| | | 'mes:md-unit-measure:query', |
| | | 'mes:md-workshop:query', |
| | | 'mes:md-workstation:query', |
| | | 'mes:pd-archive:query', |
| | | 'mes:pd-document-audit:query', |
| | | 'mes:pd-document:query', |
| | | 'mes:pd-process-param-template:query', |
| | | 'mes:pd-process-param:query', |
| | | 'mes:pd-project:query', |
| | | 'mes:pro-andon-config:query', |
| | | 'mes:pro-andon-record:query', |
| | | 'mes:pro-card:query', |
| | | 'mes:pro-feedback:query', |
| | | 'mes:pro-mps:query', |
| | | 'mes:pro-process:query', |
| | | 'mes:pro-route:query', |
| | | 'mes:pro-task-issue:query', |
| | | 'mes:pro-task:query', |
| | | 'mes:pro-work-order:query', |
| | | 'mes:pro-workrecord:query', |
| | | 'mes:qc-defect:query', |
| | | 'mes:qc-indicator:query', |
| | | 'mes:qc-inspection-ledger:query', |
| | | 'mes:qc-ipqc:query', |
| | | 'mes:qc-iqc:query', |
| | | 'mes:qc-ncr:query', |
| | | 'mes:qc-oqc:query', |
| | | 'mes:qc-pending-inspect:query', |
| | | 'mes:qc-rqc:query', |
| | | 'mes:qc-template:query', |
| | | 'mes:tm-tool-type:query', |
| | | 'mes:tm-tool:query', |
| | | 'mes:wm-arrival-notice:query', |
| | | 'mes:wm-barcode-config:query', |
| | | 'mes:wm-barcode:query', |
| | | 'mes:wm-batch:query', |
| | | 'mes:wm-item-receipt:query', |
| | | 'mes:wm-material-stock:query', |
| | | 'mes:wm-misc-issue:query', |
| | | 'mes:wm-outsource-issue:query', |
| | | 'mes:wm-outsource-receipt:query', |
| | | 'mes:wm-package:query', |
| | | 'mes:wm-product-issue:query', |
| | | 'mes:wm-product-produce:query', |
| | | 'mes:wm-product-receipt:query', |
| | | 'mes:wm-product-sales:query', |
| | | 'mes:wm-return-issue:query', |
| | | 'mes:wm-return-sales:query', |
| | | 'mes:wm-return-vendor:query', |
| | | 'mes:wm-sales-notice:query', |
| | | 'mes:wm-sn:query', |
| | | 'mes:wm-stock-taking-plan:query', |
| | | 'mes:wm-stock-taking-task:query', |
| | | 'mes:wm-transaction:query', |
| | | 'mes:wm-transfer:query', |
| | | 'mes:wm-warehouse:query', |
| | | 'mes:wm:misc-receipt:query', |
| | | 'point:record:query', |
| | | 'point:sign-in-config:query', |
| | | 'point:sign-in-record:query', |
| | | 'qc-report:instance:query', |
| | | 'qc-report:template:query', |
| | | 'srm:bid-award:query', |
| | | 'srm:bid-evaluation:query', |
| | | 'srm:bid-open:query', |
| | | 'srm:statistics:query', |
| | | 'srm:supplier-apply:query', |
| | | 'srm:supplier-certificate:query', |
| | | 'srm:supplier-contact:query', |
| | | 'srm:supplier-evaluation:query', |
| | | 'srm:supplier-quote:query', |
| | | 'srm:supplier:query', |
| | | 'srm:tender-bid:query', |
| | | 'srm:tender-config:query', |
| | | 'srm:tender-project:query', |
| | | 'system:dept:query', |
| | | 'system:dict:query', |
| | | 'system:login-log:query', |
| | | 'system:mail-account:query', |
| | | 'system:mail-log:query', |
| | | 'system:mail-template:query', |
| | | 'system:menu:query', |
| | | 'system:notice:query', |
| | | 'system:notify-message:query', |
| | | 'system:notify-template:query', |
| | | 'system:oauth2-client:query', |
| | | 'system:operate-log:query', |
| | | 'system:post:query', |
| | | 'system:role:query', |
| | | 'system:sms-channel:query', |
| | | 'system:sms-log:query', |
| | | 'system:sms-template:query', |
| | | 'system:social-client:query', |
| | | 'system:social-user:query', |
| | | 'system:storage-attachment:query', |
| | | 'system:tenant-package:query', |
| | | 'system:tenant:query', |
| | | 'system:user:query' |
| | | ); |
| | | COMMIT; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | -- å·¥èºè·¯çº¿å·¥åºäº§åºï¼æäº§åå½å±ï¼product_id 为空表示å¤äº§åéç¨ï¼ |
| | | CREATE TABLE IF NOT EXISTS `mes_pro_route_process_output` ( |
| | | `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'ç¼å·', |
| | | `route_process_id` bigint NOT NULL COMMENT 'å·¥èºè·¯çº¿å·¥åºç¼å·', |
| | | `route_id` bigint NOT NULL COMMENT 'å·¥èºè·¯çº¿ç¼å·', |
| | | `process_id` bigint NOT NULL COMMENT 'å·¥åºç¼å·', |
| | | `product_id` bigint DEFAULT NULL COMMENT 'å½å±äº§åç¼å·ï¼ä¸ºç©ºè¡¨ç¤ºå¤äº§åéç¨', |
| | | `item_id` bigint NOT NULL COMMENT '产åºç©æç¼å·', |
| | | `sort` int DEFAULT NULL COMMENT 'æåº', |
| | | `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '夿³¨', |
| | | `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT 'å建è
', |
| | | `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'å建æ¶é´', |
| | | `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT 'æ´æ°è
', |
| | | `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'æ´æ°æ¶é´', |
| | | `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT 'æ¯å¦å é¤', |
| | | PRIMARY KEY (`id`) USING BTREE, |
| | | KEY `idx_route_process_id` (`route_process_id`) USING BTREE, |
| | | KEY `idx_route_id` (`route_id`) USING BTREE |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='MES å·¥èºè·¯çº¿å·¥åºäº§åºå½å±'; |
| | | |
| | | -- åéè¿ç§»ï¼æå output_item_idã |
| | | -- è§åï¼äº§åºç©ææ¯å½å路线ç»å®ç产å â å½å±å°èªèº«ï¼äº§åä¸å±ï¼ï¼å¦å â éç¨ï¼NULLï¼ã |
| | | INSERT INTO `mes_pro_route_process_output` |
| | | (`route_process_id`, `route_id`, `process_id`, `product_id`, `item_id`, `sort`) |
| | | WITH RECURSIVE seq AS ( |
| | | SELECT 1 AS n |
| | | UNION ALL |
| | | SELECT n + 1 FROM seq WHERE n < 100 |
| | | ) |
| | | SELECT p.`id`, |
| | | p.`route_id`, |
| | | p.`process_id`, |
| | | rp.`item_id` AS product_id, |
| | | CAST(TRIM(SUBSTRING_INDEX(SUBSTRING_INDEX(p.`output_item_id`, ',', seq.n), ',', -1)) AS UNSIGNED) AS item_id, |
| | | seq.n |
| | | FROM `mes_pro_route_process` p |
| | | JOIN seq |
| | | ON seq.n <= 1 + LENGTH(p.`output_item_id`) - LENGTH(REPLACE(p.`output_item_id`, ',', '')) |
| | | LEFT JOIN `mes_pro_route_product` rp |
| | | ON rp.`route_id` = p.`route_id` |
| | | AND rp.`deleted` = 0 |
| | | AND rp.`item_id` = CAST(TRIM(SUBSTRING_INDEX(SUBSTRING_INDEX(p.`output_item_id`, ',', seq.n), ',', -1)) AS UNSIGNED) |
| | | WHERE p.`deleted` = 0 |
| | | AND p.`output_item_id` IS NOT NULL |
| | | AND p.`output_item_id` <> '' |
| | | AND TRIM(SUBSTRING_INDEX(SUBSTRING_INDEX(p.`output_item_id`, ',', seq.n), ',', -1)) <> '' |
| | | AND NOT EXISTS ( |
| | | SELECT 1 FROM `mes_pro_route_process_output` o |
| | | WHERE o.`route_process_id` = p.`id` |
| | | AND o.`item_id` = CAST(TRIM(SUBSTRING_INDEX(SUBSTRING_INDEX(p.`output_item_id`, ',', seq.n), ',', -1)) AS UNSIGNED) |
| | | ); |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | -- æ°é«çµåè½»éçï¼AI æ¨¡åæªéé»è®¤å端å
å叿¶ï¼éèå¹¶ç¦ç¨ææ AI èåã |
| | | -- 妿¹ç¨ `mvn -Pwith-ai ...` æå»ºå®æ´å
ï¼å¯æå¤ä»½æ°æ®æ¢å¤èåç¶æã |
| | | |
| | | START TRANSACTION; |
| | | |
| | | CREATE TABLE IF NOT EXISTS system_menu_ai_backup_20261025 LIKE system_menu; |
| | | |
| | | INSERT IGNORE INTO system_menu_ai_backup_20261025 |
| | | SELECT m.* |
| | | FROM system_menu m |
| | | WHERE m.deleted = b'0' |
| | | AND ( |
| | | m.id = 2758 |
| | | OR m.parent_id = 2758 |
| | | OR m.parent_id IN ( |
| | | SELECT id FROM ( |
| | | SELECT id FROM system_menu WHERE deleted = b'0' AND parent_id = 2758 |
| | | ) AS ai_first_level |
| | | ) |
| | | OR m.path = '/ai' |
| | | OR m.component LIKE 'ai/%' |
| | | OR m.permission LIKE 'ai:%' |
| | | ); |
| | | |
| | | -- 主 AI èåæ ï¼å«æ²¡æ permission/component çä¸é´ç®å½ï¼ä»¥åæ£è½å¨å
¶å®ç®å½ä¸ç AI 页é¢ã |
| | | UPDATE system_menu |
| | | SET status = 1, |
| | | visible = b'0', |
| | | updater = '1', |
| | | update_time = NOW() |
| | | WHERE deleted = b'0' |
| | | AND ( |
| | | id = 2758 |
| | | OR parent_id = 2758 |
| | | OR parent_id IN ( |
| | | SELECT id FROM ( |
| | | SELECT id FROM system_menu WHERE deleted = b'0' AND parent_id = 2758 |
| | | ) AS ai_first_level |
| | | ) |
| | | OR path = '/ai' |
| | | OR component LIKE 'ai/%' |
| | | OR permission LIKE 'ai:%' |
| | | ); |
| | | |
| | | COMMIT; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | -- æ°é«çµåï¼è¡¥é½âç产管æ§â缺失çèªå¨ç¼ç è§åã |
| | | -- å¯é夿§è¡ï¼è§åæå段已å卿¶ä¸ä¼é夿å
¥ã |
| | | |
| | | START TRANSACTION; |
| | | |
| | | INSERT INTO mes_md_auto_code_rule |
| | | (code, name, description, max_length, padded, padded_char, padded_method, |
| | | status, remark, creator, create_time, updater, update_time, deleted) |
| | | SELECT 'PRO_MPS_CODE', 'ç产计åç¼ç ', 'ç产主计åï¼MPSï¼èªå¨ç¼ç ', 20, |
| | | b'0', NULL, NULL, 0, 'ç产管æ§å¿
è¦è§å', '1', NOW(), '1', NOW(), b'0' |
| | | WHERE NOT EXISTS ( |
| | | SELECT 1 FROM mes_md_auto_code_rule WHERE code = 'PRO_MPS_CODE' AND deleted = b'0' |
| | | ); |
| | | |
| | | SET @pro_mps_rule_id = ( |
| | | SELECT id FROM mes_md_auto_code_rule |
| | | WHERE code = 'PRO_MPS_CODE' AND deleted = b'0' ORDER BY id LIMIT 1 |
| | | ); |
| | | |
| | | INSERT INTO mes_md_auto_code_part |
| | | (rule_id, sort, type, length, date_format, fix_character, serial_start_no, |
| | | serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | SELECT @pro_mps_rule_id, 1, 3, 3, NULL, 'MPS', NULL, NULL, b'0', NULL, |
| | | 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0' |
| | | WHERE NOT EXISTS ( |
| | | SELECT 1 FROM mes_md_auto_code_part |
| | | WHERE rule_id = @pro_mps_rule_id AND sort = 1 AND deleted = b'0' |
| | | ); |
| | | |
| | | INSERT INTO mes_md_auto_code_part |
| | | (rule_id, sort, type, length, date_format, fix_character, serial_start_no, |
| | | serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | SELECT @pro_mps_rule_id, 2, 2, 8, 'yyyyMMdd', NULL, NULL, NULL, b'0', NULL, |
| | | 'ä¸å¡æ¥æ', '1', NOW(), '1', NOW(), b'0' |
| | | WHERE NOT EXISTS ( |
| | | SELECT 1 FROM mes_md_auto_code_part |
| | | WHERE rule_id = @pro_mps_rule_id AND sort = 2 AND deleted = b'0' |
| | | ); |
| | | |
| | | INSERT INTO mes_md_auto_code_part |
| | | (rule_id, sort, type, length, date_format, fix_character, serial_start_no, |
| | | serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | SELECT @pro_mps_rule_id, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, |
| | | 'ææ¥å¾ªç¯æµæ°´å·', '1', NOW(), '1', NOW(), b'0' |
| | | WHERE NOT EXISTS ( |
| | | SELECT 1 FROM mes_md_auto_code_part |
| | | WHERE rule_id = @pro_mps_rule_id AND sort = 3 AND deleted = b'0' |
| | | ); |
| | | |
| | | INSERT INTO mes_md_auto_code_rule |
| | | (code, name, description, max_length, padded, padded_char, padded_method, |
| | | status, remark, creator, create_time, updater, update_time, deleted) |
| | | SELECT 'PRO_MAINTENANCE_PLAN_CODE', 'çµåä½ä¸è®¡åç¼ç ', 'çµåä½ä¸è®¡åèªå¨ç¼ç ', 16, |
| | | b'0', NULL, NULL, 0, 'ç产管æ§å¿
è¦è§å', '1', NOW(), '1', NOW(), b'0' |
| | | WHERE NOT EXISTS ( |
| | | SELECT 1 FROM mes_md_auto_code_rule |
| | | WHERE code = 'PRO_MAINTENANCE_PLAN_CODE' AND deleted = b'0' |
| | | ); |
| | | |
| | | SET @pro_maintenance_plan_rule_id = ( |
| | | SELECT id FROM mes_md_auto_code_rule |
| | | WHERE code = 'PRO_MAINTENANCE_PLAN_CODE' AND deleted = b'0' ORDER BY id LIMIT 1 |
| | | ); |
| | | |
| | | INSERT INTO mes_md_auto_code_part |
| | | (rule_id, sort, type, length, date_format, fix_character, serial_start_no, |
| | | serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | SELECT @pro_maintenance_plan_rule_id, 1, 3, 3, NULL, 'MP_', NULL, NULL, b'0', NULL, |
| | | 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0' |
| | | WHERE NOT EXISTS ( |
| | | SELECT 1 FROM mes_md_auto_code_part |
| | | WHERE rule_id = @pro_maintenance_plan_rule_id AND sort = 1 AND deleted = b'0' |
| | | ); |
| | | |
| | | INSERT INTO mes_md_auto_code_part |
| | | (rule_id, sort, type, length, date_format, fix_character, serial_start_no, |
| | | serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | SELECT @pro_maintenance_plan_rule_id, 2, 2, 8, 'yyyyMMdd', NULL, NULL, NULL, b'0', NULL, |
| | | 'ä¸å¡æ¥æ', '1', NOW(), '1', NOW(), b'0' |
| | | WHERE NOT EXISTS ( |
| | | SELECT 1 FROM mes_md_auto_code_part |
| | | WHERE rule_id = @pro_maintenance_plan_rule_id AND sort = 2 AND deleted = b'0' |
| | | ); |
| | | |
| | | INSERT INTO mes_md_auto_code_part |
| | | (rule_id, sort, type, length, date_format, fix_character, serial_start_no, |
| | | serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | SELECT @pro_maintenance_plan_rule_id, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, |
| | | 'ææ¥å¾ªç¯æµæ°´å·', '1', NOW(), '1', NOW(), b'0' |
| | | WHERE NOT EXISTS ( |
| | | SELECT 1 FROM mes_md_auto_code_part |
| | | WHERE rule_id = @pro_maintenance_plan_rule_id AND sort = 3 AND deleted = b'0' |
| | | ); |
| | | |
| | | INSERT INTO mes_md_auto_code_rule |
| | | (code, name, description, max_length, padded, padded_char, padded_method, |
| | | status, remark, creator, create_time, updater, update_time, deleted) |
| | | SELECT 'TM_TOOL_CODE', 'å·¥è£
夹å
·ç¼ç ', 'å·¥è£
夹å
·å°è´¦èªå¨ç¼ç ', 12, |
| | | b'0', NULL, NULL, 0, 'ç产管æ§å¿
è¦è§å', '1', NOW(), '1', NOW(), b'0' |
| | | WHERE NOT EXISTS ( |
| | | SELECT 1 FROM mes_md_auto_code_rule WHERE code = 'TM_TOOL_CODE' AND deleted = b'0' |
| | | ); |
| | | |
| | | SET @tm_tool_rule_id = ( |
| | | SELECT id FROM mes_md_auto_code_rule |
| | | WHERE code = 'TM_TOOL_CODE' AND deleted = b'0' ORDER BY id LIMIT 1 |
| | | ); |
| | | |
| | | INSERT INTO mes_md_auto_code_part |
| | | (rule_id, sort, type, length, date_format, fix_character, serial_start_no, |
| | | serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | SELECT @tm_tool_rule_id, 1, 3, 3, NULL, 'TL_', NULL, NULL, b'0', NULL, |
| | | 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0' |
| | | WHERE NOT EXISTS ( |
| | | SELECT 1 FROM mes_md_auto_code_part |
| | | WHERE rule_id = @tm_tool_rule_id AND sort = 1 AND deleted = b'0' |
| | | ); |
| | | |
| | | INSERT INTO mes_md_auto_code_part |
| | | (rule_id, sort, type, length, date_format, fix_character, serial_start_no, |
| | | serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | SELECT @tm_tool_rule_id, 2, 4, 6, NULL, NULL, 1, 1, b'0', NULL, |
| | | 'è¿ç»æµæ°´å·', '1', NOW(), '1', NOW(), b'0' |
| | | WHERE NOT EXISTS ( |
| | | SELECT 1 FROM mes_md_auto_code_part |
| | | WHERE rule_id = @tm_tool_rule_id AND sort = 2 AND deleted = b'0' |
| | | ); |
| | | |
| | | COMMIT; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | -- æ°é«çµåï¼è¡¥é½è´¨æ£ä¸ä»åºä¸å¡èªå¨ç¼ç è§åã |
| | | -- å¯é夿§è¡ï¼å·²æè§åååæ®µä¸ä¼é夿å
¥ã |
| | | |
| | | START TRANSACTION; |
| | | |
| | | DROP TEMPORARY TABLE IF EXISTS tmp_xgdl_autocode_rule; |
| | | CREATE TEMPORARY TABLE tmp_xgdl_autocode_rule ( |
| | | code VARCHAR(64) COLLATE utf8mb4_unicode_ci PRIMARY KEY, |
| | | name VARCHAR(100) NOT NULL, |
| | | description VARCHAR(255) NOT NULL, |
| | | max_length INT NOT NULL, |
| | | prefix VARCHAR(16) NOT NULL, |
| | | has_date TINYINT NOT NULL, |
| | | serial_length INT NOT NULL |
| | | ); |
| | | |
| | | INSERT INTO tmp_xgdl_autocode_rule |
| | | (code, name, description, max_length, prefix, has_date, serial_length) |
| | | VALUES |
| | | ('QC_INDICATOR_CODE', 'è´¨æ£ææ ç¼ç ', 'è´¨æ£ææ èªå¨ç¼ç ', 12, 'QI_', 0, 6), |
| | | ('QC_TEMPLATE_CODE', 'è´¨æ£æ¹æ¡ç¼ç ', 'è´¨æ£æ¹æ¡èªå¨ç¼ç ', 12, 'QT_', 0, 6), |
| | | ('QC_NCR_CODE', 'ä¸åæ ¼åå¤çåç¼ç ', 'ä¸åæ ¼åå¤çåèªå¨ç¼ç ', 16, 'NCR', 1, 4), |
| | | ('QC_OUTSOURCE_TEST_CODE', 'å§å¤æ£æµåç¼ç ', 'å§å¤æ£æµ/è¯éªåèªå¨ç¼ç ', 16, 'WT', 1, 4), |
| | | ('WM_PRODUCT_ISSUE_CODE', 'çäº§é¢æåç¼ç ', 'çäº§é¢æåºåºåèªå¨ç¼ç ', 16, 'PI', 1, 4), |
| | | ('WM_PRODUCT_RECEIPT_CODE', '产åå
¥åºåç¼ç ', '产åå®å·¥å
¥åºåèªå¨ç¼ç ', 16, 'PR', 1, 4); |
| | | |
| | | INSERT INTO mes_md_auto_code_rule |
| | | (code, name, description, max_length, padded, padded_char, padded_method, |
| | | status, remark, creator, create_time, updater, update_time, deleted) |
| | | SELECT t.code, t.name, t.description, t.max_length, |
| | | b'0', NULL, NULL, 0, 'è´¨æ£/ä»åºå¿
è¦è§å', '1', NOW(), '1', NOW(), b'0' |
| | | FROM tmp_xgdl_autocode_rule t |
| | | WHERE NOT EXISTS ( |
| | | SELECT 1 FROM mes_md_auto_code_rule r |
| | | WHERE r.code = t.code AND r.deleted = b'0' |
| | | ); |
| | | |
| | | -- åºå®åç¼ã |
| | | INSERT INTO mes_md_auto_code_part |
| | | (rule_id, sort, type, length, date_format, fix_character, serial_start_no, |
| | | serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | SELECT r.id, 1, 3, CHAR_LENGTH(t.prefix), NULL, t.prefix, NULL, |
| | | NULL, b'0', NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0' |
| | | FROM tmp_xgdl_autocode_rule t |
| | | JOIN mes_md_auto_code_rule r ON r.code = t.code AND r.deleted = b'0' |
| | | WHERE NOT EXISTS ( |
| | | SELECT 1 FROM mes_md_auto_code_part p |
| | | WHERE p.rule_id = r.id AND p.sort = 1 AND p.deleted = b'0' |
| | | ); |
| | | |
| | | -- éè¦ä¸å¡æ¥æçåæ®ä½¿ç¨ yyyyMMddã |
| | | INSERT INTO mes_md_auto_code_part |
| | | (rule_id, sort, type, length, date_format, fix_character, serial_start_no, |
| | | serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | SELECT r.id, 2, 2, 8, 'yyyyMMdd', NULL, NULL, |
| | | NULL, b'0', NULL, 'ä¸å¡æ¥æ', '1', NOW(), '1', NOW(), b'0' |
| | | FROM tmp_xgdl_autocode_rule t |
| | | JOIN mes_md_auto_code_rule r ON r.code = t.code AND r.deleted = b'0' |
| | | WHERE t.has_date = 1 |
| | | AND NOT EXISTS ( |
| | | SELECT 1 FROM mes_md_auto_code_part p |
| | | WHERE p.rule_id = r.id AND p.sort = 2 AND p.deleted = b'0' |
| | | ); |
| | | |
| | | -- ææ¥æçæµæ°´å·ææ¥å¾ªç¯ï¼åºç¡èµæç¼ç 使ç¨è¿ç»æµæ°´å·ã |
| | | INSERT INTO mes_md_auto_code_part |
| | | (rule_id, sort, type, length, date_format, fix_character, serial_start_no, |
| | | serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | SELECT r.id, IF(t.has_date = 1, 3, 2), 4, t.serial_length, NULL, NULL, 1, |
| | | 1, IF(t.has_date = 1, b'1', b'0'), IF(t.has_date = 1, 3, NULL), |
| | | IF(t.has_date = 1, 'ææ¥å¾ªç¯æµæ°´å·', 'è¿ç»æµæ°´å·'), |
| | | '1', NOW(), '1', NOW(), b'0' |
| | | FROM tmp_xgdl_autocode_rule t |
| | | JOIN mes_md_auto_code_rule r ON r.code = t.code AND r.deleted = b'0' |
| | | WHERE NOT EXISTS ( |
| | | SELECT 1 FROM mes_md_auto_code_part p |
| | | WHERE p.rule_id = r.id |
| | | AND p.sort = IF(t.has_date = 1, 3, 2) |
| | | AND p.deleted = b'0' |
| | | ); |
| | | |
| | | DROP TEMPORARY TABLE tmp_xgdl_autocode_rule; |
| | | |
| | | COMMIT; |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å®åé®é¢") |
| | | @Parameter(name = "id", description = "é®é¢ç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('aftersales:problem:query')") |
| | | public CommonResult<AfterSaleProblemRespVO> getProblem(@RequestParam("id") Long id) { |
| | | AfterSaleProblemDO problemDO = problemService.getProblem(id); |
| | | AfterSaleProblemRespVO respVO = buildProblemDetailList(List.of(problemDO)).get(0); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å®åé®é¢å页") |
| | | @PreAuthorize("@ss.hasPermission('aftersales:problem:query')") |
| | | public CommonResult<PageResult<AfterSaleProblemRespVO>> getProblemPage(@Valid AfterSaleProblemPageReqVO pageReqVO) { |
| | | PageResult<AfterSaleProblemDO> pageResult = problemService.getProblemPage(pageReqVO); |
| | | return success(new PageResult<>(buildProblemDetailList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/reference") |
| | | @Operation(summary = "æ°å·¥ååçåèæ£ç´¢(å·²åå¸é®é¢)") |
| | | @PreAuthorize("@ss.hasPermission('aftersales:problem:query')") |
| | | public CommonResult<List<AfterSaleProblemRespVO>> getReferenceList(@Valid AfterSaleProblemPageReqVO pageReqVO) { |
| | | return success(buildProblemDetailList(problemService.getReferenceList(pageReqVO))); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éè´§ç³è¯·") |
| | | @Parameter(name = "id", description = "éè´§ç³è¯·ç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('aftersales:return:query')") |
| | | public CommonResult<AfterSaleReturnRespVO> getReturn(@RequestParam("id") Long id) { |
| | | AfterSaleReturnDO returnDO = returnService.getReturn(id); |
| | | List<AfterSaleReturnItemDO> items = returnService.getReturnItemListByReturnId(id); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éè´§ç³è¯·å页") |
| | | @PreAuthorize("@ss.hasPermission('aftersales:return:query')") |
| | | public CommonResult<PageResult<AfterSaleReturnRespVO>> getReturnPage(@Valid AfterSaleReturnPageReqVO pageReqVO) { |
| | | PageResult<AfterSaleReturnDO> pageResult = returnService.getReturnPage(pageReqVO, getLoginUserId()); |
| | | List<AfterSaleReturnRespVO> list = buildReturnDetailList(pageResult.getList()); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å®åå·¥å") |
| | | @Parameter(name = "id", description = "å·¥åç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('aftersales:ticket:query')") |
| | | public CommonResult<AfterSaleTicketRespVO> getTicket(@RequestParam("id") Long id) { |
| | | AfterSaleTicketDO ticket = ticketService.getTicket(id); |
| | | List<AfterSaleTicketItemDO> items = ticketService.getTicketItemListByTicketId(id); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å®åå·¥åå页") |
| | | @PreAuthorize("@ss.hasPermission('aftersales:ticket:query')") |
| | | public CommonResult<PageResult<AfterSaleTicketRespVO>> getTicketPage(@Valid AfterSaleTicketPageReqVO pageReqVO) { |
| | | PageResult<AfterSaleTicketDO> pageResult = ticketService.getTicketPage(pageReqVO, getLoginUserId()); |
| | | List<AfterSaleTicketRespVO> list = buildTicketDetailList(pageResult.getList()); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å®åå访记å½") |
| | | @Parameter(name = "id", description = "å访记å½ç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('aftersales:visit:query')") |
| | | public CommonResult<AfterSaleVisitRespVO> getVisit(@RequestParam("id") Long id) { |
| | | AfterSaleVisitDO visitDO = visitService.getVisit(id); |
| | | AfterSaleVisitRespVO respVO = buildVisitDetailList(List.of(visitDO)).get(0); |
| | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾æå·¥åçå访记å½å表") |
| | | @Parameter(name = "ticketId", description = "å·¥åç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('aftersales:visit:query')") |
| | | public CommonResult<List<AfterSaleVisitRespVO>> getVisitListByTicketId(@RequestParam("ticketId") Long ticketId) { |
| | | List<AfterSaleVisitDO> visitList = visitService.getVisitListByTicketId(ticketId); |
| | | return success(buildVisitDetailList(visitList)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å®åå访记å½å页") |
| | | @PreAuthorize("@ss.hasPermission('aftersales:visit:query')") |
| | | public CommonResult<PageResult<AfterSaleVisitRespVO>> getVisitPage(@Valid AfterSaleVisitPageReqVO pageReqVO) { |
| | | PageResult<AfterSaleVisitDO> pageResult = visitService.getVisitPage(pageReqVO); |
| | | return success(new PageResult<>(buildVisitDetailList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·åç¥è¯åº") |
| | | @PreAuthorize("@ss.hasPermission('ai:knowledge:query')") |
| | | public CommonResult<AiKnowledgeRespVO> getKnowledge(@RequestParam("id") Long id) { |
| | | return success(BeanUtils.toBean(knowledgeService.getKnowledge(id), AiKnowledgeRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·åç¥è¯åºå页") |
| | | @PreAuthorize("@ss.hasPermission('ai:knowledge:query')") |
| | | public CommonResult<PageResult<AiKnowledgeRespVO>> getKnowledgePage(@Valid AiKnowledgePageReqVO pageReqVO) { |
| | | PageResult<AiKnowledgeDO> pageResult = knowledgeService.getKnowledgePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, AiKnowledgeRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·åææ¡£") |
| | | @PreAuthorize("@ss.hasPermission('ai:knowledge:query')") |
| | | public CommonResult<AiKnowledgeDocumentRespVO> getDocument(@RequestParam("id") Long id) { |
| | | return success(BeanUtils.toBean(documentService.getDocument(id), AiKnowledgeDocumentRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·åææ¡£å页") |
| | | @PreAuthorize("@ss.hasPermission('ai:knowledge:query')") |
| | | public CommonResult<PageResult<AiKnowledgeDocumentRespVO>> getDocumentPage(@Valid AiKnowledgeDocumentPageReqVO pageReqVO) { |
| | | PageResult<AiKnowledgeDocumentDO> pageResult = documentService.getDocumentPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, AiKnowledgeDocumentRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/progress") |
| | | @Operation(summary = "è·åææ¡£å¤çè¿åº¦") |
| | | @PreAuthorize("@ss.hasPermission('ai:knowledge:query')") |
| | | public CommonResult<List<AiKnowledgeSegmentProcessRespVO>> getProcessingProgress(@RequestParam("documentIds") List<Long> documentIds) { |
| | | return success(documentService.getDocumentProcessingProgress(documentIds)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/split") |
| | | @Operation(summary = "é¢è§ææ¡£ååç»æ") |
| | | @PreAuthorize("@ss.hasPermission('ai:knowledge:query')") |
| | | public CommonResult<List<AiKnowledgeSegmentSplitRespVO>> previewSplit(@Valid AiKnowledgeSegmentSplitReqVO reqVO) { |
| | | String fileUrl = reqVO.getUrl(); |
| | | if (fileUrl == null || fileUrl.isEmpty()) { |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·ååæ®µ") |
| | | @PreAuthorize("@ss.hasPermission('ai:knowledge:query')") |
| | | public CommonResult<AiKnowledgeSegmentRespVO> getSegment(@RequestParam("id") Long id) { |
| | | return success(BeanUtils.toBean(segmentService.getSegment(id), AiKnowledgeSegmentRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·ååæ®µå页") |
| | | @PreAuthorize("@ss.hasPermission('ai:knowledge:query')") |
| | | public CommonResult<PageResult<AiKnowledgeSegmentRespVO>> getSegmentPage(@Valid AiKnowledgeSegmentPageReqVO pageReqVO) { |
| | | PageResult<AiKnowledgeSegmentDO> pageResult = segmentService.getSegmentPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, AiKnowledgeSegmentRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/get-process-list") |
| | | @Operation(summary = "è·åææ¡£å¤çè¿åº¦") |
| | | @PreAuthorize("@ss.hasPermission('ai:knowledge:query')") |
| | | public CommonResult<List<AiKnowledgeSegmentProcessRespVO>> getProcessList(@RequestParam("documentIds") List<Long> documentIds) { |
| | | return success(documentService.getDocumentProcessingProgress(documentIds)); |
| | | } |
| | | |
| | | @PostMapping("/search") |
| | | @Operation(summary = "æ£ç´¢å段ï¼RAG åéæ£ç´¢ï¼") |
| | | @PreAuthorize("@ss.hasPermission('ai:knowledge:query')") |
| | | public CommonResult<List<AiKnowledgeSegmentSearchRespVO>> searchSegments(@Valid @RequestBody AiKnowledgeSegmentSearchReqVO searchReqVO) { |
| | | AiKnowledgeSegmentSearchReqBO searchReqBO = BeanUtils.toBean(searchReqVO, AiKnowledgeSegmentSearchReqBO.class); |
| | | List<AiKnowledgeSegmentSearchRespBO> results = segmentService.searchSegments(searchReqBO); |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å API å¯é¥") |
| | | @PreAuthorize("@ss.hasPermission('ai:api-key:query')") |
| | | public CommonResult<AiApiKeyRespVO> getApiKey(@RequestParam("id") Long id) { |
| | | return success(BeanUtils.toBean(apiKeyService.getApiKey(id), AiApiKeyRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å API å¯é¥å页") |
| | | @PreAuthorize("@ss.hasPermission('ai:api-key:query')") |
| | | public CommonResult<PageResult<AiApiKeyRespVO>> getApiKeyPage(@Valid AiApiKeyPageReqVO pageReqVO) { |
| | | PageResult<AiApiKeyDO> pageResult = apiKeyService.getApiKeyPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, AiApiKeyRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å AI 模å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('ai:model:query')") |
| | | public CommonResult<AiModelRespVO> getModel(@RequestParam("id") Long id) { |
| | | return success(BeanUtils.toBean(modelService.getModel(id), AiModelRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å AI 模åå页") |
| | | @PreAuthorize("@ss.hasPermission('ai:model:query')") |
| | | public CommonResult<PageResult<AiModelRespVO>> getModelPage(@Valid AiModelPageReqVO pageReqVO) { |
| | | PageResult<AiModelDO> pageResult = modelService.getModelPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, AiModelRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·åå¾è¡¨é
ç½®") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('bi:chart-config:query')") |
| | | public CommonResult<BiChartConfigDO> get(@RequestParam("id") Long id) { |
| | | return success(chartConfigService.get(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "å页æ¥è¯¢å¾è¡¨é
ç½®") |
| | | @PreAuthorize("@ss.hasPermission('bi:chart-config:query')") |
| | | public CommonResult<PageResult<BiChartConfigDO>> getPage( |
| | | @RequestParam(value = "dashboardId", required = false) Long dashboardId, |
| | | @RequestParam(value = "name", required = false) String name, |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·åæ°æ®æºé
ç½®") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('bi:data-source-config:query')") |
| | | public CommonResult<BiDataSourceConfigDO> get(@RequestParam("id") Long id) { |
| | | return success(dataSourceConfigService.get(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "å页æ¥è¯¢æ°æ®æºé
ç½®") |
| | | @PreAuthorize("@ss.hasPermission('bi:data-source-config:query')") |
| | | public CommonResult<PageResult<BiDataSourceConfigDO>> getPage( |
| | | @RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo, |
| | | @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) { |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å仪表çå表") |
| | | @PreAuthorize("@ss.hasPermission('bi:dashboard:query')") |
| | | public CommonResult<List<BiDashboardDO>> getDashboardList() { |
| | | return success(dashboardService.getDashboardList()); |
| | | } |
| | |
| | | @Operation(summary = "è·åä»ªè¡¨çæ°æ®") |
| | | @Parameter(name = "dashboardCode", description = "仪表çç¼ç ", required = true, |
| | | example = "purchase_sales") |
| | | @PreAuthorize("@ss.hasPermission('bi:dashboard:query')") |
| | | public CommonResult<List<Map<String, Object>>> getDashboardData( |
| | | @PathVariable("dashboardCode") String dashboardCode, |
| | | @RequestBody(required = false) Map<String, Object> params) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ä¸å¡éä»¶é
ç½®") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('bpm:business-attach:query')") |
| | | public CommonResult<BpmBusinessAttachRespVO> getBusinessAttach(@RequestParam("id") Long id) { |
| | | BpmBusinessAttachDO attach = businessAttachService.getBusinessAttach(id); |
| | | return success(BeanUtils.toBean(attach, BpmBusinessAttachRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ä¸å¡éä»¶é
ç½®å页") |
| | | @PreAuthorize("@ss.hasPermission('bpm:business-attach:query')") |
| | | public CommonResult<PageResult<BpmBusinessAttachRespVO>> getBusinessAttachPage(@Valid BpmBusinessAttachPageReqVO pageReqVO) { |
| | | PageResult<BpmBusinessAttachDO> pageResult = businessAttachService.getBusinessAttachPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, BpmBusinessAttachRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æµç¨åç±»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('bpm:category:query')") |
| | | public CommonResult<BpmCategoryRespVO> getCategory(@RequestParam("id") Long id) { |
| | | BpmCategoryDO category = categoryService.getCategory(id); |
| | | return success(BeanUtils.toBean(category, BpmCategoryRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æµç¨åç±»å页") |
| | | @PreAuthorize("@ss.hasPermission('bpm:category:query')") |
| | | public CommonResult<PageResult<BpmCategoryRespVO>> getCategoryPage(@Valid BpmCategoryPageReqVO pageReqVO) { |
| | | PageResult<BpmCategoryDO> pageResult = categoryService.getCategoryPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, BpmCategoryRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å¨æè¡¨å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('bpm:form:query')") |
| | | public CommonResult<BpmFormRespVO> getForm(@RequestParam("id") Long id) { |
| | | BpmFormDO form = formService.getForm(id); |
| | | return success(BeanUtils.toBean(form, BpmFormRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å¨æè¡¨åå页") |
| | | @PreAuthorize("@ss.hasPermission('bpm:form:query')") |
| | | public CommonResult<PageResult<BpmFormRespVO>> getFormPage(@Valid BpmFormPageReqVO pageVO) { |
| | | PageResult<BpmFormDO> pageResult = formService.getFormPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, BpmFormRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æ¨¡å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('bpm:model:query')") |
| | | public CommonResult<BpmModelRespVO> getModel(@RequestParam("id") String id) { |
| | | Model model = modelService.getModel(id); |
| | | if (model == null) { |
| | |
| | | |
| | | @GetMapping("/global") |
| | | @Operation(summary = "è·å¾å
¨å±å
å®¡æ¹æ»å¼å
³ç¶æ") |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-auto-approve:query')") |
| | | public CommonResult<Boolean> getGlobalAutoApprove() { |
| | | return success(processAutoApproveService.isGlobalAutoApprove()); |
| | | } |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾å
¨é¨å
审æ¹é
ç½®", description = "ä¾åç«¯ä¸æ¬¡æ§æåãæµç¨ Key -> æ¯å¦å
审æ¹ãçæ å°") |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-auto-approve:query')") |
| | | public CommonResult<List<BpmProcessAutoApproveConfigRespVO>> getConfigList() { |
| | | List<BpmProcessAutoApproveConfigDO> list = processAutoApproveService.getConfigList(); |
| | | return success(BeanUtils.toBean(list, BpmProcessAutoApproveConfigRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å
审æ¹é
ç½®å页") |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-auto-approve:query')") |
| | | public CommonResult<PageResult<BpmProcessAutoApproveConfigRespVO>> getConfigPage( |
| | | @Valid BpmProcessAutoApproveConfigPageReqVO pageReqVO) { |
| | | PageResult<BpmProcessAutoApproveConfigDO> pageResult = processAutoApproveService.getConfigPage(pageReqVO); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æµç¨å®ä¹å页") |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-definition:query')") |
| | | public CommonResult<PageResult<BpmProcessDefinitionRespVO>> getProcessDefinitionPage( |
| | | BpmProcessDefinitionPageReqVO pageReqVO) { |
| | | PageResult<ProcessDefinition> pageResult = processDefinitionService.getProcessDefinitionPage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æµç¨è¡¨è¾¾å¼") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-expression:query')") |
| | | public CommonResult<BpmProcessExpressionRespVO> getProcessExpression(@RequestParam("id") Long id) { |
| | | BpmProcessExpressionDO processExpression = processExpressionService.getProcessExpression(id); |
| | | return success(BeanUtils.toBean(processExpression, BpmProcessExpressionRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æµç¨è¡¨è¾¾å¼å页") |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-expression:query')") |
| | | public CommonResult<PageResult<BpmProcessExpressionRespVO>> getProcessExpressionPage( |
| | | @Valid BpmProcessExpressionPageReqVO pageReqVO) { |
| | | PageResult<BpmProcessExpressionDO> pageResult = processExpressionService.getProcessExpressionPage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æµç¨çå¬å¨") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-listener:query')") |
| | | public CommonResult<BpmProcessListenerRespVO> getProcessListener(@RequestParam("id") Long id) { |
| | | BpmProcessListenerDO processListener = processListenerService.getProcessListener(id); |
| | | return success(BeanUtils.toBean(processListener, BpmProcessListenerRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æµç¨çå¬å¨å页") |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-listener:query')") |
| | | public CommonResult<PageResult<BpmProcessListenerRespVO>> getProcessListenerPage( |
| | | @Valid BpmProcessListenerPageReqVO pageReqVO) { |
| | | PageResult<BpmProcessListenerDO> pageResult = processListenerService.getProcessListenerPage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç¨æ·ç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('bpm:user-group:query')") |
| | | public CommonResult<BpmUserGroupRespVO> getUserGroup(@RequestParam("id") Long id) { |
| | | BpmUserGroupDO userGroup = userGroupService.getUserGroup(id); |
| | | return success(BeanUtils.toBean(userGroup, BpmUserGroupRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç¨æ·ç»å页") |
| | | @PreAuthorize("@ss.hasPermission('bpm:user-group:query')") |
| | | public CommonResult<PageResult<BpmUserGroupRespVO>> getUserGroupPage(@Valid BpmUserGroupPageReqVO pageVO) { |
| | | PageResult<BpmUserGroupDO> pageResult = userGroupService.getUserGroupPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, BpmUserGroupRespVO.class)); |
| | |
| | | } |
| | | |
| | | @GetMapping("/get") |
| | | @PreAuthorize("@ss.hasPermission('bpm:oa-leave:query')") |
| | | @Operation(summary = "è·å¾è¯·åç³è¯·") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | public CommonResult<BpmOALeaveRespVO> getLeave(@RequestParam("id") Long id) { |
| | |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @PreAuthorize("@ss.hasPermission('bpm:oa-leave:query')") |
| | | @Operation(summary = "è·å¾è¯·åç³è¯·å页") |
| | | public CommonResult<PageResult<BpmOALeaveRespVO>> getLeavePage(@Valid BpmOALeavePageReqVO pageVO) { |
| | | PageResult<BpmOALeaveDO> pageResult = leaveService.getLeavePage(getLoginUserId(), pageVO); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·åéç¥å
¬åå页å表") |
| | | @PreAuthorize("@ss.hasPermission('bpm:oa-notice:query')") |
| | | public CommonResult<PageResult<OaNoticeRespVO>> getNoticePage(@Valid OaNoticePageReqVO pageReqVO) { |
| | | PageResult<OaNoticeDO> pageResult = oaNoticeService.getNoticePage(getLoginUserId(), pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, OaNoticeRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·åéç¥å
¬å详æ
") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('bpm:oa-notice:query')") |
| | | public CommonResult<OaNoticeRespVO> getNotice(@RequestParam("id") Long id) { |
| | | OaNoticeDO notice = oaNoticeService.getNotice(id, getLoginUserId()); |
| | | return success(BeanUtils.toBean(notice, OaNoticeRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/my-page") |
| | | @Operation(summary = "è·å¾æçå®ä¾å页å表", description = "å¨ãæçæµç¨ãèåä¸ï¼è¿è¡è°ç¨") |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-instance:query')") |
| | | public CommonResult<PageResult<BpmProcessInstanceRespVO>> getProcessInstanceMyPage( |
| | | @Valid BpmProcessInstancePageReqVO pageReqVO) { |
| | | PageResult<HistoricProcessInstance> pageResult = processInstanceService.getProcessInstancePage( |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æå®æµç¨å®ä¾", description = "å¨ãæµç¨è¯¦ç»ãçé¢ä¸ï¼è¿è¡è°ç¨") |
| | | @Parameter(name = "id", description = "æµç¨å®ä¾çç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-instance:query')") |
| | | public CommonResult<BpmProcessInstanceRespVO> getProcessInstance(@RequestParam("id") String id) { |
| | | HistoricProcessInstance processInstance = processInstanceService.getHistoricProcessInstance(id); |
| | | if (processInstance == null) { |
| | |
| | | @GetMapping("/get-approval-detail") |
| | | @Operation(summary = "è·å¾å®¡æ¹è¯¦æ
") |
| | | @Parameter(name = "id", description = "æµç¨å®ä¾çç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-instance:query')") |
| | | @SuppressWarnings("unchecked") |
| | | public CommonResult<BpmApprovalDetailRespVO> getApprovalDetail(@Valid BpmApprovalDetailReqVO reqVO) { |
| | | if (StrUtil.isNotEmpty(reqVO.getProcessVariablesStr())) { |
| | |
| | | |
| | | @GetMapping("/get-next-approval-nodes") |
| | | @Operation(summary = "è·åä¸ä¸ä¸ªæ§è¡çæµç¨èç¹") |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-instance:query')") |
| | | @SuppressWarnings("unchecked") |
| | | public CommonResult<List<BpmApprovalDetailRespVO.ActivityNode>> getNextApprovalNodes(@Valid BpmApprovalDetailReqVO reqVO) { |
| | | if (StrUtil.isNotEmpty(reqVO.getProcessVariablesStr())) { |
| | |
| | | @GetMapping("/get-bpmn-model-view") |
| | | @Operation(summary = "è·åæµç¨å®ä¾ç BPMN 模åè§å¾", description = "å¨ãæµç¨è¯¦ç»ãçé¢ä¸ï¼è¿è¡è°ç¨") |
| | | @Parameter(name = "id", description = "æµç¨å®ä¾çç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-instance:query')") |
| | | public CommonResult<BpmProcessInstanceBpmnModelViewRespVO> getProcessInstanceBpmnModelView( |
| | | @RequestParam(value = "id") String id) { |
| | | return success(processInstanceService.getProcessInstanceBpmnModelView(id)); |
| | |
| | | @GetMapping("/get-print-data") |
| | | @Operation(summary = "è·å¾æµç¨å®ä¾çæå°æ°æ®") |
| | | @Parameter(name = "id", description = "æµç¨å®ä¾çç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-instance:query')") |
| | | public CommonResult<BpmProcessPrintDataRespVO> getProcessInstancePrintData( |
| | | @RequestParam("processInstanceId") String processInstanceId) { |
| | | HistoricProcessInstance historicProcessInstance = processInstanceService.getHistoricProcessInstance(processInstanceId); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æéæµç¨å页å表") |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-instance-cc:query')") |
| | | public CommonResult<PageResult<BpmProcessInstanceCopyRespVO>> getProcessInstanceCopyPage( |
| | | @Valid BpmProcessInstanceCopyPageReqVO pageReqVO) { |
| | | PageResult<BpmProcessInstanceCopyDO> pageResult = processInstanceCopyService.getProcessInstanceCopyPage( |
| | |
| | | |
| | | @GetMapping("todo-page") |
| | | @Operation(summary = "è·å Todo å¾
åä»»å¡å页") |
| | | @PreAuthorize("@ss.hasPermission('bpm:task:query')") |
| | | public CommonResult<PageResult<BpmTaskRespVO>> getTaskTodoPage(@Valid BpmTaskPageReqVO pageVO) { |
| | | PageResult<Task> pageResult = taskService.getTaskTodoPage(getLoginUserId(), pageVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |
| | |
| | | |
| | | @GetMapping("done-page") |
| | | @Operation(summary = "è·å Done å·²åä»»å¡å页") |
| | | @PreAuthorize("@ss.hasPermission('bpm:task:query')") |
| | | public CommonResult<PageResult<BpmTaskRespVO>> getTaskDonePage(@Valid BpmTaskPageReqVO pageVO) { |
| | | PageResult<HistoricTaskInstance> pageResult = taskService.getTaskDonePage(getLoginUserId(), pageVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |
| | |
| | | @GetMapping("/list-by-process-instance-id") |
| | | @Operation(summary = "è·å¾æå®æµç¨å®ä¾çä»»å¡å表", description = "å
æ¬å®æçãæªå®æç") |
| | | @Parameter(name = "processInstanceId", description = "æµç¨å®ä¾çç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('bpm:task:query')") |
| | | public CommonResult<List<BpmTaskRespVO>> getTaskListByProcessInstanceId( |
| | | @RequestParam("processInstanceId") String processInstanceId) { |
| | | List<HistoricTaskInstance> taskList = taskService.getTaskListByProcessInstanceId(processInstanceId, true); |
| | |
| | | @GetMapping("/list-by-parent-task-id") |
| | | @Operation(summary = "è·å¾æå®ç¶çº§ä»»å¡çåä»»å¡å表") // ç®åç¨äºï¼åç¾çæ¶åï¼è·å¾åä»»å¡å表 |
| | | @Parameter(name = "parentTaskId", description = "ç¶çº§ä»»å¡ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('bpm:task:query')") |
| | | public CommonResult<List<BpmTaskRespVO>> getTaskListByParentTaskId(@RequestParam("parentTaskId") String parentTaskId) { |
| | | List<Task> taskList = taskService.getTaskListByParentTaskId(parentTaskId); |
| | | if (CollUtil.isEmpty(taskList)) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾åæº") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:business:query')") |
| | | public CommonResult<CrmBusinessRespVO> getBusiness(@RequestParam("id") Long id) { |
| | | CrmBusinessDO business = businessService.getBusiness(id); |
| | | return success(buildBusinessDetail(business)); |
| | |
| | | |
| | | @GetMapping("/simple-all-list") |
| | | @Operation(summary = "è·å¾åæºçç²¾ç®å表") |
| | | @PreAuthorize("@ss.hasPermission('crm:business:query')") |
| | | public CommonResult<List<CrmBusinessRespVO>> getSimpleContactList() { |
| | | CrmBusinessPageReqVO reqVO = new CrmBusinessPageReqVO(); |
| | | reqVO.setPageSize(PAGE_SIZE_NONE); // ä¸å页 |
| | |
| | | @GetMapping("/list-by-customer") |
| | | @Operation(summary = "è·å¾åæºå表ï¼åºäºæå®å®¢æ·") |
| | | @Parameter(name = "customerId", description = "客æ·ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('crm:business:query')") |
| | | public CommonResult<List<CrmBusinessRespVO>> getBusinessListByCustomer(@RequestParam("customerId") Long customerId) { |
| | | List<CrmBusinessDO> list = businessService.getBusinessListByCustomerId(customerId); |
| | | return success(convertList(list, business -> // åªè¿å idãname åæ®µ |
| | |
| | | @GetMapping("/list-by-contact") |
| | | @Operation(summary = "è·å¾åæºå表ï¼åºäºæå®è系人") |
| | | @Parameter(name = "contactId", description = "è系人ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('crm:business:query')") |
| | | public CommonResult<List<CrmBusinessRespVO>> getBusinessListByContact(@RequestParam("contactId") Long contactId) { |
| | | List<CrmBusinessDO> list = businessService.getBusinessListByContact(contactId); |
| | | return success(buildBusinessDetailList(list)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾åæºå页") |
| | | @PreAuthorize("@ss.hasPermission('crm:business:query')") |
| | | public CommonResult<PageResult<CrmBusinessRespVO>> getBusinessPage(@Valid CrmBusinessPageReqVO pageVO) { |
| | | PageResult<CrmBusinessDO> pageResult = businessService.getBusinessPage(pageVO, getLoginUserId()); |
| | | return success(new PageResult<>(buildBusinessDetailList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/page-by-contact") |
| | | @Operation(summary = "è·å¾è系人çåæºå页") |
| | | @PreAuthorize("@ss.hasPermission('crm:business:query')") |
| | | public CommonResult<PageResult<CrmBusinessRespVO>> getBusinessContactPage(@Valid CrmBusinessPageReqVO pageReqVO) { |
| | | PageResult<CrmBusinessDO> pageResult = businessService.getBusinessPageByContact(pageReqVO); |
| | | return success(new PageResult<>(buildBusinessDetailList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾åæºç¶æ") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:business-status:query')") |
| | | public CommonResult<CrmBusinessStatusRespVO> getBusinessStatusType(@RequestParam("id") Long id) { |
| | | CrmBusinessStatusTypeDO statusType = businessStatusTypeService.getBusinessStatusType(id); |
| | | if (statusType == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾åæºç¶æå页") |
| | | @PreAuthorize("@ss.hasPermission('crm:business-status:query')") |
| | | public CommonResult<PageResult<CrmBusinessStatusRespVO>> getBusinessStatusPage(@Valid PageParam pageReqVO) { |
| | | // 1. æ¥è¯¢æ°æ® |
| | | PageResult<CrmBusinessStatusTypeDO> pageResult = businessStatusTypeService.getBusinessStatusTypePage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾çº¿ç´¢") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:clue:query')") |
| | | public CommonResult<CrmClueRespVO> getClue(@RequestParam("id") Long id) { |
| | | CrmClueDO clue = clueService.getClue(id); |
| | | return success(buildClueDetail(clue)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾çº¿ç´¢å页") |
| | | @PreAuthorize("@ss.hasPermission('crm:clue:query')") |
| | | public CommonResult<PageResult<CrmClueRespVO>> getCluePage(@Valid CrmCluePageReqVO pageVO) { |
| | | PageResult<CrmClueDO> pageResult = clueService.getCluePage(pageVO, getLoginUserId()); |
| | | return success(new PageResult<>(buildClueDetailList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/follow-count") |
| | | @Operation(summary = "è·å¾åé
ç»æçãå¾
è·è¿ç线索æ°é") |
| | | @PreAuthorize("@ss.hasPermission('crm:clue:query')") |
| | | public CommonResult<Long> getFollowClueCount() { |
| | | return success(clueService.getFollowClueCount(getLoginUserId())); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è系人") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:contact:query')") |
| | | public CommonResult<CrmContactRespVO> getContact(@RequestParam("id") Long id) { |
| | | CrmContactDO contact = contactService.getContact(id); |
| | | return success(buildContactDetail(contact)); |
| | |
| | | |
| | | @GetMapping("/simple-all-list") |
| | | @Operation(summary = "è·å¾è系人çç²¾ç®å表") |
| | | @PreAuthorize("@ss.hasPermission('crm:contact:query')") |
| | | public CommonResult<List<CrmContactRespVO>> getSimpleContactList() { |
| | | List<CrmContactDO> list = contactService.getContactList(getLoginUserId()); |
| | | return success(convertList(list, contact -> // åªè¿å idãname åæ®µ |
| | |
| | | @GetMapping("/list-by-customer") |
| | | @Operation(summary = "è·å¾è系人å表ï¼åºäºæå®å®¢æ·") |
| | | @Parameter(name = "customerId", description = "客æ·ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('crm:contact:query')") |
| | | public CommonResult<List<CrmContactRespVO>> getContactListByCustomer(@RequestParam("customerId") Long customerId) { |
| | | List<CrmContactDO> list = contactService.getContactListByCustomerId(customerId); |
| | | return success(convertList(list, contact -> // åªè¿å idãname åæ®µ |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è系人å页") |
| | | @PreAuthorize("@ss.hasPermission('crm:contact:query')") |
| | | public CommonResult<PageResult<CrmContactRespVO>> getContactPage(@Valid CrmContactPageReqVO pageVO) { |
| | | PageResult<CrmContactDO> pageResult = contactService.getContactPage(pageVO, getLoginUserId()); |
| | | return success(new PageResult<>(buildContactDetailList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·åååé
ç½®") |
| | | @PreAuthorize("@ss.hasPermission('crm:contract-config:query')") |
| | | public CommonResult<CrmContractConfigRespVO> getCustomerPoolConfig() { |
| | | CrmContractConfigDO config = contractConfigService.getContractConfig(); |
| | | return success(BeanUtils.toBean(config, CrmContractConfigRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾åå") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:contract:query')") |
| | | public CommonResult<CrmContractRespVO> getContract(@RequestParam("id") Long id) { |
| | | CrmContractDO contract = contractService.getContract(id); |
| | | return success(buildContractDetail(contract)); |
| | |
| | | |
| | | @GetMapping("/download-document") |
| | | @Operation(summary = "æè´éå忍¡æ¿ä¸è½½åå Word æä»¶") |
| | | @PreAuthorize("@ss.hasPermission('crm:contract:query')") |
| | | public void downloadDocument(@RequestParam("id") Long id, HttpServletResponse response) throws IOException { |
| | | // getContract å
å«ååæ°æ®æéæ ¡éªï¼æ²¿ç¨è¯¦æ
页ç产åãåä½å客æ·ä¿¡æ¯ã |
| | | CrmContractRespVO contract = buildContractDetail(contractService.getContract(id)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ååå页") |
| | | @PreAuthorize("@ss.hasPermission('crm:contract:query')") |
| | | public CommonResult<PageResult<CrmContractRespVO>> getContractPage(@Valid CrmContractPageReqVO pageVO) { |
| | | PageResult<CrmContractDO> pageResult = contractService.getContractPage(pageVO, getLoginUserId()); |
| | | return success(BeanUtils.toBean(pageResult, CrmContractRespVO.class).setList(buildContractDetailList(pageResult.getList()))); |
| | |
| | | |
| | | @GetMapping("/approve-process-list") |
| | | @Operation(summary = "è·åååå®¡æ¹æµç¨å表") |
| | | @PreAuthorize("@ss.hasPermission('crm:contract:query')") |
| | | public CommonResult<List<Map<String, Object>>> getContractApproveProcessList() { |
| | | return success(contractService.getContractApproveProcessDefinitionList()); |
| | | } |
| | |
| | | |
| | | @GetMapping("/audit-count") |
| | | @Operation(summary = "è·å¾å¾
å®¡æ ¸ååæ°é") |
| | | @PreAuthorize("@ss.hasPermission('crm:contract:query')") |
| | | public CommonResult<Long> getAuditContractCount() { |
| | | return success(contractService.getAuditContractCount(getLoginUserId())); |
| | | } |
| | | |
| | | @GetMapping("/remind-count") |
| | | @Operation(summary = "è·å¾å³å°å°æï¼æéï¼çååæ°é") |
| | | @PreAuthorize("@ss.hasPermission('crm:contract:query')") |
| | | public CommonResult<Long> getRemindContractCount() { |
| | | return success(contractService.getRemindContractCount(getLoginUserId())); |
| | | } |
| | |
| | | @GetMapping("/simple-list") |
| | | @Operation(summary = "è·å¾ååç²¾ç®å表", description = "åªå
å«çååï¼ä¸»è¦ç¨äºå端ç䏿é项") |
| | | @Parameter(name = "customerId", description = "客æ·ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('crm:contract:query')") |
| | | public CommonResult<List<CrmContractRespVO>> getContractSimpleList(@RequestParam("customerId") Long customerId) { |
| | | CrmContractPageReqVO pageReqVO = new CrmContractPageReqVO().setCustomerId(customerId); |
| | | pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); // ä¸å页 |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å®¢æ·") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:customer:query')") |
| | | public CommonResult<CrmCustomerRespVO> getCustomer(@RequestParam("id") Long id) { |
| | | // 1. è·åå®¢æ· |
| | | CrmCustomerDO customer = customerService.getCustomer(id); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å®¢æ·å页") |
| | | @PreAuthorize("@ss.hasPermission('crm:customer:query')") |
| | | public CommonResult<PageResult<CrmCustomerRespVO>> getCustomerPage(@Valid CrmCustomerPageReqVO pageVO) { |
| | | // 1. æ¥è¯¢å®¢æ·å页 |
| | | PageResult<CrmCustomerDO> pageResult = customerService.getCustomerPage(pageVO, getLoginUserId()); |
| | |
| | | |
| | | @GetMapping("/put-pool-remind-page") |
| | | @Operation(summary = "è·å¾å¾
è¿å
¥å
¬æµ·å®¢æ·å页") |
| | | @PreAuthorize("@ss.hasPermission('crm:customer:query')") |
| | | public CommonResult<PageResult<CrmCustomerRespVO>> getPutPoolRemindCustomerPage(@Valid CrmCustomerPageReqVO pageVO) { |
| | | // 1. æ¥è¯¢å®¢æ·å页 |
| | | PageResult<CrmCustomerDO> pageResult = customerService.getPutPoolRemindCustomerPage(pageVO, getLoginUserId()); |
| | |
| | | |
| | | @GetMapping("/put-pool-remind-count") |
| | | @Operation(summary = "è·å¾å¾
è¿å
¥å
¬æµ·å®¢æ·æ°é") |
| | | @PreAuthorize("@ss.hasPermission('crm:customer:query')") |
| | | public CommonResult<Long> getPutPoolRemindCustomerCount() { |
| | | return success(customerService.getPutPoolRemindCustomerCount(getLoginUserId())); |
| | | } |
| | | |
| | | @GetMapping("/today-contact-count") |
| | | @Operation(summary = "è·å¾ä»æ¥éèç³»å®¢æ·æ°é") |
| | | @PreAuthorize("@ss.hasPermission('crm:customer:query')") |
| | | public CommonResult<Long> getTodayContactCustomerCount() { |
| | | return success(customerService.getTodayContactCustomerCount(getLoginUserId())); |
| | | } |
| | | |
| | | @GetMapping("/follow-count") |
| | | @Operation(summary = "è·å¾åé
ç»æãå¾
è·è¿ç线索æ°éçå®¢æ·æ°é") |
| | | @PreAuthorize("@ss.hasPermission('crm:customer:query')") |
| | | public CommonResult<Long> getFollowCustomerCount() { |
| | | return success(customerService.getFollowCustomerCount(getLoginUserId())); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å®¢æ·éå¶é
ç½®") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:customer-limit-config:query')") |
| | | public CommonResult<CrmCustomerLimitConfigRespVO> getCustomerLimitConfig(@RequestParam("id") Long id) { |
| | | CrmCustomerLimitConfigDO limitConfig = customerLimitConfigService.getCustomerLimitConfig(id); |
| | | // æ¼æ¥æ°æ® |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å®¢æ·éå¶é
ç½®å页") |
| | | @PreAuthorize("@ss.hasPermission('crm:customer-limit-config:query')") |
| | | public CommonResult<PageResult<CrmCustomerLimitConfigRespVO>> getCustomerLimitConfigPage(@Valid CrmCustomerLimitConfigPageReqVO pageVO) { |
| | | PageResult<CrmCustomerLimitConfigDO> pageResult = customerLimitConfigService.getCustomerLimitConfigPage(pageVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å客æ·å
¬æµ·è§å设置") |
| | | @PreAuthorize("@ss.hasPermission('crm:customer-pool-config:query')") |
| | | public CommonResult<CrmCustomerPoolConfigRespVO> getCustomerPoolConfig() { |
| | | CrmCustomerPoolConfigDO poolConfig = customerPoolConfigService.getCustomerPoolConfig(); |
| | | return success(BeanUtils.toBean(poolConfig, CrmCustomerPoolConfigRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å¼ç¥¨") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:invoice:query')") |
| | | public CommonResult<CrmInvoiceRespVO> getInvoice(@RequestParam("id") Long id) { |
| | | CrmInvoiceDO invoice = invoiceService.getInvoice(id); |
| | | return success(buildInvoiceDetail(invoice)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å¼ç¥¨å页") |
| | | @PreAuthorize("@ss.hasPermission('crm:invoice:query')") |
| | | public CommonResult<PageResult<CrmInvoiceRespVO>> getInvoicePage(@Valid CrmInvoicePageReqVO pageReqVO) { |
| | | PageResult<CrmInvoiceDO> pageResult = invoiceService.getInvoicePage(pageReqVO, getLoginUserId()); |
| | | return success(new PageResult<>(buildInvoiceDetailList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/audit-count") |
| | | @Operation(summary = "è·å¾å¾
å®¡æ ¸å¼ç¥¨æ°é") |
| | | @PreAuthorize("@ss.hasPermission('crm:invoice:query')") |
| | | public CommonResult<Long> getAuditInvoiceCount() { |
| | | return success(invoiceService.getAuditInvoiceCount(getLoginUserId())); |
| | | } |
| | |
| | | @GetMapping("/simple-list") |
| | | @Operation(summary = "è·å¾å¼ç¥¨ç²¾ç®å表", description = "åªå
å«å®¡æ ¸éè¿ä¸å·²ä¸ä¼ å票éä»¶çå¼ç¥¨ï¼ä¸»è¦ç¨äºå款å建æ¶éæ©å
³èå¼ç¥¨") |
| | | @Parameter(name = "contractId", description = "ååç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('crm:invoice:query')") |
| | | public CommonResult<List<CrmInvoiceRespVO>> getInvoiceSimpleList(@RequestParam("contractId") Long contractId) { |
| | | List<CrmInvoiceDO> invoices = invoiceService.getInvoiceListByContractIdAndStatus(contractId, |
| | | List.of(CrmAuditStatusEnum.APPROVE.getStatus())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾é宿¥ä»·å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:sale-quotation:query')") |
| | | public CommonResult<CrmSaleQuotationRespVO> getSaleQuotation(@RequestParam("id") Long id) { |
| | | CrmSaleQuotationDO saleQuotation = saleQuotationService.getSaleQuotation(id); |
| | | if (saleQuotation == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾é宿¥ä»·åå页") |
| | | @PreAuthorize("@ss.hasPermission('crm:sale-quotation:query')") |
| | | public CommonResult<PageResult<CrmSaleQuotationRespVO>> getSaleQuotationPage(@Valid CrmSaleQuotationPageReqVO pageReqVO) { |
| | | PageResult<CrmSaleQuotationDO> pageResult = saleQuotationService.getSaleQuotationPage(pageReqVO, getLoginUserId()); |
| | | return success(buildSaleQuotationRespVOPageResult(pageResult)); |
| | |
| | | |
| | | @GetMapping("/page-by-customer") |
| | | @Operation(summary = "è·å¾é宿¥ä»·åå页ï¼åºäºå®¢æ·ï¼") |
| | | @PreAuthorize("@ss.hasPermission('crm:sale-quotation:query')") |
| | | public CommonResult<PageResult<CrmSaleQuotationRespVO>> getSaleQuotationPageByCustomerId(@Valid CrmSaleQuotationPageReqVO pageReqVO) { |
| | | PageResult<CrmSaleQuotationDO> pageResult = saleQuotationService.getSaleQuotationPageByCustomerId(pageReqVO); |
| | | return success(buildSaleQuotationRespVOPageResult(pageResult)); |
| | |
| | | |
| | | @GetMapping("/page-by-business") |
| | | @Operation(summary = "è·å¾é宿¥ä»·åå页ï¼åºäºåæºï¼") |
| | | @PreAuthorize("@ss.hasPermission('crm:sale-quotation:query')") |
| | | public CommonResult<PageResult<CrmSaleQuotationRespVO>> getSaleQuotationPageByBusinessId(@Valid CrmSaleQuotationPageReqVO pageReqVO) { |
| | | PageResult<CrmSaleQuotationDO> pageResult = saleQuotationService.getSaleQuotationPageByBusinessId(pageReqVO); |
| | | return success(buildSaleQuotationRespVOPageResult(pageResult)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å款") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:receivable:query')") |
| | | public CommonResult<CrmReceivableRespVO> getReceivable(@RequestParam("id") Long id) { |
| | | CrmReceivableDO receivable = receivableService.getReceivable(id); |
| | | return success(buildReceivableDetail(receivable)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å款å页") |
| | | @PreAuthorize("@ss.hasPermission('crm:receivable:query')") |
| | | public CommonResult<PageResult<CrmReceivableRespVO>> getReceivablePage(@Valid CrmReceivablePageReqVO pageReqVO) { |
| | | PageResult<CrmReceivableDO> pageResult = receivableService.getReceivablePage(pageReqVO, getLoginUserId()); |
| | | return success(new PageResult<>(buildReceivableDetailList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/audit-count") |
| | | @Operation(summary = "è·å¾å¾
å®¡æ ¸åæ¬¾æ°é") |
| | | @PreAuthorize("@ss.hasPermission('crm:receivable:query')") |
| | | public CommonResult<Long> getAuditReceivableCount() { |
| | | return success(receivableService.getAuditReceivableCount(getLoginUserId())); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å款计å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:receivable-plan:query')") |
| | | public CommonResult<CrmReceivablePlanRespVO> getReceivablePlan(@RequestParam("id") Long id) { |
| | | CrmReceivablePlanDO receivablePlan = receivablePlanService.getReceivablePlan(id); |
| | | return success(buildReceivablePlanDetail(receivablePlan)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å款计åå页") |
| | | @PreAuthorize("@ss.hasPermission('crm:receivable-plan:query')") |
| | | public CommonResult<PageResult<CrmReceivablePlanRespVO>> getReceivablePlanPage(@Valid CrmReceivablePlanPageReqVO pageReqVO) { |
| | | PageResult<CrmReceivablePlanDO> pageResult = receivablePlanService.getReceivablePlanPage(pageReqVO, getLoginUserId()); |
| | | return success(new PageResult<>(buildReceivableDetailList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @Parameter(name = "customerId", description = "客æ·ç¼å·", required = true), |
| | | @Parameter(name = "contractId", description = "ååç¼å·", required = true) |
| | | }) |
| | | @PreAuthorize("@ss.hasPermission('crm:receivable-plan:query')") |
| | | public CommonResult<List<CrmReceivablePlanRespVO>> getReceivablePlanSimpleList(@RequestParam("customerId") Long customerId, |
| | | @RequestParam("contractId") Long contractId) { |
| | | CrmReceivablePlanPageReqVO pageReqVO = new CrmReceivablePlanPageReqVO().setCustomerId(customerId).setContractId(contractId); |
| | |
| | | |
| | | @GetMapping("/remind-count") |
| | | @Operation(summary = "è·å¾å¾
忬¾æéæ°é") |
| | | @PreAuthorize("@ss.hasPermission('crm:receivable-plan:query')") |
| | | public CommonResult<Long> getReceivablePlanRemindCount() { |
| | | return success(receivablePlanService.getReceivablePlanRemindCount(getLoginUserId())); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éå®ç®æ ", description = "å«å®é
è¾¾æä¸è¾¾æç") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('crm:sales-target:query')") |
| | | public CommonResult<CrmSalesTargetRespVO> getSalesTarget(@RequestParam("id") Long id) { |
| | | return success(salesTargetService.getSalesTarget(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éå®ç®æ å页", description = "å«å®é
è¾¾æä¸è¾¾æç") |
| | | @PreAuthorize("@ss.hasPermission('crm:sales-target:query')") |
| | | public CommonResult<PageResult<CrmSalesTargetRespVO>> getSalesTargetPage(@Valid CrmSalesTargetPageReqVO pageReqVO) { |
| | | return success(salesTargetService.getSalesTargetPage(pageReqVO)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/get-achievement-analysis") |
| | | @Operation(summary = "è·å¾éå®ç®æ è¾¾æåæ", description = "æå¨æ + ç»´åº¦è¿æ»¤ç®æ ï¼è¿åç®æ vs å®é
+ è¾¾æç") |
| | | @PreAuthorize("@ss.hasPermission('crm:sales-target:query')") |
| | | public CommonResult<List<CrmSalesTargetRespVO>> getSalesTargetAnalysis(@Valid CrmSalesTargetAnalysisReqVO reqVO) { |
| | | return success(salesTargetService.getSalesTargetAnalysis(reqVO)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/get-customer-summary-by-date") |
| | | @Operation(summary = "è·åå®¢æ·æ»éåæ(ææ¥æ)") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')") |
| | | public CommonResult<List<CrmStatisticsCustomerSummaryByDateRespVO>> getCustomerSummaryByDate(@Valid CrmStatisticsCustomerReqVO reqVO) { |
| | | return success(customerService.getCustomerSummaryByDate(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-customer-summary-by-user") |
| | | @Operation(summary = "è·åå®¢æ·æ»éåæ(æç¨æ·)") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')") |
| | | public CommonResult<List<CrmStatisticsCustomerSummaryByUserRespVO>> getCustomerSummaryByUser(@Valid CrmStatisticsCustomerReqVO reqVO) { |
| | | return success(customerService.getCustomerSummaryByUser(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-follow-up-summary-by-date") |
| | | @Operation(summary = "è·å客æ·è·è¿æ¬¡æ°åæ(ææ¥æ)") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')") |
| | | public CommonResult<List<CrmStatisticsFollowUpSummaryByDateRespVO>> getFollowupSummaryByDate(@Valid CrmStatisticsCustomerReqVO reqVO) { |
| | | return success(customerService.getFollowUpSummaryByDate(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-follow-up-summary-by-user") |
| | | @Operation(summary = "è·å客æ·è·è¿æ¬¡æ°åæ(æç¨æ·)") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')") |
| | | public CommonResult<List<CrmStatisticsFollowUpSummaryByUserRespVO>> getFollowUpSummaryByUser(@Valid CrmStatisticsCustomerReqVO reqVO) { |
| | | return success(customerService.getFollowUpSummaryByUser(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-follow-up-summary-by-type") |
| | | @Operation(summary = "è·å客æ·è·è¿æ¬¡æ°åæ(æç±»å)") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')") |
| | | public CommonResult<List<CrmStatisticsFollowUpSummaryByTypeRespVO>> getFollowUpSummaryByType(@Valid CrmStatisticsCustomerReqVO reqVO) { |
| | | return success(customerService.getFollowUpSummaryByType(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-contract-summary") |
| | | @Operation(summary = "è·å客æ·ç馿¬¡ååã忬¾ä¿¡æ¯å表", description = "ç¨äºã客æ·è½¬åçã页é¢") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')") |
| | | public CommonResult<List<CrmStatisticsCustomerContractSummaryRespVO>> getContractSummary(@Valid CrmStatisticsCustomerReqVO reqVO) { |
| | | return success(customerService.getContractSummary(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-pool-summary-by-date") |
| | | @Operation(summary = "è·åå
¬æµ·å®¢æ·åæ(ææ¥æ)") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')") |
| | | public CommonResult<List<CrmStatisticsPoolSummaryByDateRespVO>> getPoolSummaryByDate(@Valid CrmStatisticsCustomerReqVO reqVO) { |
| | | return success(customerService.getPoolSummaryByDate(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-pool-summary-by-user") |
| | | @Operation(summary = "è·åå
¬æµ·å®¢æ·åæ(æç¨æ·)") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')") |
| | | public CommonResult<List<CrmStatisticsPoolSummaryByUserRespVO>> getPoolSummaryByUser(@Valid CrmStatisticsCustomerReqVO reqVO) { |
| | | return success(customerService.getPoolSummaryByUser(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-customer-deal-cycle-by-date") |
| | | @Operation(summary = "è·åå®¢æ·æäº¤å¨æ(ææ¥æ)") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')") |
| | | public CommonResult<List<CrmStatisticsCustomerDealCycleByDateRespVO>> getCustomerDealCycleByDate(@Valid CrmStatisticsCustomerReqVO reqVO) { |
| | | return success(customerService.getCustomerDealCycleByDate(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-customer-deal-cycle-by-user") |
| | | @Operation(summary = "è·åå®¢æ·æäº¤å¨æ(æç¨æ·)") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')") |
| | | public CommonResult<List<CrmStatisticsCustomerDealCycleByUserRespVO>> getCustomerDealCycleByUser(@Valid CrmStatisticsCustomerReqVO reqVO) { |
| | | return success(customerService.getCustomerDealCycleByUser(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-customer-deal-cycle-by-area") |
| | | @Operation(summary = "è·åå®¢æ·æäº¤å¨æ(æç¨æ·)") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')") |
| | | public CommonResult<List<CrmStatisticsCustomerDealCycleByAreaRespVO>> getCustomerDealCycleByArea(@Valid CrmStatisticsCustomerReqVO reqVO) { |
| | | return success(customerService.getCustomerDealCycleByArea(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-customer-deal-cycle-by-product") |
| | | @Operation(summary = "è·åå®¢æ·æäº¤å¨æ(æç¨æ·)") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-customer:query')") |
| | | public CommonResult<List<CrmStatisticsCustomerDealCycleByProductRespVO>> getCustomerDealCycleByProduct(@Valid CrmStatisticsCustomerReqVO reqVO) { |
| | | return success(customerService.getCustomerDealCycleByProduct(reqVO)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/get-funnel-summary") |
| | | @Operation(summary = "è·åé宿¼æç»è®¡æ°æ®", description = "ç¨äºãé宿¼æã页é¢çãé宿¼æåæã") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-funnel:query')") |
| | | public CommonResult<CrmStatisticFunnelSummaryRespVO> getFunnelSummary(@Valid CrmStatisticsFunnelReqVO reqVO) { |
| | | return success(funnelService.getFunnelSummary(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-business-summary-by-end-status") |
| | | @Operation(summary = "è·ååæºç»æç¶æç»è®¡", description = "ç¨äºãé宿¼æã页é¢çãé宿¼æåæã") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-funnel:query')") |
| | | public CommonResult<List<CrmStatisticsBusinessSummaryByEndStatusRespVO>> getBusinessSummaryByEndStatus(@Valid CrmStatisticsFunnelReqVO reqVO) { |
| | | return success(funnelService.getBusinessSummaryByEndStatus(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-business-summary-by-date") |
| | | @Operation(summary = "è·åæ°å¢åæºåæ(ææ¥æ)", description = "ç¨äºãé宿¼æã页é¢") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-funnel:query')") |
| | | public CommonResult<List<CrmStatisticsBusinessSummaryByDateRespVO>> getBusinessSummaryByDate(@Valid CrmStatisticsFunnelReqVO reqVO) { |
| | | return success(funnelService.getBusinessSummaryByDate(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-business-inversion-rate-summary-by-date") |
| | | @Operation(summary = "è·ååæºè½¬åçåæ(ææ¥æ)", description = "ç¨äºãé宿¼æã页é¢") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-funnel:query')") |
| | | public CommonResult<List<CrmStatisticsBusinessInversionRateSummaryByDateRespVO>> getBusinessInversionRateSummaryByDate(@Valid CrmStatisticsFunnelReqVO reqVO) { |
| | | return success(funnelService.getBusinessInversionRateSummaryByDate(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-business-page-by-date") |
| | | @Operation(summary = "è·å¾åæºå页(ææ¥æ)", description = "ç¨äºãé宿¼æã页é¢çãæ°å¢åæºåæã") |
| | | @PreAuthorize("@ss.hasPermission('crm:business:query')") |
| | | public CommonResult<PageResult<CrmBusinessRespVO>> getBusinessPageByDate(@Valid CrmStatisticsFunnelReqVO pageVO) { |
| | | PageResult<CrmBusinessDO> pageResult = funnelService.getBusinessPageByDate(pageVO); |
| | | return success(new PageResult<>(buildBusinessDetailList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/get-contract-count-performance") |
| | | @Operation(summary = "ååæ°éç»è®¡", description = "ç¨äºãååæ°éåæã页é¢") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-performance:query')") |
| | | public CommonResult<List<CrmStatisticsPerformanceRespVO>> getContractCountPerformance(@Valid CrmStatisticsPerformanceReqVO performanceReqVO) { |
| | | return success(performanceService.getContractCountPerformance(performanceReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-contract-price-performance") |
| | | @Operation(summary = "ååéé¢ç»è®¡") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-performance:query')") |
| | | public CommonResult<List<CrmStatisticsPerformanceRespVO>> getContractPriceStaffPerformance(@Valid CrmStatisticsPerformanceReqVO performanceReqVO) { |
| | | return success(performanceService.getContractPricePerformance(performanceReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-receivable-price-performance") |
| | | @Operation(summary = "忬¾éé¢ç»è®¡") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-performance:query')") |
| | | public CommonResult<List<CrmStatisticsPerformanceRespVO>> getReceivablePriceStaffPerformance(@Valid CrmStatisticsPerformanceReqVO performanceReqVO) { |
| | | return success(performanceService.getReceivablePricePerformance(performanceReqVO)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/get-customer-area-summary") |
| | | @Operation(summary = "è·å客æ·å°åºç»è®¡æ°æ®", description = "ç¨äºãåå¸åå¸åæã页é¢") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-portrait:query')") |
| | | public CommonResult<List<CrmStatisticCustomerAreaRespVO>> getCustomerAreaSummary(@Valid CrmStatisticsPortraitReqVO reqVO) { |
| | | return success(statisticsPortraitService.getCustomerSummaryByArea(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-customer-industry-summary") |
| | | @Operation(summary = "è·å客æ·è¡ä¸ç»è®¡æ°æ®", description = "ç¨äºã客æ·è¡ä¸åæã页é¢") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-portrait:query')") |
| | | public CommonResult<List<CrmStatisticCustomerIndustryRespVO>> getCustomerIndustrySummary(@Valid CrmStatisticsPortraitReqVO reqVO) { |
| | | return success(statisticsPortraitService.getCustomerSummaryByIndustry(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-customer-level-summary") |
| | | @Operation(summary = "è·å客æ·çº§å«ç»è®¡æ°æ®", description = "ç¨äºã客æ·çº§å«åæã页é¢") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-portrait:query')") |
| | | public CommonResult<List<CrmStatisticCustomerLevelRespVO>> getCustomerLevelSummary(@Valid CrmStatisticsPortraitReqVO reqVO) { |
| | | return success(statisticsPortraitService.getCustomerSummaryByLevel(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-customer-source-summary") |
| | | @Operation(summary = "è·åå®¢æ·æ¥æºç»è®¡æ°æ®", description = "ç¨äºãå®¢æ·æ¥æºåæã页é¢") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-portrait:query')") |
| | | public CommonResult<List<CrmStatisticCustomerSourceRespVO>> getCustomerSourceSummary(@Valid CrmStatisticsPortraitReqVO reqVO) { |
| | | return success(statisticsPortraitService.getCustomerSummaryBySource(reqVO)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/get-contract-price-rank") |
| | | @Operation(summary = "è·å¾ååéé¢æè¡æ¦") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')") |
| | | public CommonResult<List<CrmStatisticsRankRespVO>> getContractPriceRank(@Valid CrmStatisticsRankReqVO rankingReqVO) { |
| | | return success(rankService.getContractPriceRank(rankingReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-receivable-price-rank") |
| | | @Operation(summary = "è·å¾å款éé¢æè¡æ¦") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')") |
| | | public CommonResult<List<CrmStatisticsRankRespVO>> getReceivablePriceRank(@Valid CrmStatisticsRankReqVO rankingReqVO) { |
| | | return success(rankService.getReceivablePriceRank(rankingReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-contract-count-rank") |
| | | @Operation(summary = "è·å¾ç¾çº¦ååæ°éæè¡æ¦") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')") |
| | | public CommonResult<List<CrmStatisticsRankRespVO>> getContractCountRank(@Valid CrmStatisticsRankReqVO rankingReqVO) { |
| | | return success(rankService.getContractCountRank(rankingReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-product-sales-rank") |
| | | @Operation(summary = "è·å¾äº§åééæè¡æ¦") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')") |
| | | public CommonResult<List<CrmStatisticsRankRespVO>> getProductSalesRank(@Valid CrmStatisticsRankReqVO rankingReqVO) { |
| | | return success(rankService.getProductSalesRank(rankingReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-customer-count-rank") |
| | | @Operation(summary = "è·å¾æ°å¢å®¢æ·æ°æè¡æ¦") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')") |
| | | public CommonResult<List<CrmStatisticsRankRespVO>> getCustomerCountRank(@Valid CrmStatisticsRankReqVO rankingReqVO) { |
| | | return success(rankService.getCustomerCountRank(rankingReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-contacts-count-rank") |
| | | @Operation(summary = "è·å¾æ°å¢èç³»äººæ°æè¡æ¦") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')") |
| | | public CommonResult<List<CrmStatisticsRankRespVO>> getContactsCountRank(@Valid CrmStatisticsRankReqVO rankingReqVO) { |
| | | return success(rankService.getContactsCountRank(rankingReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-follow-count-rank") |
| | | @Operation(summary = "è·å¾è·è¿æ¬¡æ°æè¡æ¦") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')") |
| | | public CommonResult<List<CrmStatisticsRankRespVO>> getFollowCountRank(@Valid CrmStatisticsRankReqVO rankingReqVO) { |
| | | return success(rankService.getFollowCountRank(rankingReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/get-follow-customer-count-rank") |
| | | @Operation(summary = "è·å¾è·è¿å®¢æ·æ°æè¡æ¦") |
| | | @PreAuthorize("@ss.hasPermission('crm:statistics-rank:query')") |
| | | public CommonResult<List<CrmStatisticsRankRespVO>> getFollowCustomerCountRank(@Valid CrmStatisticsRankReqVO rankingReqVO) { |
| | | return success(rankService.getFollowCustomerCountRank(rankingReqVO)); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç»ç®è´¦æ·") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('erp:account:query')") |
| | | public CommonResult<ErpAccountRespVO> getAccount(@RequestParam("id") Long id) { |
| | | ErpAccountDO account = accountService.getAccount(id); |
| | | return success(BeanUtils.toBean(account, ErpAccountRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç»ç®è´¦æ·å页") |
| | | @PreAuthorize("@ss.hasPermission('erp:account:query')") |
| | | public CommonResult<PageResult<ErpAccountRespVO>> getAccountPage(@Valid ErpAccountPageReqVO pageReqVO) { |
| | | PageResult<ErpAccountDO> pageResult = accountService.getAccountPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, ErpAccountRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/approve-process-list") |
| | | @Operation(summary = "è·å仿¬¾åå®¡æ¹æµç¨å表") |
| | | @PreAuthorize("@ss.hasPermission('erp:finance-payment:query')") |
| | | public CommonResult<List<Map<String, Object>>> getApproveProcessList() { |
| | | return success(financePaymentService.getFinancePaymentApproveProcessDefinitionList()); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ä»æ¬¾å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('erp:finance-payment:query')") |
| | | public CommonResult<ErpFinancePaymentRespVO> getFinancePayment(@RequestParam("id") Long id) { |
| | | ErpFinancePaymentDO payment = financePaymentService.getFinancePayment(id); |
| | | if (payment == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ä»æ¬¾åå页") |
| | | @PreAuthorize("@ss.hasPermission('erp:finance-payment:query')") |
| | | public CommonResult<PageResult<ErpFinancePaymentRespVO>> getFinancePaymentPage(@Valid ErpFinancePaymentPageReqVO pageReqVO) { |
| | | PageResult<ErpFinancePaymentDO> pageResult = financePaymentService.getFinancePaymentPage(pageReqVO); |
| | | return success(buildFinancePaymentVOPageResult(pageResult)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æ¶æ¬¾å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('erp:finance-receipt:query')") |
| | | public CommonResult<ErpFinanceReceiptRespVO> getFinanceReceipt(@RequestParam("id") Long id) { |
| | | ErpFinanceReceiptDO receipt = financeReceiptService.getFinanceReceipt(id); |
| | | if (receipt == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æ¶æ¬¾åå页") |
| | | @PreAuthorize("@ss.hasPermission('erp:finance-receipt:query')") |
| | | public CommonResult<PageResult<ErpFinanceReceiptRespVO>> getFinanceReceiptPage(@Valid ErpFinanceReceiptPageReqVO pageReqVO) { |
| | | PageResult<ErpFinanceReceiptDO> pageResult = financeReceiptService.getFinanceReceiptPage(pageReqVO); |
| | | return success(buildFinanceReceiptVOPageResult(pageResult)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æ¥ç¥¨") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-invoice:query')") |
| | | public CommonResult<ErpPurchaseInvoiceRespVO> getPurchaseInvoice(@RequestParam("id") Long id) { |
| | | ErpPurchaseInvoiceDO invoice = invoiceService.getPurchaseInvoice(id); |
| | | return success(buildInvoiceDetail(invoice)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æ¥ç¥¨å页") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-invoice:query')") |
| | | public CommonResult<PageResult<ErpPurchaseInvoiceRespVO>> getPurchaseInvoicePage(@Valid ErpPurchaseInvoicePageReqVO pageReqVO) { |
| | | PageResult<ErpPurchaseInvoiceDO> pageResult = invoiceService.getPurchaseInvoicePage(pageReqVO); |
| | | return success(new PageResult<>(buildInvoiceDetailList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @Operation(summary = "è·å¾æ¥ç¥¨ç²¾ç®å表", description = "åªå
å«å·²ä¸ä¼ å票éä»¶çæ¥ç¥¨ï¼ä¸»è¦ç¨äºä»æ¬¾å建æ¶éæ©å
³èæ¥ç¥¨") |
| | | @Parameter(name = "supplierId", description = "ä¾åºåç¼å·", required = true) |
| | | @Parameter(name = "purchaseOrderId", description = "éè´è®¢åç¼å·ï¼å¯éï¼ç¨äºæè®¢åè¿æ»¤ï¼") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-invoice:query')") |
| | | public CommonResult<List<ErpPurchaseInvoiceRespVO>> getInvoiceSimpleList( |
| | | @RequestParam("supplierId") Long supplierId, |
| | | @RequestParam(value = "purchaseOrderId", required = false) Long purchaseOrderId) { |
| | |
| | | |
| | | @GetMapping("/approve-process-list") |
| | | @Operation(summary = "è·åéè´è®¢åå®¡æ¹æµç¨å表") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-order:query')") |
| | | public CommonResult<List<Map<String, Object>>> getApproveProcessList() { |
| | | return success(purchaseOrderService.getPurchaseOrderApproveProcessDefinitionList()); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éè´è®¢å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-order:query')") |
| | | public CommonResult<ErpPurchaseOrderRespVO> getPurchaseOrder(@RequestParam("id") Long id) { |
| | | ErpPurchaseOrderDO purchaseOrder = purchaseOrderService.getPurchaseOrder(id); |
| | | if (purchaseOrder == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éè´è®¢åå页") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-order:query')") |
| | | public CommonResult<PageResult<ErpPurchaseOrderRespVO>> getPurchaseOrderPage(@Valid ErpPurchaseOrderPageReqVO pageReqVO) { |
| | | PageResult<ErpPurchaseOrderDO> pageResult = purchaseOrderService.getPurchaseOrderPage(pageReqVO); |
| | | return success(buildPurchaseOrderVOPageResult(pageResult)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éè´ç³è¯·") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-request:query')") |
| | | public CommonResult<ErpPurchaseRequestRespVO> getPurchaseRequest(@RequestParam("id") Long id) { |
| | | ErpPurchaseRequestDO purchaseRequest = purchaseRequestService.getPurchaseRequest(id); |
| | | if (purchaseRequest == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éè´ç³è¯·å页") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-request:query')") |
| | | public CommonResult<PageResult<ErpPurchaseRequestRespVO>> getPurchaseRequestPage(@Valid ErpPurchaseRequestPageReqVO pageReqVO) { |
| | | PageResult<ErpPurchaseRequestDO> pageResult = purchaseRequestService.getPurchaseRequestPage(pageReqVO); |
| | | return success(buildPurchaseRequestVOPageResult(pageResult)); |
| | |
| | | |
| | | @GetMapping("/approve-process-list") |
| | | @Operation(summary = "è·åéè´ç³è¯·å®¡æ¹æµç¨å表") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-request:query')") |
| | | public CommonResult<List<Map<String, Object>>> getApproveProcessList() { |
| | | return success(purchaseRequestService.getPurchaseRequestApproveProcessDefinitionList()); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ä¾åºå") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('erp:supplier:query')") |
| | | public CommonResult<ErpSupplierRespVO> getSupplier(@RequestParam("id") Long id) { |
| | | ErpSupplierDO supplier = supplierService.getSupplier(id); |
| | | return success(BeanUtils.toBean(supplier, ErpSupplierRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ä¾åºåå页") |
| | | @PreAuthorize("@ss.hasPermission('erp:supplier:query')") |
| | | public CommonResult<PageResult<ErpSupplierRespVO>> getSupplierPage(@Valid ErpSupplierPageReqVO pageReqVO) { |
| | | PageResult<ErpSupplierDO> pageResult = supplierService.getSupplierPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, ErpSupplierRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/approve-process-list") |
| | | @Operation(summary = "è·åéå®è®¢åå®¡æ¹æµç¨å表") |
| | | @PreAuthorize("@ss.hasPermission('erp:sale-order:query')") |
| | | public CommonResult<List<Map<String, Object>>> getApproveProcessList() { |
| | | return success(saleOrderService.getSaleOrderApproveProcessDefinitionList()); |
| | | } |
| | |
| | | @GetMapping("/item/list-by-order-id") |
| | | @Operation(summary = "æ¥è¯¢éå®è®¢åçç©ææç»å表ï¼ç¨äºåè´§éç¥åå建ï¼") |
| | | @Parameter(name = "orderId", description = "éå®è®¢åç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('erp:sale-order:query')") |
| | | public CommonResult<List<ErpSaleOrderItemRespVO>> getSaleOrderItemListByOrderId(@RequestParam("orderId") Long orderId) { |
| | | List<ErpSaleOrderItemDO> itemList = saleOrderService.getSaleOrderItemListByOrderId(orderId); |
| | | Map<Long, MdmItemRespDTO> itemMap = mdmItemApi.getItemMap( |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éå®è®¢å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('erp:sale-order:query')") |
| | | public CommonResult<ErpSaleOrderRespVO> getSaleOrder(@RequestParam("id") Long id) { |
| | | ErpSaleOrderDO saleOrder = saleOrderService.getSaleOrder(id); |
| | | if (saleOrder == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éå®è®¢åå页") |
| | | @PreAuthorize("@ss.hasPermission('erp:sale-order:query')") |
| | | public CommonResult<PageResult<ErpSaleOrderRespVO>> getSaleOrderPage(@Valid ErpSaleOrderPageReqVO pageReqVO) { |
| | | PageResult<ErpSaleOrderDO> pageResult = saleOrderService.getSaleOrderPage(pageReqVO); |
| | | return success(buildSaleOrderVOPageResult(pageResult)); |
| | |
| | | |
| | | @GetMapping("/summary") |
| | | @Operation(summary = "è·å¾éè´ç»è®¡") |
| | | @PreAuthorize("@ss.hasPermission('erp:statistics:query')") |
| | | public CommonResult<ErpPurchaseSummaryRespVO> getPurchaseSummary() { |
| | | LocalDateTime today = LocalDateTimeUtils.getToday(); |
| | | LocalDateTime yesterday = LocalDateTimeUtils.getYesterday(); |
| | |
| | | @GetMapping("/time-summary") |
| | | @Operation(summary = "è·å¾éè´æ¶é´æ®µç»è®¡") |
| | | @Parameter(name = "count", description = "æ¶é´æ®µæ°é", example = "6") |
| | | @PreAuthorize("@ss.hasPermission('erp:statistics:query')") |
| | | public CommonResult<List<ErpPurchaseTimeSummaryRespVO>> getPurchaseTimeSummary( |
| | | @RequestParam(value = "count", defaultValue = "6") Integer count) { |
| | | List<ErpPurchaseTimeSummaryRespVO> summaryList = new ArrayList<>(); |
| | |
| | | |
| | | @GetMapping("/summary") |
| | | @Operation(summary = "è·å¾éå®ç»è®¡") |
| | | @PreAuthorize("@ss.hasPermission('erp:statistics:query')") |
| | | public CommonResult<ErpSaleSummaryRespVO> getSaleSummary() { |
| | | LocalDateTime today = LocalDateTimeUtils.getToday(); |
| | | LocalDateTime yesterday = LocalDateTimeUtils.getYesterday(); |
| | |
| | | @GetMapping("/time-summary") |
| | | @Operation(summary = "è·å¾é宿¶é´æ®µç»è®¡") |
| | | @Parameter(name = "count", description = "æ¶é´æ®µæ°é", example = "6") |
| | | @PreAuthorize("@ss.hasPermission('erp:statistics:query')") |
| | | public CommonResult<List<ErpSaleTimeSummaryRespVO>> getSaleTimeSummary( |
| | | @RequestParam(value = "count", defaultValue = "6") Integer count) { |
| | | List<ErpSaleTimeSummaryRespVO> summaryList = new ArrayList<>(); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è¯·åç³è¯·è¯¦æ
") |
| | | @Parameter(name = "id", description = "ç³è¯·ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:leave:query')") |
| | | public CommonResult<HrmLeaveApplicationRespVO> getLeaveApplication(@RequestParam("id") Long id) { |
| | | return success(leaveApplicationService.getLeaveApplicationDetail(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è¯·åç³è¯·å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:leave:query')") |
| | | public CommonResult<PageResult<HrmLeaveApplicationRespVO>> getLeaveApplicationPage(@Valid HrmLeaveApplicationPageReqVO pageReqVO) { |
| | | return success(leaveApplicationService.getLeaveApplicationPage(pageReqVO)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/approve-process-definition-list") |
| | | @Operation(summary = "è·åå¯ç¨çå®¡æ¹æµç¨å®ä¹å表") |
| | | @PreAuthorize("@ss.hasPermission('hrm:leave:query')") |
| | | public CommonResult<List<Map<String, Object>>> getApproveProcessDefinitionList() { |
| | | return success(leaveApplicationService.getApproveProcessDefinitionList()); |
| | | } |
| | |
| | | public CommonResult<Boolean> delete(@RequestParam Long id) { |
| | | service.delete(id, SecurityFrameworkUtils.getLoginUserId()); return success(true); |
| | | } |
| | | @GetMapping("/get") @PreAuthorize("@ss.hasAnyPermissions('hrm:overtime:query', 'bpm:task:query')") |
| | | @GetMapping("/get") |
| | | public CommonResult<HrmOvertimeApplicationRespVO> get(@RequestParam Long id) { |
| | | return success(service.getDetail(id, SecurityFrameworkUtils.getLoginUserId(), canManage())); |
| | | } |
| | |
| | | public CommonResult<HrmOvertimeApplicationRespVO> currentApplicant() { |
| | | return success(service.getCurrentApplicant(SecurityFrameworkUtils.getLoginUserId())); |
| | | } |
| | | @GetMapping("/page") @PreAuthorize("@ss.hasPermission('hrm:overtime:query')") |
| | | @GetMapping("/page") |
| | | public CommonResult<PageResult<HrmOvertimeApplicationRespVO>> page(@Valid HrmOvertimeApplicationPageReqVO reqVO) { |
| | | if (!canManage()) { |
| | | reqVO.setUserId(SecurityFrameworkUtils.getLoginUserId()); |
| | |
| | | public CommonResult<Boolean> cancel(@RequestParam Long id) { |
| | | service.cancel(id, SecurityFrameworkUtils.getLoginUserId()); return success(true); |
| | | } |
| | | @GetMapping("/approve-process-definition-list") @PreAuthorize("@ss.hasPermission('hrm:overtime:query')") |
| | | @GetMapping("/approve-process-definition-list") |
| | | public CommonResult<List<Map<String, Object>>> processes() { return success(service.getApproveProcessDefinitionList()); } |
| | | |
| | | private boolean canManage() { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç¦»èç³è¯·è¯¦æ
") |
| | | @Parameter(name = "id", description = "ç³è¯·ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:resignation:query')") |
| | | public CommonResult<HrmResignationApplicationRespVO> getResignationApplication(@RequestParam("id") Long id) { |
| | | return success(resignationApplicationService.getResignationApplicationDetail(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç¦»èç³è¯·å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:resignation:query')") |
| | | public CommonResult<PageResult<HrmResignationApplicationRespVO>> getResignationApplicationPage(@Valid HrmResignationApplicationPageReqVO pageReqVO) { |
| | | return success(resignationApplicationService.getResignationApplicationPage(pageReqVO)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/approve-process-definition-list") |
| | | @Operation(summary = "è·åå¯ç¨çå®¡æ¹æµç¨å®ä¹å表") |
| | | @PreAuthorize("@ss.hasPermission('hrm:resignation:query')") |
| | | public CommonResult<List<Map<String, Object>>> getApproveProcessDefinitionList() { |
| | | return success(resignationApplicationService.getApproveProcessDefinitionList()); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è°å²ç³è¯·è¯¦æ
") |
| | | @Parameter(name = "id", description = "ç³è¯·ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:transfer:query')") |
| | | public CommonResult<HrmTransferApplicationRespVO> getTransferApplication(@RequestParam("id") Long id) { |
| | | return success(transferApplicationService.getTransferApplicationDetail(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è°å²ç³è¯·å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:transfer:query')") |
| | | public CommonResult<PageResult<HrmTransferApplicationRespVO>> getTransferApplicationPage(@Valid HrmTransferApplicationPageReqVO pageReqVO) { |
| | | return success(transferApplicationService.getTransferApplicationPage(pageReqVO)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/approve-process-definition-list") |
| | | @Operation(summary = "è·åå¯ç¨çå®¡æ¹æµç¨å®ä¹å表") |
| | | @PreAuthorize("@ss.hasPermission('hrm:transfer:query')") |
| | | public CommonResult<List<Map<String, Object>>> getApproveProcessDefinitionList() { |
| | | return success(transferApplicationService.getApproveProcessDefinitionList()); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾èå¤å¼å¸¸ç³è¯·") |
| | | @Parameter(name = "id", description = "ç³è¯·ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:attendance-exception:query')") |
| | | public CommonResult<HrmAttendanceExceptionRespVO> getAttendanceException(@RequestParam("id") Long id) { |
| | | HrmAttendanceExceptionDO attendanceException = attendanceExceptionService.getAttendanceException(id); |
| | | if (attendanceException == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾èå¤å¼å¸¸ç³è¯·å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:attendance-exception:query')") |
| | | public CommonResult<PageResult<HrmAttendanceExceptionRespVO>> getAttendanceExceptionPage(@Valid HrmAttendanceExceptionPageReqVO pageReqVO) { |
| | | PageResult<HrmAttendanceExceptionDO> pageResult = attendanceExceptionService.getAttendanceExceptionPage(pageReqVO); |
| | | List<HrmAttendanceExceptionRespVO> list = BeanUtils.toBean(pageResult.getList(), HrmAttendanceExceptionRespVO.class); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è忥é
ç½®") |
| | | @Parameter(name = "id", description = "è忥ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:attendance-holiday:query')") |
| | | public CommonResult<HrmAttendanceHolidayRespVO> getAttendanceHoliday(@RequestParam("id") Long id) { |
| | | HrmAttendanceHolidayDO attendanceHoliday = attendanceHolidayService.getAttendanceHoliday(id); |
| | | return success(BeanUtils.toBean(attendanceHoliday, HrmAttendanceHolidayRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è忥é
ç½®å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:attendance-holiday:query')") |
| | | public CommonResult<PageResult<HrmAttendanceHolidayRespVO>> getAttendanceHolidayPage(@Valid HrmAttendanceHolidayPageReqVO pageReqVO) { |
| | | PageResult<HrmAttendanceHolidayDO> pageResult = attendanceHolidayService.getAttendanceHolidayPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, HrmAttendanceHolidayRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾èå¤è®°å½å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:attendance-record:query')") |
| | | public CommonResult<PageResult<HrmAttendanceRecordRespVO>> getAttendanceRecordPage(@Valid HrmAttendanceRecordPageReqVO pageReqVO) { |
| | | PageResult<HrmAttendanceRecordDO> pageResult = attendanceRecordService.getAttendanceRecordPage(pageReqVO); |
| | | // 转æ¢ä¸º VO |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾èå¤è®°å½") |
| | | @Parameter(name = "id", description = "è®°å½ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:attendance-record:query')") |
| | | public CommonResult<HrmAttendanceRecordRespVO> getAttendanceRecord(@RequestParam("id") Long id) { |
| | | HrmAttendanceRecordDO attendanceRecord = attendanceRecordService.getAttendanceRecord(id); |
| | | if (attendanceRecord == null) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾èå¤è§å") |
| | | @Parameter(name = "id", description = "è§åID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:attendance-rule:query')") |
| | | public CommonResult<HrmAttendanceRuleRespVO> getAttendanceRule(@RequestParam("id") Long id) { |
| | | HrmAttendanceRuleDO attendanceRule = attendanceRuleService.getAttendanceRule(id); |
| | | if (attendanceRule == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾èå¤è§åå页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:attendance-rule:query')") |
| | | public CommonResult<PageResult<HrmAttendanceRuleRespVO>> getAttendanceRulePage(@Valid HrmAttendanceRulePageReqVO pageReqVO) { |
| | | PageResult<HrmAttendanceRuleDO> pageResult = attendanceRuleService.getAttendanceRulePage(pageReqVO); |
| | | List<HrmAttendanceRuleRespVO> list = BeanUtils.toBean(pageResult.getList(), HrmAttendanceRuleRespVO.class); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾èå¤è§åå表") |
| | | @PreAuthorize("@ss.hasPermission('hrm:attendance-rule:query')") |
| | | public CommonResult<List<HrmAttendanceRuleRespVO>> getAttendanceRuleList() { |
| | | List<HrmAttendanceRuleDO> list = attendanceRuleService.getAttendanceRuleList(); |
| | | return success(BeanUtils.toBean(list, HrmAttendanceRuleRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾èå¤ç»è®¡æ±æ»å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:attendance-summary:query')") |
| | | public CommonResult<PageResult<HrmAttendanceSummaryRespVO>> getAttendanceSummaryPage(@Valid HrmAttendanceSummaryPageReqVO pageReqVO) { |
| | | PageResult<HrmAttendanceSummaryDO> pageResult = attendanceSummaryService.getAttendanceSummaryPage(pageReqVO); |
| | | List<HrmAttendanceSummaryRespVO> list = BeanUtils.toBean(pageResult.getList(), HrmAttendanceSummaryRespVO.class); |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾åå·¥æåº¦è夿±æ»") |
| | | @PreAuthorize("@ss.hasPermission('hrm:attendance-summary:query')") |
| | | public CommonResult<HrmAttendanceSummaryRespVO> getMonthlySummary( |
| | | @RequestParam("userId") Long userId, |
| | | @RequestParam("yearMonth") String yearMonth) { |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾ææåå·¥æçå表") |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-schedule:query')") |
| | | public CommonResult<List<HrmEmployeeScheduleRespVO>> getEmployeeScheduleList( |
| | | @Valid HrmEmployeeScheduleListReqVO reqVO) { |
| | | return success(employeeScheduleService.getScheduleList(reqVO)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç次") |
| | | @Parameter(name = "id", description = "çæ¬¡ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:shift:query')") |
| | | public CommonResult<HrmShiftRespVO> getShift(@RequestParam("id") Long id) { |
| | | HrmShiftDO shift = shiftService.getShift(id); |
| | | return success(BeanUtils.toBean(shift, HrmShiftRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç次å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:shift:query')") |
| | | public CommonResult<PageResult<HrmShiftRespVO>> getShiftPage(@Valid HrmShiftPageReqVO pageReqVO) { |
| | | PageResult<HrmShiftDO> pageResult = shiftService.getShiftPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, HrmShiftRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾ç次å表ï¼å¯ç¨ç¶æï¼") |
| | | @PreAuthorize("@ss.hasPermission('hrm:shift:query')") |
| | | public CommonResult<List<HrmShiftRespVO>> getShiftList() { |
| | | List<HrmShiftDO> list = shiftService.getShiftList(); |
| | | return success(BeanUtils.toBean(list, HrmShiftRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾åå·¥åå详æ
") |
| | | @Parameter(name = "id", description = "ååID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-contract:query')") |
| | | public CommonResult<HrmEmployeeContractRespVO> getContract(@RequestParam("id") Long id) { |
| | | return success(contractService.getContract(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾åå·¥ååå页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-contract:query')") |
| | | public CommonResult<PageResult<HrmEmployeeContractRespVO>> getContractPage(@Valid HrmEmployeeContractPageReqVO pageReqVO) { |
| | | return success(contractService.getContractPage(pageReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/expiring-count") |
| | | @Operation(summary = "è·å¾å³å°å°æååæ°é", description = "ä¾ HRM å¾
å/é¦é¡µæé使ç¨") |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-contract:query')") |
| | | public CommonResult<Long> getExpiringCount() { |
| | | return success(contractService.getExpiringCount()); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å工详æ
") |
| | | @Parameter(name = "id", description = "åå·¥ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee:query')") |
| | | public CommonResult<HrmEmployeeRespVO> getEmployee(@RequestParam("id") Long id) { |
| | | return success(employeeService.getEmployeeDetail(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾åå·¥å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee:query')") |
| | | public CommonResult<PageResult<HrmEmployeeRespVO>> getEmployeePage(@Valid HrmEmployeePageReqVO pageReqVO) { |
| | | PageResult<HrmEmployeeDO> pageResult = employeeService.getEmployeePage(pageReqVO); |
| | | // 转æ¢ä¸º VO |
| | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·åæè²ç»åå表") |
| | | @Parameter(name = "employeeId", description = "åå·¥ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee:query')") |
| | | public CommonResult<List<HrmEmployeeEducationRespVO>> getEducationList( |
| | | @RequestParam("employeeId") Long employeeId) { |
| | | List<HrmEmployeeEducationDO> list = educationService.getEducationListByEmployeeId(employeeId); |
| | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·åç´§æ¥è系人å表") |
| | | @Parameter(name = "employeeId", description = "åå·¥ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee:query')") |
| | | public CommonResult<List<HrmEmployeeEmergencyContactRespVO>> getEmergencyContactList( |
| | | @RequestParam("employeeId") Long employeeId) { |
| | | List<HrmEmployeeEmergencyContactDO> list = emergencyContactService.getEmergencyContactListByEmployeeId(employeeId); |
| | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·åå·¥ä½ç»åå表") |
| | | @Parameter(name = "employeeId", description = "åå·¥ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee:query')") |
| | | public CommonResult<List<HrmEmployeeWorkHistoryRespVO>> getWorkHistoryList( |
| | | @RequestParam("employeeId") Long employeeId) { |
| | | List<HrmEmployeeWorkHistoryDO> list = workHistoryService.getWorkHistoryListByEmployeeId(employeeId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·åå工社ä¿å
¬ç§¯éæ¡£æ¡") |
| | | @Parameter(name = "id", description = "æ¡£æ¡ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-social-security:query')") |
| | | public CommonResult<HrmEmployeeSocialSecurityRespVO> getEmployeeSocialSecurity(@RequestParam("id") Long id) { |
| | | HrmEmployeeSocialSecurityDO socialSecurity = employeeSocialSecurityService.getEmployeeSocialSecurity(id); |
| | | if (socialSecurity == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·åå工社ä¿å
¬ç§¯éæ¡£æ¡å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-social-security:query')") |
| | | public CommonResult<PageResult<HrmEmployeeSocialSecurityRespVO>> getEmployeeSocialSecurityPage( |
| | | @Valid HrmEmployeeSocialSecurityPageReqVO pageReqVO) { |
| | | PageResult<HrmEmployeeSocialSecurityDO> pageResult = employeeSocialSecurityService.getEmployeeSocialSecurityPage(pageReqVO); |
| | |
| | | @GetMapping("/list-by-user") |
| | | @Operation(summary = "è·åå工社ä¿å
¬ç§¯éæ¡£æ¡åå²å表") |
| | | @Parameter(name = "userId", description = "ç³»ç»ç¨æ·ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-social-security:query')") |
| | | public CommonResult<List<HrmEmployeeSocialSecurityRespVO>> getEmployeeSocialSecurityList( |
| | | @RequestParam("userId") Long userId) { |
| | | List<HrmEmployeeSocialSecurityDO> list = employeeSocialSecurityService.getEmployeeSocialSecurityList(userId); |
| | |
| | | @GetMapping("/get-latest") |
| | | @Operation(summary = "è·ååå·¥ææ°çæç社ä¿å
¬ç§¯éæ¡£æ¡") |
| | | @Parameter(name = "userId", description = "ç³»ç»ç¨æ·ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-social-security:query')") |
| | | public CommonResult<HrmEmployeeSocialSecurityRespVO> getLatestEmployeeSocialSecurity( |
| | | @RequestParam("userId") Long userId) { |
| | | HrmEmployeeSocialSecurityDO socialSecurity = employeeSocialSecurityService.getLatestEmployeeSocialSecurity(userId); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·åææè¯·åç±»åé
ç½®å表") |
| | | @PreAuthorize("@ss.hasPermission('hrm:leave-type-config:query')") |
| | | public CommonResult<List<HrmLeaveTypeConfigRespVO>> getLeaveTypeConfigList() { |
| | | List<HrmLeaveTypeConfigDO> list = leaveTypeConfigService.getLeaveTypeConfigList(); |
| | | return success(BeanUtils.toBean(list, HrmLeaveTypeConfigRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å请åç±»åé
ç½®") |
| | | @Parameter(name = "leaveType", description = "请åç±»å", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('hrm:leave-type-config:query')") |
| | | public CommonResult<HrmLeaveTypeConfigRespVO> getLeaveTypeConfig(@RequestParam("leaveType") Integer leaveType) { |
| | | HrmLeaveTypeConfigDO config = leaveTypeConfigService.getLeaveTypeConfig(leaveType); |
| | | return success(BeanUtils.toBean(config, HrmLeaveTypeConfigRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾èªé
¬æ ¸ç®å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary-calculation:query')") |
| | | public CommonResult<PageResult<HrmSalaryCalculationRespVO>> getSalaryCalculationPage(@Valid HrmSalaryCalculationPageReqVO pageReqVO) { |
| | | PageResult<HrmSalaryCalculationDO> pageResult = salaryCalculationService.getSalaryCalculationPage(pageReqVO); |
| | | // 转æ¢ä¸º VO |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾èªé
¬æ ¸ç®") |
| | | @Parameter(name = "id", description = "æ ¸ç®ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary-calculation:query')") |
| | | public CommonResult<HrmSalaryCalculationRespVO> getSalaryCalculation(@RequestParam("id") Long id) { |
| | | HrmSalaryCalculationDO salaryCalculation = salaryCalculationService.getSalaryCalculation(id); |
| | | if (salaryCalculation == null) { |
| | |
| | | @Operation(summary = "é¢è§é¨é¨ä¸ææåå·¥çèªèµæ ¸ç®ä¿¡æ¯") |
| | | @Parameter(name = "period", description = "æ ¸ç®å¨æ", required = true, example = "2024-01") |
| | | @Parameter(name = "deptId", description = "é¨é¨IDï¼ä¸ºç©ºåæ¥è¯¢å
¨é¨", example = "1") |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary-calculation:query')") |
| | | public CommonResult<List<HrmSalaryCalculationRespVO>> previewSalaryCalculation( |
| | | @RequestParam("period") String period, |
| | | @RequestParam(value = "deptId", required = false) Long deptId) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾èªèµåæ¾å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary-payment:query')") |
| | | public CommonResult<PageResult<HrmSalaryPaymentRespVO>> getSalaryPaymentPage(@Valid HrmSalaryPaymentPageReqVO pageReqVO) { |
| | | PageResult<HrmSalaryPaymentDO> pageResult = salaryPaymentService.getSalaryPaymentPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, HrmSalaryPaymentRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾èªèµåæ¾") |
| | | @Parameter(name = "id", description = "åæ¾ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary-payment:query')") |
| | | public CommonResult<HrmSalaryPaymentRespVO> getSalaryPayment(@RequestParam("id") Long id) { |
| | | HrmSalaryPaymentDO salaryPayment = salaryPaymentService.getSalaryPayment(id); |
| | | HrmSalaryPaymentRespVO respVO = BeanUtils.toBean(salaryPayment, HrmSalaryPaymentRespVO.class); |
| | |
| | | |
| | | @GetMapping("/detail/page") |
| | | @Operation(summary = "è·å¾èªèµåæ¾æç»å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary-payment:query')") |
| | | public CommonResult<PageResult<HrmSalaryPaymentDetailRespVO>> getSalaryPaymentDetailPage(@Valid HrmSalaryPaymentDetailPageReqVO pageReqVO) { |
| | | PageResult<HrmSalaryPaymentDetailDO> pageResult = salaryPaymentService.getSalaryPaymentDetailPage(pageReqVO); |
| | | List<HrmSalaryPaymentDetailRespVO> list = BeanUtils.toBean(pageResult.getList(), HrmSalaryPaymentDetailRespVO.class); |
| | |
| | | @GetMapping("/detail/list") |
| | | @Operation(summary = "è·å¾èªèµåæ¾æç»å表") |
| | | @Parameter(name = "paymentId", description = "åæ¾å°è´¦ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary-payment:query')") |
| | | public CommonResult<List<HrmSalaryPaymentDetailRespVO>> getSalaryPaymentDetailList(@RequestParam("paymentId") Long paymentId) { |
| | | List<HrmSalaryPaymentDetailDO> detailList = salaryPaymentService.getSalaryPaymentDetailListByPaymentId(paymentId); |
| | | List<HrmSalaryPaymentDetailRespVO> list = BeanUtils.toBean(detailList, HrmSalaryPaymentDetailRespVO.class); |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾èªé
Ⱦ") |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary-structure:query')") |
| | | public CommonResult<HrmSalaryStructureRespVO> getSalaryStructure(@RequestParam("id") Long id) { |
| | | return success(BeanUtils.toBean(salaryStructureService.getSalaryStructure(id), |
| | | HrmSalaryStructureRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾èªé
¬ç»æå表") |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary-structure:query')") |
| | | public CommonResult<List<HrmSalaryStructureRespVO>> getSalaryStructureList( |
| | | @RequestParam(value = "name", required = false) String name, |
| | | @RequestParam(value = "status", required = false) Integer status) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å社ä¿å
¬ç§¯éé
ç½®") |
| | | @Parameter(name = "id", description = "é
ç½®ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:social-security:query')") |
| | | public CommonResult<HrmSocialSecurityConfigRespVO> getSocialSecurityConfig(@RequestParam("id") Long id) { |
| | | HrmSocialSecurityConfigDO config = socialSecurityConfigService.getSocialSecurityConfig(id); |
| | | return success(BeanUtils.toBean(config, HrmSocialSecurityConfigRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å社ä¿å
¬ç§¯éé
ç½®å表") |
| | | @PreAuthorize("@ss.hasPermission('hrm:social-security:query')") |
| | | public CommonResult<List<HrmSocialSecurityConfigRespVO>> getSocialSecurityConfigList() { |
| | | List<HrmSocialSecurityConfigDO> list = socialSecurityConfigService.getSocialSecurityConfigList(); |
| | | return success(BeanUtils.toBean(list, HrmSocialSecurityConfigRespVO.class)); |
| | |
| | | @GetMapping("/get-effective") |
| | | @Operation(summary = "è·åçæç社ä¿å
¬ç§¯éé
ç½®") |
| | | @Parameter(name = "effectiveDate", description = "çææ¥æ", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:social-security:query')") |
| | | public CommonResult<HrmSocialSecurityConfigRespVO> getEffectiveSocialSecurityConfig( |
| | | @RequestParam("effectiveDate") LocalDate effectiveDate) { |
| | | HrmSocialSecurityConfigDO config = socialSecurityConfigService.getEffectiveSocialSecurityConfig(effectiveDate); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å社ä¿å
¬ç§¯éæ¹æ¡") |
| | | @Parameter(name = "id", description = "æ¹æ¡ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:social-security-scheme:query')") |
| | | public CommonResult<HrmSocialSecuritySchemeRespVO> getScheme(@RequestParam("id") Long id) { |
| | | HrmSocialSecuritySchemeDO scheme = schemeService.getScheme(id); |
| | | return success(BeanUtils.toBean(scheme, HrmSocialSecuritySchemeRespVO.class)); |
| | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å社ä¿å
¬ç§¯éæ¹æ¡å表") |
| | | @Parameter(name = "status", description = "ç¶æ") |
| | | @PreAuthorize("@ss.hasPermission('hrm:social-security-scheme:query')") |
| | | public CommonResult<List<HrmSocialSecuritySchemeRespVO>> getSchemeList( |
| | | @RequestParam(value = "status", required = false) Integer status) { |
| | | List<HrmSocialSecuritySchemeDO> list = schemeService.getSchemeList(status); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å个ç¨ç¨çé
ç½®") |
| | | @Parameter(name = "id", description = "é
ç½®ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:tax-rate-config:query')") |
| | | public CommonResult<HrmTaxRateConfigRespVO> getTaxRateConfig(@RequestParam("id") Long id) { |
| | | HrmTaxRateConfigDO config = taxRateConfigService.getTaxRateConfig(id); |
| | | return success(BeanUtils.toBean(config, HrmTaxRateConfigRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å个ç¨ç¨çé
ç½®å表") |
| | | @PreAuthorize("@ss.hasPermission('hrm:tax-rate-config:query')") |
| | | public CommonResult<List<HrmTaxRateConfigRespVO>> getTaxRateConfigList() { |
| | | List<HrmTaxRateConfigDO> list = taxRateConfigService.getTaxRateConfigList(); |
| | | return success(BeanUtils.toBean(list, HrmTaxRateConfigRespVO.class)); |
| | |
| | | @GetMapping("/get-effective") |
| | | @Operation(summary = "è·åçæç个ç¨ç¨çé
ç½®åè¡¨ï¼æçº§æ°æåºï¼") |
| | | @Parameter(name = "effectiveDate", description = "çææ¥æ", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:tax-rate-config:query')") |
| | | public CommonResult<List<HrmTaxRateConfigRespVO>> getEffectiveTaxRateConfigList( |
| | | @RequestParam("effectiveDate") LocalDate effectiveDate) { |
| | | List<HrmTaxRateConfigDO> list = taxRateConfigService.getEffectiveTaxRateConfigList(effectiveDate); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾é¢éå页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:channel:query')") |
| | | public CommonResult<PageResult<ImChannelRespVO>> getChannelPage(@Valid ImChannelPageReqVO pageReqVO) { |
| | | PageResult<ImChannelDO> pageResult = channelService.getChannelPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, ImChannelRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾é¢é详æ
") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:channel:query')") |
| | | public CommonResult<ImChannelRespVO> getChannel(@RequestParam("id") Long id) { |
| | | ImChannelDO channel = channelService.getChannel(id); |
| | | return success(BeanUtils.toBean(channel, ImChannelRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç´ æå页ï¼å«é¢éååå¡«") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:channel-material:query')") |
| | | public CommonResult<PageResult<ImChannelMaterialRespVO>> getMaterialPage(@Valid ImChannelMaterialPageReqVO pageReqVO) { |
| | | PageResult<ImChannelMaterialDO> pageResult = channelMaterialService.getMaterialPage(pageReqVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç´ æè¯¦æ
ï¼å«å¯ææ¬æ£æï¼") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:channel-material:query')") |
| | | public CommonResult<ImChannelMaterialRespVO> getMaterial(@RequestParam("id") Long id) { |
| | | ImChannelMaterialDO material = channelMaterialService.getMaterial(id); |
| | | return success(BeanUtils.toBean(material, ImChannelMaterialRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è¡¨æ
å页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:face-pack-item:query')") |
| | | public CommonResult<PageResult<ImFacePackItemRespVO>> getFacePackItemPage(@Valid ImFacePackItemPageReqVO pageReqVO) { |
| | | PageResult<ImFacePackItemDO> pageResult = facePackItemService.getFacePackItemPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, ImFacePackItemRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è¡¨æ
详æ
") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "2048") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:face-pack-item:query')") |
| | | public CommonResult<ImFacePackItemRespVO> getFacePackItem(@RequestParam("id") Long id) { |
| | | ImFacePackItemDO item = facePackItemService.getFacePackItem(id); |
| | | return success(BeanUtils.toBean(item, ImFacePackItemRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è¡¨æ
å
å页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:face-pack:query')") |
| | | public CommonResult<PageResult<ImFacePackRespVO>> getFacePackPage(@Valid ImFacePackPageReqVO pageReqVO) { |
| | | PageResult<ImFacePackDO> pageResult = facePackService.getFacePackPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, ImFacePackRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è¡¨æ
å
详æ
") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:face-pack:query')") |
| | | public CommonResult<ImFacePackRespVO> getFacePack(@RequestParam("id") Long id) { |
| | | ImFacePackDO pack = facePackService.getFacePack(id); |
| | | return success(BeanUtils.toBean(pack, ImFacePackRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç¨æ·è¡¨æ
å页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:face-user-item:query')") |
| | | public CommonResult<PageResult<ImFaceUserItemManagerRespVO>> getFaceUserItemPage( |
| | | @Valid ImFaceUserItemManagerPageReqVO pageReqVO) { |
| | | PageResult<ImFaceUserItemDO> pageResult = faceUserItemService.getFaceUserItemPage(pageReqVO); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å¥½åå
³ç³»å页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:friend:query')") |
| | | public CommonResult<PageResult<ImFriendManagerRespVO>> getFriendPage( |
| | | @Valid ImFriendManagerPageReqVO pageReqVO) { |
| | | // 1. å页æ¥è¯¢ |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å¥½åç³è¯·å页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:friend-request:query')") |
| | | public CommonResult<PageResult<ImFriendRequestManagerRespVO>> getFriendRequestPage( |
| | | @Valid ImFriendRequestManagerPageReqVO pageReqVO) { |
| | | // 1. å页æ¥è¯¢ |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç¾¤å页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:group:query')") |
| | | public CommonResult<PageResult<ImGroupManagerRespVO>> getGroupPage(@Valid ImGroupManagerPageReqVO pageReqVO) { |
| | | // 1. å页æ¥è¯¢ç¾¤ |
| | | PageResult<ImGroupDO> pageResult = groupService.getGroupPage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç¾¤è¯¦æ
") |
| | | @Parameter(name = "id", description = "群ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:group:query')") |
| | | public CommonResult<ImGroupManagerRespVO> getGroup(@RequestParam("id") Long id) { |
| | | ImGroupDO group = groupService.getGroup(id); |
| | | return success(BeanUtils.toBean(group, ImGroupManagerRespVO.class)); |
| | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾ç¾¤æåå表ï¼å«å·²é群æåï¼ç±å端æéè¿æ»¤ï¼") |
| | | @Parameter(name = "groupId", description = "群ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:group:query')") |
| | | public CommonResult<List<ImGroupMemberManagerRespVO>> getGroupMemberList(@RequestParam("groupId") Long groupId) { |
| | | // 1. æ¥è¯¢ç¾¤å
¨é¨æåï¼å«å·²éç¾¤ï¼ |
| | | List<ImGroupMemberDO> members = groupMemberService.getGroupMemberListByGroupId(groupId); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å 群ç³è¯·å页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:group-request:query')") |
| | | public CommonResult<PageResult<ImGroupRequestManagerRespVO>> getGroupRequestPage( |
| | | @Valid ImGroupRequestManagerPageReqVO pageReqVO) { |
| | | // 1. å页æ¥è¯¢ |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾é¢éæ¶æ¯å页ï¼åå¡«é¢éå / ç´ ææ é¢") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:channel-message:query')") |
| | | public CommonResult<PageResult<ImChannelMessageRespVO>> getMessagePage(@Valid ImChannelMessagePageReqVO pageReqVO) { |
| | | PageResult<ImChannelMessageDO> pageResult = channelMessageService.getMessagePage(pageReqVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç¾¤èæ¶æ¯å页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:message:query')") |
| | | public CommonResult<PageResult<ImGroupMessageManagerRespVO>> getGroupMessagePage( |
| | | @Valid ImGroupMessageManagerPageReqVO pageReqVO) { |
| | | // 1. å页æ¥è¯¢ |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç¾¤èæ¶æ¯è¯¦æ
") |
| | | @Parameter(name = "id", description = "æ¶æ¯ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:message:query')") |
| | | public CommonResult<ImGroupMessageManagerRespVO> getGroupMessage(@RequestParam("id") Long id) { |
| | | ImGroupMessageDO message = groupMessageService.getGroupMessage(id); |
| | | return success(BeanUtils.toBean(message, ImGroupMessageManagerRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç§èæ¶æ¯å页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:message:query')") |
| | | public CommonResult<PageResult<ImPrivateMessageManagerRespVO>> getPrivateMessagePage( |
| | | @Valid ImPrivateMessageManagerPageReqVO pageReqVO) { |
| | | // 1. å页æ¥è¯¢ |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç§èæ¶æ¯è¯¦æ
") |
| | | @Parameter(name = "id", description = "æ¶æ¯ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:message:query')") |
| | | public CommonResult<ImPrivateMessageManagerRespVO> getPrivateMessage(@RequestParam("id") Long id) { |
| | | ImPrivateMessageDO message = privateMessageService.getPrivateMessage(id); |
| | | return success(BeanUtils.toBean(message, ImPrivateMessageManagerRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éè¯è®°å½å页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:rtc:query')") |
| | | public CommonResult<PageResult<ImRtcCallManagerRespVO>> getCallPage(@Valid ImRtcCallManagerPageReqVO pageReqVO) { |
| | | PageResult<ImRtcCallDO> pageResult = rtcCallService.getCallPage(pageReqVO); |
| | | return success(buildCallRespVOPage(pageResult)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éè¯è®°å½è¯¦æ
") |
| | | @Parameter(name = "id", description = "éè¯ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:rtc:query')") |
| | | public CommonResult<ImRtcCallManagerRespVO> getCall(@RequestParam("id") Long id) { |
| | | ImRtcCallDO call = rtcCallService.getCall(id); |
| | | if (call == null) { |
| | |
| | | @GetMapping("/participant-list") |
| | | @Operation(summary = "è·å¾éè¯åä¸è
å表") |
| | | @Parameter(name = "id", description = "éè¯ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:rtc:query')") |
| | | public CommonResult<List<ImRtcParticipantManagerRespVO>> getCallParticipantList(@RequestParam("id") Long id) { |
| | | List<ImRtcParticipantDO> participants = rtcCallService.getCallParticipantListByCallId(id); |
| | | if (CollUtil.isEmpty(participants)) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ææè¯å页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:sensitive-word:query')") |
| | | public CommonResult<PageResult<ImSensitiveWordRespVO>> getSensitiveWordPage( |
| | | @Valid ImSensitiveWordPageReqVO pageReqVO) { |
| | | // 1. å页æ¥è¯¢ |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ææè¯è¯¦æ
") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:sensitive-word:query')") |
| | | public CommonResult<ImSensitiveWordRespVO> getSensitiveWord(@RequestParam("id") Long id) { |
| | | ImSensitiveWordDO word = sensitiveWordService.getSensitiveWord(id); |
| | | return success(BeanUtils.toBean(word, ImSensitiveWordRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/overview") |
| | | @Operation(summary = "è·å¾æ°æ®æ¦è§") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:statistics:query')") |
| | | public CommonResult<ImStatisticsManagerOverviewRespVO> getOverview() { |
| | | LocalDateTime todayBegin = LocalDate.now().atStartOfDay(); |
| | | LocalDateTime tomorrowBegin = todayBegin.plusDays(1); |
| | |
| | | @GetMapping("/message-trend") |
| | | @Operation(summary = "è·å¾æ¶æ¯è¶å¿ï¼ç§è / 群èå线ï¼") |
| | | @Parameter(name = "days", description = "åç天æ°ï¼å«ä»æ¥ï¼", example = "7") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:statistics:query')") |
| | | public CommonResult<ImStatisticsManagerTrendRespVO> getMessageTrend( |
| | | @RequestParam(value = "days", defaultValue = "7") @Min(1) @Max(90) int days) { |
| | | List<LocalDateTime> dates = LocalDateTimeUtils.getLatestDays(days); |
| | |
| | | @GetMapping("/user-trend") |
| | | @Operation(summary = "è·å¾ç¨æ·è¶å¿ï¼æ°å¢æ³¨å / æ¥æ´»å线ï¼") |
| | | @Parameter(name = "days", description = "åç天æ°ï¼å«ä»æ¥ï¼", example = "7") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:statistics:query')") |
| | | public CommonResult<ImStatisticsManagerTrendRespVO> getUserTrend( |
| | | @RequestParam(value = "days", defaultValue = "7") @Min(1) @Max(90) int days) { |
| | | List<LocalDateTime> dates = LocalDateTimeUtils.getLatestDays(days); |
| | |
| | | |
| | | @GetMapping("/message-type-distribution") |
| | | @Operation(summary = "è·å¾å
容类ååå¸ï¼æè¿ 30 天ï¼") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:statistics:query')") |
| | | public CommonResult<List<ImStatisticsManagerMessageTypeRespVO>> getMessageTypeDistribution() { |
| | | LocalDateTime endTime = LocalDate.now().plusDays(1).atStartOfDay(); |
| | | LocalDateTime beginTime = endTime.minusDays(DISTRIBUTION_WINDOW_DAYS); |
| | |
| | | |
| | | @GetMapping("/group-size-distribution") |
| | | @Operation(summary = "è·å¾ç¾¤è§æ¨¡åå¸") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:statistics:query')") |
| | | public CommonResult<List<ImStatisticsManagerGroupSizeRespVO>> getGroupSizeDistribution() { |
| | | Map<String, Long> groupSizeMap = statisticsService.getGroupSizeCountMap(); |
| | | // è½¬æ¢æ ¼å¼ |
| | |
| | | |
| | | @GetMapping("/top-senders") |
| | | @Operation(summary = "è·å¾æ¶æ¯ TOP åéè
ï¼æè¿ 30 天ï¼") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:statistics:query')") |
| | | public CommonResult<List<ImStatisticsManagerTopSenderRespVO>> getTopSenders() { |
| | | LocalDateTime endTime = LocalDate.now().plusDays(1).atStartOfDay(); |
| | | LocalDateTime beginTime = endTime.minusDays(DISTRIBUTION_WINDOW_DAYS); |
| | |
| | | @Parameter(name = "name", description = "表åï¼æ¨¡ç³å¹é
", example = "yudao"), |
| | | @Parameter(name = "comment", description = "æè¿°ï¼æ¨¡ç³å¹é
", example = "è¶
级管çå") |
| | | }) |
| | | @PreAuthorize("@ss.hasPermission('infra:codegen:query')") |
| | | public CommonResult<List<DatabaseTableRespVO>> getDatabaseTableList( |
| | | @RequestParam(value = "dataSourceConfigId") Long dataSourceConfigId, |
| | | @RequestParam(value = "name", required = false) String name, |
| | |
| | | @GetMapping("/table/list") |
| | | @Operation(summary = "è·å¾è¡¨å®ä¹å表") |
| | | @Parameter(name = "dataSourceConfigId", description = "æ°æ®æºé
ç½®çç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('infra:codegen:query')") |
| | | public CommonResult<List<CodegenTableRespVO>> getCodegenTableList(@RequestParam(value = "dataSourceConfigId") Long dataSourceConfigId) { |
| | | List<CodegenTableDO> list = codegenService.getCodegenTableList(dataSourceConfigId); |
| | | return success(BeanUtils.toBean(list, CodegenTableRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/table/page") |
| | | @Operation(summary = "è·å¾è¡¨å®ä¹å页") |
| | | @PreAuthorize("@ss.hasPermission('infra:codegen:query')") |
| | | public CommonResult<PageResult<CodegenTableRespVO>> getCodegenTablePage(@Valid CodegenTablePageReqVO pageReqVO) { |
| | | PageResult<CodegenTableDO> pageResult = codegenService.getCodegenTablePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, CodegenTableRespVO.class)); |
| | |
| | | @GetMapping("/detail") |
| | | @Operation(summary = "è·å¾è¡¨ååæ®µçæç»") |
| | | @Parameter(name = "tableId", description = "表ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:codegen:query')") |
| | | public CommonResult<CodegenDetailRespVO> getCodegenDetail(@RequestParam("tableId") Long tableId) { |
| | | CodegenTableDO table = codegenService.getCodegenTable(tableId); |
| | | List<CodegenColumnDO> columns = codegenService.getCodegenColumnListByTableId(tableId); |
| | |
| | | @GetMapping(value = "/get") |
| | | @Operation(summary = "è·å¾åæ°é
ç½®") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:config:query')") |
| | | public CommonResult<ConfigRespVO> getConfig(@RequestParam("id") Long id) { |
| | | return success(ConfigConvert.INSTANCE.convert(configService.getConfig(id))); |
| | | } |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·ååæ°é
ç½®å页") |
| | | @PreAuthorize("@ss.hasPermission('infra:config:query')") |
| | | public CommonResult<PageResult<ConfigRespVO>> getConfigPage(@Valid ConfigPageReqVO pageReqVO) { |
| | | PageResult<ConfigDO> page = configService.getConfigPage(pageReqVO); |
| | | return success(ConfigConvert.INSTANCE.convertPage(page)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æ°æ®æºé
ç½®") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:data-source-config:query')") |
| | | public CommonResult<DataSourceConfigRespVO> getDataSourceConfig(@RequestParam("id") Long id) { |
| | | DataSourceConfigDO config = dataSourceConfigService.getDataSourceConfig(id); |
| | | return success(BeanUtils.toBean(config, DataSourceConfigRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾æ°æ®æºé
ç½®å表") |
| | | @PreAuthorize("@ss.hasPermission('infra:data-source-config:query')") |
| | | public CommonResult<List<DataSourceConfigRespVO>> getDataSourceConfigList() { |
| | | List<DataSourceConfigDO> list = dataSourceConfigService.getDataSourceConfigList(); |
| | | return success(BeanUtils.toBean(list, DataSourceConfigRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç¤ºä¾è系人") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo01-contact:query')") |
| | | public CommonResult<Demo01ContactRespVO> getDemo01Contact(@RequestParam("id") Long id) { |
| | | Demo01ContactDO demo01Contact = demo01ContactService.getDemo01Contact(id); |
| | | return success(BeanUtils.toBean(demo01Contact, Demo01ContactRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç¤ºä¾è系人å页") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo01-contact:query')") |
| | | public CommonResult<PageResult<Demo01ContactRespVO>> getDemo01ContactPage(@Valid Demo01ContactPageReqVO pageReqVO) { |
| | | PageResult<Demo01ContactDO> pageResult = demo01ContactService.getDemo01ContactPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, Demo01ContactRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç¤ºä¾åç±»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo02-category:query')") |
| | | public CommonResult<Demo02CategoryRespVO> getDemo02Category(@RequestParam("id") Long id) { |
| | | Demo02CategoryDO demo02Category = demo02CategoryService.getDemo02Category(id); |
| | | return success(BeanUtils.toBean(demo02Category, Demo02CategoryRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾ç¤ºä¾åç±»å表") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo02-category:query')") |
| | | public CommonResult<List<Demo02CategoryRespVO>> getDemo02CategoryList(@Valid Demo02CategoryListReqVO listReqVO) { |
| | | List<Demo02CategoryDO> list = demo02CategoryService.getDemo02CategoryList(listReqVO); |
| | | return success(BeanUtils.toBean(list, Demo02CategoryRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å¦ç") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<Demo03StudentErpRespVO> getDemo03Student(@RequestParam("id") Long id) { |
| | | Demo03StudentDO demo03Student = demo03StudentErpService.getDemo03Student(id); |
| | | return success(BeanUtils.toBean(demo03Student, Demo03StudentErpRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å¦çå页") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<PageResult<Demo03StudentErpRespVO>> getDemo03StudentPage(@Valid Demo03StudentErpPageReqVO pageReqVO) { |
| | | PageResult<Demo03StudentDO> pageResult = demo03StudentErpService.getDemo03StudentPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, Demo03StudentErpRespVO.class)); |
| | |
| | | @GetMapping("/demo03-course/page") |
| | | @Operation(summary = "è·å¾å¦ç课ç¨å页") |
| | | @Parameter(name = "studentId", description = "å¦çç¼å·") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<PageResult<Demo03CourseDO>> getDemo03CoursePage(PageParam pageReqVO, |
| | | @RequestParam("studentId") Long studentId) { |
| | | return success(demo03StudentErpService.getDemo03CoursePage(pageReqVO, studentId)); |
| | |
| | | @GetMapping("/demo03-course/get") |
| | | @Operation(summary = "è·å¾å¦ç课ç¨") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<Demo03CourseDO> getDemo03Course(@RequestParam("id") Long id) { |
| | | return success(demo03StudentErpService.getDemo03Course(id)); |
| | | } |
| | |
| | | @GetMapping("/demo03-grade/page") |
| | | @Operation(summary = "è·å¾å¦çç级å页") |
| | | @Parameter(name = "studentId", description = "å¦çç¼å·") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<PageResult<Demo03GradeDO>> getDemo03GradePage(PageParam pageReqVO, |
| | | @RequestParam("studentId") Long studentId) { |
| | | return success(demo03StudentErpService.getDemo03GradePage(pageReqVO, studentId)); |
| | |
| | | @GetMapping("/demo03-grade/get") |
| | | @Operation(summary = "è·å¾å¦çç级") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<Demo03GradeDO> getDemo03Grade(@RequestParam("id") Long id) { |
| | | return success(demo03StudentErpService.getDemo03Grade(id)); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å¦ç") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<Demo03StudentInnerRespVO> getDemo03Student(@RequestParam("id") Long id) { |
| | | Demo03StudentDO demo03Student = demo03StudentInnerService.getDemo03Student(id); |
| | | return success(BeanUtils.toBean(demo03Student, Demo03StudentInnerRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å¦çå页") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<PageResult<Demo03StudentInnerRespVO>> getDemo03StudentPage(@Valid Demo03StudentInnerPageReqVO pageReqVO) { |
| | | PageResult<Demo03StudentDO> pageResult = demo03StudentInnerService.getDemo03StudentPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, Demo03StudentInnerRespVO.class)); |
| | |
| | | @GetMapping("/demo03-course/list-by-student-id") |
| | | @Operation(summary = "è·å¾å¦ç课ç¨å表") |
| | | @Parameter(name = "studentId", description = "å¦çç¼å·") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<List<Demo03CourseDO>> getDemo03CourseListByStudentId(@RequestParam("studentId") Long studentId) { |
| | | return success(demo03StudentInnerService.getDemo03CourseListByStudentId(studentId)); |
| | | } |
| | |
| | | @GetMapping("/demo03-grade/get-by-student-id") |
| | | @Operation(summary = "è·å¾å¦çç级") |
| | | @Parameter(name = "studentId", description = "å¦çç¼å·") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<Demo03GradeDO> getDemo03GradeByStudentId(@RequestParam("studentId") Long studentId) { |
| | | return success(demo03StudentInnerService.getDemo03GradeByStudentId(studentId)); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å¦ç") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<Demo03StudentNormalRespVO> getDemo03Student(@RequestParam("id") Long id) { |
| | | Demo03StudentDO demo03Student = demo03StudentNormalService.getDemo03Student(id); |
| | | return success(BeanUtils.toBean(demo03Student, Demo03StudentNormalRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å¦çå页") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<PageResult<Demo03StudentNormalRespVO>> getDemo03StudentPage(@Valid Demo03StudentNormalPageReqVO pageReqVO) { |
| | | PageResult<Demo03StudentDO> pageResult = demo03StudentNormalService.getDemo03StudentPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, Demo03StudentNormalRespVO.class)); |
| | |
| | | @GetMapping("/demo03-course/list-by-student-id") |
| | | @Operation(summary = "è·å¾å¦ç课ç¨å表") |
| | | @Parameter(name = "studentId", description = "å¦çç¼å·") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<List<Demo03CourseDO>> getDemo03CourseListByStudentId(@RequestParam("studentId") Long studentId) { |
| | | return success(demo03StudentNormalService.getDemo03CourseListByStudentId(studentId)); |
| | | } |
| | |
| | | @GetMapping("/demo03-grade/get-by-student-id") |
| | | @Operation(summary = "è·å¾å¦çç级") |
| | | @Parameter(name = "studentId", description = "å¦çç¼å·") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<Demo03GradeDO> getDemo03GradeByStudentId(@RequestParam("studentId") Long studentId) { |
| | | return success(demo03StudentNormalService.getDemo03GradeByStudentId(studentId)); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æä»¶é
ç½®") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:file-config:query')") |
| | | public CommonResult<FileConfigRespVO> getFileConfig(@RequestParam("id") Long id) { |
| | | FileConfigDO config = fileConfigService.getFileConfig(id); |
| | | return success(BeanUtils.toBean(config, FileConfigRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æä»¶é
ç½®å页") |
| | | @PreAuthorize("@ss.hasPermission('infra:file-config:query')") |
| | | public CommonResult<PageResult<FileConfigRespVO>> getFileConfigPage(@Valid FileConfigPageReqVO pageVO) { |
| | | PageResult<FileConfigDO> pageResult = fileConfigService.getFileConfigPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, FileConfigRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/test") |
| | | @Operation(summary = "æµè¯æä»¶é
ç½®æ¯å¦æ£ç¡®") |
| | | @PreAuthorize("@ss.hasPermission('infra:file-config:query')") |
| | | public CommonResult<String> testFileConfig(@RequestParam("id") Long id) throws Exception { |
| | | String url = fileConfigService.testFileConfig(id); |
| | | return success(url); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æä»¶") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('infra:file:query')") |
| | | public CommonResult<FileRespVO> getFile(@RequestParam("id") Long id) { |
| | | return success(BeanUtils.toBean(fileService.getFile(id), FileRespVO.class)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æä»¶å页") |
| | | @PreAuthorize("@ss.hasPermission('infra:file:query')") |
| | | public CommonResult<PageResult<FileRespVO>> getFilePage(@Valid FilePageReqVO pageVO) { |
| | | PageResult<FileDO> pageResult = fileService.getFilePage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, FileRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å®æ¶ä»»å¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:job:query')") |
| | | public CommonResult<JobRespVO> getJob(@RequestParam("id") Long id) { |
| | | JobDO job = jobService.getJob(id); |
| | | return success(BeanUtils.toBean(job, JobRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å®æ¶ä»»å¡å页") |
| | | @PreAuthorize("@ss.hasPermission('infra:job:query')") |
| | | public CommonResult<PageResult<JobRespVO>> getJobPage(@Valid JobPageReqVO pageVO) { |
| | | PageResult<JobDO> pageResult = jobService.getJobPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, JobRespVO.class)); |
| | |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024"), |
| | | @Parameter(name = "count", description = "æ°é", example = "5") |
| | | }) |
| | | @PreAuthorize("@ss.hasPermission('infra:job:query')") |
| | | public CommonResult<List<LocalDateTime>> getJobNextTimes( |
| | | @RequestParam("id") Long id, |
| | | @RequestParam(value = "count", required = false, defaultValue = "5") Integer count) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å®æ¶ä»»å¡æ¥å¿") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:job:query')") |
| | | public CommonResult<JobLogRespVO> getJobLog(@RequestParam("id") Long id) { |
| | | JobLogDO jobLog = jobLogService.getJobLog(id); |
| | | return success(BeanUtils.toBean(jobLog, JobLogRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å®æ¶ä»»å¡æ¥å¿å页") |
| | | @PreAuthorize("@ss.hasPermission('infra:job:query')") |
| | | public CommonResult<PageResult<JobLogRespVO>> getJobLogPage(@Valid JobLogPageReqVO pageVO) { |
| | | PageResult<JobLogDO> pageResult = jobLogService.getJobLogPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, JobLogRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ API è®¿é®æ¥å¿") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:api-access-log:query')") |
| | | public CommonResult<ApiAccessLogRespVO> getApiAccessLog(@RequestParam("id") Long id) { |
| | | ApiAccessLogDO apiAccessLog = apiAccessLogService.getApiAccessLog(id); |
| | | return success(BeanUtils.toBean(apiAccessLog, ApiAccessLogRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾API è®¿é®æ¥å¿å页") |
| | | @PreAuthorize("@ss.hasPermission('infra:api-access-log:query')") |
| | | public CommonResult<PageResult<ApiAccessLogRespVO>> getApiAccessLogPage(@Valid ApiAccessLogPageReqVO pageReqVO) { |
| | | PageResult<ApiAccessLogDO> pageResult = apiAccessLogService.getApiAccessLogPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, ApiAccessLogRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ API é误æ¥å¿") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:api-error-log:query')") |
| | | public CommonResult<ApiErrorLogRespVO> getApiErrorLog(@RequestParam("id") Long id) { |
| | | ApiErrorLogDO apiErrorLog = apiErrorLogService.getApiErrorLog(id); |
| | | return success(BeanUtils.toBean(apiErrorLog, ApiErrorLogRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ API é误æ¥å¿å页") |
| | | @PreAuthorize("@ss.hasPermission('infra:api-error-log:query')") |
| | | public CommonResult<PageResult<ApiErrorLogRespVO>> getApiErrorLogPage(@Valid ApiErrorLogPageReqVO pageReqVO) { |
| | | PageResult<ApiErrorLogDO> pageResult = apiErrorLogService.getApiErrorLogPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, ApiErrorLogRespVO.class)); |
| | |
| | | @Operation(summary = "è·å¾${table.classComment}") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | #if ($sceneEnum.scene == 1) |
| | | @PreAuthorize("@ss.hasPermission('${permissionPrefix}:query')") |
| | | #end |
| | | public CommonResult<${respVOClass}> get${simpleClassName}(@RequestParam("id") ${primaryColumn.javaType} id) { |
| | | ${table.className}DO ${classNameVar} = ${classNameVar}Service.get${simpleClassName}(id); |
| | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾${table.classComment}å页") |
| | | #if ($sceneEnum.scene == 1) |
| | | @PreAuthorize("@ss.hasPermission('${permissionPrefix}:query')") |
| | | #end |
| | | public CommonResult<PageResult<${respVOClass}>> get${simpleClassName}Page(@Valid ${sceneEnum.prefixClass}${table.className}PageReqVO pageReqVO) { |
| | | PageResult<${table.className}DO> pageResult = ${classNameVar}Service.get${simpleClassName}Page(pageReqVO); |
| | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾${table.classComment}å表") |
| | | #if ($sceneEnum.scene == 1) |
| | | @PreAuthorize("@ss.hasPermission('${permissionPrefix}:query')") |
| | | #end |
| | | public CommonResult<List<${respVOClass}>> get${simpleClassName}List(@Valid ${sceneEnum.prefixClass}${table.className}ListReqVO listReqVO) { |
| | | List<${table.className}DO> list = ${classNameVar}Service.get${simpleClassName}List(listReqVO); |
| | |
| | | @Operation(summary = "è·å¾${subTable.classComment}å页") |
| | | @Parameter(name = "${subJoinColumn.javaField}", description = "${subJoinColumn.columnComment}") |
| | | #if ($sceneEnum.scene == 1) |
| | | @PreAuthorize("@ss.hasPermission('${permissionPrefix}:query')") |
| | | #end |
| | | public CommonResult<PageResult<${subTable.className}DO>> get${subSimpleClassName}Page(PageParam pageReqVO, |
| | | @RequestParam("${subJoinColumn.javaField}") ${subJoinColumn.javaType} ${subJoinColumn.javaField}) { |
| | |
| | | @Operation(summary = "è·å¾${subTable.classComment}å表") |
| | | @Parameter(name = "${subJoinColumn.javaField}", description = "${subJoinColumn.columnComment}") |
| | | #if ($sceneEnum.scene == 1) |
| | | @PreAuthorize("@ss.hasPermission('${permissionPrefix}:query')") |
| | | #end |
| | | public CommonResult<List<${subTable.className}DO>> get${subSimpleClassName}ListBy${SubJoinColumnName}(@RequestParam("${subJoinColumn.javaField}") ${subJoinColumn.javaType} ${subJoinColumn.javaField}) { |
| | | return success(${classNameVar}Service.get${subSimpleClassName}ListBy${SubJoinColumnName}(${subJoinColumn.javaField})); |
| | |
| | | @Operation(summary = "è·å¾${subTable.classComment}") |
| | | @Parameter(name = "${subJoinColumn.javaField}", description = "${subJoinColumn.columnComment}") |
| | | #if ($sceneEnum.scene == 1) |
| | | @PreAuthorize("@ss.hasPermission('${permissionPrefix}:query')") |
| | | #end |
| | | public CommonResult<${subTable.className}DO> get${subSimpleClassName}By${SubJoinColumnName}(@RequestParam("${subJoinColumn.javaField}") ${subJoinColumn.javaType} ${subJoinColumn.javaField}) { |
| | | return success(${classNameVar}Service.get${subSimpleClassName}By${SubJoinColumnName}(${subJoinColumn.javaField})); |
| | |
| | | @Operation(summary = "è·å¾${subTable.classComment}") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | #if ($sceneEnum.scene == 1) |
| | | @PreAuthorize("@ss.hasPermission('${permissionPrefix}:query')") |
| | | #end |
| | | public CommonResult<${subTable.className}DO> get${subSimpleClassName}(@RequestParam("id") ${subPrimaryColumn.javaType} id) { |
| | | return success(${classNameVar}Service.get${subSimpleClassName}(id)); |
| | |
| | | ## éç¨åéå®ä¹ |
| | | #if ($importEnable) |
| | | #set ($functionNames = ['æ¥è¯¢', 'å建', 'æ´æ°', 'å é¤', '导åº', '导å
¥']) |
| | | #set ($functionOps = ['query', 'create', 'update', 'delete', 'export', 'import']) |
| | | #set ($functionNames = ['å建', 'æ´æ°', 'å é¤', '导åº', '导å
¥']) |
| | | #set ($functionOps = ['create', 'update', 'delete', 'export', 'import']) |
| | | #else |
| | | #set ($functionNames = ['æ¥è¯¢', 'å建', 'æ´æ°', 'å é¤', '导åº']) |
| | | #set ($functionOps = ['query', 'create', 'update', 'delete', 'export']) |
| | | #set ($functionNames = ['å建', 'æ´æ°', 'å é¤', '导åº']) |
| | | #set ($functionOps = ['create', 'update', 'delete', 'export']) |
| | | #end |
| | | ## |
| | | ## å®å®ä¹ï¼çææé® SQLï¼éç¨é¨åï¼ |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾åç") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mdm:brand:query')") |
| | | public CommonResult<MdmBrandDO> getBrand(@RequestParam("id") Long id) { |
| | | return success(brandService.getBrand(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾åçå页") |
| | | @PreAuthorize("@ss.hasPermission('mdm:brand:query')") |
| | | public CommonResult<PageResult<MdmBrandDO>> getBrandPage(@Valid MdmBrandPageReqVO pageReqVO) { |
| | | return success(brandService.getBrandPage(pageReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾åçå表") |
| | | @PreAuthorize("@ss.hasPermission('mdm:brand:query')") |
| | | public CommonResult<List<MdmBrandDO>> getBrandList() { |
| | | return success(brandService.getBrandList(null)); |
| | | } |
| | |
| | | @GetMapping("/list-by-ids") |
| | | @Operation(summary = "è·å¾åçå表") |
| | | @Parameter(name = "ids", description = "ç¼å·å表", required = true, example = "1,2,3") |
| | | @PreAuthorize("@ss.hasPermission('mdm:brand:query')") |
| | | public CommonResult<List<MdmBrandDO>> getBrandListByIds(@RequestParam("ids") List<Long> ids) { |
| | | return success(brandService.getBrandList(ids)); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç©æåç±»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mdm:item-category:query')") |
| | | public CommonResult<MdmItemCategoryRespVO> getItemCategory(@RequestParam("id") Long id) { |
| | | MdmItemCategoryDO itemCategory = itemCategoryService.getItemCategory(id); |
| | | return success(BeanUtils.toBean(itemCategory, MdmItemCategoryRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç©æåç±»å页") |
| | | @PreAuthorize("@ss.hasPermission('mdm:item-category:query')") |
| | | public CommonResult<PageResult<MdmItemCategoryRespVO>> getItemCategoryPage(@Valid MdmItemCategoryPageReqVO pageReqVO) { |
| | | PageResult<MdmItemCategoryDO> pageResult = itemCategoryService.getItemCategoryPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MdmItemCategoryRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾ç©æåç±»å表") |
| | | @PreAuthorize("@ss.hasPermission('mdm:item-category:query')") |
| | | public CommonResult<List<MdmItemCategoryRespVO>> getItemCategoryList() { |
| | | List<MdmItemCategoryDO> list = itemCategoryService.getItemCategoryList(null); |
| | | return success(BeanUtils.toBean(list, MdmItemCategoryRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç©æ") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mdm:item:query')") |
| | | public CommonResult<MdmItemRespVO> getItem(@RequestParam("id") Long id) { |
| | | MdmItemDO item = itemService.getItem(id); |
| | | MdmItemRespVO resp = BeanUtils.toBean(item, MdmItemRespVO.class); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç©æå页") |
| | | @PreAuthorize("@ss.hasPermission('mdm:item:query')") |
| | | public CommonResult<PageResult<MdmItemRespVO>> getItemPage(@Valid MdmItemPageReqVO pageReqVO) { |
| | | PageResult<MdmItemDO> pageResult = itemService.getItemPage(pageReqVO); |
| | | // 转æ¢å¹¶è¡¥é½å
³èåç§° |
| | |
| | | @GetMapping("/list-by-ids") |
| | | @Operation(summary = "è·å¾ç©æå表") |
| | | @Parameter(name = "ids", description = "ç¼å·å表", required = true, example = "1,2,3") |
| | | @PreAuthorize("@ss.hasPermission('mdm:item:query')") |
| | | public CommonResult<List<MdmItemRespVO>> getItemList(@RequestParam("ids") List<Long> ids) { |
| | | List<MdmItemDO> list = itemService.getItemList(ids); |
| | | return success(BeanUtils.toBean(list, MdmItemRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è®¡éåä½") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mdm:unit:query')") |
| | | public CommonResult<MdmUnitMeasureDO> getUnitMeasure(@RequestParam("id") Long id) { |
| | | return success(unitMeasureService.getUnitMeasure(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è®¡éåä½å页") |
| | | @PreAuthorize("@ss.hasPermission('mdm:unit:query')") |
| | | public CommonResult<PageResult<MdmUnitMeasureDO>> getUnitMeasurePage(@Valid MdmUnitMeasurePageReqVO pageReqVO) { |
| | | return success(unitMeasureService.getUnitMeasurePage(pageReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾è®¡éåä½å表") |
| | | @PreAuthorize("@ss.hasPermission('mdm:unit:query')") |
| | | public CommonResult<List<MdmUnitMeasureDO>> getUnitMeasureList() { |
| | | return success(unitMeasureService.getUnitMeasureList(null)); |
| | | } |
| | |
| | | @GetMapping("/list-by-ids") |
| | | @Operation(summary = "è·å¾è®¡éåä½å表") |
| | | @Parameter(name = "ids", description = "ç¼å·å表", required = true, example = "1,2,3") |
| | | @PreAuthorize("@ss.hasPermission('mdm:unit:query')") |
| | | public CommonResult<List<MdmUnitMeasureDO>> getUnitMeasureListByIds(@RequestParam("ids") List<Long> ids) { |
| | | return success(unitMeasureService.getUnitMeasureList(ids)); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ä»åº") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mdm:warehouse:query')") |
| | | public CommonResult<MdmWarehouseRespVO> getWarehouse(@RequestParam("id") Long id) { |
| | | MdmWarehouseDO warehouse = warehouseService.getWarehouse(id); |
| | | return success(BeanUtils.toBean(warehouse, MdmWarehouseRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ä»åºå页") |
| | | @PreAuthorize("@ss.hasPermission('mdm:warehouse:query')") |
| | | public CommonResult<PageResult<MdmWarehouseRespVO>> getWarehousePage(@Valid MdmWarehousePageReqVO pageReqVO) { |
| | | PageResult<MdmWarehouseDO> pageResult = warehouseService.getWarehousePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MdmWarehouseRespVO.class)); |
| | |
| | | @GetMapping("/list-by-ids") |
| | | @Operation(summary = "è·å¾ä»åºå表") |
| | | @Parameter(name = "ids", description = "ç¼å·å表", required = true, example = "1,2,3") |
| | | @PreAuthorize("@ss.hasPermission('mdm:warehouse:query')") |
| | | public CommonResult<List<MdmWarehouseRespVO>> getWarehouseList(@RequestParam("ids") List<Long> ids) { |
| | | List<MdmWarehouseDO> list = warehouseService.getWarehouseList(ids); |
| | | return success(BeanUtils.toBean(list, MdmWarehouseRespVO.class)); |
| | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾ç¨æ·æ¶ä»¶å°åå表") |
| | | @Parameter(name = "userId", description = "ç¨æ·ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('member:user:query')") |
| | | public CommonResult<List<AddressRespVO>> getAddressList(@RequestParam("userId") Long userId) { |
| | | List<MemberAddressDO> list = addressService.getAddressList(userId); |
| | | return success(AddressConvert.INSTANCE.convertList2(list)); |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ä¼åé
ç½®") |
| | | @PreAuthorize("@ss.hasPermission('member:config:query')") |
| | | public CommonResult<MemberConfigRespVO> getConfig() { |
| | | MemberConfigDO config = memberConfigService.getConfig(); |
| | | return success(MemberConfigConvert.INSTANCE.convert(config)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç¨æ·åç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('member:group:query')") |
| | | public CommonResult<MemberGroupRespVO> getGroup(@RequestParam("id") Long id) { |
| | | MemberGroupDO group = groupService.getGroup(id); |
| | | return success(MemberGroupConvert.INSTANCE.convert(group)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç¨æ·åç»å页") |
| | | @PreAuthorize("@ss.hasPermission('member:group:query')") |
| | | public CommonResult<PageResult<MemberGroupRespVO>> getGroupPage(@Valid MemberGroupPageReqVO pageVO) { |
| | | PageResult<MemberGroupDO> pageResult = groupService.getGroupPage(pageVO); |
| | | return success(MemberGroupConvert.INSTANCE.convertPage(pageResult)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ä¼åç»éªè®°å½") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('member:experience-record:query')") |
| | | public CommonResult<MemberExperienceRecordRespVO> getExperienceRecord(@RequestParam("id") Long id) { |
| | | MemberExperienceRecordDO experienceLog = experienceLogService.getExperienceRecord(id); |
| | | return success(MemberExperienceRecordConvert.INSTANCE.convert(experienceLog)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ä¼åç»éªè®°å½å页") |
| | | @PreAuthorize("@ss.hasPermission('member:experience-record:query')") |
| | | public CommonResult<PageResult<MemberExperienceRecordRespVO>> getExperienceRecordPage( |
| | | @Valid MemberExperienceRecordPageReqVO pageVO) { |
| | | PageResult<MemberExperienceRecordDO> pageResult = experienceLogService.getExperienceRecordPage(pageVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ä¼åç级") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('member:level:query')") |
| | | public CommonResult<MemberLevelRespVO> getLevel(@RequestParam("id") Long id) { |
| | | MemberLevelDO level = levelService.getLevel(id); |
| | | return success(MemberLevelConvert.INSTANCE.convert(level)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾ä¼åç级å表") |
| | | @PreAuthorize("@ss.hasPermission('member:level:query')") |
| | | public CommonResult<List<MemberLevelRespVO>> getLevelList(@Valid MemberLevelListReqVO listReqVO) { |
| | | List<MemberLevelDO> result = levelService.getLevelList(listReqVO); |
| | | return success(MemberLevelConvert.INSTANCE.convertList(result)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ä¼åç级记å½") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('member:level-record:query')") |
| | | public CommonResult<MemberLevelRecordRespVO> getLevelRecord(@RequestParam("id") Long id) { |
| | | MemberLevelRecordDO levelLog = levelLogService.getLevelRecord(id); |
| | | return success(MemberLevelRecordConvert.INSTANCE.convert(levelLog)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ä¼åç级记å½å页") |
| | | @PreAuthorize("@ss.hasPermission('member:level-record:query')") |
| | | public CommonResult<PageResult<MemberLevelRecordRespVO>> getLevelRecordPage( |
| | | @Valid MemberLevelRecordPageReqVO pageVO) { |
| | | PageResult<MemberLevelRecordDO> pageResult = levelLogService.getLevelRecordPage(pageVO); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç¨æ·ç§¯åè®°å½å页") |
| | | @PreAuthorize("@ss.hasPermission('point:record:query')") |
| | | public CommonResult<PageResult<MemberPointRecordRespVO>> getPointRecordPage(@Valid MemberPointRecordPageReqVO pageVO) { |
| | | // æ§è¡å页æ¥è¯¢ |
| | | PageResult<MemberPointRecordDO> pageResult = pointRecordService.getPointRecordPage(pageVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç¾å°è§å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('point:sign-in-config:query')") |
| | | public CommonResult<MemberSignInConfigRespVO> getSignInConfig(@RequestParam("id") Long id) { |
| | | MemberSignInConfigDO signInConfig = signInConfigService.getSignInConfig(id); |
| | | return success(MemberSignInConfigConvert.INSTANCE.convert(signInConfig)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾ç¾å°è§åå表") |
| | | @PreAuthorize("@ss.hasPermission('point:sign-in-config:query')") |
| | | public CommonResult<List<MemberSignInConfigRespVO>> getSignInConfigList() { |
| | | List<MemberSignInConfigDO> list = signInConfigService.getSignInConfigList(); |
| | | return success(MemberSignInConfigConvert.INSTANCE.convertList(list)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç¾å°è®°å½å页") |
| | | @PreAuthorize("@ss.hasPermission('point:sign-in-record:query')") |
| | | public CommonResult<PageResult<MemberSignInRecordRespVO>> getSignInRecordPage(@Valid MemberSignInRecordPageReqVO pageVO) { |
| | | // æ§è¡å页æ¥è¯¢ |
| | | PageResult<MemberSignInRecordDO> pageResult = signInRecordService.getSignInRecordPage(pageVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ä¼åæ ç¾") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('member:tag:query')") |
| | | public CommonResult<MemberTagRespVO> getMemberTag(@RequestParam("id") Long id) { |
| | | MemberTagDO tag = tagService.getTag(id); |
| | | return success(MemberTagConvert.INSTANCE.convert(tag)); |
| | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾ä¼åæ ç¾å表") |
| | | @Parameter(name = "ids", description = "ç¼å·å表", required = true, example = "1024,2048") |
| | | @PreAuthorize("@ss.hasPermission('member:tag:query')") |
| | | public CommonResult<List<MemberTagRespVO>> getMemberTagList(@RequestParam("ids") Collection<Long> ids) { |
| | | List<MemberTagDO> list = tagService.getTagList(ids); |
| | | return success(MemberTagConvert.INSTANCE.convertList(list)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ä¼åæ ç¾å页") |
| | | @PreAuthorize("@ss.hasPermission('member:tag:query')") |
| | | public CommonResult<PageResult<MemberTagRespVO>> getTagPage(@Valid MemberTagPageReqVO pageVO) { |
| | | PageResult<MemberTagDO> pageResult = tagService.getTagPage(pageVO); |
| | | return success(MemberTagConvert.INSTANCE.convertPage(pageResult)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ä¼åç¨æ·") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('member:user:query')") |
| | | public CommonResult<MemberUserRespVO> getUser(@RequestParam("id") Long id) { |
| | | MemberUserDO user = memberUserService.getUser(id); |
| | | if (user == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ä¼åç¨æ·å页") |
| | | @PreAuthorize("@ss.hasPermission('member:user:query')") |
| | | public CommonResult<PageResult<MemberUserRespVO>> getUserPage(@Valid MemberUserPageReqVO pageVO) { |
| | | PageResult<MemberUserDO> pageResult = memberUserService.getUserPage(pageVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "æ¥è¯¢æçæ¥å") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-team-shift:query')") |
| | | public CommonResult<List<MesCalCalendarRespVO>> getCalendarList(@Valid MesCalCalendarListReqVO reqVO) { |
| | | // 1.1 æ ¹æ®æ¥è¯¢ç±»åè·åçç»æçè®°å½ |
| | | List<MesCalTeamShiftDO> teamShifts = getTeamShifts(reqVO); |
| | |
| | | @GetMapping("/get-by-day") |
| | | @Operation(summary = "æ ¹æ®æ¥æè·å¾åæè®¾ç½®") |
| | | @Parameter(name = "day", description = "æ¥æ", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-holiday:query')") |
| | | public CommonResult<MesCalHolidayRespVO> getHolidayByDay( |
| | | @RequestParam("day") @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) LocalDateTime day) { |
| | | MesCalHolidayDO holiday = holidayService.getHolidayByDay(day); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾åæè®¾ç½®å表", description = "æ¯æå¯éæ¥æèå´è¿æ»¤ï¼ä¸ä¼ åè¿åå
¨éæ°æ®") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-holiday:query')") |
| | | public CommonResult<List<MesCalHolidayRespVO>> getHolidayList( |
| | | @RequestParam(value = "startDay", required = false) |
| | | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) LocalDateTime startDay, |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æç计å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-plan:query')") |
| | | public CommonResult<MesCalPlanRespVO> getPlan(@RequestParam("id") Long id) { |
| | | MesCalPlanDO plan = planService.getPlan(id); |
| | | return success(BeanUtils.toBean(plan, MesCalPlanRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æç计åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-plan:query')") |
| | | public CommonResult<PageResult<MesCalPlanRespVO>> getPlanPage(@Valid MesCalPlanPageReqVO pageReqVO) { |
| | | PageResult<MesCalPlanDO> pageResult = planService.getPlanPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesCalPlanRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è®¡åçæ¬¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-plan:query')") |
| | | public CommonResult<MesCalPlanShiftRespVO> getPlanShift(@RequestParam("id") Long id) { |
| | | MesCalPlanShiftDO planShift = planShiftService.getPlanShift(id); |
| | | return success(BeanUtils.toBean(planShift, MesCalPlanShiftRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è®¡åçæ¬¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-plan:query')") |
| | | public CommonResult<PageResult<MesCalPlanShiftRespVO>> getPlanShiftPage(@Valid MesCalPlanShiftPageReqVO pageReqVO) { |
| | | PageResult<MesCalPlanShiftDO> pageResult = planShiftService.getPlanShiftPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesCalPlanShiftRespVO.class)); |
| | |
| | | @GetMapping("/list-by-plan") |
| | | @Operation(summary = "è·å¾æå®æç计åççæ¬¡å表") |
| | | @Parameter(name = "planId", description = "æç计åç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-plan:query')") |
| | | public CommonResult<List<MesCalPlanShiftRespVO>> getPlanShiftListByPlan(@RequestParam("planId") Long planId) { |
| | | List<MesCalPlanShiftDO> list = planShiftService.getPlanShiftListByPlanId(planId); |
| | | return success(BeanUtils.toBean(list, MesCalPlanShiftRespVO.class)); |
| | |
| | | @GetMapping("/list-by-plan") |
| | | @Operation(summary = "è·å¾æå®æç计åççç»å表") |
| | | @Parameter(name = "planId", description = "æç计åç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-plan:query')") |
| | | public CommonResult<List<MesCalPlanTeamRespVO>> getPlanTeamListByPlan(@RequestParam("planId") Long planId) { |
| | | List<MesCalPlanTeamDO> list = planTeamService.getPlanTeamListByPlanId(planId); |
| | | List<MesCalPlanTeamRespVO> respList = BeanUtils.toBean(list, MesCalPlanTeamRespVO.class); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾çç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-team:query')") |
| | | public CommonResult<MesCalTeamRespVO> getTeam(@RequestParam("id") Long id) { |
| | | MesCalTeamDO team = teamService.getTeam(id); |
| | | return success(BeanUtils.toBean(team, MesCalTeamRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾çç»å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-team:query')") |
| | | public CommonResult<PageResult<MesCalTeamRespVO>> getTeamPage(@Valid MesCalTeamPageReqVO pageReqVO) { |
| | | PageResult<MesCalTeamDO> pageResult = teamService.getTeamPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesCalTeamRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾çç»å表") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-team:query')") |
| | | public CommonResult<List<MesCalTeamRespVO>> getTeamList() { |
| | | List<MesCalTeamDO> list = teamService.getTeamList(); |
| | | return success(BeanUtils.toBean(list, MesCalTeamRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾çç»æå") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-team:query')") |
| | | public CommonResult<MesCalTeamMemberRespVO> getTeamMember(@RequestParam("id") Long id) { |
| | | MesCalTeamMemberDO member = teamMemberService.getTeamMember(id); |
| | | return success(BeanUtils.toBean(member, MesCalTeamMemberRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾çç»æåå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-team:query')") |
| | | public CommonResult<PageResult<MesCalTeamMemberRespVO>> getTeamMemberPage(@Valid MesCalTeamMemberPageReqVO pageReqVO) { |
| | | PageResult<MesCalTeamMemberDO> pageResult = teamMemberService.getTeamMemberPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesCalTeamMemberRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/list-by-team") |
| | | @Operation(summary = "è·å¾çç»æåå表", description = "æ¯æå个 teamId æå¤ä¸ª teamIds") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-team:query')") |
| | | public CommonResult<List<MesCalTeamMemberRespVO>> getTeamMemberListByTeam( |
| | | @RequestParam(value = "teamId", required = false) Long teamId, |
| | | @RequestParam(value = "teamIds", required = false) Collection<Long> teamIds) { |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾çç»æçå表") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-team-shift:query')") |
| | | public CommonResult<List<MesCalTeamShiftRespVO>> getTeamShiftList(@Valid MesCalTeamShiftListReqVO reqVO) { |
| | | List<MesCalTeamShiftDO> list = teamShiftService.getTeamShiftList(reqVO); |
| | | if (CollUtil.isEmpty(list)) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç¹æ£ä¿å
»æ¹æ¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-check-plan:query')") |
| | | public CommonResult<MesDvCheckPlanRespVO> getCheckPlan(@RequestParam("id") Long id) { |
| | | MesDvCheckPlanDO checkPlan = checkPlanService.getCheckPlan(id); |
| | | return success(BeanUtils.toBean(checkPlan, MesDvCheckPlanRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç¹æ£ä¿å
»æ¹æ¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-check-plan:query')") |
| | | public CommonResult<PageResult<MesDvCheckPlanRespVO>> getCheckPlanPage(@Valid MesDvCheckPlanPageReqVO pageReqVO) { |
| | | PageResult<MesDvCheckPlanDO> pageResult = checkPlanService.getCheckPlanPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesDvCheckPlanRespVO.class)); |
| | |
| | | @GetMapping("/list-by-plan") |
| | | @Operation(summary = "è·å¾æå®æ¹æ¡ç设å¤å表") |
| | | @Parameter(name = "planId", description = "æ¹æ¡ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-check-plan:query')") |
| | | public CommonResult<List<MesDvCheckPlanMachineryRespVO>> getCheckPlanMachineryListByPlan( |
| | | @RequestParam("planId") Long planId) { |
| | | List<MesDvCheckPlanMachineryDO> list = checkPlanMachineryService.getCheckPlanMachineryListByPlanId(planId); |
| | |
| | | @GetMapping("/list-by-plan") |
| | | @Operation(summary = "è·å¾æå®æ¹æ¡ç项ç®å表") |
| | | @Parameter(name = "planId", description = "æ¹æ¡ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-check-plan:query')") |
| | | public CommonResult<List<MesDvCheckPlanSubjectRespVO>> getCheckPlanSubjectListByPlan( |
| | | @RequestParam("planId") Long planId) { |
| | | List<MesDvCheckPlanSubjectDO> list = checkPlanSubjectService.getCheckPlanSubjectListByPlanId(planId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è®¾å¤ç¹æ£è®°å½") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-check-record:query')") |
| | | public CommonResult<MesDvCheckRecordRespVO> getCheckRecord(@RequestParam("id") Long id) { |
| | | MesDvCheckRecordDO checkRecord = checkRecordService.getCheckRecord(id); |
| | | if (checkRecord == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è®¾å¤ç¹æ£è®°å½å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-check-record:query')") |
| | | public CommonResult<PageResult<MesDvCheckRecordRespVO>> getCheckRecordPage(@Valid MesDvCheckRecordPageReqVO pageReqVO) { |
| | | PageResult<MesDvCheckRecordDO> pageResult = checkRecordService.getCheckRecordPage(pageReqVO); |
| | | return success(new PageResult<>(buildCheckRecordRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è®¾å¤ç¹æ£è®°å½æç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-check-record:query')") |
| | | public CommonResult<MesDvCheckRecordLineRespVO> getCheckRecordLine(@RequestParam("id") Long id) { |
| | | MesDvCheckRecordLineDO line = checkRecordLineService.getCheckRecordLine(id); |
| | | if (line == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è®¾å¤ç¹æ£è®°å½æç»å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-check-record:query')") |
| | | public CommonResult<PageResult<MesDvCheckRecordLineRespVO>> getCheckRecordLinePage(@Valid MesDvCheckRecordLinePageReqVO pageReqVO) { |
| | | PageResult<MesDvCheckRecordLineDO> pageResult = checkRecordLineService.getCheckRecordLinePage(pageReqVO); |
| | | return success(new PageResult<>(buildCheckRecordLineRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è®¾å¤") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-machinery:query')") |
| | | public CommonResult<MesDvMachineryRespVO> getMachinery(@RequestParam("id") Long id) { |
| | | MesDvMachineryDO machinery = machineryService.getMachinery(id); |
| | | if (machinery == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è®¾å¤å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-machinery:query')") |
| | | public CommonResult<PageResult<MesDvMachineryRespVO>> getMachineryPage(@Valid MesDvMachineryPageReqVO pageReqVO) { |
| | | PageResult<MesDvMachineryDO> pageResult = machineryService.getMachineryPage(pageReqVO); |
| | | return success(new PageResult<>(buildMachineryRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/simple-list") |
| | | @Operation(summary = "è·å¾è®¾å¤ç²¾ç®å表", description = "主è¦ç¨äºå端ç䏿é项") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-machinery:query')") |
| | | public CommonResult<List<MesDvMachineryRespVO>> getMachinerySimpleList() { |
| | | List<MesDvMachineryDO> list = machineryService.getMachineryList(); |
| | | return success(BeanUtils.toBean(list, MesDvMachineryRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è®¾å¤ç±»å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-machinery-type:query')") |
| | | public CommonResult<MesDvMachineryTypeRespVO> getMachineryType(@RequestParam("id") Long id) { |
| | | MesDvMachineryTypeDO machineryType = machineryTypeService.getMachineryType(id); |
| | | return success(BeanUtils.toBean(machineryType, MesDvMachineryTypeRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾è®¾å¤ç±»åå表") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-machinery-type:query')") |
| | | public CommonResult<List<MesDvMachineryTypeRespVO>> getMachineryTypeList(@Valid MesDvMachineryTypeListReqVO listReqVO) { |
| | | List<MesDvMachineryTypeDO> list = machineryTypeService.getMachineryTypeList(listReqVO); |
| | | return success(BeanUtils.toBean(list, MesDvMachineryTypeRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è®¾å¤ä¿å
»è®°å½") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-mainten-record:query')") |
| | | public CommonResult<MesDvMaintenRecordRespVO> getMaintenRecord(@RequestParam("id") Long id) { |
| | | MesDvMaintenRecordDO maintenRecord = maintenRecordService.getMaintenRecord(id); |
| | | if (maintenRecord == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è®¾å¤ä¿å
»è®°å½å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-mainten-record:query')") |
| | | public CommonResult<PageResult<MesDvMaintenRecordRespVO>> getMaintenRecordPage(@Valid MesDvMaintenRecordPageReqVO pageReqVO) { |
| | | PageResult<MesDvMaintenRecordDO> pageResult = maintenRecordService.getMaintenRecordPage(pageReqVO); |
| | | return success(new PageResult<>(buildMaintenRecordRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è®¾å¤ä¿å
»è®°å½æç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-mainten-record:query')") |
| | | public CommonResult<MesDvMaintenRecordLineRespVO> getMaintenRecordLine(@RequestParam("id") Long id) { |
| | | MesDvMaintenRecordLineDO maintenRecordLine = maintenRecordLineService.getMaintenRecordLine(id); |
| | | if (maintenRecordLine == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è®¾å¤ä¿å
»è®°å½æç»å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-mainten-record:query')") |
| | | public CommonResult<PageResult<MesDvMaintenRecordLineRespVO>> getMaintenRecordLinePage(@Valid MesDvMaintenRecordLinePageReqVO pageReqVO) { |
| | | PageResult<MesDvMaintenRecordLineDO> pageResult = maintenRecordLineService.getMaintenRecordLinePage(pageReqVO); |
| | | return success(new PageResult<>(buildMaintenRecordLineRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è®¡éå¨å
·") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-metering:query')") |
| | | public CommonResult<MesDvMeteringRespVO> getMetering(@RequestParam("id") Long id) { |
| | | MesDvMeteringDO metering = meteringService.getMetering(id); |
| | | if (metering == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è®¡éå¨å
·å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-metering:query')") |
| | | public CommonResult<PageResult<MesDvMeteringRespVO>> getMeteringPage(@Valid MesDvMeteringPageReqVO pageReqVO) { |
| | | PageResult<MesDvMeteringDO> pageResult = meteringService.getMeteringPage(pageReqVO); |
| | | return success(new PageResult<>(buildMeteringRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/simple-list") |
| | | @Operation(summary = "è·å¾è®¡éå¨å
·ç²¾ç®å表", description = "主è¦ç¨äºå端ç䏿é项") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-metering:query')") |
| | | public CommonResult<List<MesDvMeteringRespVO>> getMeteringSimpleList() { |
| | | List<MesDvMeteringDO> list = meteringService.getMeteringList(); |
| | | return success(buildMeteringRespVOList(list)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è®¡éæ£æµè®°å½") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-metering-check:query')") |
| | | public CommonResult<MesDvMeteringCheckRespVO> getMeteringCheck(@RequestParam("id") Long id) { |
| | | MesDvMeteringCheckDO check = meteringCheckService.getMeteringCheck(id); |
| | | if (check == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è®¡éæ£æµè®°å½å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-metering-check:query')") |
| | | public CommonResult<PageResult<MesDvMeteringCheckRespVO>> getMeteringCheckPage( |
| | | @Valid MesDvMeteringCheckPageReqVO pageReqVO) { |
| | | PageResult<MesDvMeteringCheckDO> pageResult = meteringCheckService.getMeteringCheckPage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç»´ä¿®å·¥å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-repair:query')") |
| | | public CommonResult<MesDvRepairRespVO> getRepair(@RequestParam("id") Long id) { |
| | | MesDvRepairDO repair = repairService.getRepair(id); |
| | | if (repair == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç»´ä¿®å·¥åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-repair:query')") |
| | | public CommonResult<PageResult<MesDvRepairRespVO>> getRepairPage(@Valid MesDvRepairPageReqVO pageReqVO) { |
| | | PageResult<MesDvRepairDO> pageResult = repairService.getRepairPage(pageReqVO); |
| | | return success(new PageResult<>(buildRepairRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç»´ä¿®å·¥åè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-repair:query')") |
| | | public CommonResult<MesDvRepairLineRespVO> getRepairLine(@RequestParam("id") Long id) { |
| | | MesDvRepairLineDO repairLine = repairLineService.getRepairLine(id); |
| | | if (repairLine == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç»´ä¿®å·¥åè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-repair:query')") |
| | | public CommonResult<PageResult<MesDvRepairLineRespVO>> getRepairLinePage(@Valid MesDvRepairLinePageReqVO pageReqVO) { |
| | | PageResult<MesDvRepairLineDO> pageResult = repairLineService.getRepairLinePage(pageReqVO); |
| | | return success(new PageResult<>(buildRepairLineRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @RestController @RequestMapping("/mes/dv/spare") @Validated |
| | | public class MesDvSpareController { |
| | | @Resource private MesDvSpareService service; |
| | | @GetMapping("/page") @PreAuthorize("@ss.hasPermission('mes:dv-spare:query')") |
| | | @GetMapping("/page") |
| | | public CommonResult<PageResult<MesDvSparePartDO>> page(@Valid MesDvSparePageReqVO req) { return success(service.page(req)); } |
| | | @GetMapping("/get") @PreAuthorize("@ss.hasPermission('mes:dv-spare:query')") |
| | | @GetMapping("/get") |
| | | public CommonResult<MesDvSparePartDO> get(@RequestParam Long id) { return success(service.get(id)); } |
| | | @PostMapping("/create") @PreAuthorize("@ss.hasPermission('mes:dv-spare:create')") |
| | | public CommonResult<Long> create(@Valid @RequestBody MesDvSparePartSaveReqVO req) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç¹æ£ä¿å
»é¡¹ç®") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-subject:query')") |
| | | public CommonResult<MesDvSubjectRespVO> getSubject(@RequestParam("id") Long id) { |
| | | MesDvSubjectDO subject = subjectService.getSubject(id); |
| | | return success(BeanUtils.toBean(subject, MesDvSubjectRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç¹æ£ä¿å
»é¡¹ç®å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-subject:query')") |
| | | public CommonResult<PageResult<MesDvSubjectRespVO>> getSubjectPage(@Valid MesDvSubjectPageReqVO pageReqVO) { |
| | | PageResult<MesDvSubjectDO> pageResult = subjectService.getSubjectPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesDvSubjectRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/simple-list") |
| | | @Operation(summary = "è·å¾ç¹æ£ä¿å
»é¡¹ç®ç²¾ç®å表", description = "主è¦ç¨äºå端ç䏿é项") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-subject:query')") |
| | | public CommonResult<List<MesDvSubjectRespVO>> getSubjectSimpleList() { |
| | | List<MesDvSubjectDO> list = subjectService.getSubjectList(); |
| | | return success(BeanUtils.toBean(list, MesDvSubjectRespVO.class)); |
| | |
| | | public class EnergyAlertController { |
| | | @Resource private EnergyAlertService energyAlertService; |
| | | @Resource private AdminUserService adminUserService; |
| | | @GetMapping("/page") @PreAuthorize("@ss.hasPermission('energy:alert:query')") |
| | | @GetMapping("/page") |
| | | public CommonResult<PageResult<EnergyAlertRuleDO>> page(@Valid PageParam page) { return success(energyAlertService.page(page)); } |
| | | @GetMapping("/logs") @PreAuthorize("@ss.hasPermission('energy:alert:query')") |
| | | @GetMapping("/logs") |
| | | public CommonResult<PageResult<EnergyAlertLogDO>> logs(@Valid PageParam page, |
| | | @RequestParam(required=false) @DateTimeFormat(iso=DateTimeFormat.ISO.DATE) LocalDate date, |
| | | @RequestParam(required=false) @Pattern(regexp="SENT|FAILED") String status) { |
| | | return success(energyAlertService.logs(page, date, status)); |
| | | } |
| | | @GetMapping("/recipients") @PreAuthorize("@ss.hasPermission('energy:alert:query')") |
| | | @GetMapping("/recipients") |
| | | public CommonResult<List<Map<String, Object>>> recipients() { |
| | | return success(adminUserService.getUserListByStatus(0).stream() |
| | | .map(user -> Map.<String,Object>of("id", user.getId(), "nickname", user.getNickname())).toList()); |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "æ¥çè½èè®°å½") |
| | | @PreAuthorize("@ss.hasPermission('energy:record:query')") |
| | | public CommonResult<EnergyRecordRespVO> get(@RequestParam("id") Long id) { |
| | | return success(BeanUtils.toBean(energyRecordService.get(id), EnergyRecordRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "å页æ¥è¯¢è½èè®°å½") |
| | | @PreAuthorize("@ss.hasPermission('energy:record:query')") |
| | | public CommonResult<PageResult<EnergyRecordRespVO>> page(@Valid EnergyRecordPageReqVO req) { |
| | | return success(BeanUtils.toBean(energyRecordService.page(req), EnergyRecordRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/analysis") |
| | | @Operation(summary = "è½èæ°æ®åæï¼æè½æºå嫿±æ»ç¨éï¼") |
| | | @PreAuthorize("@ss.hasPermission('energy:analysis:query')") |
| | | public CommonResult<EnergyAnalysisRespVO> analysis(@Valid EnergyAnalysisReqVO req) { |
| | | return success(energyRecordService.analysis(req)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/summary") |
| | | @Operation(summary = "è·å¾é¦é¡µæ±æ»ç»è®¡") |
| | | @PreAuthorize("@ss.hasPermission('mes:home:query')") |
| | | public CommonResult<MesHomeSummaryRespVO> getHomeSummary() { |
| | | return success(homeStatisticsService.getHomeSummary()); |
| | | } |
| | | |
| | | @GetMapping("/work-order-status") |
| | | @Operation(summary = "è·å¾å·¥åç¶æåå¸") |
| | | @PreAuthorize("@ss.hasPermission('mes:home:query')") |
| | | public CommonResult<List<MesHomeWorkOrderStatusRespVO>> getWorkOrderStatusDistribution() { |
| | | return success(homeStatisticsService.getWorkOrderStatusDistribution()); |
| | | } |
| | |
| | | @GetMapping("/production-trend") |
| | | @Operation(summary = "è·å¾ç产è¶å¿") |
| | | @Parameter(name = "days", description = "天æ°", example = "7") |
| | | @PreAuthorize("@ss.hasPermission('mes:home:query')") |
| | | public CommonResult<List<MesHomeProductionTrendRespVO>> getProductionTrend( |
| | | @RequestParam(value = "days", defaultValue = "7") @Min(1) @Max(90) Integer days) { |
| | | return success(homeStatisticsService.getProductionTrend(days)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è§åç»æ") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:auto-code-rule:query')") |
| | | public CommonResult<MesMdAutoCodePartRespVO> getAutoCodePart(@RequestParam("id") Long id) { |
| | | MesMdAutoCodePartDO part = partService.getAutoCodePart(id); |
| | | return success(BeanUtils.toBean(part, MesMdAutoCodePartRespVO.class)); |
| | |
| | | @GetMapping("/list-by-rule-id") |
| | | @Operation(summary = "æ ¹æ®è§å ID è·å¾è§åç»æå表") |
| | | @Parameter(name = "ruleId", description = "è§å ID", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mes:auto-code-rule:query')") |
| | | public CommonResult<List<MesMdAutoCodePartRespVO>> getAutoCodePartListByRuleId(@RequestParam("ruleId") Long ruleId) { |
| | | List<MesMdAutoCodePartDO> list = partService.getAutoCodePartListByRuleId(ruleId); |
| | | return success(BeanUtils.toBean(list, MesMdAutoCodePartRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç¼ç è§å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:auto-code-rule:query')") |
| | | public CommonResult<MesMdAutoCodeRuleRespVO> getAutoCodeRule(@RequestParam("id") Long id) { |
| | | MesMdAutoCodeRuleDO rule = ruleService.getAutoCodeRule(id); |
| | | return success(BeanUtils.toBean(rule, MesMdAutoCodeRuleRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç¼ç è§åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:auto-code-rule:query')") |
| | | public CommonResult<PageResult<MesMdAutoCodeRuleRespVO>> getAutoCodeRulePage(@Valid MesMdAutoCodeRulePageReqVO pageReqVO) { |
| | | PageResult<MesMdAutoCodeRuleDO> pageResult = ruleService.getAutoCodeRulePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesMdAutoCodeRuleRespVO.class)); |
| | |
| | | @GetMapping("/get-by-item-id") |
| | | @Operation(summary = "æ ¹æ®ç©æç¼å·è·åæ¹æ¬¡å±æ§é
ç½®") |
| | | @Parameter(name = "itemId", description = "ç©æç¼å·", required = true, example = "69") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item:query')") |
| | | public CommonResult<MesMdItemBatchConfigRespVO> getItemBatchConfigByItemId( |
| | | @RequestParam("itemId") Long itemId) { |
| | | MesMdItemBatchConfigDO config = itemBatchConfigService.getItemBatchConfigByItemId(itemId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç©æäº§å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item:query')") |
| | | public CommonResult<MesMdItemRespVO> getItem(@RequestParam("id") Long id) { |
| | | MesMdItemDO item = itemService.getItem(id); |
| | | return success(buildItemVO(item)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç©æäº§åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item:query')") |
| | | public CommonResult<PageResult<MesMdItemRespVO>> getItemPage(@Valid MesMdItemPageReqVO pageReqVO) { |
| | | PageResult<MesMdItemDO> pageResult = itemService.getItemPage(pageReqVO); |
| | | return success(new PageResult<>(buildItemVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç©æäº§ååç±»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item-type:query')") |
| | | public CommonResult<MesMdItemTypeRespVO> getItemType(@RequestParam("id") Long id) { |
| | | MesMdItemTypeDO itemType = itemTypeService.getItemType(id); |
| | | return success(BeanUtils.toBean(itemType, MesMdItemTypeRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾ç©æäº§ååç±»å表") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item-type:query')") |
| | | public CommonResult<List<MesMdItemTypeRespVO>> getItemTypeList(@Valid MesMdItemTypeListReqVO listReqVO) { |
| | | List<MesMdItemTypeDO> list = itemTypeService.getItemTypeList(listReqVO); |
| | | return success(BeanUtils.toBean(list, MesMdItemTypeRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾äº§åBOM") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item:query')") |
| | | public CommonResult<MesMdProductBomRespVO> getProductBom(@RequestParam("id") Long id) { |
| | | MesMdProductBomDO productBom = productBomService.getProductBom(id); |
| | | return success(BeanUtils.toBean(productBom, MesMdProductBomRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾äº§åBOMå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item:query')") |
| | | public CommonResult<PageResult<MesMdProductBomRespVO>> getProductBomPage(@Valid MesMdProductBomPageReqVO pageReqVO) { |
| | | PageResult<MesMdProductBomDO> pageResult = productBomService.getProductBomPage(pageReqVO); |
| | | List<MesMdProductBomRespVO> voList = buildProductBomRespVOList(pageResult.getList()); |
| | |
| | | @GetMapping("/list-by-item-id") |
| | | @Operation(summary = "æ ¹æ®ç©æäº§åç¼å·è·å¾äº§åBOMå表") |
| | | @Parameter(name = "itemId", description = "ç©æäº§åç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item:query')") |
| | | public CommonResult<List<MesMdProductBomRespVO>> getProductBomListByItemId( |
| | | @RequestParam("itemId") Long itemId) { |
| | | List<MesMdProductBomDO> list = productBomService.getProductBomListByItemId(itemId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾äº§åSIP") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item:query')") |
| | | public CommonResult<MesMdProductSipRespVO> getProductSip(@RequestParam("id") Long id) { |
| | | MesMdProductSipDO sip = productSipService.getProductSip(id); |
| | | return success(BeanUtils.toBean(sip, MesMdProductSipRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾äº§åSIPå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item:query')") |
| | | public CommonResult<PageResult<MesMdProductSipRespVO>> getProductSipPage(@Valid MesMdProductSipPageReqVO pageReqVO) { |
| | | PageResult<MesMdProductSipDO> pageResult = productSipService.getProductSipPage(pageReqVO); |
| | | // TODO @èè¿ï¼å·¥åºæ¨¡åå®ç°åï¼è¡¥å
processCode/processName ç JOIN é»è¾ |
| | |
| | | @GetMapping("/list-by-item-id") |
| | | @Operation(summary = "æ ¹æ®ç©æäº§åç¼å·ï¼è·å¾äº§åSIPå表") |
| | | @Parameter(name = "itemId", description = "ç©æäº§åç¼å·", required = true, example = "69") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item:query')") |
| | | public CommonResult<List<MesMdProductSipRespVO>> getProductSipListByItemId( |
| | | @RequestParam("itemId") Long itemId) { |
| | | List<MesMdProductSipDO> list = productSipService.getProductSipListByItemId(itemId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾äº§åSOP") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item:query')") |
| | | public CommonResult<MesMdProductSopRespVO> getProductSop(@RequestParam("id") Long id) { |
| | | MesMdProductSopDO sop = productSopService.getProductSop(id); |
| | | return success(BeanUtils.toBean(sop, MesMdProductSopRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾äº§åSOPå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item:query')") |
| | | public CommonResult<PageResult<MesMdProductSopRespVO>> getProductSopPage(@Valid MesMdProductSopPageReqVO pageReqVO) { |
| | | PageResult<MesMdProductSopDO> pageResult = productSopService.getProductSopPage(pageReqVO); |
| | | // TODO @èè¿ï¼å·¥åºæ¨¡åå®ç°åï¼è¡¥å
processCode/processName ç JOIN é»è¾ |
| | |
| | | @GetMapping("/list-by-item-id") |
| | | @Operation(summary = "æ ¹æ®ç©æäº§åç¼å·ï¼è·å¾äº§åSOPå表") |
| | | @Parameter(name = "itemId", description = "ç©æäº§åç¼å·", required = true, example = "69") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item:query')") |
| | | public CommonResult<List<MesMdProductSopRespVO>> getProductSopListByItemId( |
| | | @RequestParam("itemId") Long itemId) { |
| | | List<MesMdProductSopDO> list = productSopService.getProductSopListByItemId(itemId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è®¡éåä½") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-unit-measure:query')") |
| | | public CommonResult<MesMdUnitMeasureRespVO> getUnitMeasure(@RequestParam("id") Long id) { |
| | | MesMdUnitMeasureDO unitMeasure = unitMeasureService.getUnitMeasure(id); |
| | | return success(BeanUtils.toBean(unitMeasure, MesMdUnitMeasureRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è®¡éåä½å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-unit-measure:query')") |
| | | public CommonResult<PageResult<MesMdUnitMeasureRespVO>> getUnitMeasurePage(@Valid MesMdUnitMeasurePageReqVO pageReqVO) { |
| | | PageResult<MesMdUnitMeasureDO> pageResult = unitMeasureService.getUnitMeasurePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesMdUnitMeasureRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è½¦é´") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-workshop:query')") |
| | | public CommonResult<MesMdWorkshopRespVO> getWorkshop(@RequestParam("id") Long id) { |
| | | MesMdWorkshopDO workshop = workshopService.getWorkshop(id); |
| | | if (workshop == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è½¦é´å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-workshop:query')") |
| | | public CommonResult<PageResult<MesMdWorkshopRespVO>> getWorkshopPage(@Valid MesMdWorkshopPageReqVO pageReqVO) { |
| | | PageResult<MesMdWorkshopDO> pageResult = workshopService.getWorkshopPage(pageReqVO); |
| | | return success(new PageResult<>(buildWorkshopRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å·¥ä½ç«") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-workstation:query')") |
| | | public CommonResult<MesMdWorkstationRespVO> getWorkstation(@RequestParam("id") Long id) { |
| | | MesMdWorkstationDO workstation = workstationService.getWorkstation(id); |
| | | return success(BeanUtils.toBean(workstation, MesMdWorkstationRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å·¥ä½ç«å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-workstation:query')") |
| | | public CommonResult<PageResult<MesMdWorkstationRespVO>> getWorkstationPage(@Valid MesMdWorkstationPageReqVO pageReqVO) { |
| | | PageResult<MesMdWorkstationDO> pageResult = workstationService.getWorkstationPage(pageReqVO); |
| | | return success(new PageResult<>(buildWorkstationRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/list-by-workstation") |
| | | @Operation(summary = "è·å¾è®¾å¤èµæºå表") |
| | | @Parameter(name = "workstationId", description = "å·¥ä½ç«ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:md-workstation:query')") |
| | | public CommonResult<List<MesMdWorkstationMachineRespVO>> getWorkstationMachineList( |
| | | @RequestParam("workstationId") Long workstationId) { |
| | | List<MesMdWorkstationMachineDO> list = workstationMachineService.getWorkstationMachineListByWorkstationId(workstationId); |
| | |
| | | @GetMapping("/list-by-workstation") |
| | | @Operation(summary = "è·å¾å·¥è£
夹å
·èµæºå表") |
| | | @Parameter(name = "workstationId", description = "å·¥ä½ç«ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:md-workstation:query')") |
| | | public CommonResult<List<MesMdWorkstationToolRespVO>> getWorkstationToolList( |
| | | @RequestParam("workstationId") Long workstationId) { |
| | | List<MesMdWorkstationToolDO> list = workstationToolService.getWorkstationToolListByWorkstationId(workstationId); |
| | |
| | | @GetMapping("/list-by-workstation") |
| | | @Operation(summary = "è·å¾äººåèµæºå表") |
| | | @Parameter(name = "workstationId", description = "å·¥ä½ç«ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:md-workstation:query')") |
| | | public CommonResult<List<MesMdWorkstationWorkerRespVO>> getWorkstationWorkerList( |
| | | @RequestParam("workstationId") Long workstationId) { |
| | | List<MesMdWorkstationWorkerDO> list = workstationWorkerService.getWorkstationWorkerListByWorkstationId(workstationId); |
| | |
| | | @GetMapping("/list-user-by-workstation") |
| | | @Operation(summary = "è·å¾å·¥ä½ç«å¯¹åºå²ä½çåå·¥å表") |
| | | @Parameter(name = "workstationId", description = "å·¥ä½ç«ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:md-workstation:query')") |
| | | public CommonResult<List<AdminUserRespDTO>> getUserListByWorkstation( |
| | | @RequestParam("workstationId") Long workstationId) { |
| | | List<MesMdWorkstationWorkerDO> list = workstationWorkerService.getWorkstationWorkerListByWorkstationId(workstationId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å½æ¡£å°è´¦") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-archive:query')") |
| | | public CommonResult<MesPdArchiveRespVO> getArchive(@RequestParam("id") Long id) { |
| | | MesPdArchiveDO archive = archiveService.getArchive(id); |
| | | if (archive == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å½æ¡£å°è´¦åé¡µï¼æé¡¹ç®/产åèåï¼") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-archive:query')") |
| | | public CommonResult<PageResult<MesPdArchiveRespVO>> getArchivePage(@Valid MesPdArchivePageReqVO pageReqVO) { |
| | | // å页忰åªè½ä» pageReqVO åï¼ç¾åéåæ¾ä¸ä¸ª Page åæ°ä¼è¢« Spring åç¬æ current/size ç»å®æé»è®¤ç 1/10ï¼ |
| | | // åç«¯ä¼ ç pageNo/pageSize å
¨è¢«ä¸¢æï¼å°è´¦å°±æ°¸è¿åªè¿åå 10 æ¡ã翻页ä¹ä¸å¨ï¼å表çä¸åºä» 9/17 å¾åçæ¥æï¼ã |
| | |
| | | @GetMapping("/detail-by-product") |
| | | @Operation(summary = "è·å¾å½æ¡£å°è´¦è¯¦æ
ï¼æäº§åï¼") |
| | | @Parameter(name = "productCode", description = "产åç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-archive:query')") |
| | | public CommonResult<List<MesPdArchiveDetailRespVO>> getArchiveDetailByProduct(@RequestParam("productCode") String productCode) { |
| | | return success(archiveService.getArchiveDetailByProductCode(productCode)); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è®¾è®¡èµæ") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-document:query')") |
| | | public CommonResult<MesPdDocumentRespVO> getDocument(@RequestParam("id") Long id) { |
| | | MesPdDocumentDO document = documentService.getDocument(id); |
| | | if (document == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è®¾è®¡èµæå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-document:query')") |
| | | public CommonResult<PageResult<MesPdDocumentRespVO>> getDocumentPage(@Valid MesPdDocumentPageReqVO pageReqVO) { |
| | | PageResult<MesPdDocumentDO> pageResult = documentService.getDocumentPage(pageReqVO); |
| | | return success(new PageResult<>(buildDocumentRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾èµæå®¡æ ¸") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-document-audit:query')") |
| | | public CommonResult<MesPdDocumentAuditRespVO> getDocumentAudit(@RequestParam("id") Long id) { |
| | | MesPdDocumentAuditDO documentAudit = documentAuditService.getDocumentAudit(id); |
| | | if (documentAudit == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾èµæå®¡æ ¸å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-document-audit:query')") |
| | | public CommonResult<PageResult<MesPdDocumentAuditRespVO>> getDocumentAuditPage(@Valid MesPdDocumentAuditPageReqVO pageReqVO) { |
| | | PageResult<MesPdDocumentAuditDO> pageResult = documentAuditService.getDocumentAuditPage(pageReqVO); |
| | | return success(new PageResult<>(buildDocumentAuditRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å·¥èºåæ°") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-process-param:query')") |
| | | public CommonResult<MesPdProcessParamRespVO> getProcessParam(@RequestParam("id") Long id) { |
| | | MesPdProcessParamDO processParam = processParamService.getProcessParam(id); |
| | | if (processParam == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å·¥èºåæ°å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-process-param:query')") |
| | | public CommonResult<PageResult<MesPdProcessParamRespVO>> getProcessParamPage(@Valid MesPdProcessParamPageReqVO pageReqVO) { |
| | | PageResult<MesPdProcessParamDO> pageResult = processParamService.getProcessParamPage(pageReqVO); |
| | | return success(new PageResult<>(buildProcessParamRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å·¥èºåæ°æ¨¡æ¿") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-process-param-template:query')") |
| | | public CommonResult<MesPdProcessParamTemplateRespVO> getProcessParamTemplate(@RequestParam("id") Long id) { |
| | | MesPdProcessParamTemplateDO template = templateService.getProcessParamTemplate(id); |
| | | if (template == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å·¥èºåæ°æ¨¡æ¿å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-process-param-template:query')") |
| | | public CommonResult<PageResult<MesPdProcessParamTemplateRespVO>> getProcessParamTemplatePage(@Valid MesPdProcessParamTemplatePageReqVO pageReqVO) { |
| | | PageResult<MesPdProcessParamTemplateDO> pageResult = templateService.getProcessParamTemplatePage(pageReqVO); |
| | | List<MesPdProcessParamTemplateRespVO> voList = buildTemplateRespVOList(pageResult.getList()); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è®¾è®¡é¡¹ç®") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-project:query')") |
| | | public CommonResult<MesPdProjectRespVO> getProject(@RequestParam("id") Long id) { |
| | | MesPdProjectDO project = projectService.getProject(id); |
| | | if (project == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è®¾è®¡é¡¹ç®å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-project:query')") |
| | | public CommonResult<PageResult<MesPdProjectRespVO>> getProjectPage(@Valid MesPdProjectPageReqVO pageReqVO) { |
| | | PageResult<MesPdProjectDO> pageResult = projectService.getProjectPage(pageReqVO); |
| | | return success(new PageResult<>(buildProjectRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @PostMapping("/predict-material") |
| | | @Operation(summary = "AI ç©æçç¼ºé¢æµ") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<MesProAiMaterialPredictRespVO> predictMaterial(@Valid @RequestBody MesProAiMaterialPredictReqVO reqVO) { |
| | | return success(proAiService.predictMaterial(reqVO)); |
| | | } |
| | | |
| | | @PostMapping("/predict-duration") |
| | | @Operation(summary = "AI çäº§è®¡åæ¶é¿é¢æµ") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<MesProAiDurationPredictRespVO> predictDuration(@Valid @RequestBody MesProAiDurationPredictReqVO reqVO) { |
| | | return success(proAiService.predictDuration(reqVO)); |
| | | } |
| | | |
| | | @PostMapping("/predict-risk") |
| | | @Operation(summary = "AI ç产é£é©é¢æµ") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<MesProAiRiskPredictRespVO> predictRisk(@Valid @RequestBody MesProAiRiskPredictReqVO reqVO) { |
| | | return success(proAiService.predictRisk(reqVO)); |
| | | } |
| | | |
| | | @PostMapping("/predict-delivery") |
| | | @Operation(summary = "AI æ¯å¦è½ææ¶äº¤ä»") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<MesProAiDeliveryPredictRespVO> predictDelivery(@Valid @RequestBody MesProAiDeliveryPredictReqVO reqVO) { |
| | | return success(proAiService.predictDelivery(reqVO)); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å®ç¯å¼å«é
ç½®") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-andon-config:query')") |
| | | public CommonResult<MesProAndonConfigRespVO> getAndonConfig(@RequestParam("id") Long id) { |
| | | MesProAndonConfigDO config = andonConfigService.getAndonConfig(id); |
| | | if (config == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å®ç¯å¼å«é
ç½®å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-andon-config:query')") |
| | | public CommonResult<PageResult<MesProAndonConfigRespVO>> getAndonConfigPage(@Valid MesProAndonConfigPageReqVO pageReqVO) { |
| | | PageResult<MesProAndonConfigDO> pageResult = andonConfigService.getAndonConfigPage(pageReqVO); |
| | | return success(new PageResult<>(buildConfigRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾å®ç¯å¼å«é
ç½®å表") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-andon-config:query')") |
| | | public CommonResult<List<MesProAndonConfigRespVO>> getAndonConfigList() { |
| | | List<MesProAndonConfigDO> list = andonConfigService.getAndonConfigList(); |
| | | return success(buildConfigRespVOList(list)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å®ç¯å¼å«è®°å½") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-andon-record:query')") |
| | | public CommonResult<MesProAndonRecordRespVO> getAndonRecord(@RequestParam("id") Long id) { |
| | | MesProAndonRecordDO record = andonRecordService.getAndonRecord(id); |
| | | if (record == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å®ç¯å¼å«è®°å½å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-andon-record:query')") |
| | | public CommonResult<PageResult<MesProAndonRecordRespVO>> getAndonRecordPage(@Valid MesProAndonRecordPageReqVO pageReqVO) { |
| | | PageResult<MesProAndonRecordDO> pageResult = andonRecordService.getAndonRecordPage(pageReqVO); |
| | | return success(new PageResult<>(buildRecordRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç产æµè½¬å¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-card:query')") |
| | | public CommonResult<MesProCardRespVO> getCard(@RequestParam("id") Long id) { |
| | | MesProCardDO card = cardService.getCard(id); |
| | | if (card == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç产æµè½¬å¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-card:query')") |
| | | public CommonResult<PageResult<MesProCardRespVO>> getCardPage(@Valid MesProCardPageReqVO pageReqVO) { |
| | | PageResult<MesProCardDO> pageResult = cardService.getCardPage(pageReqVO); |
| | | return success(new PageResult<>(buildCardRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æµè½¬å¡å·¥åºè®°å½") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-card:query')") |
| | | public CommonResult<MesProCardProcessRespVO> getCardProcess(@RequestParam("id") Long id) { |
| | | MesProCardProcessDO cardProcess = cardProcessService.getCardProcess(id); |
| | | if (cardProcess == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æµè½¬å¡å·¥åºè®°å½å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-card:query')") |
| | | public CommonResult<PageResult<MesProCardProcessRespVO>> getCardProcessPage(@Valid MesProCardProcessPageReqVO pageReqVO) { |
| | | PageResult<MesProCardProcessDO> pageResult = cardProcessService.getCardProcessPage(pageReqVO); |
| | | return success(new PageResult<>(buildCardProcessRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç产æ¥å·¥") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-feedback:query')") |
| | | public CommonResult<MesProFeedbackRespVO> getFeedback(@RequestParam("id") Long id) { |
| | | MesProFeedbackDO feedback = feedbackService.getFeedback(id); |
| | | if (feedback == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç产æ¥å·¥å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-feedback:query')") |
| | | public CommonResult<PageResult<MesProFeedbackRespVO>> getFeedbackPage(@Valid MesProFeedbackPageReqVO pageReqVO) { |
| | | PageResult<MesProFeedbackDO> pageResult = feedbackService.getFeedbackPage(pageReqVO); |
| | | return success(new PageResult<>(buildFeedbackRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/list-by-task") |
| | | @Operation(summary = "æä»»å¡è·å¾æ¥å·¥åå²å表") |
| | | @Parameter(name = "taskId", description = "ä»»å¡ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-feedback:query')") |
| | | public CommonResult<List<MesProFeedbackRespVO>> getFeedbackListByTask(@RequestParam("taskId") Long taskId) { |
| | | List<MesProFeedbackDO> list = feedbackService.getFeedbackListByTaskId(taskId); |
| | | return success(buildFeedbackRespVOList(list)); |
| | |
| | | @GetMapping("/trace/{id}") |
| | | @Operation(summary = "è·å¾æ¥å·¥è¿½æº¯ä¿¡æ¯", description = "æ¥å·¥ + 产åº/äº§åºæç» + æ¶è/æ¶èæç» + IPQCæ£éª") |
| | | @Parameter(name = "id", description = "æ¥å·¥ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-feedback:query')") |
| | | public CommonResult<MesProFeedbackTraceRespVO> getFeedbackTrace(@PathVariable("id") Long id) { |
| | | MesProFeedbackDO feedback = feedbackService.getFeedback(id); |
| | | if (feedback == null) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç产主计å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-mps:query')") |
| | | public CommonResult<MesProMpsRespVO> getMps(@RequestParam("id") Long id) { |
| | | MesProMpsDO mps = mpsService.getMps(id); |
| | | if (mps == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç产主计åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-mps:query')") |
| | | public CommonResult<PageResult<MesProMpsRespVO>> getMpsPage(@Valid MesProMpsPageReqVO pageReqVO) { |
| | | PageResult<MesProMpsDO> pageResult = mpsService.getMpsPage(pageReqVO); |
| | | return success(new PageResult<>(buildMpsRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç产工åºå
容") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-process:query')") |
| | | public CommonResult<MesProProcessContentRespVO> getProcessContent(@RequestParam("id") Long id) { |
| | | MesProProcessContentDO content = processContentService.getProcessContent(id); |
| | | return success(BeanUtils.toBean(content, MesProProcessContentRespVO.class)); |
| | |
| | | @GetMapping("/list-by-process") |
| | | @Operation(summary = "è·å¾ç产工åºå
容åè¡¨ï¼æå·¥åºç¼å·ï¼") |
| | | @Parameter(name = "processId", description = "å·¥åºç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-process:query')") |
| | | public CommonResult<List<MesProProcessContentRespVO>> getProcessContentListByProcessId(@RequestParam("processId") Long processId) { |
| | | List<MesProProcessContentDO> list = processContentService.getProcessContentListByProcessId(processId); |
| | | return success(BeanUtils.toBean(list, MesProProcessContentRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç产工åº") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-process:query')") |
| | | public CommonResult<MesProProcessRespVO> getProcess(@RequestParam("id") Long id) { |
| | | MesProProcessDO process = processService.getProcess(id); |
| | | return success(BeanUtils.toBean(process, MesProProcessRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç产工åºå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-process:query')") |
| | | public CommonResult<PageResult<MesProProcessRespVO>> getProcessPage(@Valid MesProProcessPageReqVO pageReqVO) { |
| | | PageResult<MesProProcessDO> pageResult = processService.getProcessPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesProProcessRespVO.class)); |
| | |
| | | @GetMapping("/list-by-process") |
| | | @Operation(summary = "è·å¾å·¥åºç»å®çå·¥èºåæ°åè¡¨ï¼æå·¥åºç¼å·ï¼") |
| | | @Parameter(name = "processId", description = "å·¥åºç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-process:query')") |
| | | public CommonResult<List<MesProProcessParamRespVO>> getProcessParamListByProcessId(@RequestParam("processId") Long processId) { |
| | | List<MesProProcessParamDO> list = processParamService.getProcessParamListByProcessId(processId); |
| | | return success(buildRespVOList(list)); |
| | |
| | | @GetMapping("/list-by-param") |
| | | @Operation(summary = "è·å¾å·¥èºåæ°è¢«ç»å®çå·¥åºåè¡¨ï¼æå·¥èºåæ°ç¼å·ï¼") |
| | | @Parameter(name = "paramId", description = "å·¥èºåæ°ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-process:query')") |
| | | public CommonResult<List<MesProProcessRespVO>> getProcessListByParamId(@RequestParam("paramId") Long paramId) { |
| | | List<MesProProcessParamDO> list = processParamService.getProcessParamListByParamId(paramId); |
| | | if (CollUtil.isEmpty(list)) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å·¥èºè·¯çº¿") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-route:query')") |
| | | public CommonResult<MesProRouteRespVO> getRoute(@RequestParam("id") Long id) { |
| | | MesProRouteDO route = routeService.getRoute(id); |
| | | return success(BeanUtils.toBean(route, MesProRouteRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å·¥èºè·¯çº¿å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-route:query')") |
| | | public CommonResult<PageResult<MesProRouteRespVO>> getRoutePage(@Valid MesProRoutePageReqVO pageReqVO) { |
| | | PageResult<MesProRouteDO> pageResult = routeService.getRoutePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesProRouteRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å·¥èºè·¯çº¿å·¥åº") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-route:query')") |
| | | public CommonResult<MesProRouteProcessRespVO> getRouteProcess(@RequestParam("id") Long id) { |
| | | MesProRouteProcessDO routeProcess = routeProcessService.getRouteProcess(id); |
| | | return success(buildRouteProcessRespVO(routeProcess)); |
| | |
| | | @GetMapping("/list-by-product") |
| | | @Operation(summary = "æäº§åè·å¾å·¥åºå表", description = "æ ¹æ®äº§åæ¥æ¾å
³èçå·¥èºè·¯çº¿ï¼è¿å该路线çå·¥åºå表ï¼å«åå·¥åºçææBOMï¼") |
| | | @Parameter(name = "productId", description = "产åç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-route:query')") |
| | | public CommonResult<List<MesProRouteProcessRespVO>> getRouteProcessListByProduct(@RequestParam("productId") Long productId) { |
| | | List<MesProRouteProcessDO> list = routeProcessService.getRouteProcessListByProductId(productId); |
| | | List<MesProRouteProcessRespVO> result = buildRouteProcessRespVOList(list); |
| | |
| | | @GetMapping("/list-by-route") |
| | | @Operation(summary = "æå·¥èºè·¯çº¿è·å¾å·¥åºå表") |
| | | @Parameter(name = "routeId", description = "å·¥èºè·¯çº¿ç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-route:query')") |
| | | public CommonResult<List<MesProRouteProcessRespVO>> getRouteProcessListByRoute(@RequestParam("routeId") Long routeId) { |
| | | List<MesProRouteProcessDO> list = routeProcessService.getRouteProcessListByRouteId(routeId); |
| | | return success(buildRouteProcessRespVOList(list)); |
| | |
| | | @Operation(summary = "æå·¥èºè·¯çº¿+å·¥åºè·å¾å·¥åºé
ç½®") |
| | | @Parameter(name = "routeId", description = "å·¥èºè·¯çº¿ç¼å·", required = true, example = "1") |
| | | @Parameter(name = "processId", description = "å·¥åºç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-route:query')") |
| | | public CommonResult<MesProRouteProcessRespVO> getRouteProcessByRouteAndProcess( |
| | | @RequestParam("routeId") Long routeId, |
| | | @RequestParam("processId") Long processId) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å·¥èºè·¯çº¿äº§å BOM") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-route:query')") |
| | | public CommonResult<MesProRouteProductBomRespVO> getRouteProductBom(@RequestParam("id") Long id) { |
| | | MesProRouteProductBomDO routeProductBom = routeProductBomService.getRouteProductBom(id); |
| | | return success(buildRouteProductBomRespVO(routeProductBom)); |
| | |
| | | @Parameter(name = "processId", description = "å·¥åºç¼å·", example = "1"), |
| | | @Parameter(name = "productId", description = "产åç©æç¼å·", example = "1") |
| | | }) |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-route:query')") |
| | | public CommonResult<List<MesProRouteProductBomRespVO>> getRouteProductBomList( |
| | | @RequestParam("routeId") Long routeId, |
| | | @RequestParam(value = "processId", required = false) Long processId, |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å·¥èºè·¯çº¿äº§å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-route:query')") |
| | | public CommonResult<MesProRouteProductRespVO> getRouteProduct(@RequestParam("id") Long id) { |
| | | MesProRouteProductDO routeProduct = routeProductService.getRouteProduct(id); |
| | | return success(buildRouteProductRespVO(routeProduct)); |
| | |
| | | @GetMapping("/list-by-route") |
| | | @Operation(summary = "æå·¥èºè·¯çº¿è·å¾äº§åå表") |
| | | @Parameter(name = "routeId", description = "å·¥èºè·¯çº¿ç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-route:query')") |
| | | public CommonResult<List<MesProRouteProductRespVO>> getRouteProductListByRoute(@RequestParam("routeId") Long routeId) { |
| | | List<MesProRouteProductDO> list = routeProductService.getRouteProductListByRouteId(routeId); |
| | | return success(buildRouteProductRespVOList(list)); |
| | |
| | | @Parameter(name = "workstationId", description = "å·¥ä½ç«ç¼å·", required = true), |
| | | @Parameter(name = "quantity", description = "æäº§æ°é", required = true) |
| | | }) |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-task:query')") |
| | | public CommonResult<java.util.Map<String, Object>> calculateDuration( |
| | | @RequestParam("workstationId") Long workstationId, |
| | | @RequestParam("quantity") BigDecimal quantity) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç产任å¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-task:query')") |
| | | public CommonResult<MesProTaskRespVO> getTask(@RequestParam("id") Long id) { |
| | | MesProTaskDO task = taskService.getTask(id); |
| | | if (task == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç产任å¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-task:query')") |
| | | public CommonResult<PageResult<MesProTaskRespVO>> getTaskPage(@Valid MesProTaskPageReqVO pageReqVO) { |
| | | PageResult<MesProTaskDO> pageResult = taskService.getTaskPage(pageReqVO); |
| | | return success(new PageResult<>(buildTaskRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/pending-feedback-page") |
| | | @Operation(summary = "è·å¾å¾
æ¥å·¥å°è´¦å页", description = "å·²æäº§ä¸ä»æå¾
æ¥å·¥æ°éçä»»å¡ï¼ç¶æ=è¿è¡ä¸ï¼") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-task:query')") |
| | | public CommonResult<PageResult<MesProTaskRespVO>> getPendingFeedbackPage(@Valid MesProTaskPageReqVO pageReqVO) { |
| | | Long loginUserId = cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils.getLoginUserId(); |
| | | // 妿å½åç»å½äººä¸æ¯è¶
级管çåï¼åä»
æ¥è¯¢åé
ç»èªå·±çç产工å |
| | |
| | | |
| | | @GetMapping("/gantt-list") |
| | | @Operation(summary = "è·å¾çç¹å¾ä»»å¡å表", description = "å端ç»è£
å·¥å=project + ä»»å¡=task å表") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-task:query')") |
| | | public CommonResult<List<GanttDataRespVO>> listGanttTaskList(@Valid MesProWorkOrderPageReqVO reqVO) { |
| | | // 1.1 æ¥è¯¢å¹é
çå·¥åï¼ä¸åé¡µï¼ |
| | | reqVO.setPageSize(PageParam.PAGE_SIZE_NONE); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾çäº§ä»»å¡ææ") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-task-issue:query')") |
| | | public CommonResult<MesProTaskIssueRespVO> getTaskIssue(@RequestParam("id") Long id) { |
| | | MesProTaskIssueDO taskIssue = taskIssueService.getTaskIssue(id); |
| | | if (taskIssue == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾çäº§ä»»å¡ææå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-task-issue:query')") |
| | | public CommonResult<PageResult<MesProTaskIssueRespVO>> getTaskIssuePage(@Valid MesProTaskIssuePageReqVO pageReqVO) { |
| | | PageResult<MesProTaskIssueDO> pageResult = taskIssueService.getTaskIssuePage(pageReqVO); |
| | | return success(new PageResult<>(buildIssueRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/list-by-task") |
| | | @Operation(summary = "æ ¹æ®ä»»å¡è·å¾ææå表") |
| | | @Parameter(name = "taskId", description = "ä»»å¡ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-task-issue:query')") |
| | | public CommonResult<List<MesProTaskIssueRespVO>> getTaskIssueListByTask(@RequestParam("taskId") Long taskId) { |
| | | List<MesProTaskIssueDO> list = taskIssueService.getTaskIssueListByTaskId(taskId); |
| | | return success(buildIssueRespVOList(list)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å·¥å BOM") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<MesProWorkOrderBomRespVO> getWorkOrderBom(@RequestParam("id") Long id) { |
| | | MesProWorkOrderBomDO workOrderBom = workOrderBomService.getWorkOrderBom(id); |
| | | if (workOrderBom == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å·¥å BOM å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<PageResult<MesProWorkOrderBomRespVO>> getWorkOrderBomPage(@Valid MesProWorkOrderBomPageReqVO pageReqVO) { |
| | | PageResult<MesProWorkOrderBomDO> pageResult = workOrderBomService.getWorkOrderBomPage(pageReqVO); |
| | | return success(new PageResult<>(buildWorkOrderBomRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/item-list-by-work-order-id") |
| | | @Operation(summary = "è·å¾å·¥åç©æéæ±å表") |
| | | @Parameter(name = "workOrderId", description = "å·¥åç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<List<MesProWorkOrderItemRespVO>> getWorkOrderBomItemListByWorkOrderId( |
| | | @RequestParam("workOrderId") Long workOrderId) { |
| | | // 1. è·åå·¥å |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç产工å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<MesProWorkOrderRespVO> getWorkOrder(@RequestParam("id") Long id) { |
| | | MesProWorkOrderDO workOrder = workOrderService.getWorkOrder(id); |
| | | if (workOrder == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç产工åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<PageResult<MesProWorkOrderRespVO>> getWorkOrderPage(@Valid MesProWorkOrderPageReqVO pageReqVO) { |
| | | PageResult<MesProWorkOrderDO> pageResult = workOrderService.getWorkOrderPage(pageReqVO); |
| | | return success(new PageResult<>(buildWorkOrderRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/approve-process-list") |
| | | @Operation(summary = "è·åå®¡æ¹æ¥å·¥çæµç¨å®ä¹å表") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<List<Map<String, Object>>> getWorkOrderApproveProcessDefinitionList() { |
| | | return success(workOrderService.getWorkOrderApproveProcessDefinitionList()); |
| | | } |
| | | |
| | | @GetMapping("/schedule-page") |
| | | @Operation(summary = "è·å¾ç产工åè°åº¦ç¶æå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<PageResult<MesProWorkOrderRespVO>> getWorkOrderSchedulePage(@Valid MesProWorkOrderPageReqVO pageReqVO) { |
| | | PageResult<MesProWorkOrderDO> pageResult = workOrderService.getWorkOrderSchedulePage(pageReqVO); |
| | | return success(new PageResult<>(buildWorkOrderRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/progress/{id}") |
| | | @Operation(summary = "è·åå·¥åè¿åº¦è¯¦æ
") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<MesProWorkOrderProgressRespVO> getWorkOrderProgress(@PathVariable("id") Long id) { |
| | | return success(workOrderService.getWorkOrderProgress(id)); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å·¥ååæ°è®°å½") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<MesProWorkOrderParamRecordRespVO> getParamRecord(@RequestParam("id") Long id) { |
| | | MesProWorkOrderParamRecordDO record = paramRecordService.getParamRecord(id); |
| | | if (record == null) { |
| | |
| | | |
| | | @GetMapping("/page-by-work-order") |
| | | @Operation(summary = "æå·¥åè·å¾åæ°è®°å½å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<PageResult<MesProWorkOrderParamRecordRespVO>> getParamRecordPageByWorkOrderId( |
| | | @RequestParam("taskId") Long taskId, |
| | | @Valid MesProWorkOrderParamRecordPageReqVO pageReqVO) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å·¥åå·¥åº") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<MesProWorkOrderProcessRespVO> getWorkOrderProcess(@RequestParam("id") Long id) { |
| | | MesProWorkOrderProcessDO workOrderProcess = workOrderProcessService.getWorkOrderProcess(id); |
| | | if (workOrderProcess == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å·¥åå·¥åºå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<PageResult<MesProWorkOrderProcessRespVO>> getWorkOrderProcessPage(@Valid MesProWorkOrderProcessPageReqVO pageReqVO) { |
| | | PageResult<MesProWorkOrderProcessDO> pageResult = workOrderProcessService.getWorkOrderProcessPage(pageReqVO); |
| | | return success(new PageResult<>(buildWorkOrderProcessRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/list-by-work-order-id") |
| | | @Operation(summary = "è·å¾å·¥åçå·¥åºå表") |
| | | @Parameter(name = "workOrderId", description = "å·¥åç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<List<MesProWorkOrderProcessRespVO>> getWorkOrderProcessListByWorkOrderId( |
| | | @RequestParam("workOrderId") Long workOrderId) { |
| | | List<MesProWorkOrderProcessDO> list = workOrderProcessService.getWorkOrderProcessListByWorkOrderId(workOrderId); |
| | |
| | | @GetMapping("/list-by-product-id") |
| | | @Operation(summary = "æ ¹æ®äº§åè·åå·¥èºè·¯çº¿å·¥åºå表ï¼ç¨äºå·¥åé¢å¡«ï¼") |
| | | @Parameter(name = "productId", description = "产åç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-work-order:query')") |
| | | public CommonResult<List<MesProWorkOrderProcessRespVO>> getProcessListByProductId( |
| | | @RequestParam("productId") Long productId) { |
| | | List<MesProWorkOrderProcessDO> list = workOrderProcessService.getProcessListByProductId(productId); |
| | |
| | | |
| | | @GetMapping("/log/page") |
| | | @Operation(summary = "è·å¾å·¥ä½è®°å½æµæ°´å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-workrecord:query')") |
| | | public CommonResult<PageResult<MesProWorkRecordLogRespVO>> getWorkRecordLogPage( |
| | | @Valid MesProWorkRecordLogPageReqVO pageReqVO) { |
| | | PageResult<MesProWorkRecordLogDO> pageResult = workRecordService.getWorkRecordLogPage(pageReqVO); |
| | |
| | | @GetMapping("/log/get") |
| | | @Operation(summary = "è·å¾å·¥ä½è®°å½æµæ°´") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-workrecord:query')") |
| | | public CommonResult<MesProWorkRecordLogRespVO> getWorkRecordLog(@RequestParam("id") Long id) { |
| | | MesProWorkRecordLogDO log = workRecordService.getWorkRecordLog(id); |
| | | return success(buildWorkRecordLogRespVO(log)); |
| | |
| | | |
| | | @GetMapping("/get-my") |
| | | @Operation(summary = "è·åå½åç¨æ·ç»å®çå·¥ä½ç«ç¶æ") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-workrecord:query')") |
| | | public CommonResult<MesProWorkRecordRespVO> getMyWorkRecord() { |
| | | MesProWorkRecordDO record = workRecordService.getWorkRecord(getLoginUserId()); |
| | | return success(buildWorkRecordRespVO(record)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç¼ºé·ç±»å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-defect:query')") |
| | | public CommonResult<MesQcDefectRespVO> getDefect(@RequestParam("id") Long id) { |
| | | MesQcDefectDO defect = defectService.getDefect(id); |
| | | return success(BeanUtils.toBean(defect, MesQcDefectRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç¼ºé·ç±»åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-defect:query')") |
| | | public CommonResult<PageResult<MesQcDefectRespVO>> getDefectPage(@Valid MesQcDefectPageReqVO pageReqVO) { |
| | | PageResult<MesQcDefectDO> pageResult = defectService.getDefectPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesQcDefectRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è´¨æ£ç¼ºé·è®°å½") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-defect:query')") |
| | | public CommonResult<MesQcDefectRecordRespVO> getDefectRecord(@RequestParam("id") Long id) { |
| | | MesQcDefectRecordDO record = defectRecordService.getDefectRecord(id); |
| | | return success(BeanUtils.toBean(record, MesQcDefectRecordRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è´¨æ£ç¼ºé·è®°å½å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-defect:query')") |
| | | public CommonResult<PageResult<MesQcDefectRecordRespVO>> getDefectRecordPage(@Valid MesQcDefectRecordPageReqVO pageReqVO) { |
| | | PageResult<MesQcDefectRecordDO> pageResult = defectRecordService.getDefectRecordPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesQcDefectRecordRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è´¨æ£ææ ") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-indicator:query')") |
| | | public CommonResult<MesQcIndicatorRespVO> getIndicator(@RequestParam("id") Long id) { |
| | | MesQcIndicatorDO indicator = indicatorService.getIndicator(id); |
| | | return success(BeanUtils.toBean(indicator, MesQcIndicatorRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è´¨æ£ææ å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-indicator:query')") |
| | | public CommonResult<PageResult<MesQcIndicatorRespVO>> getIndicatorPage(@Valid MesQcIndicatorPageReqVO pageReqVO) { |
| | | PageResult<MesQcIndicatorDO> pageResult = indicatorService.getIndicatorPage(pageReqVO); |
| | | PageResult<MesQcIndicatorRespVO> voPageResult = BeanUtils.toBean(pageResult, MesQcIndicatorRespVO.class); |
| | |
| | | |
| | | @GetMapping("/group-list") |
| | | @Operation(summary = "è·å¾åç»é¡¹ç²¾ç®å表", description = "åªå
å«åç»é¡¹ï¼ä¸»è¦ç¨äºãæå±åç»ãç䏿é项") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-indicator:query')") |
| | | public CommonResult<List<MesQcIndicatorRespVO>> getIndicatorGroupList() { |
| | | List<MesQcIndicatorDO> list = indicatorService.getIndicatorGroupList(); |
| | | return success(BeanUtils.toBean(list, MesQcIndicatorRespVO.class)); |
| | |
| | | @Parameter(name = "qcId", description = "è´¨æ£åID", required = true, example = "1"), |
| | | @Parameter(name = "qcType", description = "è´¨æ£ç±»å", required = true, example = "1") |
| | | }) |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-iqc:query')") |
| | | public CommonResult<MesQcIndicatorResultRespVO> getIndicatorResultDetail( |
| | | @RequestParam(value = "id", required = false) Long id, |
| | | @RequestParam("qcId") Long qcId, |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æ£éªç»æå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-iqc:query')") |
| | | public CommonResult<PageResult<MesQcIndicatorResultRespVO>> getIndicatorResultPage(@Valid MesQcIndicatorResultPageReqVO pageReqVO) { |
| | | PageResult<MesQcIndicatorResultDO> pageResult = resultService.getIndicatorResultPage(pageReqVO); |
| | | // å端å表åªå±ç¤º codeãsnãremarkï¼æ éå
³èæ¥è¯¢ |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è¿ç¨æ£éªå") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-ipqc:query')") |
| | | public CommonResult<MesQcIpqcRespVO> getIpqc(@RequestParam("id") Long id) { |
| | | MesQcIpqcDO ipqc = ipqcService.getIpqc(id); |
| | | return success(buildIpqcRespVOList(Collections.singletonList(ipqc)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è¿ç¨æ£éªåå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-ipqc:query')") |
| | | public CommonResult<PageResult<MesQcIpqcRespVO>> getIpqcPage(@Valid MesQcIpqcPageReqVO pageReqVO) { |
| | | PageResult<MesQcIpqcDO> pageResult = ipqcService.getIpqcPage(pageReqVO); |
| | | return success(new PageResult<>(buildIpqcRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è¿ç¨æ£éªåè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-ipqc:query')") |
| | | public CommonResult<MesQcIpqcLineRespVO> getIpqcLine(@RequestParam("id") Long id) { |
| | | MesQcIpqcLineDO line = ipqcLineService.getIpqcLine(id); |
| | | return success(buildLineRespVOList(Collections.singletonList(line)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è¿ç¨æ£éªåè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-ipqc:query')") |
| | | public CommonResult<PageResult<MesQcIpqcLineRespVO>> getIpqcLinePage(@Valid MesQcIpqcLinePageReqVO pageReqVO) { |
| | | PageResult<MesQcIpqcLineDO> pageResult = ipqcLineService.getIpqcLinePage(pageReqVO); |
| | | return success(new PageResult<>(buildLineRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æ¥ææ£éªå") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-iqc:query')") |
| | | public CommonResult<MesQcIqcRespVO> getIqc(@RequestParam("id") Long id) { |
| | | MesQcIqcDO iqc = iqcService.getIqc(id); |
| | | return success(buildIqcRespVOList(Collections.singletonList(iqc)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æ¥ææ£éªåå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-iqc:query')") |
| | | public CommonResult<PageResult<MesQcIqcRespVO>> getIqcPage(@Valid MesQcIqcPageReqVO pageReqVO) { |
| | | PageResult<MesQcIqcDO> pageResult = iqcService.getIqcPage(pageReqVO); |
| | | return success(new PageResult<>(buildIqcRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æ¥ææ£éªåè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-iqc:query')") |
| | | public CommonResult<MesQcIqcLineRespVO> getIqcLine(@RequestParam("id") Long id) { |
| | | MesQcIqcLineDO line = iqcLineService.getIqcLine(id); |
| | | return success(buildLineRespVOList(Collections.singletonList(line)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æ¥ææ£éªåè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-iqc:query')") |
| | | public CommonResult<PageResult<MesQcIqcLineRespVO>> getIqcLinePage(@Valid MesQcIqcLinePageReqVO pageReqVO) { |
| | | PageResult<MesQcIqcLineDO> pageResult = iqcLineService.getIqcLinePage(pageReqVO); |
| | | return success(new PageResult<>(buildLineRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æ£æµç»æå°è´¦å页ï¼åç±»æ£éªåç»ä¸æ¥è¯¢ï¼") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-inspection-ledger:query')") |
| | | public CommonResult<PageResult<MesQcInspectionLedgerRespVO>> getInspectionLedgerPage( |
| | | @Valid MesQcInspectionLedgerPageReqVO pageReqVO) { |
| | | return success(ledgerService.getInspectionLedgerPage(pageReqVO)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ä¸åæ ¼åå¤çå详æ
") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-ncr:query')") |
| | | public CommonResult<MesQcNcrRespVO> getNcr(@RequestParam("id") Long id) { |
| | | MesQcNcrDO ncr = ncrService.getNcr(id); |
| | | return success(buildNcrRespVOList(Collections.singletonList(ncr)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ä¸åæ ¼åå¤çåå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-ncr:query')") |
| | | public CommonResult<PageResult<MesQcNcrRespVO>> getNcrPage(@Valid MesQcNcrPageReqVO pageReqVO) { |
| | | PageResult<MesQcNcrDO> pageResult = ncrService.getNcrPage(pageReqVO); |
| | | return success(new PageResult<>(buildNcrRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾åºè´§æ£éªå") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-oqc:query')") |
| | | public CommonResult<MesQcOqcRespVO> getOqc(@RequestParam("id") Long id) { |
| | | MesQcOqcDO oqc = oqcService.getOqc(id); |
| | | return success(buildOqcRespVOList(Collections.singletonList(oqc)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾åºè´§æ£éªåå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-oqc:query')") |
| | | public CommonResult<PageResult<MesQcOqcRespVO>> getOqcPage(@Valid MesQcOqcPageReqVO pageReqVO) { |
| | | PageResult<MesQcOqcDO> pageResult = oqcService.getOqcPage(pageReqVO); |
| | | return success(new PageResult<>(buildOqcRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾åºè´§æ£éªåè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-oqc:query')") |
| | | public CommonResult<MesQcOqcLineRespVO> getOqcLine(@RequestParam("id") Long id) { |
| | | MesQcOqcLineDO line = oqcLineService.getOqcLine(id); |
| | | return success(buildLineRespVOList(Collections.singletonList(line)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾åºè´§æ£éªåè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-oqc:query')") |
| | | public CommonResult<PageResult<MesQcOqcLineRespVO>> getOqcLinePage(@Valid MesQcOqcLinePageReqVO pageReqVO) { |
| | | PageResult<MesQcOqcLineDO> pageResult = oqcLineService.getOqcLinePage(pageReqVO); |
| | | return success(new PageResult<>(buildLineRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å¾
æ£ä»»å¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-pending-inspect:query')") |
| | | public CommonResult<PageResult<MesQcPendingInspectRespVO>> getPendingInspectPage( |
| | | @Valid MesQcPendingInspectPageReqVO pageReqVO) { |
| | | PageResult<MesQcPendingInspectRespVO> pageResult = pendingInspectService.getPendingInspectPage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éè´§æ£éªå") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-rqc:query')") |
| | | public CommonResult<MesQcRqcRespVO> getRqc(@RequestParam("id") Long id) { |
| | | MesQcRqcDO rqc = rqcService.getRqc(id); |
| | | return success(buildRqcRespVOList(Collections.singletonList(rqc)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éè´§æ£éªåå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-rqc:query')") |
| | | public CommonResult<PageResult<MesQcRqcRespVO>> getRqcPage(@Valid MesQcRqcPageReqVO pageReqVO) { |
| | | PageResult<MesQcRqcDO> pageResult = rqcService.getRqcPage(pageReqVO); |
| | | return success(new PageResult<>(buildRqcRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éè´§æ£éªåè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-rqc:query')") |
| | | public CommonResult<MesQcRqcLineRespVO> getRqcLine(@RequestParam("id") Long id) { |
| | | MesQcRqcLineDO line = rqcLineService.getRqcLine(id); |
| | | return success(buildLineRespVOList(Collections.singletonList(line)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éè´§æ£éªåè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-rqc:query')") |
| | | public CommonResult<PageResult<MesQcRqcLineRespVO>> getRqcLinePage(@Valid MesQcRqcLinePageReqVO pageReqVO) { |
| | | PageResult<MesQcRqcLineDO> pageResult = rqcLineService.getRqcLinePage(pageReqVO); |
| | | return success(new PageResult<>(buildLineRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è´¨æ£æ¹æ¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-template:query')") |
| | | public CommonResult<MesQcTemplateRespVO> getTemplate(@RequestParam("id") Long id) { |
| | | MesQcTemplateDO template = templateService.getTemplate(id); |
| | | return success(BeanUtils.toBean(template, MesQcTemplateRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è´¨æ£æ¹æ¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-template:query')") |
| | | public CommonResult<PageResult<MesQcTemplateRespVO>> getTemplatePage(@Valid MesQcTemplatePageReqVO pageReqVO) { |
| | | PageResult<MesQcTemplateDO> pageResult = templateService.getTemplatePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesQcTemplateRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è´¨æ£æ¹æ¡-æ£æµææ 项") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-template:query')") |
| | | public CommonResult<MesQcTemplateIndicatorRespVO> getTemplateIndicator(@RequestParam("id") Long id) { |
| | | MesQcTemplateIndicatorDO indicator = templateIndicatorService.getTemplateIndicator(id); |
| | | return success(buildIndicatorRespVOList(Collections.singletonList(indicator)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è´¨æ£æ¹æ¡-æ£æµææ 项å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-template:query')") |
| | | public CommonResult<PageResult<MesQcTemplateIndicatorRespVO>> getTemplateIndicatorPage( |
| | | @Valid MesQcTemplateIndicatorPageReqVO pageReqVO) { |
| | | PageResult<MesQcTemplateIndicatorDO> pageResult = templateIndicatorService.getTemplateIndicatorPage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è´¨æ£æ¹æ¡-产åå
³è") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-template:query')") |
| | | public CommonResult<MesQcTemplateItemRespVO> getTemplateItem(@RequestParam("id") Long id) { |
| | | MesQcTemplateItemDO item = templateItemService.getTemplateItem(id); |
| | | return success(buildItemRespVOList(Collections.singletonList(item)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è´¨æ£æ¹æ¡-产åå
³èå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-template:query')") |
| | | public CommonResult<PageResult<MesQcTemplateItemRespVO>> getTemplateItemPage( |
| | | @Valid MesQcTemplateItemPageReqVO pageReqVO) { |
| | | PageResult<MesQcTemplateItemDO> pageResult = templateItemService.getTemplateItemPage(pageReqVO); |
| | |
| | | |
| | | @GetMapping("/list-by-item-and-type") |
| | | @Operation(summary = "æ ¹æ®ç©ææå·¥å/ä»»å¡åæ£æµç§ç±»è·åå¯ç¨è´¨æ£æ¹æ¡") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-template:query')") |
| | | public CommonResult<List<MesQcTemplateItemOptionRespVO>> getTemplateItemOptionList( |
| | | @RequestParam(value = "qcType", required = false) Integer qcType, |
| | | @RequestParam(value = "itemId", required = false) Long itemId, |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å·¥å
·") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:tm-tool:query')") |
| | | public CommonResult<MesTmToolRespVO> getTool(@RequestParam("id") Long id) { |
| | | MesTmToolDO tool = toolService.getTool(id); |
| | | MesTmToolRespVO respVO = BeanUtils.toBean(tool, MesTmToolRespVO.class); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å·¥å
·å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:tm-tool:query')") |
| | | public CommonResult<PageResult<MesTmToolRespVO>> getToolPage(@Valid MesTmToolPageReqVO pageReqVO) { |
| | | PageResult<MesTmToolDO> pageResult = toolService.getToolPage(pageReqVO); |
| | | return success(new PageResult<>(buildToolRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @GetMapping("/simple-list") |
| | | @Operation(summary = "è·å¾å·¥å
·ç²¾ç®å表") |
| | | @PreAuthorize("@ss.hasPermission('mes:tm-tool:query')") |
| | | public CommonResult<List<MesTmToolRespVO>> getToolSimpleList() { |
| | | List<MesTmToolDO> list = toolService.getToolList(); |
| | | return success(BeanUtils.toBean(list, MesTmToolRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å·¥å
፱Ȍ") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:tm-tool-type:query')") |
| | | public CommonResult<MesTmToolTypeRespVO> getToolType(@RequestParam("id") Long id) { |
| | | MesTmToolTypeDO toolType = toolTypeService.getToolType(id); |
| | | return success(BeanUtils.toBean(toolType, MesTmToolTypeRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å·¥å
·ç±»åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:tm-tool-type:query')") |
| | | public CommonResult<PageResult<MesTmToolTypeRespVO>> getToolTypePage(@Valid MesTmToolTypePageReqVO pageReqVO) { |
| | | PageResult<MesTmToolTypeDO> pageResult = toolTypeService.getToolTypePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesTmToolTypeRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å°è´§éç¥å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-arrival-notice:query')") |
| | | public CommonResult<MesWmArrivalNoticeRespVO> getArrivalNotice(@RequestParam("id") Long id) { |
| | | MesWmArrivalNoticeDO notice = arrivalNoticeService.getArrivalNotice(id); |
| | | if (notice == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å°è´§éç¥åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-arrival-notice:query')") |
| | | public CommonResult<PageResult<MesWmArrivalNoticeRespVO>> getArrivalNoticePage( |
| | | @Valid MesWmArrivalNoticePageReqVO pageReqVO) { |
| | | PageResult<MesWmArrivalNoticeDO> pageResult = arrivalNoticeService.getArrivalNoticePage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å°è´§éç¥åè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-arrival-notice:query')") |
| | | public CommonResult<MesWmArrivalNoticeLineRespVO> getArrivalNoticeLine(@RequestParam("id") Long id) { |
| | | MesWmArrivalNoticeLineDO line = arrivalNoticeLineService.getArrivalNoticeLine(id); |
| | | if (line == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å°è´§éç¥åè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-arrival-notice:query')") |
| | | public CommonResult<PageResult<MesWmArrivalNoticeLineRespVO>> getArrivalNoticeLinePage( |
| | | @Valid MesWmArrivalNoticeLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmArrivalNoticeLineDO> pageResult = arrivalNoticeLineService.getArrivalNoticeLinePage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æ¡ç é
ç½®") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-barcode-config:query')") |
| | | public CommonResult<MesWmBarcodeConfigRespVO> getBarcodeConfig(@RequestParam("id") Long id) { |
| | | MesWmBarcodeConfigDO config = barcodeConfigService.getBarcodeConfig(id); |
| | | return success(BeanUtils.toBean(config, MesWmBarcodeConfigRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æ¡ç é
ç½®å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-barcode-config:query')") |
| | | public CommonResult<PageResult<MesWmBarcodeConfigRespVO>> getBarcodeConfigPage( |
| | | @Valid MesWmBarcodeConfigPageReqVO pageReqVO) { |
| | | PageResult<MesWmBarcodeConfigDO> pageResult = barcodeConfigService.getBarcodeConfigPage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æ¡ç ") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-barcode:query')") |
| | | public CommonResult<MesWmBarcodeRespVO> getBarcode(@RequestParam("id") Long id) { |
| | | MesWmBarcodeDO barcode = barcodeService.getBarcode(id); |
| | | return success(BeanUtils.toBean(barcode, MesWmBarcodeRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æ¡ç å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-barcode:query')") |
| | | public CommonResult<PageResult<MesWmBarcodeRespVO>> getBarcodePage(@Valid MesWmBarcodePageReqVO pageReqVO) { |
| | | PageResult<MesWmBarcodeDO> pageResult = barcodeService.getBarcodePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesWmBarcodeRespVO.class)); |
| | |
| | | @Operation(summary = "æ ¹æ®ä¸å¡å¯¹è±¡è·åæ¡ç ä¿¡æ¯", description = "å端ç¨äºçææ¡ç å¾ç") |
| | | @Parameter(name = "bizType", description = "ä¸å¡ç±»å", required = true, example = "102") |
| | | @Parameter(name = "bizId", description = "ä¸å¡ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-barcode:query')") |
| | | public CommonResult<MesWmBarcodeRespVO> getBarcodeByBusiness( |
| | | @RequestParam("bizType") Integer bizType, |
| | | @RequestParam("bizId") Long bizId) { |
| | |
| | | @Operation(summary = "çææ¡ç å
容") |
| | | @Parameter(name = "bizType", description = "ä¸å¡ç±»å", required = true, example = "1") |
| | | @Parameter(name = "bizCode", description = "ä¸å¡ç¼ç ", required = true, example = "WO202403070001") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-barcode:query')") |
| | | public CommonResult<String> generateBarcodeContent(@RequestParam("bizType") @NotNull(message = "ä¸å¡ç±»åä¸è½ä¸ºç©º") Integer bizType, |
| | | @RequestParam("bizCode") @NotBlank(message = "ä¸å¡ç¼ç ä¸è½ä¸ºç©º") String bizCode) { |
| | | String content = barcodeService.generateBarcodeContent(bizType, bizCode); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æ¹æ¬¡è¯¦æ
") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-batch:query')") |
| | | public CommonResult<MesWmBatchRespVO> getBatch(@RequestParam("id") Long id) { |
| | | MesWmBatchDO batch = batchService.getBatch(id); |
| | | return success(buildBatchRespVO(batch)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æ¹æ¬¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-batch:query')") |
| | | public CommonResult<PageResult<MesWmBatchRespVO>> getBatchPage(@Valid MesWmBatchPageReqVO pageReqVO) { |
| | | PageResult<MesWmBatchDO> pageResult = batchService.getBatchPage(pageReqVO); |
| | | return success(new PageResult<>(buildBatchRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/forward-list") |
| | | @Operation(summary = "æ¹æ¬¡åå追溯") |
| | | @Parameter(name = "code", description = "æ¹æ¬¡ç¼ç ", required = true, example = "BATCH20250314001") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-batch:query')") |
| | | public CommonResult<List<MesWmBatchRespVO>> getForwardList(@RequestParam("code") @Valid String code) { |
| | | List<MesWmBatchDO> list = batchService.getForwardBatchList(code); |
| | | return success(buildBatchRespVOList(list)); |
| | |
| | | @GetMapping("/backward-list") |
| | | @Operation(summary = "æ¹æ¬¡åå追溯") |
| | | @Parameter(name = "code", description = "æ¹æ¬¡ç¼ç ", required = true, example = "BATCH20250314001") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-batch:query')") |
| | | public CommonResult<List<MesWmBatchRespVO>> getBackwardList(@RequestParam("code") @Valid String code) { |
| | | List<MesWmBatchDO> list = batchService.getBackwardBatchList(code); |
| | | return success(buildBatchRespVOList(list)); |
| | |
| | | @GetMapping("/purchase-sources") |
| | | @Operation(summary = "æ¹æ¬¡éè´æ¥æºï¼éè´å
¥åºå + IQCï¼") |
| | | @Parameter(name = "code", description = "æ¹æ¬¡ç¼ç ", required = true, example = "BATCH20250314001") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-batch:query')") |
| | | public CommonResult<List<MesWmBatchPurchaseSourceRespVO>> getPurchaseSourceList(@RequestParam("code") @Valid String code) { |
| | | List<MesWmBatchPurchaseSourceRespVO> list = batchService.getPurchaseSourceList(code); |
| | | return success(buildPurchaseSourceRespVOList(list)); |
| | |
| | | @GetMapping("/sales-targets") |
| | | @Operation(summary = "æ¹æ¬¡éå®å»åï¼éå®åºåºå + OQCï¼") |
| | | @Parameter(name = "code", description = "æ¹æ¬¡ç¼ç ", required = true, example = "BATCH20250314001") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-batch:query')") |
| | | public CommonResult<List<MesWmBatchSalesTargetRespVO>> getSalesTargetList(@RequestParam("code") @Valid String code) { |
| | | List<MesWmBatchSalesTargetRespVO> list = batchService.getSalesTargetList(code); |
| | | return success(buildSalesTargetRespVOList(list)); |
| | |
| | | @GetMapping("/process-trace") |
| | | @Operation(summary = "æ¹æ¬¡å·¥åºæµè½¬ï¼äº§åº/æå
¥äºä»¶ï¼") |
| | | @Parameter(name = "code", description = "æ¹æ¬¡ç¼ç ", required = true, example = "BATCH20250314001") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-batch:query')") |
| | | public CommonResult<List<MesWmBatchProcessTraceRespVO>> getProcessTraceList(@RequestParam("code") @Valid String code) { |
| | | List<MesWmBatchProcessTraceRespVO> list = batchService.getProcessTraceList(code); |
| | | return success(buildProcessTraceRespVOList(list)); |
| | |
| | | @GetMapping("/get-by-sn") |
| | | @Operation(summary = "æ ¹æ® SN ç åæ¥æ¹æ¬¡") |
| | | @Parameter(name = "sn", description = "SN åºåå·", required = true, example = "SN20250314001") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-batch:query')") |
| | | public CommonResult<MesWmBatchRespVO> getBatchBySn(@RequestParam("sn") @Valid String sn) { |
| | | MesWmBatchDO batch = batchService.getBatchBySn(sn); |
| | | return success(buildBatchRespVO(batch)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "æ ¹æ®æ¥å·¥ç¼å·å页è·åæ¶èè¡å表") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-feedback:query')") |
| | | public CommonResult<PageResult<MesWmItemConsumeLineRespVO>> getItemConsumeLinePage( |
| | | @Valid MesWmItemConsumeLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmItemConsumeLineRespVO> pageResult = |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éè´å
¥åºå") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-item-receipt:query')") |
| | | public CommonResult<MesWmItemReceiptRespVO> getItemReceipt(@RequestParam("id") Long id) { |
| | | MesWmItemReceiptDO receipt = itemReceiptService.getItemReceipt(id); |
| | | if (receipt == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éè´å
¥åºåå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-item-receipt:query')") |
| | | public CommonResult<PageResult<MesWmItemReceiptRespVO>> getItemReceiptPage( |
| | | @Valid MesWmItemReceiptPageReqVO pageReqVO) { |
| | | PageResult<MesWmItemReceiptDO> pageResult = itemReceiptService.getItemReceiptPage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éè´å
¥åºæç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-item-receipt:query')") |
| | | public CommonResult<MesWmItemReceiptDetailRespVO> getItemReceiptDetail(@RequestParam("id") Long id) { |
| | | MesWmItemReceiptDetailDO detail = itemReceiptDetailService.getItemReceiptDetail(id); |
| | | if (detail == null) { |
| | |
| | | @GetMapping("/list-by-line") |
| | | @Operation(summary = "è·å¾éè´å
¥åºæç»åè¡¨ï¼æè¡ç¼å·ï¼") |
| | | @Parameter(name = "lineId", description = "è¡ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-item-receipt:query')") |
| | | public CommonResult<List<MesWmItemReceiptDetailRespVO>> getItemReceiptDetailListByLineId( |
| | | @RequestParam("lineId") Long lineId) { |
| | | List<MesWmItemReceiptDetailDO> list = itemReceiptDetailService.getItemReceiptDetailListByLineId(lineId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éè´å
¥åºåè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-item-receipt:query')") |
| | | public CommonResult<MesWmItemReceiptLineRespVO> getItemReceiptLine(@RequestParam("id") Long id) { |
| | | MesWmItemReceiptLineDO line = itemReceiptLineService.getItemReceiptLine(id); |
| | | if (line == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éè´å
¥åºåè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-item-receipt:query')") |
| | | public CommonResult<PageResult<MesWmItemReceiptLineRespVO>> getItemReceiptLinePage( |
| | | @Valid MesWmItemReceiptLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmItemReceiptLineDO> pageResult = itemReceiptLineService.getItemReceiptLinePage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾åºåè®°å½") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-material-stock:query')") |
| | | public CommonResult<MesWmMaterialStockRespVO> getMaterialStock(@RequestParam("id") Long id) { |
| | | MesWmMaterialStockDO stock = materialStockService.getMaterialStock(id); |
| | | if (stock == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾åºåå°è´¦å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-material-stock:query')") |
| | | public CommonResult<PageResult<MesWmMaterialStockRespVO>> getMaterialStockPage( |
| | | @Valid MesWmMaterialStockPageReqVO pageReqVO) { |
| | | PageResult<MesWmMaterialStockDO> pageResult = materialStockService.getMaterialStockPage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æé¡¹åºåºå") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-misc-issue:query')") |
| | | public CommonResult<MesWmMiscIssueRespVO> getMiscIssue(@RequestParam("id") Long id) { |
| | | MesWmMiscIssueDO issue = miscIssueService.getMiscIssue(id); |
| | | if (issue == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æé¡¹åºåºåå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-misc-issue:query')") |
| | | public CommonResult<PageResult<MesWmMiscIssueRespVO>> getMiscIssuePage( |
| | | @Valid MesWmMiscIssuePageReqVO pageReqVO) { |
| | | PageResult<MesWmMiscIssueDO> pageResult = miscIssueService.getMiscIssuePage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æé¡¹åºåºåè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-misc-issue:query')") |
| | | public CommonResult<MesWmMiscIssueLineRespVO> getMiscIssueLine(@RequestParam("id") Long id) { |
| | | MesWmMiscIssueLineDO line = miscIssueLineService.getMiscIssueLine(id); |
| | | if (line == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æé¡¹åºåºåè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-misc-issue:query')") |
| | | public CommonResult<PageResult<MesWmMiscIssueLineRespVO>> getMiscIssueLinePage( |
| | | @Valid MesWmMiscIssueLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmMiscIssueLineDO> pageResult = miscIssueLineService.getMiscIssueLinePage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æé¡¹å
¥åºå") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm:misc-receipt:query')") |
| | | public CommonResult<MesWmMiscReceiptRespVO> getMiscReceipt(@RequestParam("id") Long id) { |
| | | MesWmMiscReceiptDO receipt = miscReceiptService.getMiscReceipt(id); |
| | | return success(BeanUtils.toBean(receipt, MesWmMiscReceiptRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æé¡¹å
¥åºåå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm:misc-receipt:query')") |
| | | public CommonResult<PageResult<MesWmMiscReceiptRespVO>> getMiscReceiptPage(@Valid MesWmMiscReceiptPageReqVO pageReqVO) { |
| | | PageResult<MesWmMiscReceiptDO> pageResult = miscReceiptService.getMiscReceiptPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesWmMiscReceiptRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æé¡¹å
¥åºåè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm:misc-receipt:query')") |
| | | public CommonResult<MesWmMiscReceiptLineRespVO> getMiscReceiptLine(@RequestParam("id") Long id) { |
| | | MesWmMiscReceiptLineDO line = miscReceiptLineService.getMiscReceiptLine(id); |
| | | if (line == null) { |
| | |
| | | @GetMapping("/list-by-receipt-id") |
| | | @Operation(summary = "è·å¾æé¡¹å
¥åºåè¡å表") |
| | | @Parameter(name = "receiptId", description = "å
¥åºåç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm:misc-receipt:query')") |
| | | public CommonResult<List<MesWmMiscReceiptLineRespVO>> getMiscReceiptLineListByReceiptId(@RequestParam("receiptId") Long receiptId) { |
| | | List<MesWmMiscReceiptLineDO> list = miscReceiptLineService.getMiscReceiptLineListByReceiptId(receiptId); |
| | | return success(buildRespVOList(list)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æé¡¹å
¥åºåè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm:misc-receipt:query')") |
| | | public CommonResult<PageResult<MesWmMiscReceiptLineRespVO>> getMiscReceiptLinePage(@Valid MesWmMiscReceiptLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmMiscReceiptLineDO> pageResult = miscReceiptLineService.getMiscReceiptLinePage(pageReqVO); |
| | | return success(new PageResult<>(buildRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å¤ååæå") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-outsource-issue:query')") |
| | | public CommonResult<MesWmOutsourceIssueRespVO> getOutsourceIssue(@RequestParam("id") Long id) { |
| | | MesWmOutsourceIssueDO issue = outsourceIssueService.getOutsourceIssue(id); |
| | | if (issue == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å¤ååæåå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-outsource-issue:query')") |
| | | public CommonResult<PageResult<MesWmOutsourceIssueRespVO>> getOutsourceIssuePage( |
| | | @Valid MesWmOutsourceIssuePageReqVO pageReqVO) { |
| | | PageResult<MesWmOutsourceIssueDO> pageResult = outsourceIssueService.getOutsourceIssuePage(pageReqVO); |
| | |
| | | @GetMapping("/check-quantity") |
| | | @Operation(summary = "æ ¡éªå¤ååæåæ°é", description = "æ ¡éªæ¯è¡æç»æ°éä¹åæ¯å¦çäºè¡åææ°é") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-outsource-issue:query')") |
| | | public CommonResult<Boolean> checkOutsourceIssueQuantity(@RequestParam("id") Long id) { |
| | | return success(outsourceIssueService.checkOutsourceIssueQuantity(id)); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å¤ååæåæç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-outsource-issue:query')") |
| | | public CommonResult<MesWmOutsourceIssueDetailRespVO> getOutsourceIssueDetail(@RequestParam("id") Long id) { |
| | | MesWmOutsourceIssueDetailDO detail = outsourceIssueDetailService.getOutsourceIssueDetail(id); |
| | | if (detail == null) { |
| | |
| | | @GetMapping("/list-by-line") |
| | | @Operation(summary = "è·å¾å¤ååæåæç»åè¡¨ï¼æè¡IDï¼") |
| | | @Parameter(name = "lineId", description = "è¡ID", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-outsource-issue:query')") |
| | | public CommonResult<List<MesWmOutsourceIssueDetailRespVO>> getOutsourceIssueDetailListByLineId( |
| | | @RequestParam("lineId") Long lineId) { |
| | | List<MesWmOutsourceIssueDetailDO> list = outsourceIssueDetailService.getOutsourceIssueDetailListByLineId(lineId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å¤ååæåè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-outsource-issue:query')") |
| | | public CommonResult<MesWmOutsourceIssueLineRespVO> getOutsourceIssueLine(@RequestParam("id") Long id) { |
| | | MesWmOutsourceIssueLineDO line = outsourceIssueLineService.getOutsourceIssueLine(id); |
| | | if (line == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å¤ååæåè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-outsource-issue:query')") |
| | | public CommonResult<PageResult<MesWmOutsourceIssueLineRespVO>> getOutsourceIssueLinePage( |
| | | @Valid MesWmOutsourceIssueLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmOutsourceIssueLineDO> pageResult = outsourceIssueLineService.getOutsourceIssueLinePage(pageReqVO); |
| | |
| | | @GetMapping("/list-by-issue-id") |
| | | @Operation(summary = "è·å¾å¤ååæåè¡å表") |
| | | @Parameter(name = "issueId", description = "åæåID", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-outsource-issue:query')") |
| | | public CommonResult<List<MesWmOutsourceIssueLineRespVO>> getOutsourceIssueLineListByIssueId( |
| | | @RequestParam("issueId") Long issueId) { |
| | | List<MesWmOutsourceIssueLineDO> list = outsourceIssueLineService.getOutsourceIssueLineListByIssueId(issueId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å¤åå
¥åºå") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-outsource-receipt:query')") |
| | | public CommonResult<MesWmOutsourceReceiptRespVO> getOutsourceReceipt(@RequestParam("id") Long id) { |
| | | MesWmOutsourceReceiptDO receipt = outsourceReceiptService.getOutsourceReceipt(id); |
| | | if (receipt == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å¤åå
¥åºåå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-outsource-receipt:query')") |
| | | public CommonResult<PageResult<MesWmOutsourceReceiptRespVO>> getOutsourceReceiptPage( |
| | | @Valid MesWmOutsourceReceiptPageReqVO pageReqVO) { |
| | | PageResult<MesWmOutsourceReceiptDO> pageResult = outsourceReceiptService.getOutsourceReceiptPage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å¤åå
¥åºæç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-outsource-receipt:query')") |
| | | public CommonResult<MesWmOutsourceReceiptDetailRespVO> getOutsourceReceiptDetail(@RequestParam("id") Long id) { |
| | | MesWmOutsourceReceiptDetailDO detail = detailService.getOutsourceReceiptDetail(id); |
| | | if (detail == null) { |
| | |
| | | @GetMapping("/list-by-line") |
| | | @Operation(summary = "è·å¾å¤åå
¥åºæç»åè¡¨ï¼æè¡ç¼å·ï¼") |
| | | @Parameter(name = "lineId", description = "è¡ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-outsource-receipt:query')") |
| | | public CommonResult<List<MesWmOutsourceReceiptDetailRespVO>> getOutsourceReceiptDetailListByLineId( |
| | | @RequestParam("lineId") Long lineId) { |
| | | List<MesWmOutsourceReceiptDetailDO> list = detailService.getOutsourceReceiptDetailListByLineId(lineId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å¤åå
¥åºåè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-outsource-receipt:query')") |
| | | public CommonResult<MesWmOutsourceReceiptLineRespVO> getOutsourceReceiptLine(@RequestParam("id") Long id) { |
| | | MesWmOutsourceReceiptLineDO line = receiptLineService.getOutsourceReceiptLine(id); |
| | | if (line == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å¤åå
¥åºåè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-outsource-receipt:query')") |
| | | public CommonResult<PageResult<MesWmOutsourceReceiptLineRespVO>> getOutsourceReceiptLinePage( |
| | | @Valid MesWmOutsourceReceiptLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmOutsourceReceiptLineDO> pageResult = receiptLineService.getOutsourceReceiptLinePage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è£
ç®±å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-package:query')") |
| | | public CommonResult<MesWmPackageRespVO> getPackage(@RequestParam("id") Long id) { |
| | | MesWmPackageDO packageDO = packageService.getPackage(id); |
| | | if (packageDO == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è£
ç®±åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-package:query')") |
| | | public CommonResult<PageResult<MesWmPackageRespVO>> getPackagePage( |
| | | @Valid MesWmPackagePageReqVO pageReqVO) { |
| | | PageResult<MesWmPackageDO> pageResult = packageService.getPackagePage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è£
ç®±æç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-package:query')") |
| | | public CommonResult<MesWmPackageLineRespVO> getPackageLine(@RequestParam("id") Long id) { |
| | | MesWmPackageLineDO line = packageLineService.getPackageLine(id); |
| | | if (line == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è£
ç®±æç»å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-package:query')") |
| | | public CommonResult<PageResult<MesWmPackageLineRespVO>> getPackageLinePage( |
| | | @Valid MesWmPackageLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmPackageLineDO> pageResult = packageLineService.getPackageLinePage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾é¢æåºåºå") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-issue:query')") |
| | | public CommonResult<MesWmProductIssueRespVO> getProductIssue(@RequestParam("id") Long id) { |
| | | MesWmProductIssueDO issue = issueService.getProductIssue(id); |
| | | if (issue == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾é¢æåºåºåå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-issue:query')") |
| | | public CommonResult<PageResult<MesWmProductIssueRespVO>> getProductIssuePage( |
| | | @Valid MesWmProductIssuePageReqVO pageReqVO) { |
| | | PageResult<MesWmProductIssueDO> pageResult = issueService.getProductIssuePage(pageReqVO); |
| | |
| | | @GetMapping("/check-quantity") |
| | | @Operation(summary = "æ ¡éªé¢æåºåºåæ°é", description = "æ ¡éªæ¯è¡æç»æ°éä¹åæ¯å¦çäºè¡é¢ææ°é") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-issue:query')") |
| | | public CommonResult<Boolean> checkProductIssueQuantity(@RequestParam("id") Long id) { |
| | | return success(issueService.checkProductIssueQuantity(id)); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾é¢æåºåºæç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-issue:query')") |
| | | public CommonResult<MesWmProductIssueDetailRespVO> getProductIssueDetail(@RequestParam("id") Long id) { |
| | | MesWmProductIssueDetailDO detail = issueDetailService.getProductIssueDetail(id); |
| | | if (detail == null) { |
| | |
| | | @GetMapping("/list-by-line") |
| | | @Operation(summary = "è·å¾é¢æåºåºæç»åè¡¨ï¼æè¡ç¼å·ï¼") |
| | | @Parameter(name = "lineId", description = "è¡ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-issue:query')") |
| | | public CommonResult<List<MesWmProductIssueDetailRespVO>> getProductIssueDetailListByLineId( |
| | | @RequestParam("lineId") Long lineId) { |
| | | List<MesWmProductIssueDetailDO> list = issueDetailService.getProductIssueDetailListByLineId(lineId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾é¢æåºåºåè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-issue:query')") |
| | | public CommonResult<MesWmProductIssueLineRespVO> getProductIssueLine(@RequestParam("id") Long id) { |
| | | MesWmProductIssueLineDO line = issueLineService.getProductIssueLine(id); |
| | | if (line == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾é¢æåºåºåè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-issue:query')") |
| | | public CommonResult<PageResult<MesWmProductIssueLineRespVO>> getProductIssueLinePage( |
| | | @Valid MesWmProductIssueLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmProductIssueLineDO> pageResult = issueLineService.getProductIssueLinePage(pageReqVO); |
| | |
| | | @GetMapping("/list-by-issue") |
| | | @Operation(summary = "è·å¾é¢æåºåºåè¡åè¡¨ï¼æé¢æåç¼å·ï¼") |
| | | @Parameter(name = "issueId", description = "颿åç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-issue:query')") |
| | | public CommonResult<List<MesWmProductIssueLineRespVO>> getProductIssueLineListByIssueId( |
| | | @RequestParam("issueId") Long issueId) { |
| | | List<MesWmProductIssueLineDO> list = issueLineService.getProductIssueLineListByIssueId(issueId); |
| | |
| | | @Operation(summary = "è·å¾é¢æåºåºåå¯é¢ç©æå表", |
| | | description = "ä»
è¿åå½å颿å对åºç产工å BOM ä¸çç©æï¼ç¨äºæ°å¢è¡ç©æéæ©å¨è¿æ»¤ï¼é¿å
éæ© BOM ä¹å¤çç©æ") |
| | | @Parameter(name = "issueId", description = "颿åç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-issue:query')") |
| | | public CommonResult<List<MesWmProductIssueBomItemRespVO>> getBomItemList(@RequestParam("issueId") Long issueId) { |
| | | // 1. æ ¡éªé¢æååå¨ï¼è·åå
³èå·¥å |
| | | MesWmProductIssueDO issue = issueService.validateProductIssueExists(issueId); |
| | |
| | | @Operation(summary = "è·å¾é¢æåºåºåå¯éæè¡å表", |
| | | description = "è¿åæå®å·¥åä¸å·²å®æé¢æåçå¯éæè¡ï¼å¯éæ°é = 已颿°é - 已鿰é") |
| | | @Parameter(name = "workOrderId", description = "ç产工åID", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-issue:query')") |
| | | public CommonResult<List<MesWmProductIssueLineReturnableRespVO>> getReturnableList(@RequestParam("workOrderId") Long workOrderId) { |
| | | return success(issueLineService.getReturnableList(workOrderId)); |
| | | } |
| | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç产å
¥åºåè¡å页") |
| | | // æ¥å·¥è¯¦æ
ç产å产åºé¡µç¾å¤ç¨æ¤æ¥å£ï¼æ¥è¯¢èå´ç±å¿
å¡« feedbackId éå®ã |
| | | @PreAuthorize("@ss.hasAnyPermissions('mes:wm-product-produce:query', 'mes:pro-feedback:query')") |
| | | public CommonResult<PageResult<MesWmProductProduceLineRespVO>> getProductProduceLinePage( |
| | | @Valid MesWmProductProduceLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmProductProduceLineDO> pageResult = productProduceLineService.getProductProduceLinePage( |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾äº§åæ¶è´§å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-receipt:query')") |
| | | public CommonResult<MesWmProductReceiptRespVO> getProductReceipt(@RequestParam("id") Long id) { |
| | | MesWmProductReceiptDO receipt = productReceiptService.getProductReceipt(id); |
| | | if (receipt == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾äº§åæ¶è´§åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-receipt:query')") |
| | | public CommonResult<PageResult<MesWmProductReceiptRespVO>> getProductReceiptPage( |
| | | @Valid MesWmProductReceiptPageReqVO pageReqVO) { |
| | | PageResult<MesWmProductReceiptDO> pageResult = productReceiptService.getProductReceiptPage(pageReqVO); |
| | |
| | | @GetMapping("/check-quantity") |
| | | @Operation(summary = "æ ¡éªäº§åæ¶è´§åæç»æ°é") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-receipt:query')") |
| | | public CommonResult<Boolean> checkProductReceiptQuantity(@RequestParam("id") Long id) { |
| | | return success(productReceiptService.checkProductReceiptQuantity(id)); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾äº§åæ¶è´§åæç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-receipt:query')") |
| | | public CommonResult<MesWmProductReceiptDetailRespVO> getProductReceiptDetail(@RequestParam("id") Long id) { |
| | | MesWmProductReceiptDetailDO detail = productReceiptDetailService.getProductReceiptDetail(id); |
| | | if (detail == null) { |
| | |
| | | @GetMapping("/list-by-line") |
| | | @Operation(summary = "è·å¾äº§åæ¶è´§åæç»åè¡¨ï¼æè¡ç¼å·ï¼") |
| | | @Parameter(name = "lineId", description = "è¡ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-receipt:query')") |
| | | public CommonResult<List<MesWmProductReceiptDetailRespVO>> getProductReceiptDetailListByLineId( |
| | | @RequestParam("lineId") Long lineId) { |
| | | List<MesWmProductReceiptDetailDO> list = productReceiptDetailService.getProductReceiptDetailListByLineId(lineId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾äº§åæ¶è´§åè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-receipt:query')") |
| | | public CommonResult<MesWmProductReceiptLineRespVO> getProductReceiptLine(@RequestParam("id") Long id) { |
| | | MesWmProductReceiptLineDO line = productReceiptLineService.getProductReceiptLine(id); |
| | | if (line == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾äº§åæ¶è´§åè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-receipt:query')") |
| | | public CommonResult<PageResult<MesWmProductReceiptLineRespVO>> getProductReceiptLinePage( |
| | | @Valid MesWmProductReceiptLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmProductReceiptLineDO> pageResult = productReceiptLineService.getProductReceiptLinePage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éå®åºåºå") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-sales:query')") |
| | | public CommonResult<MesWmProductSalesRespVO> getProductSales(@RequestParam("id") Long id) { |
| | | MesWmProductSalesDO sales = productSalesService.getProductSales(id); |
| | | if (sales == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éå®åºåºåå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-sales:query')") |
| | | public CommonResult<PageResult<MesWmProductSalesRespVO>> getProductSalesPage( |
| | | @Valid MesWmProductSalesPageReqVO pageReqVO) { |
| | | PageResult<MesWmProductSalesDO> pageResult = productSalesService.getProductSalesPage(pageReqVO); |
| | |
| | | @GetMapping("/check-quantity") |
| | | @Operation(summary = "æ ¡éªéå®åºåºåæ°é") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-sales:query')") |
| | | public CommonResult<Boolean> checkProductSalesQuantity(@RequestParam("id") Long id) { |
| | | return success(productSalesService.checkProductSalesQuantity(id)); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éå®åºåºæç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-sales:query')") |
| | | public CommonResult<MesWmProductSalesDetailRespVO> getProductSalesDetail(@RequestParam("id") Long id) { |
| | | MesWmProductSalesDetailDO detail = productSalesDetailService.getProductSalesDetail(id); |
| | | if (detail == null) { |
| | |
| | | @GetMapping("/list-by-line") |
| | | @Operation(summary = "è·å¾éå®åºåºæç»åè¡¨ï¼æè¡ç¼å·ï¼") |
| | | @Parameter(name = "lineId", description = "è¡ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-sales:query')") |
| | | public CommonResult<List<MesWmProductSalesDetailRespVO>> getProductSalesDetailListByLineId( |
| | | @RequestParam("lineId") Long lineId) { |
| | | List<MesWmProductSalesDetailDO> list = productSalesDetailService.getProductSalesDetailListByLineId(lineId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éå®åºåºåè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-sales:query')") |
| | | public CommonResult<MesWmProductSalesLineRespVO> getProductSalesLine(@RequestParam("id") Long id) { |
| | | MesWmProductSalesLineDO line = productSalesLineService.getProductSalesLine(id); |
| | | if (line == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éå®åºåºåè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-sales:query')") |
| | | public CommonResult<PageResult<MesWmProductSalesLineRespVO>> getProductSalesLinePage( |
| | | @Valid MesWmProductSalesLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmProductSalesLineDO> pageResult = productSalesLineService.getProductSalesLinePage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç产éæå") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-issue:query')") |
| | | public CommonResult<MesWmReturnIssueRespVO> getReturnIssue(@RequestParam("id") Long id) { |
| | | MesWmReturnIssueDO issue = issueService.getReturnIssue(id); |
| | | if (issue == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç产éæåå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-issue:query')") |
| | | public CommonResult<PageResult<MesWmReturnIssueRespVO>> getReturnIssuePage( |
| | | @Valid MesWmReturnIssuePageReqVO pageReqVO) { |
| | | PageResult<MesWmReturnIssueDO> pageResult = issueService.getReturnIssuePage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾çäº§éææç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-issue:query')") |
| | | public CommonResult<MesWmReturnIssueDetailRespVO> getReturnIssueDetail(@RequestParam("id") Long id) { |
| | | MesWmReturnIssueDetailDO detail = issueDetailService.getReturnIssueDetail(id); |
| | | if (detail == null) { |
| | |
| | | @GetMapping("/list-by-line") |
| | | @Operation(summary = "è·å¾çäº§éææç»åè¡¨ï¼æè¡ç¼å·ï¼") |
| | | @Parameter(name = "lineId", description = "è¡ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-issue:query')") |
| | | public CommonResult<List<MesWmReturnIssueDetailRespVO>> getReturnIssueDetailListByLineId( |
| | | @RequestParam("lineId") Long lineId) { |
| | | List<MesWmReturnIssueDetailDO> list = issueDetailService.getReturnIssueDetailListByLineId(lineId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç产éæåè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-issue:query')") |
| | | public CommonResult<MesWmReturnIssueLineRespVO> getReturnIssueLine(@RequestParam("id") Long id) { |
| | | MesWmReturnIssueLineDO line = issueLineService.getReturnIssueLine(id); |
| | | if (line == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç产éæåè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-issue:query')") |
| | | public CommonResult<PageResult<MesWmReturnIssueLineRespVO>> getReturnIssueLinePage( |
| | | @Valid MesWmReturnIssueLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmReturnIssueLinePageVO> pageResult = issueLineService.getReturnIssueLinePage(pageReqVO); |
| | |
| | | @GetMapping("/list-by-issue") |
| | | @Operation(summary = "è·å¾ç产éæåè¡åè¡¨ï¼æéæåç¼å·ï¼") |
| | | @Parameter(name = "issueId", description = "éæåç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-issue:query')") |
| | | public CommonResult<List<MesWmReturnIssueLineRespVO>> getReturnIssueLineListByIssueId( |
| | | @RequestParam("issueId") Long issueId) { |
| | | List<MesWmReturnIssueLineDO> list = issueLineService.getReturnIssueLineListByIssueId(issueId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éå®éè´§å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-sales:query')") |
| | | public CommonResult<MesWmReturnSalesRespVO> getReturnSales(@RequestParam("id") Long id) { |
| | | MesWmReturnSalesDO returnSales = returnSalesService.getReturnSales(id); |
| | | if (returnSales == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éå®éè´§åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-sales:query')") |
| | | public CommonResult<PageResult<MesWmReturnSalesRespVO>> getReturnSalesPage( |
| | | @Valid MesWmReturnSalesPageReqVO pageReqVO) { |
| | | PageResult<MesWmReturnSalesDO> pageResult = returnSalesService.getReturnSalesPage(pageReqVO); |
| | |
| | | @GetMapping("/check-quantity") |
| | | @Operation(summary = "æ ¡éªéå®éè´§åæ°é", description = "æ ¡éªæ¯è¡æç»æ°éä¹åæ¯å¦çäºè¡éè´§æ°é") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-sales:query')") |
| | | public CommonResult<Boolean> checkReturnSalesQuantity(@RequestParam("id") Long id) { |
| | | return success(returnSalesService.checkReturnSalesQuantity(id)); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éå®éè´§æç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-sales:query')") |
| | | public CommonResult<MesWmReturnSalesDetailRespVO> getReturnSalesDetail(@RequestParam("id") Long id) { |
| | | MesWmReturnSalesDetailDO detail = returnSalesDetailService.getReturnSalesDetail(id); |
| | | if (detail == null) { |
| | |
| | | @GetMapping("/list-by-line") |
| | | @Operation(summary = "è·å¾éå®éè´§æç»åè¡¨ï¼æè¡ç¼å·ï¼") |
| | | @Parameter(name = "lineId", description = "è¡ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-sales:query')") |
| | | public CommonResult<List<MesWmReturnSalesDetailRespVO>> getReturnSalesDetailListByLineId( |
| | | @RequestParam("lineId") Long lineId) { |
| | | List<MesWmReturnSalesDetailDO> list = returnSalesDetailService.getReturnSalesDetailListByLineId(lineId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éå®éè´§åè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-sales:query')") |
| | | public CommonResult<MesWmReturnSalesLineRespVO> getReturnSalesLine(@RequestParam("id") Long id) { |
| | | MesWmReturnSalesLineDO line = returnSalesLineService.getReturnSalesLine(id); |
| | | if (line == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éå®éè´§åè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-sales:query')") |
| | | public CommonResult<PageResult<MesWmReturnSalesLineRespVO>> getReturnSalesLinePage( |
| | | @Valid MesWmReturnSalesLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmReturnSalesLineDO> pageResult = returnSalesLineService.getReturnSalesLinePage(pageReqVO); |
| | |
| | | @GetMapping("/list-by-return-sales") |
| | | @Operation(summary = "è·å¾éå®éè´§åè¡åè¡¨ï¼æéè´§åç¼å·ï¼") |
| | | @Parameter(name = "returnId", description = "éè´§åç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-sales:query')") |
| | | public CommonResult<List<MesWmReturnSalesLineRespVO>> getReturnSalesLineListByReturnId( |
| | | @RequestParam("returnId") Long returnId) { |
| | | List<MesWmReturnSalesLineDO> list = returnSalesLineService.getReturnSalesLineListByReturnId(returnId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ä¾åºåéè´§å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-vendor:query')") |
| | | public CommonResult<MesWmReturnVendorRespVO> getReturnVendor(@RequestParam("id") Long id) { |
| | | MesWmReturnVendorDO returnVendor = returnVendorService.getReturnVendor(id); |
| | | if (returnVendor == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ä¾åºåéè´§åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-vendor:query')") |
| | | public CommonResult<PageResult<MesWmReturnVendorRespVO>> getReturnVendorPage( |
| | | @Valid MesWmReturnVendorPageReqVO pageReqVO) { |
| | | PageResult<MesWmReturnVendorDO> pageResult = returnVendorService.getReturnVendorPage(pageReqVO); |
| | |
| | | @GetMapping("/check-quantity") |
| | | @Operation(summary = "æ ¡éªä¾åºåéè´§åæ°é", description = "æ ¡éªæ¯è¡æç»æ°éä¹åæ¯å¦çäºè¡éè´§æ°é") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-vendor:query')") |
| | | public CommonResult<Boolean> checkReturnVendorQuantity(@RequestParam("id") Long id) { |
| | | return success(returnVendorService.checkReturnVendorQuantity(id)); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ä¾åºåéè´§æç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-vendor:query')") |
| | | public CommonResult<MesWmReturnVendorDetailRespVO> getReturnVendorDetail(@RequestParam("id") Long id) { |
| | | MesWmReturnVendorDetailDO detail = returnVendorDetailService.getReturnVendorDetail(id); |
| | | if (detail == null) { |
| | |
| | | @GetMapping("/list-by-line") |
| | | @Operation(summary = "è·å¾ä¾åºåéè´§æç»åè¡¨ï¼æè¡ç¼å·ï¼") |
| | | @Parameter(name = "lineId", description = "è¡ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-vendor:query')") |
| | | public CommonResult<List<MesWmReturnVendorDetailRespVO>> getReturnVendorDetailListByLineId( |
| | | @RequestParam("lineId") Long lineId) { |
| | | List<MesWmReturnVendorDetailDO> list = returnVendorDetailService.getReturnVendorDetailListByLineId(lineId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ä¾åºåéè´§åè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-vendor:query')") |
| | | public CommonResult<MesWmReturnVendorLineRespVO> getReturnVendorLine(@RequestParam("id") Long id) { |
| | | MesWmReturnVendorLineDO line = returnVendorLineService.getReturnVendorLine(id); |
| | | if (line == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ä¾åºåéè´§åè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-vendor:query')") |
| | | public CommonResult<PageResult<MesWmReturnVendorLineRespVO>> getReturnVendorLinePage( |
| | | @Valid MesWmReturnVendorLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmReturnVendorLineDO> pageResult = returnVendorLineService.getReturnVendorLinePage(pageReqVO); |
| | |
| | | @GetMapping("/list-by-return-vendor") |
| | | @Operation(summary = "è·å¾ä¾åºåéè´§åè¡åè¡¨ï¼æéè´§åç¼å·ï¼") |
| | | @Parameter(name = "returnId", description = "éè´§åç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-vendor:query')") |
| | | public CommonResult<List<MesWmReturnVendorLineRespVO>> getReturnVendorLineListByReturnId( |
| | | @RequestParam("returnId") Long returnId) { |
| | | List<MesWmReturnVendorLineDO> list = returnVendorLineService.getReturnVendorLineListByReturnId(returnId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾åè´§éç¥å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-sales-notice:query')") |
| | | public CommonResult<MesWmSalesNoticeRespVO> getSalesNotice(@RequestParam("id") Long id) { |
| | | MesWmSalesNoticeDO notice = salesNoticeService.getSalesNotice(id); |
| | | if (notice == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾åè´§éç¥åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-sales-notice:query')") |
| | | public CommonResult<PageResult<MesWmSalesNoticeRespVO>> getSalesNoticePage( |
| | | @Valid MesWmSalesNoticePageReqVO pageReqVO) { |
| | | PageResult<MesWmSalesNoticeDO> pageResult = salesNoticeService.getSalesNoticePage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾åè´§éç¥åè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-sales-notice:query')") |
| | | public CommonResult<MesWmSalesNoticeLineRespVO> getSalesNoticeLine(@RequestParam("id") Long id) { |
| | | MesWmSalesNoticeLineDO line = salesNoticeLineService.getSalesNoticeLine(id); |
| | | if (line == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾åè´§éç¥åè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-sales-notice:query')") |
| | | public CommonResult<PageResult<MesWmSalesNoticeLineRespVO>> getSalesNoticeLinePage( |
| | | @Valid MesWmSalesNoticeLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmSalesNoticeLineDO> pageResult = salesNoticeLineService.getSalesNoticeLinePage(pageReqVO); |
| | |
| | | |
| | | @GetMapping("/group-page") |
| | | @Operation(summary = "è·å¾ SN ç åç»å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-sn:query')") |
| | | public CommonResult<PageResult<MesWmSnGroupRespVO>> getSnGroupPage(@Valid MesWmSnPageReqVO reqVO) { |
| | | PageResult<MesWmSnGroupRespVO> pageResult = snService.getSnGroupPage(reqVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |
| | |
| | | @GetMapping("/list-by-uuid") |
| | | @Operation(summary = "è·å¾æ¹æ¬¡ SN ç æç»å表") |
| | | @Parameter(name = "uuid", description = "æ¹æ¬¡ UUID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-sn:query')") |
| | | public CommonResult<List<MesWmSnRespVO>> getSnListByUuid( |
| | | @RequestParam("uuid") @NotBlank(message = "æ¹æ¬¡ UUID ä¸è½ä¸ºç©º") String uuid) { |
| | | List<MesWmSnRespVO> list = BeanUtils.toBean(snService.getSnListByUuid(uuid), MesWmSnRespVO.class); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾çç¹æ¹æ¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-plan:query')") |
| | | public CommonResult<MesWmStockTakingPlanRespVO> getStockTakingPlan(@RequestParam("id") Long id) { |
| | | MesWmStockTakingPlanDO plan = stockTakingPlanService.getStockTakingPlan(id); |
| | | return success(plan == null ? null : BeanUtils.toBean(plan, MesWmStockTakingPlanRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾çç¹æ¹æ¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-plan:query')") |
| | | public CommonResult<PageResult<MesWmStockTakingPlanRespVO>> getStockTakingPlanPage(@Valid MesWmStockTakingPlanPageReqVO pageReqVO) { |
| | | PageResult<MesWmStockTakingPlanDO> pageResult = stockTakingPlanService.getStockTakingPlanPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesWmStockTakingPlanRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾çç¹æ¹æ¡åæ°") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-plan:query')") |
| | | public CommonResult<MesWmStockTakingPlanParamRespVO> getStockTakingPlanParam(@RequestParam("id") Long id) { |
| | | MesWmStockTakingPlanParamDO param = stockTakingPlanParamService.getStockTakingPlanParam(id); |
| | | return success(param == null ? null : BeanUtils.toBean(param, MesWmStockTakingPlanParamRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾çç¹æ¹æ¡åæ°å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-plan:query')") |
| | | public CommonResult<PageResult<MesWmStockTakingPlanParamRespVO>> getStockTakingPlanParamPage( |
| | | @Valid MesWmStockTakingPlanParamPageReqVO pageReqVO) { |
| | | PageResult<MesWmStockTakingPlanParamDO> pageResult = stockTakingPlanParamService.getStockTakingPlanParamPage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾çç¹ä»»å¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-task:query')") |
| | | public CommonResult<MesWmStockTakingTaskRespVO> getStockTakingTask(@RequestParam("id") Long id) { |
| | | MesWmStockTakingTaskDO task = stockTakingTaskService.getStockTakingTask(id); |
| | | if (task == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾çç¹ä»»å¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-task:query')") |
| | | public CommonResult<PageResult<MesWmStockTakingTaskRespVO>> getStockTakingTaskPage(@Valid MesWmStockTakingTaskPageReqVO pageReqVO) { |
| | | PageResult<MesWmStockTakingTaskDO> pageResult = stockTakingTaskService.getStockTakingTaskPage(pageReqVO); |
| | | return success(new PageResult<>(buildTaskRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾çç¹ä»»å¡è¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-task:query')") |
| | | public CommonResult<MesWmStockTakingTaskLineRespVO> getStockTakingTaskLine(@RequestParam("id") Long id) { |
| | | MesWmStockTakingTaskLineDO line = stockTakingTaskLineService.getStockTakingTaskLine(id); |
| | | if (line == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾çç¹ä»»å¡è¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-task:query')") |
| | | public CommonResult<PageResult<MesWmStockTakingTaskLineRespVO>> getStockTakingTaskLinePage( |
| | | @Valid MesWmStockTakingTaskLinePageReqVO pageReqVO) { |
| | | PageResult<MesWmStockTakingTaskLineDO> pageResult = stockTakingTaskLineService.getStockTakingTaskLinePage(pageReqVO); |
| | |
| | | |
| | | @GetMapping("/simple-list") |
| | | @Operation(summary = "è·å¾çç¹ä»»å¡è¡ç²¾ç®å表", description = "æ ¹æ®ä»»å¡ç¼å·æ¥è¯¢ï¼ä¸»è¦ç¨äºå端ç䏿é项") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-task:query')") |
| | | public CommonResult<List<MesWmStockTakingTaskLineRespVO>> getStockTakingTaskLineSimpleList( |
| | | @RequestParam("taskId") Long taskId) { |
| | | List<MesWmStockTakingTaskLineDO> list = stockTakingTaskLineService.getStockTakingTaskLineListByTaskId(taskId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾çç¹ç»æ") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-task:query')") |
| | | public CommonResult<MesWmStockTakingTaskResultRespVO> getStockTakingTaskResult(@RequestParam("id") Long id) { |
| | | MesWmStockTakingTaskResultDO result = stockTakingTaskResultService.getStockTakingTaskResult(id); |
| | | if (result == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾çç¹ç»æå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-task:query')") |
| | | public CommonResult<PageResult<MesWmStockTakingTaskResultRespVO>> getStockTakingTaskResultPage( |
| | | @Valid MesWmStockTakingTaskResultPageReqVO pageReqVO) { |
| | | PageResult<MesWmStockTakingTaskResultDO> pageResult = stockTakingTaskResultService.getStockTakingTaskResultPage(pageReqVO); |
| | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·ååºåäºå¡æµæ°´å页") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-transaction:query')") |
| | | public CommonResult<PageResult<MesWmTransactionRespVO>> getTransactionPage(@Valid MesWmTransactionPageReqVO pageReqVO) { |
| | | PageResult<MesWmTransactionDO> pageResult = transactionService.getTransactionPage(pageReqVO); |
| | | if (pageResult.getTotal() == 0) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è½¬ç§»å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-transfer:query')") |
| | | public CommonResult<MesWmTransferRespVO> getTransfer(@RequestParam("id") Long id) { |
| | | MesWmTransferDO transfer = transferService.getTransfer(id); |
| | | return success(BeanUtils.toBean(transfer, MesWmTransferRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è½¬ç§»åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-transfer:query')") |
| | | public CommonResult<PageResult<MesWmTransferRespVO>> getTransferPage( |
| | | @Valid MesWmTransferPageReqVO pageReqVO) { |
| | | PageResult<MesWmTransferDO> pageResult = transferService.getTransferPage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è°æ¨æç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-transfer:query')") |
| | | public CommonResult<MesWmTransferDetailRespVO> getTransferDetail(@RequestParam("id") Long id) { |
| | | MesWmTransferDetailDO detail = transferDetailService.getTransferDetail(id); |
| | | if (detail == null) { |
| | |
| | | @GetMapping("/list-by-line") |
| | | @Operation(summary = "è·å¾è°æ¨æç»åè¡¨ï¼æè¡ç¼å·ï¼") |
| | | @Parameter(name = "lineId", description = "è¡ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-transfer:query')") |
| | | public CommonResult<List<MesWmTransferDetailRespVO>> getTransferDetailListByLineId( |
| | | @RequestParam("lineId") Long lineId) { |
| | | List<MesWmTransferDetailDO> list = transferDetailService.getTransferDetailListByLineId(lineId); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è½¬ç§»åè¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-transfer:query')") |
| | | public CommonResult<MesWmTransferLineRespVO> getTransferLine(@RequestParam("id") Long id) { |
| | | MesWmTransferLineDO line = transferLineService.getTransferLine(id); |
| | | if (line == null) { |
| | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾è½¬ç§»åè¡å表") |
| | | @Parameter(name = "transferId", description = "转移åç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-transfer:query')") |
| | | public CommonResult<List<MesWmTransferLineRespVO>> getTransferLineList(@RequestParam("transferId") Long transferId) { |
| | | List<MesWmTransferLineDO> list = transferLineService.getTransferLineListByTransferId(transferId); |
| | | return success(buildRespVOList(list)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾åºä½") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-warehouse:query')") |
| | | public CommonResult<MesWmWarehouseAreaRespVO> getWarehouseArea(@RequestParam("id") Long id) { |
| | | MesWmWarehouseAreaDO area = areaService.getWarehouseArea(id); |
| | | if (area == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾åºä½å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-warehouse:query')") |
| | | public CommonResult<PageResult<MesWmWarehouseAreaRespVO>> getWarehouseAreaPage(@Valid MesWmWarehouseAreaPageReqVO pageReqVO) { |
| | | PageResult<MesWmWarehouseAreaDO> pageResult = areaService.getWarehouseAreaPage(pageReqVO); |
| | | return success(new PageResult<>(buildWarehouseAreaRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ä»åº") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-warehouse:query')") |
| | | public CommonResult<MesWmWarehouseRespVO> getWarehouse(@RequestParam("id") Long id) { |
| | | MesWmWarehouseDO warehouse = warehouseService.getWarehouse(id); |
| | | return success(BeanUtils.toBean(warehouse, MesWmWarehouseRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ä»åºå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-warehouse:query')") |
| | | public CommonResult<PageResult<MesWmWarehouseRespVO>> getWarehousePage(@Valid MesWmWarehousePageReqVO pageReqVO) { |
| | | PageResult<MesWmWarehouseDO> pageResult = warehouseService.getWarehousePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesWmWarehouseRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾åºåº") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-warehouse:query')") |
| | | public CommonResult<MesWmWarehouseLocationRespVO> getWarehouseLocation(@RequestParam("id") Long id) { |
| | | MesWmWarehouseLocationDO location = locationService.getWarehouseLocation(id); |
| | | if (location == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾åºåºå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-warehouse:query')") |
| | | public CommonResult<PageResult<MesWmWarehouseLocationRespVO>> getWarehouseLocationPage(@Valid MesWmWarehouseLocationPageReqVO pageReqVO) { |
| | | PageResult<MesWmWarehouseLocationDO> pageResult = locationService.getWarehouseLocationPage(pageReqVO); |
| | | return success(new PageResult<>(buildWarehouseLocationRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @Operation(summary = "è·åä»åºå®¡æ¹é
ç½®") |
| | | @Parameter(name = "warehouseId", description = "ä»åºID", required = true) |
| | | @Parameter(name = "bizType", description = "ä¸å¡ç±»å", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-warehouse:query')") |
| | | public CommonResult<WmsWarehouseApprovalConfigDO> getApprovalConfig( |
| | | @RequestParam("warehouseId") Long warehouseId, |
| | | @RequestParam("bizType") String bizType) { |
| | |
| | | @GetMapping("/config/list") |
| | | @Operation(summary = "è·åä»åºææå®¡æ¹é
ç½®") |
| | | @Parameter(name = "warehouseId", description = "ä»åºID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-warehouse:query')") |
| | | public CommonResult<List<WmsWarehouseApprovalConfigDO>> getApprovalConfigList( |
| | | @RequestParam("warehouseId") Long warehouseId) { |
| | | return success(approvalService.getApprovalConfigList(warehouseId)); |
| | |
| | | @Operation(summary = "è·åå¯ç¨çå®¡æ¹æµç¨å表") |
| | | @Parameter(name = "warehouseId", description = "ä»åºID", required = true) |
| | | @Parameter(name = "bizType", description = "ä¸å¡ç±»å", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-warehouse:query')") |
| | | public CommonResult<List<BpmProcessDefinitionInfoDO>> getAvailableProcessList( |
| | | @RequestParam("warehouseId") Long warehouseId, |
| | | @RequestParam("bizType") String bizType) { |
| | |
| | | |
| | | @PostMapping("/preview") |
| | | @Operation(summary = "é¢è§æ¥åï¼åªæ¸²æï¼ä¸è½åºã䏿¶èæ¥åç¼å·ï¼") |
| | | @PreAuthorize("@ss.hasPermission('qc-report:instance:query')") |
| | | public CommonResult<QcReportInstancePreviewRespVO> preview(@Valid @RequestBody QcReportInstanceGenerateReqVO reqVO) { |
| | | RenderOutcome outcome = instanceService.preview(reqVO); |
| | | QcReportInstancePreviewRespVO respVO = new QcReportInstancePreviewRespVO(); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æ¥åå®ä¾ï¼å«æ¸²æäº§ç© HTMLï¼ä¸å«æ°æ®å¿«ç
§ï¼") |
| | | @Parameter(name = "id", description = "å®ä¾ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('qc-report:instance:query')") |
| | | public CommonResult<QcReportInstanceRespVO> getInstance(@RequestParam("id") Long id) { |
| | | QcReportInstanceDO instance = instanceService.getInstance(id); |
| | | return success(BeanUtils.toBean(instance, QcReportInstanceRespVO.class)); |
| | |
| | | @GetMapping("/snapshot") |
| | | @Operation(summary = "è·å¾æ¥åå®ä¾å»ç»çæ°æ®å¿«ç
§") |
| | | @Parameter(name = "id", description = "å®ä¾ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('qc-report:instance:query')") |
| | | public CommonResult<Map<String, Object>> getSnapshot(@RequestParam("id") Long id) { |
| | | return success(instanceService.getSnapshot(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æ¥åå®ä¾å页") |
| | | @PreAuthorize("@ss.hasPermission('qc-report:instance:query')") |
| | | public CommonResult<PageResult<QcReportInstanceRespVO>> getInstancePage( |
| | | @Valid QcReportInstancePageReqVO pageReqVO) { |
| | | PageResult<QcReportInstanceDO> pageResult = instanceService.getInstancePage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æ¥å模æ¿") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('qc-report:template:query')") |
| | | public CommonResult<QcReportTemplateRespVO> getTemplate(@RequestParam("id") Long id) { |
| | | QcReportTemplateDO template = templateService.getTemplate(id); |
| | | return success(BeanUtils.toBean(template, QcReportTemplateRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æ¥å模æ¿å页") |
| | | @PreAuthorize("@ss.hasPermission('qc-report:template:query')") |
| | | public CommonResult<PageResult<QcReportTemplateRespVO>> getTemplatePage(@Valid QcReportTemplatePageReqVO pageReqVO) { |
| | | PageResult<QcReportTemplateDO> pageResult = templateService.getTemplatePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, QcReportTemplateRespVO.class)); |
| | |
| | | description = "ä¸ä¸ªæ¡ä»¶åæ¶æ»¡è¶³æä¼è¿åï¼æ¥åç±»åä¸è´ã模æ¿å·²å¯ç¨ãå½åçæ¬å·²åå¸ä¸ç»å¸æå¯æ¸²æçå
容ã" |
| | | + "æå䏿¡æ¡çæ¯ãæå¼è¿è®¾è®¡å¨ä½æ²¡æ¾ç»ä»¶ãççæ¬ââ宿¸²æåºæ¥æ¯ä¸å¼ ç½çº¸ä¸ä¸æ¥éã") |
| | | @Parameter(name = "reportType", description = "æ¥åç±»åï¼å³ mes_qc_type çæ°å¼å符串", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('qc-report:template:query')") |
| | | public CommonResult<List<QcReportTemplateRespVO>> getSelectableTemplateList( |
| | | @RequestParam("reportType") String reportType) { |
| | | List<QcReportTemplateDO> list = templateService.getSelectableTemplates(reportType); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æ¨¡æ¿çæ¬") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('qc-report:template:query')") |
| | | public CommonResult<QcReportTemplateVersionRespVO> getVersion(@RequestParam("id") Long id) { |
| | | QcReportTemplateVersionDO version = versionService.getVersion(id); |
| | | return success(BeanUtils.toBean(version, QcReportTemplateVersionRespVO.class)); |
| | |
| | | @GetMapping("/list-by-template") |
| | | @Operation(summary = "è·å¾æ¨¡æ¿çææçæ¬") |
| | | @Parameter(name = "templateId", description = "模æ¿ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('qc-report:template:query')") |
| | | public CommonResult<List<QcReportTemplateVersionRespVO>> getVersionListByTemplateId( |
| | | @RequestParam("templateId") Long templateId) { |
| | | List<QcReportTemplateVersionDO> list = versionService.getVersionListByTemplateId(templateId); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æ¨¡æ¿çæ¬å页") |
| | | @PreAuthorize("@ss.hasPermission('qc-report:template:query')") |
| | | public CommonResult<PageResult<QcReportTemplateVersionRespVO>> getVersionPage( |
| | | @Valid QcReportTemplateVersionPageReqVO pageReqVO) { |
| | | PageResult<QcReportTemplateVersionDO> pageResult = versionService.getVersionPage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·ååå
¥ç³è¯·è¯¦æ
") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier-apply:query')") |
| | | public CommonResult<SrmSupplierApplyRespVO> getApply(@RequestParam("id") Long id) { |
| | | return success(BeanUtils.toBean(applyService.getApply(id), SrmSupplierApplyRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·ååå
¥ç³è¯·å页") |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier-apply:query')") |
| | | public CommonResult<PageResult<SrmSupplierApplyRespVO>> getApplyPage(@Valid SrmSupplierApplyPageReqVO pageReqVO) { |
| | | return success(BeanUtils.toBean(applyService.getApplyPage(pageReqVO), SrmSupplierApplyRespVO.class)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/approve-process-list") |
| | | @Operation(summary = "è·ååå
¥ç³è¯·å®¡æ¹æµç¨å表") |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier-apply:query')") |
| | | public CommonResult<List<Map<String, Object>>> getApproveProcessList() { |
| | | return success(applyService.getSupplierApplyApproveProcessDefinitionList()); |
| | | } |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·åèµè´¨è¯ä¹¦å页") |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier-certificate:query')") |
| | | public CommonResult<PageResult<SrmSupplierCertificateRespVO>> getCertificatePage(@Valid SrmSupplierCertificatePageReqVO pageReqVO) { |
| | | var pageResult = certificateService.getCertificatePage(pageReqVO); |
| | | var respList = BeanUtils.toBean(pageResult.getList(), SrmSupplierCertificateRespVO.class); |
| | |
| | | |
| | | @GetMapping("/list-by-supplier") |
| | | @Operation(summary = "æ ¹æ®ä¾åºåIDè·åèµè´¨å表") |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier-certificate:query')") |
| | | public CommonResult<List<SrmSupplierCertificateRespVO>> getListBySupplier(@RequestParam("supplierId") Long supplierId) { |
| | | var list = BeanUtils.toBean(certificateService.getCertificateListBySupplierId(supplierId), SrmSupplierCertificateRespVO.class); |
| | | enrichSupplierNames(list); |
| | |
| | | |
| | | @GetMapping("/expiring-list") |
| | | @Operation(summary = "è·åå³å°å°æçèµè´¨å表ï¼30天å
ï¼") |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier-certificate:query')") |
| | | public CommonResult<List<SrmSupplierCertificateRespVO>> getExpiringList() { |
| | | var list = BeanUtils.toBean(certificateService.getExpiringCertificates(), SrmSupplierCertificateRespVO.class); |
| | | enrichSupplierNames(list); |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·åèµè´¨è¯ä¹¦è¯¦æ
") |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier-certificate:query')") |
| | | public CommonResult<SrmSupplierCertificateRespVO> getCertificate(@RequestParam("id") Long id) { |
| | | var resp = BeanUtils.toBean(certificateService.getCertificate(id), SrmSupplierCertificateRespVO.class); |
| | | enrichSupplierName(resp); |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å绩æè¯ä»·è¯¦æ
") |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier-evaluation:query')") |
| | | public CommonResult<SrmSupplierEvaluationRespVO> getEvaluation(@RequestParam("id") Long id) { |
| | | SrmSupplierEvaluationDO evaluation = evaluationService.getEvaluation(id); |
| | | SrmSupplierEvaluationRespVO resp = BeanUtils.toBean(evaluation, SrmSupplierEvaluationRespVO.class); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å绩æè¯ä»·å页") |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier-evaluation:query')") |
| | | public CommonResult<PageResult<SrmSupplierEvaluationRespVO>> getEvaluationPage(@Valid SrmSupplierEvaluationPageReqVO pageReqVO) { |
| | | PageResult<SrmSupplierEvaluationDO> pageResult = evaluationService.getEvaluationPage(pageReqVO); |
| | | List<SrmSupplierEvaluationRespVO> respList = BeanUtils.toBean(pageResult.getList(), SrmSupplierEvaluationRespVO.class); |
| | |
| | | |
| | | @GetMapping("/tender") |
| | | @Operation(summary = "è·åææ ç»è®¡æ°æ®") |
| | | @PreAuthorize("@ss.hasPermission('srm:statistics:query')") |
| | | public CommonResult<SrmTenderStatisticsRespVO> getTenderStatistics(@RequestParam("year") String year) { |
| | | return success(statisticsService.getTenderStatistics(year)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/list-by-supplier") |
| | | @Operation(summary = "æ ¹æ®ä¾åºåIDè·ååç±»å表") |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier:query')") |
| | | public CommonResult<List<SrmSupplierCategoryDO>> getCategoryList(@RequestParam("supplierId") Long supplierId) { |
| | | return success(supplierCategoryService.getCategoryListBySupplierId(supplierId)); |
| | | } |
| | |
| | | @GetMapping("/list-by-supplier") |
| | | @Operation(summary = "è·åä¾åºåè系人å表") |
| | | @Parameter(name = "supplierId", description = "ä¾åºåID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier-contact:query')") |
| | | public CommonResult<List<SrmSupplierContactRespVO>> getContactList(@RequestParam("supplierId") Long supplierId) { |
| | | List<SrmSupplierContactDO> list = contactService.getContactListBySupplierId(supplierId); |
| | | return success(BeanUtils.toBean(list, SrmSupplierContactRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·åä¾åºå详æ
") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier:query')") |
| | | public CommonResult<SrmSupplierRespVO> getSupplier(@RequestParam("id") Long id) { |
| | | SrmSupplierDO supplier = supplierService.getSupplier(id); |
| | | return success(BeanUtils.toBean(supplier, SrmSupplierRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "ä¾åºåå页æ¥è¯¢") |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier:query')") |
| | | public CommonResult<PageResult<SrmSupplierRespVO>> getSupplierPage(@Valid SrmSupplierPageReqVO pageReqVO) { |
| | | PageResult<SrmSupplierDO> pageResult = supplierService.getSupplierPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, SrmSupplierRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å宿 详æ
") |
| | | @PreAuthorize("@ss.hasPermission('srm:bid-award:query')") |
| | | public CommonResult<SrmBidAwardRespVO> getAward(@RequestParam("id") Long id) { |
| | | return success(BeanUtils.toBean(bidAwardService.getAward(id), SrmBidAwardRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/get-by-project") |
| | | @Operation(summary = "æ ¹æ®ææ 项ç®IDè·å宿 详æ
") |
| | | @PreAuthorize("@ss.hasPermission('srm:bid-award:query')") |
| | | public CommonResult<SrmBidAwardRespVO> getAwardByProject(@RequestParam("tenderProjectId") Long tenderProjectId) { |
| | | SrmBidAwardDO award = bidAwardService.getAwardByProjectId(tenderProjectId); |
| | | if (award == null) { |
| | |
| | | |
| | | @GetMapping("/list-by-project") |
| | | @Operation(summary = "æææ 项ç®è·åè¯æ å表") |
| | | @PreAuthorize("@ss.hasPermission('srm:bid-evaluation:query')") |
| | | public CommonResult<List<SrmBidEvaluationRespVO>> getEvaluationList(@RequestParam("tenderProjectId") Long tenderProjectId) { |
| | | List<SrmBidEvaluationRespVO> list = BeanUtils.toBean(bidEvaluationService.getEvaluationList(tenderProjectId), SrmBidEvaluationRespVO.class); |
| | | enrichEvaluationSupplierNames(list); |
| | |
| | | |
| | | @GetMapping("/bid-open/get") |
| | | @Operation(summary = "è·å弿 è®°å½") |
| | | @PreAuthorize("@ss.hasPermission('srm:bid-open:query')") |
| | | public CommonResult<SrmBidOpenRespVO> getBidOpen(@RequestParam("id") Long id) { |
| | | return success(BeanUtils.toBean(bidEvaluationService.getBidOpen(id), SrmBidOpenRespVO.class)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·åææ è¯¦æ
") |
| | | @PreAuthorize("@ss.hasPermission('srm:tender-bid:query')") |
| | | public CommonResult<SrmTenderBidRespVO> getBid(@RequestParam("id") Long id) { |
| | | SrmTenderBidRespVO resp = BeanUtils.toBean(tenderBidService.getBid(id), SrmTenderBidRespVO.class); |
| | | enrichSupplierName(resp); |
| | |
| | | |
| | | @GetMapping("/list-by-project") |
| | | @Operation(summary = "æææ 项ç®è·åææ å表") |
| | | @PreAuthorize("@ss.hasPermission('srm:tender-bid:query')") |
| | | public CommonResult<List<SrmTenderBidRespVO>> getBidListByProject(@RequestParam("tenderProjectId") Long tenderProjectId) { |
| | | List<SrmTenderBidRespVO> list = BeanUtils.toBean(tenderBidService.getBidListByProject(tenderProjectId), SrmTenderBidRespVO.class); |
| | | enrichSupplierNames(list); |
| | |
| | | |
| | | @GetMapping("/quote/list-by-bid") |
| | | @Operation(summary = "æææ è·åæ¥ä»·å表") |
| | | @PreAuthorize("@ss.hasPermission('srm:supplier-quote:query')") |
| | | public CommonResult<List<SrmSupplierQuoteRespVO>> getQuoteListByBid(@RequestParam("bidId") Long bidId) { |
| | | List<SrmSupplierQuoteRespVO> list = BeanUtils.toBean(tenderBidService.getQuoteList(bidId), SrmSupplierQuoteRespVO.class); |
| | | enrichQuoteMaterialInfo(list); |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·åæææ é
ç½®") |
| | | @PreAuthorize("@ss.hasPermission('srm:tender-config:query')") |
| | | public CommonResult<SrmTenderConfigRespVO> getConfig() { |
| | | return success(BeanUtils.toBean(tenderConfigService.getConfig(), SrmTenderConfigRespVO.class)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·åææ é¡¹ç®è¯¦æ
") |
| | | @PreAuthorize("@ss.hasPermission('srm:tender-project:query')") |
| | | public CommonResult<SrmTenderProjectRespVO> getTenderProject(@RequestParam("id") Long id) { |
| | | var resp = BeanUtils.toBean(tenderProjectService.getTenderProject(id), SrmTenderProjectRespVO.class); |
| | | enrichAttachments(List.of(resp)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·åææ é¡¹ç®å页") |
| | | @PreAuthorize("@ss.hasPermission('srm:tender-project:query')") |
| | | public CommonResult<PageResult<SrmTenderProjectRespVO>> getTenderProjectPage(@Valid SrmTenderProjectPageReqVO pageReqVO) { |
| | | var pageResult = tenderProjectService.getTenderProjectPage(pageReqVO); |
| | | var respList = BeanUtils.toBean(pageResult.getList(), SrmTenderProjectRespVO.class); |
| | |
| | | |
| | | @GetMapping("/material/list") |
| | | @Operation(summary = "è·åææ ç©æå表") |
| | | @PreAuthorize("@ss.hasPermission('srm:tender-project:query')") |
| | | public CommonResult<List<SrmTenderMaterialRespVO>> getMaterialList(@RequestParam("tenderProjectId") Long tenderProjectId) { |
| | | return success(BeanUtils.toBean(tenderProjectService.getMaterialList(tenderProjectId), SrmTenderMaterialRespVO.class)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·åé¨é¨å表") |
| | | @PreAuthorize("@ss.hasPermission('system:dept:query')") |
| | | public CommonResult<List<DeptRespVO>> getDeptList(DeptListReqVO reqVO) { |
| | | List<DeptDO> list = deptService.getDeptList(reqVO); |
| | | return success(BeanUtils.toBean(list, DeptRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾é¨é¨ä¿¡æ¯") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:dept:query')") |
| | | public CommonResult<DeptRespVO> getDept(@RequestParam("id") Long id) { |
| | | DeptDO dept = deptService.getDept(id); |
| | | return success(BeanUtils.toBean(dept, DeptRespVO.class)); |
| | |
| | | @GetMapping(value = "/get") |
| | | @Operation(summary = "è·å¾å²ä½ä¿¡æ¯") |
| | | @Parameter(name = "id", description = "å²ä½ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:post:query')") |
| | | public CommonResult<PostRespVO> getPost(@RequestParam("id") Long id) { |
| | | PostDO post = postService.getPost(id); |
| | | return success(BeanUtils.toBean(post, PostRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å²ä½å页å表") |
| | | @PreAuthorize("@ss.hasPermission('system:post:query')") |
| | | public CommonResult<PageResult<PostRespVO>> getPostPage(@Validated PostPageReqVO pageReqVO) { |
| | | PageResult<PostDO> pageResult = postService.getPostPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, PostRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾åå
¸ç±»åçå页") |
| | | @PreAuthorize("@ss.hasPermission('system:dict:query')") |
| | | public CommonResult<PageResult<DictDataRespVO>> getDictTypePage(@Valid DictDataPageReqVO pageReqVO) { |
| | | PageResult<DictDataDO> pageResult = dictDataService.getDictDataPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, DictDataRespVO.class)); |
| | |
| | | @GetMapping(value = "/get") |
| | | @Operation(summary = "/æ¥è¯¢åå
¸æ°æ®è¯¦ç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:dict:query')") |
| | | public CommonResult<DictDataRespVO> getDictData(@RequestParam("id") Long id) { |
| | | DictDataDO dictData = dictDataService.getDictData(id); |
| | | return success(BeanUtils.toBean(dictData, DictDataRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾åå
¸ç±»åçå页å表") |
| | | @PreAuthorize("@ss.hasPermission('system:dict:query')") |
| | | public CommonResult<PageResult<DictTypeRespVO>> pageDictTypes(@Valid DictTypePageReqVO pageReqVO) { |
| | | PageResult<DictTypeDO> pageResult = dictTypeService.getDictTypePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, DictTypeRespVO.class)); |
| | |
| | | @Operation(summary = "/æ¥è¯¢åå
¸ç±»å详ç»") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @GetMapping(value = "/get") |
| | | @PreAuthorize("@ss.hasPermission('system:dict:query')") |
| | | public CommonResult<DictTypeRespVO> getDictType(@RequestParam("id") Long id) { |
| | | DictTypeDO dictType = dictTypeService.getDictType(id); |
| | | return success(BeanUtils.toBean(dictType, DictTypeRespVO.class)); |
| | |
| | | |
| | | @Operation(summary = "å¯¼åºæ°æ®ç±»å") |
| | | @GetMapping("/export-excel") |
| | | @PreAuthorize("@ss.hasPermission('system:dict:query')") |
| | | @ApiAccessLog(operateType = EXPORT) |
| | | public void export(HttpServletResponse response, @Valid DictTypePageReqVO exportReqVO) throws IOException { |
| | | exportReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç»å½æ¥å¿") |
| | | @PreAuthorize("@ss.hasPermission('system:login-log:query')") |
| | | public CommonResult<LoginLogRespVO> getLoginLog(Long id) { |
| | | LoginLogDO loginLog = loginLogService.getLoginLog(id); |
| | | return success(BeanUtils.toBean(loginLog, LoginLogRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç»å½æ¥å¿å页å表") |
| | | @PreAuthorize("@ss.hasPermission('system:login-log:query')") |
| | | public CommonResult<PageResult<LoginLogRespVO>> getLoginLogPage(@Valid LoginLogPageReqVO pageReqVO) { |
| | | PageResult<LoginLogDO> pageResult = loginLogService.getLoginLogPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, LoginLogRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "æ¥çæä½æ¥å¿") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:operate-log:query')") |
| | | public CommonResult<OperateLogRespVO> getOperateLog(@RequestParam("id") Long id) { |
| | | OperateLogDO operateLog = operateLogService.getOperateLog(id); |
| | | if (operateLog == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "æ¥çæä½æ¥å¿å页å表") |
| | | @PreAuthorize("@ss.hasPermission('system:operate-log:query')") |
| | | public CommonResult<PageResult<OperateLogRespVO>> pageOperateLog(@Valid OperateLogPageReqVO pageReqVO) { |
| | | PageResult<OperateLogDO> pageResult = operateLogService.getOperateLogPage(pageReqVO); |
| | | return success(new PageResult<>(buildResponses(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾é®ç®±è´¦å·") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:mail-account:query')") |
| | | public CommonResult<MailAccountRespVO> getMailAccount(@RequestParam("id") Long id) { |
| | | MailAccountDO account = mailAccountService.getMailAccount(id); |
| | | return success(BeanUtils.toBean(account, MailAccountRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾é®ç®±è´¦å·å页") |
| | | @PreAuthorize("@ss.hasPermission('system:mail-account:query')") |
| | | public CommonResult<PageResult<MailAccountRespVO>> getMailAccountPage(@Valid MailAccountPageReqVO pageReqVO) { |
| | | PageResult<MailAccountDO> pageResult = mailAccountService.getMailAccountPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MailAccountRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾é®ç®±æ¥å¿å页") |
| | | @PreAuthorize("@ss.hasPermission('system:mail-log:query')") |
| | | public CommonResult<PageResult<MailLogRespVO>> getMailLogPage(@Valid MailLogPageReqVO pageVO) { |
| | | PageResult<MailLogDO> pageResult = mailLogService.getMailLogPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, MailLogRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾é®ç®±æ¥å¿") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:mail-log:query')") |
| | | public CommonResult<MailLogRespVO> getMailTemplate(@RequestParam("id") Long id) { |
| | | MailLogDO log = mailLogService.getMailLog(id); |
| | | return success(BeanUtils.toBean(log, MailLogRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾é®ä»¶æ¨¡ç") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:mail-template:query')") |
| | | public CommonResult<MailTemplateRespVO> getMailTemplate(@RequestParam("id") Long id) { |
| | | MailTemplateDO template = mailTempleService.getMailTemplate(id); |
| | | return success(BeanUtils.toBean(template, MailTemplateRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾é®ä»¶æ¨¡çå页") |
| | | @PreAuthorize("@ss.hasPermission('system:mail-template:query')") |
| | | public CommonResult<PageResult<MailTemplateRespVO>> getMailTemplatePage(@Valid MailTemplatePageReqVO pageReqVO) { |
| | | PageResult<MailTemplateDO> pageResult = mailTempleService.getMailTemplatePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MailTemplateRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·åéç¥å
¬åå表") |
| | | @PreAuthorize("@ss.hasPermission('system:notice:query')") |
| | | public CommonResult<PageResult<NoticeRespVO>> getNoticePage(@Validated NoticePageReqVO pageReqVO) { |
| | | PageResult<NoticeDO> pageResult = noticeService.getNoticePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, NoticeRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éç¥å
Œ") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:notice:query')") |
| | | public CommonResult<NoticeRespVO> getNotice(@RequestParam("id") Long id) { |
| | | NoticeDO notice = noticeService.getNotice(id); |
| | | return success(BeanUtils.toBean(notice, NoticeRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç«å
ä¿¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:notify-message:query')") |
| | | public CommonResult<NotifyMessageRespVO> getNotifyMessage(@RequestParam("id") Long id) { |
| | | NotifyMessageDO message = notifyMessageService.getNotifyMessage(id); |
| | | return success(BeanUtils.toBean(message, NotifyMessageRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç«å
ä¿¡å页") |
| | | @PreAuthorize("@ss.hasPermission('system:notify-message:query')") |
| | | public CommonResult<PageResult<NotifyMessageRespVO>> getNotifyMessagePage(@Valid NotifyMessagePageReqVO pageVO) { |
| | | PageResult<NotifyMessageDO> pageResult = notifyMessageService.getNotifyMessagePage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, NotifyMessageRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç«å
信模ç") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:notify-template:query')") |
| | | public CommonResult<NotifyTemplateRespVO> getNotifyTemplate(@RequestParam("id") Long id) { |
| | | NotifyTemplateDO template = notifyTemplateService.getNotifyTemplate(id); |
| | | return success(BeanUtils.toBean(template, NotifyTemplateRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç«å
信模çå页") |
| | | @PreAuthorize("@ss.hasPermission('system:notify-template:query')") |
| | | public CommonResult<PageResult<NotifyTemplateRespVO>> getNotifyTemplatePage(@Valid NotifyTemplatePageReqVO pageVO) { |
| | | PageResult<NotifyTemplateDO> pageResult = notifyTemplateService.getNotifyTemplatePage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, NotifyTemplateRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ OAuth2 客æ·ç«¯") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:oauth2-client:query')") |
| | | public CommonResult<OAuth2ClientRespVO> getOAuth2Client(@RequestParam("id") Long id) { |
| | | OAuth2ClientDO client = oAuth2ClientService.getOAuth2Client(id); |
| | | return success(BeanUtils.toBean(client, OAuth2ClientRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ OAuth2 客æ·ç«¯å页") |
| | | @PreAuthorize("@ss.hasPermission('system:oauth2-client:query')") |
| | | public CommonResult<PageResult<OAuth2ClientRespVO>> getOAuth2ClientPage(@Valid OAuth2ClientPageReqVO pageVO) { |
| | | PageResult<OAuth2ClientDO> pageResult = oAuth2ClientService.getOAuth2ClientPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, OAuth2ClientRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·åèåå表", description = "ç¨äºãèå管çãçé¢") |
| | | @PreAuthorize("@ss.hasPermission('system:menu:query')") |
| | | public CommonResult<List<MenuRespVO>> getMenuList(MenuListReqVO reqVO) { |
| | | List<MenuDO> list = menuService.getMenuList(reqVO); |
| | | list.sort(Comparator.comparing(MenuDO::getSort)); |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·åèåä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermission('system:menu:query')") |
| | | public CommonResult<MenuRespVO> getMenu(Long id) { |
| | | MenuDO menu = menuService.getMenu(id); |
| | | return success(BeanUtils.toBean(menu, MenuRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è§è²ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermission('system:role:query')") |
| | | public CommonResult<RoleRespVO> getRole(@RequestParam("id") Long id) { |
| | | RoleDO role = roleService.getRole(id); |
| | | return success(BeanUtils.toBean(role, RoleRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è§è²å页") |
| | | @PreAuthorize("@ss.hasPermission('system:role:query')") |
| | | public CommonResult<PageResult<RoleRespVO>> getRolePage(RolePageReqVO pageReqVO) { |
| | | PageResult<RoleDO> pageResult = roleService.getRolePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, RoleRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾çä¿¡æ¸ é") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:sms-channel:query')") |
| | | public CommonResult<SmsChannelRespVO> getSmsChannel(@RequestParam("id") Long id) { |
| | | SmsChannelDO channel = smsChannelService.getSmsChannel(id); |
| | | return success(BeanUtils.toBean(channel, SmsChannelRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾çä¿¡æ¸ éå页") |
| | | @PreAuthorize("@ss.hasPermission('system:sms-channel:query')") |
| | | public CommonResult<PageResult<SmsChannelRespVO>> getSmsChannelPage(@Valid SmsChannelPageReqVO pageVO) { |
| | | PageResult<SmsChannelDO> pageResult = smsChannelService.getSmsChannelPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, SmsChannelRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾çä¿¡æ¥å¿å页") |
| | | @PreAuthorize("@ss.hasPermission('system:sms-log:query')") |
| | | public CommonResult<PageResult<SmsLogRespVO>> getSmsLogPage(@Valid SmsLogPageReqVO pageReqVO) { |
| | | PageResult<SmsLogDO> pageResult = smsLogService.getSmsLogPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, SmsLogRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾çä¿¡æ¥å¿") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:sms-log:query')") |
| | | public CommonResult<SmsLogRespVO> getSmsLog(@RequestParam("id") Long id) { |
| | | SmsLogDO smsLog = smsLogService.getSmsLog(id); |
| | | return success(BeanUtils.toBean(smsLog, SmsLogRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç信模æ¿") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:sms-template:query')") |
| | | public CommonResult<SmsTemplateRespVO> getSmsTemplate(@RequestParam("id") Long id) { |
| | | SmsTemplateDO template = smsTemplateService.getSmsTemplate(id); |
| | | return success(BeanUtils.toBean(template, SmsTemplateRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç信模æ¿å页") |
| | | @PreAuthorize("@ss.hasPermission('system:sms-template:query')") |
| | | public CommonResult<PageResult<SmsTemplateRespVO>> getSmsTemplatePage(@Valid SmsTemplatePageReqVO pageVO) { |
| | | PageResult<SmsTemplateDO> pageResult = smsTemplateService.getSmsTemplatePage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, SmsTemplateRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç¤¾äº¤å®¢æ·ç«¯") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:social-client:query')") |
| | | public CommonResult<SocialClientRespVO> getSocialClient(@RequestParam("id") Long id) { |
| | | SocialClientDO client = socialClientService.getSocialClient(id); |
| | | return success(BeanUtils.toBean(client, SocialClientRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç¤¾äº¤å®¢æ·ç«¯å页") |
| | | @PreAuthorize("@ss.hasPermission('system:social-client:query')") |
| | | public CommonResult<PageResult<SocialClientRespVO>> getSocialClientPage(@Valid SocialClientPageReqVO pageVO) { |
| | | PageResult<SocialClientDO> pageResult = socialClientService.getSocialClientPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, SocialClientRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç¤¾äº¤ç¨æ·") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:social-user:query')") |
| | | public CommonResult<SocialUserRespVO> getSocialUser(@RequestParam("id") Long id) { |
| | | SocialUserDO socialUser = socialUserService.getSocialUser(id); |
| | | return success(BeanUtils.toBean(socialUser, SocialUserRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç¤¾äº¤ç¨æ·å页") |
| | | @PreAuthorize("@ss.hasPermission('system:social-user:query')") |
| | | public CommonResult<PageResult<SocialUserRespVO>> getSocialUserPage(@Valid SocialUserPageReqVO pageVO) { |
| | | PageResult<SocialUserDO> pageResult = socialUserService.getSocialUserPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, SocialUserRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "æ¥è¯¢éä»¶å表") |
| | | @PreAuthorize("@ss.hasPermission('system:storage-attachment:query')") |
| | | public CommonResult<List<SystemStorageBlobRespVO>> listAttachments( |
| | | @Valid SystemStorageAttachmentListReqVO reqVO) { |
| | | if ("agent_import_session".equals(reqVO.getRecordType())) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç§æ·") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:tenant:query')") |
| | | public CommonResult<TenantRespVO> getTenant(@RequestParam("id") Long id) { |
| | | TenantDO tenant = tenantService.getTenant(id); |
| | | return success(BeanUtils.toBean(tenant, TenantRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç§æ·å页") |
| | | @PreAuthorize("@ss.hasPermission('system:tenant:query')") |
| | | public CommonResult<PageResult<TenantRespVO>> getTenantPage(@Valid TenantPageReqVO pageVO) { |
| | | PageResult<TenantDO> pageResult = tenantService.getTenantPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, TenantRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç§æ·å¥é¤") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:tenant-package:query')") |
| | | public CommonResult<TenantPackageRespVO> getTenantPackage(@RequestParam("id") Long id) { |
| | | TenantPackageDO tenantPackage = tenantPackageService.getTenantPackage(id); |
| | | return success(BeanUtils.toBean(tenantPackage, TenantPackageRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç§æ·å¥é¤å页") |
| | | @PreAuthorize("@ss.hasPermission('system:tenant-package:query')") |
| | | public CommonResult<PageResult<TenantPackageRespVO>> getTenantPackagePage(@Valid TenantPackagePageReqVO pageVO) { |
| | | PageResult<TenantPackageDO> pageResult = tenantPackageService.getTenantPackagePage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, TenantPackageRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç¨æ·å页å表") |
| | | @PreAuthorize("@ss.hasPermission('system:user:query')") |
| | | public CommonResult<PageResult<UserRespVO>> getUserPage(@Valid UserPageReqVO pageReqVO) { |
| | | // è·å¾ç¨æ·å页å表 |
| | | PageResult<AdminUserDO> pageResult = userService.getUserPage(pageReqVO); |
| | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾ç¨æ·è¯¦æ
å表") |
| | | @Parameter(name = "ids", description = "ç¼å·å表", required = true, example = "[1024]") |
| | | @PreAuthorize("@ss.hasPermission('system:user:query')") |
| | | public CommonResult<List<UserRespVO>> getUserList(@RequestParam("ids") List<Long> ids) { |
| | | List<AdminUserDO> list = userService.getUserList(ids); |
| | | if (CollUtil.isEmpty(list)) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç¨æ·è¯¦æ
") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:user:query')") |
| | | public CommonResult<UserRespVO> getUser(@RequestParam("id") Long id) { |
| | | AdminUserDO user = userService.getUser(id); |
| | | if (user == null) { |
| | |
| | | <el-table-column label="å建æ¶é´" align="center" prop="createTime" :formatter="dateFormatter" width="180px" /> |
| | | <el-table-column label="æä½" align="center" width="200" fixed="right"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" @click="openDetail(scope.row.id)" v-hasPermi="['srm:supplier:query']">详æ
</el-button> |
| | | <el-button link type="primary" @click="openDetail(scope.row.id)">详æ
</el-button> |
| | | <el-button link type="primary" @click="openForm(scope.row.id)" v-hasPermi="['srm:supplier:update']">ç¼è¾</el-button> |
| | | <el-button link type="danger" @click="handleDelete(scope.row.id)" v-hasPermi="['srm:supplier:delete']">å é¤</el-button> |
| | | </template> |
| | |
| | | <el-button v-if="scope.row.applyStatus === 20" link type="primary" @click="openReview(scope.row.id, 'quality')" v-hasPermi="['srm:supplier-apply:update']">è´¨éå®¡æ ¸</el-button> |
| | | <el-button v-if="scope.row.applyStatus === 30" link type="primary" @click="openReview(scope.row.id, 'finance')" v-hasPermi="['srm:supplier-apply:update']">è´¢å¡å®¡æ ¸</el-button> |
| | | <el-button v-if="scope.row.applyStatus === 0" link type="primary" @click="openForm(scope.row.id)" v-hasPermi="['srm:supplier-apply:update']">ç¼è¾</el-button> |
| | | <el-button link type="primary" @click="openDetail(scope.row.id)" v-hasPermi="['srm:supplier-apply:query']">详æ
</el-button> |
| | | <el-button link type="primary" @click="openDetail(scope.row.id)">详æ
</el-button> |
| | | <el-button v-if="scope.row.applyStatus === 0" link type="danger" @click="handleDelete(scope.row.id)" v-hasPermi="['srm:supplier-apply:delete']">å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-table-column label="è¯ä»·æ¶é´" align="center" prop="evaluationTime" :formatter="dateFormatter" width="160px" /> |
| | | <el-table-column label="æä½" align="center" width="160" fixed="right"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" @click="openDetail(scope.row.id)" v-hasPermi="['srm:supplier-evaluation:query']">详æ
</el-button> |
| | | <el-button link type="primary" @click="openDetail(scope.row.id)">详æ
</el-button> |
| | | <el-button link type="danger" @click="handleDelete(scope.row.id)" v-hasPermi="['srm:supplier-evaluation:delete']">å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |