refactor(permission): 清理新高电力查询菜单及权限注解
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | -- æ°é«çµåï¼æ¸
çç¬ç«æ¥è¯¢æéï¼ä¿ç页é¢èåæ¬èº«ååæä½ã导åºãæ°æ®èå´æéã |
| | | -- 䏿¬æ¬¡åå端代ç ä¸èµ·åå¸ï¼æ§è¡åéæ°ç»å½ãå¤ä»½è¡¨ç¨äºæ¢å¤ï¼èæ¬å¯é夿§è¡ã |
| | | CREATE TABLE IF NOT EXISTS xgdl_query_menu_backup_20261027 LIKE system_menu; |
| | | CREATE TABLE IF NOT EXISTS xgdl_query_role_menu_backup_20261027 LIKE system_role_menu; |
| | | CREATE TABLE IF NOT EXISTS xgdl_query_tenant_package_backup_20261027 LIKE system_tenant_package; |
| | | |
| | | DROP TEMPORARY TABLE IF EXISTS xgdl_query_menu_targets; |
| | | CREATE TEMPORARY TABLE xgdl_query_menu_targets (id BIGINT PRIMARY KEY, type TINYINT NOT NULL); |
| | | |
| | | START TRANSACTION; |
| | | |
| | | INSERT INTO xgdl_query_menu_targets (id, type) |
| | | SELECT id, type FROM system_menu |
| | | WHERE deleted = b'0' AND type IN (2, 3) |
| | | AND permission REGEXP ':(query|list|page|get|view|read|detail|manager-query|get-monitor-info|get-key-list)$'; |
| | | |
| | | INSERT IGNORE INTO xgdl_query_menu_backup_20261027 |
| | | SELECT m.* FROM system_menu m JOIN xgdl_query_menu_targets t ON t.id = m.id; |
| | | |
| | | INSERT IGNORE INTO xgdl_query_role_menu_backup_20261027 |
| | | SELECT r.* FROM system_role_menu r JOIN xgdl_query_menu_targets t ON t.id = r.menu_id |
| | | WHERE t.type = 3 AND r.deleted = b'0'; |
| | | |
| | | INSERT IGNORE INTO xgdl_query_tenant_package_backup_20261027 |
| | | SELECT p.* FROM system_tenant_package p |
| | | WHERE p.deleted = b'0' AND EXISTS ( |
| | | SELECT 1 FROM JSON_TABLE(p.menu_ids, '$[*]' COLUMNS (menu_id BIGINT PATH '$')) j |
| | | JOIN xgdl_query_menu_targets t ON t.id = j.menu_id AND t.type = 3 |
| | | ); |
| | | |
| | | UPDATE system_role_menu r JOIN xgdl_query_menu_targets t ON t.id = r.menu_id |
| | | SET r.deleted = b'1', r.updater = '1', r.update_time = NOW() |
| | | WHERE t.type = 3 AND r.deleted = b'0'; |
| | | |
| | | UPDATE system_tenant_package p JOIN xgdl_query_tenant_package_backup_20261027 b ON b.id = p.id |
| | | SET p.menu_ids = COALESCE(( |
| | | SELECT JSON_ARRAYAGG(j.menu_id) |
| | | FROM JSON_TABLE(p.menu_ids, '$[*]' COLUMNS (menu_id BIGINT PATH '$')) j |
| | | LEFT JOIN xgdl_query_menu_targets t ON t.id = j.menu_id AND t.type = 3 |
| | | WHERE t.id IS NULL |
| | | ), JSON_ARRAY()), p.updater = '1', p.update_time = NOW() |
| | | WHERE p.deleted = b'0'; |
| | | |
| | | UPDATE system_menu m JOIN xgdl_query_menu_targets t ON t.id = m.id |
| | | SET m.deleted = b'1', m.updater = '1', m.update_time = NOW() |
| | | WHERE t.type = 3 AND m.deleted = b'0'; |
| | | |
| | | UPDATE system_menu m JOIN xgdl_query_menu_targets t ON t.id = m.id |
| | | SET m.permission = '', m.updater = '1', m.update_time = NOW() |
| | | WHERE t.type = 2 AND m.deleted = b'0'; |
| | | |
| | | COMMIT; |
| | | |
| | | SELECT type, COUNT(*) AS affected_menu_count FROM xgdl_query_menu_targets GROUP BY type; |
| | | SELECT COUNT(*) AS remaining_read_permission_count FROM system_menu |
| | | WHERE deleted = b'0' AND type IN (2, 3) |
| | | AND permission REGEXP ':(query|list|page|get|view|read|detail|manager-query|get-monitor-info|get-key-list)$'; |
| | | DROP TEMPORARY TABLE xgdl_query_menu_targets; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | -- ä»
å¨éè¦æ¤é20261027æ¥è¯¢æéæ¸
çæ¶æ§è¡ï¼æ¢å¤åèåæéãå 餿 è®°ãè§è²ææåå¥é¤èåã |
| | | -- è¥æ¸
çååæå¨è°æ´è¿å¥é¤èåï¼è¯·å
æ ¸å¯¹å¤ä»½ä¸çmenu_ids忢å¤ã |
| | | START TRANSACTION; |
| | | |
| | | UPDATE system_menu m JOIN xgdl_query_menu_backup_20261027 b ON b.id = m.id |
| | | SET m.permission = b.permission, m.deleted = b.deleted, |
| | | m.updater = b.updater, m.update_time = b.update_time; |
| | | |
| | | UPDATE system_role_menu r JOIN xgdl_query_role_menu_backup_20261027 b ON b.id = r.id |
| | | SET r.deleted = b.deleted, r.updater = b.updater, r.update_time = b.update_time; |
| | | |
| | | UPDATE system_tenant_package p JOIN xgdl_query_tenant_package_backup_20261027 b ON b.id = p.id |
| | | SET p.menu_ids = b.menu_ids, p.updater = b.updater, p.update_time = b.update_time; |
| | | |
| | | COMMIT; |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾èµä»/æå¡è¡¥å¿å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('aftersales:compensation:query')") |
| | | public CommonResult<AfterSaleCompensationRespVO> getCompensation(@RequestParam("id") Long id) { |
| | | AfterSaleCompensationDO compensation = compensationService.getCompensation(id); |
| | | return success(compensation != null ? BeanUtils.toBean(compensation, AfterSaleCompensationRespVO.class, vo -> { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾èµä»/æå¡è¡¥å¿åå页") |
| | | @PreAuthorize("@ss.hasPermission('aftersales:compensation:query')") |
| | | public CommonResult<PageResult<AfterSaleCompensationRespVO>> getCompensationPage(@Valid AfterSaleCompensationPageReqVO pageReqVO) { |
| | | PageResult<AfterSaleCompensationDO> pageResult = compensationService.getCompensationPage(pageReqVO); |
| | | List<AfterSaleCompensationRespVO> list = buildCompensationDetailList(pageResult.getList()); |
| | |
| | | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "è·å¾å®¡æ¹äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('aftersales:compensation:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(compensationService.getCompensationApproverUserIds()); |
| | | } |
| | |
| | | @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 = "è·åç¥è¯åº") |
| | | @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 = "name", required = false) String name, |
| | | @RequestParam(value = "type", required = false) String type, |
| | |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @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("/page") |
| | | @Operation(summary = "è·åé¢è¦è®°å½å页") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:alert:query')") |
| | | public CommonResult<PageResult<BiAlertRecordDO>> getAlertPage(@Valid DecisionAlertPageReqVO reqVO) { |
| | | return success(alertRecordService.getRecordPage(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/unprocessed-count") |
| | | @Operation(summary = "è·åæªå¤çé¢è¦æ°é") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:alert:query')") |
| | | public CommonResult<Long> getUnprocessedCount() { |
| | | return success(alertRecordService.getUnprocessedCount()); |
| | | } |
| | |
| | | return success(true); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·åé¢è¦è§å") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:alert-rule:query')") |
| | | public CommonResult<BiAlertRuleDO> getRule(@RequestParam("id") Long id) { |
| | | return success(alertRuleService.getRule(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·åé¢è¦è§åå页") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:alert-rule:query')") |
| | | public CommonResult<PageResult<BiAlertRuleDO>> getRulePage(@Valid DecisionAlertRulePageReqVO pageReq) { |
| | | return success(alertRuleService.getRulePage(pageReq)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å颿µæ°æ®") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:kpi:query')") |
| | | public CommonResult<List<BiForecastDataDO>> getForecastList(@Valid DecisionForecastReqVO reqVO) { |
| | | // é»è®¤æ¥æè¿30天 |
| | | LocalDateTime endTime = LocalDateTime.now(); |
| | |
| | | |
| | | @PostMapping("/generate") |
| | | @Operation(summary = "çæé¢æµï¼æ¯ææå®æ¨¡åï¼") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:kpi:query')") |
| | | public CommonResult<Boolean> generateForecast(@RequestParam("forecastCode") String forecastCode, |
| | | @RequestParam(value = "model", required = false) String model, |
| | | @RequestParam(value = "window", required = false, defaultValue = "12") Integer window, |
| | |
| | | |
| | | @PostMapping("/generate-from-kpi") |
| | | @Operation(summary = "åºäºKPIåå²å¿«ç
§çæé¢æµï¼è´è·/产é/éè´/忬¾ï¼") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:kpi:query')") |
| | | public CommonResult<Integer> generateKpiForecast(@RequestParam("kpiCode") String kpiCode, |
| | | @RequestParam(value = "model", required = false) String model, |
| | | @RequestParam(value = "window", required = false, defaultValue = "12") Integer window, |
| | |
| | | return success(forecastService.createWorkOrderFromForecast(reqVO)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @GetMapping("/overview") |
| | | @Operation(summary = "è·åKPIæ¦è§") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:kpi:query')") |
| | | public CommonResult<Map<String, Object>> getKpiOverview() { |
| | | return success(decisionKpiService.getKpiOverview()); |
| | | } |
| | | |
| | | @GetMapping("/detail/{kpiCode}") |
| | | @Operation(summary = "è·åKPI详æ
") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:kpi:query')") |
| | | public CommonResult<Map<String, Object>> getKpiDetail(@PathVariable("kpiCode") String kpiCode) { |
| | | return success(decisionKpiService.getKpiDetail(kpiCode)); |
| | | } |
| | | |
| | | @GetMapping("/category/{category}") |
| | | @Operation(summary = "æåç±»è·åKPI") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:kpi:query')") |
| | | public CommonResult<Map<String, Object>> getKpiByCategory(@PathVariable("category") String category) { |
| | | return success(decisionKpiService.getKpiByCategory(category)); |
| | | } |
| | | |
| | | @PostMapping("/refresh/{kpiCode}") |
| | | @Operation(summary = "å·æ°KPIå¼") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:kpi:query')") |
| | | public CommonResult<BigDecimal> refreshKpi(@PathVariable("kpiCode") String kpiCode) { |
| | | return success(decisionKpiService.refreshKpi(kpiCode)); |
| | | } |
| | | |
| | | @GetMapping("/trend/{kpiCode}") |
| | | @Operation(summary = "è·åKPIåå²å¿«ç
§è¶å¿") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:kpi:query')") |
| | | public CommonResult<Map<String, Object>> getKpiTrend(@PathVariable("kpiCode") String kpiCode, |
| | | @RequestParam(value = "beginTime", required = false) |
| | | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| | |
| | | |
| | | @GetMapping("/compare/{kpiCode}") |
| | | @Operation(summary = "è·åKPIç¯æ¯ç å¤") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:kpi:query')") |
| | | public CommonResult<Map<String, Object>> getKpiCompare(@PathVariable("kpiCode") String kpiCode) { |
| | | return success(decisionKpiService.getKpiCompare(kpiCode)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·åKPIææ ") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:kpi:query')") |
| | | public CommonResult<BiKpiDefinitionDO> getKpi(@RequestParam("id") Long id) { |
| | | return success(kpiDefinitionService.getKpi(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·åKPIææ å页") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:kpi:query')") |
| | | public CommonResult<PageResult<BiKpiDefinitionDO>> getKpiPage(@Valid DecisionKpiDefinitionPageReqVO pageReq) { |
| | | return success(kpiDefinitionService.getKpiPage(pageReq)); |
| | | } |
| | | |
| | | @GetMapping("/list-all") |
| | | @Operation(summary = "è·åææKPIææ ") |
| | | @PreAuthorize("@ss.hasPermission('bi:decision:kpi:query')") |
| | | public CommonResult<PageResult<BiKpiDefinitionDO>> getKpiList() { |
| | | return success(kpiDefinitionService.getKpiPage(new DecisionKpiDefinitionPageReqVO())); |
| | | } |
| | |
| | | @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)); |
| | |
| | | return success(categoryService.importCategoryList(list, importReqVO)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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) { |
| | |
| | | import org.flowable.common.engine.impl.db.SuspensionState; |
| | | import org.flowable.engine.repository.Deployment; |
| | | import org.flowable.engine.repository.ProcessDefinition; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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); |
| | |
| | | return success(processExpressionService.importExpressionList(list, importReqVO)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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); |
| | |
| | | return success(processListenerService.importListenerList(list, importReqVO)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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("/manager-page") |
| | | @Operation(summary = "è·å¾ç®¡çæµç¨å®ä¾çå页å表", description = "å¨ãæµç¨å®ä¾ãèåä¸ï¼è¿è¡è°ç¨") |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-instance:manager-query')") |
| | | public CommonResult<PageResult<BpmProcessInstanceRespVO>> getProcessInstanceManagerPage( |
| | | @Valid BpmProcessInstancePageReqVO pageReqVO) { |
| | | PageResult<HistoricProcessInstance> pageResult = processInstanceService.getProcessInstancePage( |
| | |
| | | |
| | | @PostMapping("/create") |
| | | @Operation(summary = "æ°å»ºæµç¨å®ä¾") |
| | | @PreAuthorize("@ss.hasPermission('bpm:process-instance:query')") |
| | | public CommonResult<String> createProcessInstance(@Valid @RequestBody BpmProcessInstanceCreateReqVO createReqVO) { |
| | | return success(processInstanceService.createProcessInstance(getLoginUserId(), createReqVO)); |
| | | } |
| | |
| | | @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); |
| | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.flowable.engine.history.HistoricProcessInstance; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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("manager-page") |
| | | @Operation(summary = "è·åå
¨é¨ä»»å¡çå页", description = "ç¨äºãæµç¨ä»»å¡ãèå") |
| | | @PreAuthorize("@ss.hasPermission('bpm:task:manager-query')") |
| | | public CommonResult<PageResult<BpmTaskRespVO>> getTaskManagerPage(@Valid BpmTaskPageReqVO pageVO) { |
| | | PageResult<HistoricTaskInstance> pageResult = taskService.getTaskPage(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("/approver-ids") |
| | | @Operation(summary = "è·å¾éæ·ç³è¯·ç审æ¹äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('crm:cancellation:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(cancellationService.getCancellationApproverUserIds()); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éæ·ç³è¯·") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('crm:cancellation:query')") |
| | | public CommonResult<CrmCancellationRespVO> getCancellation(@RequestParam("id") Long id) { |
| | | return success(cancellationService.getCancellation(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éæ·ç³è¯·å页") |
| | | @PreAuthorize("@ss.hasPermission('crm:cancellation:query')") |
| | | public CommonResult<PageResult<CrmCancellationRespVO>> getCancellationPage(@Valid CrmCancellationPageReqVO pageReqVO) { |
| | | return success(cancellationService.getCancellationPage(pageReqVO)); |
| | | } |
| | |
| | | ExcelUtils.write(response, "éæ·ç³è¯·.xls", "æ°æ®", CrmCancellationRespVO.class, list); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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 = "è·å¾ååæä»¤") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('crm:contract-command:query')") |
| | | public CommonResult<CrmContractCommandRespVO> getCommand(@RequestParam("id") Long id) { |
| | | return success(commandService.getCommand(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ååæä»¤å页") |
| | | @PreAuthorize("@ss.hasPermission('crm:contract-command:query')") |
| | | public CommonResult<PageResult<CrmContractCommandRespVO>> getCommandPage(@Valid CrmContractCommandPageReqVO pageReqVO) { |
| | | return success(commandService.getCommandPage(pageReqVO)); |
| | | } |
| | |
| | | @GetMapping("/count-by-contract") |
| | | @Operation(summary = "ç»è®¡æååæä»¤æ°é") |
| | | @Parameter(name = "contractId", description = "ååID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('crm:contract-command:query')") |
| | | public CommonResult<Long> countByContract(@RequestParam("contractId") Long contractId) { |
| | | return success(commandService.countByContractId(contractId)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | @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("/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("/page-by-customer") |
| | | @Operation(summary = "è·å¾ååå页ï¼åºäºæå®å®¢æ·") |
| | | @PreAuthorize("@ss.hasPermission('crm:contract:query')") |
| | | public CommonResult<PageResult<CrmContractRespVO>> getContractPageByCustomer(@Valid CrmContractPageReqVO pageVO) { |
| | | Assert.notNull(pageVO.getCustomerId(), "客æ·ç¼å·ä¸è½ä¸ºç©º"); |
| | | PageResult<CrmContractDO> pageResult = contractService.getContractPageByCustomerId(pageVO); |
| | |
| | | |
| | | @GetMapping("/page-by-business") |
| | | @Operation(summary = "è·å¾ååå页ï¼åºäºæå®åæº") |
| | | @PreAuthorize("@ss.hasPermission('crm:contract:query')") |
| | | public CommonResult<PageResult<CrmContractRespVO>> getContractPageByBusiness(@Valid CrmContractPageReqVO pageVO) { |
| | | Assert.notNull(pageVO.getBusinessId(), "åæºç¼å·ä¸è½ä¸ºç©º"); |
| | | PageResult<CrmContractDO> pageResult = contractService.getContractPageByBusinessId(pageVO); |
| | |
| | | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "è·å¾ååç审æ¹äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('crm:contract:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(contractService.getContractApproverUserIds()); |
| | | } |
| | |
| | | |
| | | @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) |
| | | @PreAuthorize("@ss.hasPermission('crm:credit-rating:query')") |
| | | public CommonResult<CrmCreditRatingRespVO> getCreditRating(@RequestParam("id") Long id) { |
| | | return success(creditRatingService.getCreditRating(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å®¢æ·ä¿¡ç¨è¯çº§å页") |
| | | @PreAuthorize("@ss.hasPermission('crm:credit-rating:query')") |
| | | public CommonResult<PageResult<CrmCreditRatingRespVO>> getCreditRatingPage(@Valid CrmCreditRatingPageReqVO pageReqVO) { |
| | | return success(creditRatingService.getCreditRatingPage(pageReqVO)); |
| | | } |
| | |
| | | @GetMapping("/latest-by-customer") |
| | | @Operation(summary = "è·åå®¢æ·ææ°ä¿¡ç¨è¯çº§") |
| | | @Parameter(name = "customerId", description = "客æ·ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('crm:credit-rating:query')") |
| | | public CommonResult<CrmCreditRatingRespVO> getLatestByCustomer(@RequestParam("customerId") Long customerId) { |
| | | return success(creditRatingService.getLatestByCustomerId(customerId)); |
| | | } |
| | |
| | | return success(creditRatingService.importCreditRatingList(list, importReqVO)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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("/page-by-customer") |
| | | @Operation(summary = "è·å¾å¼ç¥¨å页ï¼åºäºæå®å®¢æ·") |
| | | @PreAuthorize("@ss.hasPermission('crm:invoice:query')") |
| | | public CommonResult<PageResult<CrmInvoiceRespVO>> getInvoicePageByCustomer(@Valid CrmInvoicePageReqVO pageReqVO) { |
| | | Assert.notNull(pageReqVO.getCustomerId(), "客æ·ç¼å·ä¸è½ä¸ºç©º"); |
| | | PageResult<CrmInvoiceDO> pageResult = invoiceService.getInvoicePageByCustomerId(pageReqVO); |
| | |
| | | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "è·å¾å¼ç¥¨ç审æ¹äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('crm:invoice:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(invoiceService.getInvoiceApproverUserIds()); |
| | | } |
| | | |
| | | @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("/approver-ids") |
| | | @Operation(summary = "è·å¾éè´¹åç审æ¹äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('crm:refund:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(refundService.getRefundApproverUserIds()); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾éè´¹å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('crm:refund:query')") |
| | | public CommonResult<CrmRefundRespVO> getRefund(@RequestParam("id") Long id) { |
| | | return success(refundService.getRefund(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éè´¹åå页") |
| | | @PreAuthorize("@ss.hasPermission('crm:refund:query')") |
| | | public CommonResult<PageResult<CrmRefundRespVO>> getRefundPage(@Valid CrmRefundPageReqVO pageReqVO) { |
| | | return success(refundService.getRefundPage(pageReqVO)); |
| | | } |
| | |
| | | ExcelUtils.write(response, "éè´¹å.xls", "æ°æ®", CrmRefundRespVO.class, list); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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)); |
| | | } |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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)); |
| | | } |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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())); |
| | |
| | | import cn.iocoder.yudao.module.crm.service.statistics.CrmStatisticsPerformanceService; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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)); |
| | | } |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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)); |
| | | } |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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)); |
| | |
| | | return success(accountService.importAccountList(list, importReqVO)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "è·å¾ä»æ¬¾åç审æ¹äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('erp:finance-payment:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(financePaymentService.getFinancePaymentApproverUserIds()); |
| | | } |
| | |
| | | @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("/approver-ids") |
| | | @Operation(summary = "è·åéè´è®¢å审æ¹äººç¼å·éå") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-order:query')") |
| | | public CommonResult<Set<Long>> getPurchaseOrderApproverUserIds() { |
| | | return success(purchaseOrderService.getPurchaseOrderApproverUserIds()); |
| | | } |
| | |
| | | @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-plan:query')") |
| | | public CommonResult<ErpPurchasePlanRespVO> getPurchasePlan(@RequestParam("id") Long id) { |
| | | ErpPurchasePlanDO plan = purchasePlanService.getPurchasePlan(id); |
| | | if (plan == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾éè´è®¡åå页") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-plan:query')") |
| | | public CommonResult<PageResult<ErpPurchasePlanRespVO>> getPurchasePlanPage(@Valid ErpPurchasePlanPageReqVO pageReqVO) { |
| | | PageResult<ErpPurchasePlanDO> pageResult = purchasePlanService.getPurchasePlanPage(pageReqVO); |
| | | return success(buildPurchasePlanVOPageResult(pageResult)); |
| | |
| | | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "è·å¾éè´è®¡åç审æ¹äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-plan:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(purchasePlanService.getPurchasePlanApproverUserIds()); |
| | | } |
| | |
| | | @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("/approver-ids") |
| | | @Operation(summary = "è·å¾éè´ç³è¯·ç审æ¹äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-request:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(purchaseRequestService.getPurchaseRequestApproverUserIds()); |
| | | } |
| | |
| | | }); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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)); |
| | |
| | | return success(supplierService.importSupplierList(list, importReqVO)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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)); |
| | |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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<>(); |
| | |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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("/approver-ids") |
| | | @Operation(summary = "è·å¾å®¡æ¹äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('hrm:leave:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(leaveApplicationService.getLeaveApplicationApproverUserIds()); |
| | | } |
| | |
| | | HrmLeaveApplicationRespVO.class, list); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è½¬æ£ç³è¯·è¯¦æ
") |
| | | @Parameter(name = "id", description = "ç³è¯·ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:regularize:query')") |
| | | public CommonResult<HrmRegularizeApplicationRespVO> getRegularizeApplication(@RequestParam("id") Long id) { |
| | | return success(regularizeApplicationService.getRegularizeApplicationDetail(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è½¬æ£ç³è¯·å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:regularize:query')") |
| | | public CommonResult<PageResult<HrmRegularizeApplicationRespVO>> getRegularizeApplicationPage(@Valid HrmRegularizeApplicationPageReqVO pageReqVO) { |
| | | return success(regularizeApplicationService.getRegularizeApplicationPage(pageReqVO)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "è·å¾å®¡æ¹äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('hrm:regularize:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(regularizeApplicationService.getRegularizeApplicationApproverUserIds()); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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("/approver-ids") |
| | | @Operation(summary = "è·å¾å®¡æ¹äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('hrm:resignation:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(resignationApplicationService.getResignationApplicationApproverUserIds()); |
| | | } |
| | |
| | | HrmResignationApplicationRespVO.class, list); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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("/approver-ids") |
| | | @Operation(summary = "è·å¾å®¡æ¹äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('hrm:transfer:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(transferApplicationService.getTransferApplicationApproverUserIds()); |
| | | } |
| | |
| | | HrmTransferApplicationRespVO.class, list); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾èå¤å¼å¸¸ç³è¯·") |
| | | @Parameter(name = "id", description = "ç³è¯·ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:attendance: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: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("/approver-ids") |
| | | @Operation(summary = "è·å¾å®¡æ¹äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('hrm:attendance:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(attendanceExceptionService.getAttendanceExceptionApproverUserIds()); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è忥é
ç½®") |
| | | @Parameter(name = "id", description = "è忥ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:attendance: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:query')") |
| | | public CommonResult<PageResult<HrmAttendanceHolidayRespVO>> getAttendanceHolidayPage(@Valid HrmAttendanceHolidayPageReqVO pageReqVO) { |
| | | PageResult<HrmAttendanceHolidayDO> pageResult = attendanceHolidayService.getAttendanceHolidayPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, HrmAttendanceHolidayRespVO.class)); |
| | |
| | | return success(attendanceHolidayService.importAttendanceHolidayList(list, importReqVO)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾èå¤è®°å½å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:attendance: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: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: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: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:query')") |
| | | public CommonResult<List<HrmAttendanceRuleRespVO>> getAttendanceRuleList() { |
| | | List<HrmAttendanceRuleDO> list = attendanceRuleService.getAttendanceRuleList(); |
| | | return success(BeanUtils.toBean(list, HrmAttendanceRuleRespVO.class)); |
| | |
| | | return success(attendanceRuleService.importAttendanceRuleList(list, importReqVO)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾èå¤ç»è®¡æ±æ»å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:attendance: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:query')") |
| | | public CommonResult<HrmAttendanceSummaryRespVO> getMonthlySummary( |
| | | @RequestParam("userId") Long userId, |
| | | @RequestParam("yearMonth") String yearMonth) { |
| | |
| | | ExcelUtils.write(response, "èå¤ç»è®¡æ±æ».xls", "æ°æ®", HrmAttendanceSummaryRespVO.class, data); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è¯ä¹¦èµè´¨") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('hrm:certificate:query')") |
| | | public CommonResult<HrmCertificateRespVO> getCertificate(@RequestParam("id") Long id) { |
| | | HrmCertificateDO certificate = certificateService.getCertificate(id); |
| | | return success(certificate != null ? buildRespVO(certificate) : null); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è¯ä¹¦èµè´¨å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:certificate:query')") |
| | | public CommonResult<PageResult<HrmCertificateRespVO>> getCertificatePage(@Valid HrmCertificatePageReqVO pageReqVO) { |
| | | // æè§¦åï¼æäººæå¼è¯ä¹¦å表æ¶é¡ºå¸¦è¡¥æ«å³å°å°æè¯ä¹¦å¹¶åéç«å
ä¿¡æéï¼best-effortï¼ |
| | | try { |
| | |
| | | @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) { |
| | | // æè§¦åï¼æäººæå¼ååå表æ¶é¡ºå¸¦è¡¥æ«å³å°å°æååå¹¶åéç«å
ä¿¡æéï¼best-effortï¼ |
| | | try { |
| | |
| | | |
| | | @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 |
| | |
| | | return success(employeeService.importEmployeeList(list, importReqVO)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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); |
| | |
| | | return success(true); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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); |
| | |
| | | return success(true); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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); |
| | |
| | | return success(true); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾ç»©æèæ ¸æ¹æ¡") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('hrm:performance-appraise:query')") |
| | | public CommonResult<HrmPerformanceAppraiseRespVO> getAppraise(@RequestParam("id") Long id) { |
| | | HrmPerformanceAppraiseDO appraise = appraiseService.getAppraise(id); |
| | | if (appraise == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç»©æèæ ¸æ¹æ¡å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:performance-appraise:query')") |
| | | public CommonResult<PageResult<HrmPerformanceAppraiseRespVO>> getAppraisePage(@Valid HrmPerformanceAppraisePageReqVO pageReqVO) { |
| | | PageResult<HrmPerformanceAppraiseDO> pageResult = appraiseService.getAppraisePage(pageReqVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |
| | |
| | | @GetMapping("/item-list") |
| | | @Operation(summary = "è·å¾ç»©æèæ ¸ææ å表") |
| | | @Parameter(name = "appraiseId", description = "æ¹æ¡ç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('hrm:performance-appraise:query')") |
| | | public CommonResult<List<HrmPerformanceAppraiseItemRespVO>> getAppraiseItemList(@RequestParam("appraiseId") Long appraiseId) { |
| | | return success(BeanUtils.toBean(appraiseService.getAppraiseItemList(appraiseId), HrmPerformanceAppraiseItemRespVO.class)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "è·å¾å®¡æ¹äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('hrm:performance-appraise:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(appraiseService.getAppraiseApproverUserIds()); |
| | | } |
| | |
| | | |
| | | @GetMapping("/result-page") |
| | | @Operation(summary = "è·å¾ç»©æèæ ¸ç»æå页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:performance-appraise:query')") |
| | | public CommonResult<PageResult<HrmPerformanceAppraiseResultRespVO>> getAppraiseResultPage( |
| | | @Valid HrmPerformanceAppraiseResultPageReqVO pageReqVO) { |
| | | PageResult<HrmPerformanceAppraiseResultDO> pageResult = appraiseService.getAppraiseResultPage(pageReqVO); |
| | |
| | | @Operation(summary = "è·å¾åå·¥èæ ¸ç»æï¼å«ææ æç»ï¼") |
| | | @Parameter(name = "appraiseId", description = "æ¹æ¡ç¼å·", required = true, example = "1") |
| | | @Parameter(name = "employeeId", description = "åå·¥ç¼å·", required = true, example = "100") |
| | | @PreAuthorize("@ss.hasPermission('hrm:performance-appraise:query')") |
| | | public CommonResult<HrmPerformanceAppraiseResultRespVO> getAppraiseResult( |
| | | @RequestParam("appraiseId") Long appraiseId, |
| | | @RequestParam("employeeId") Long employeeId) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·ååå·¥èªé
¬æ¡£æ¡") |
| | | @Parameter(name = "id", description = "æ¡£æ¡ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary:query')") |
| | | public CommonResult<HrmEmployeeSalaryRespVO> getEmployeeSalary(@RequestParam("id") Long id) { |
| | | HrmEmployeeSalaryDO salary = employeeSalaryService.getEmployeeSalary(id); |
| | | if (salary == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·ååå·¥èªé
¬æ¡£æ¡å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary:query')") |
| | | public CommonResult<PageResult<HrmEmployeeSalaryRespVO>> getEmployeeSalaryPage( |
| | | @Valid HrmEmployeeSalaryPageReqVO pageReqVO) { |
| | | PageResult<HrmEmployeeSalaryDO> pageResult = employeeSalaryService.getEmployeeSalaryPage(pageReqVO); |
| | |
| | | @GetMapping("/list-by-user") |
| | | @Operation(summary = "è·ååå·¥èªé
¬æ¡£æ¡åå²å表") |
| | | @Parameter(name = "userId", description = "åå·¥ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary:query')") |
| | | public CommonResult<List<HrmEmployeeSalaryRespVO>> getEmployeeSalaryList( |
| | | @RequestParam("userId") Long userId) { |
| | | List<HrmEmployeeSalaryDO> list = employeeSalaryService.getEmployeeSalaryList(userId); |
| | |
| | | @GetMapping("/get-latest") |
| | | @Operation(summary = "è·ååå·¥ææ°çæçèªé
¬æ¡£æ¡") |
| | | @Parameter(name = "userId", description = "åå·¥ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary:query')") |
| | | public CommonResult<HrmEmployeeSalaryRespVO> getLatestEmployeeSalary( |
| | | @RequestParam("userId") Long userId) { |
| | | HrmEmployeeSalaryDO salary = employeeSalaryService.getLatestEmployeeSalary(userId); |
| | |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·åå工社ä¿å
¬ç§¯éæ¡£æ¡") |
| | | @Parameter(name = "id", description = "æ¡£æ¡ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm: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: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: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:social-security:query')") |
| | | public CommonResult<HrmEmployeeSocialSecurityRespVO> getLatestEmployeeSocialSecurity( |
| | | @RequestParam("userId") Long userId) { |
| | | HrmEmployeeSocialSecurityDO socialSecurity = employeeSocialSecurityService.getLatestEmployeeSocialSecurity(userId); |
| | |
| | | return success(employeeSocialSecurityService.importEmployeeSocialSecurityList(list, importReqVO)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·åææè¯·åç±»åé
ç½®å表") |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary: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:salary:query')") |
| | | public CommonResult<HrmLeaveTypeConfigRespVO> getLeaveTypeConfig(@RequestParam("leaveType") Integer leaveType) { |
| | | HrmLeaveTypeConfigDO config = leaveTypeConfigService.getLeaveTypeConfig(leaveType); |
| | | return success(BeanUtils.toBean(config, HrmLeaveTypeConfigRespVO.class)); |
| | |
| | | return success(leaveTypeConfigService.importLeaveTypeConfigList(list, importReqVO)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾èªé
¬æ ¸ç®å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary: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: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:query')") |
| | | public CommonResult<List<HrmSalaryCalculationRespVO>> previewSalaryCalculation( |
| | | @RequestParam("period") String period, |
| | | @RequestParam(value = "deptId", required = false) Long deptId) { |
| | |
| | | return success(true); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾èªèµåæ¾å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary: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: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: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: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 = "è·åèªé
Ⱦ") |
| | | @Parameter(name = "id", description = "ç»æID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary:query')") |
| | | public CommonResult<HrmSalaryStructureRespVO> getStructure(@RequestParam("id") Long id) { |
| | | HrmSalaryStructureDO structure = structureService.getStructure(id); |
| | | return success(BeanUtils.toBean(structure, HrmSalaryStructureRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·åèªé
¬ç»æå页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary:query')") |
| | | public CommonResult<PageResult<HrmSalaryStructureRespVO>> getStructurePage(HrmSalaryStructurePageReqVO pageReqVO) { |
| | | PageResult<HrmSalaryStructureDO> pageResult = structureService.getStructurePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, HrmSalaryStructureRespVO.class)); |
| | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·åèªé
¬ç»æå表") |
| | | @Parameter(name = "status", description = "ç¶æ") |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary:query')") |
| | | public CommonResult<List<HrmSalaryStructureRespVO>> getStructureList( |
| | | @RequestParam(value = "status", required = false) Integer status) { |
| | | List<HrmSalaryStructureDO> list = structureService.getStructureList(status); |
| | | return success(BeanUtils.toBean(list, HrmSalaryStructureRespVO.class)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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: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: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: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: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:query')") |
| | | public CommonResult<List<HrmTaxRateConfigRespVO>> getEffectiveTaxRateConfigList( |
| | | @RequestParam("effectiveDate") LocalDate effectiveDate) { |
| | | List<HrmTaxRateConfigDO> list = taxRateConfigService.getEffectiveTaxRateConfigList(effectiveDate); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾å¹è®æ´»å¨è¯¦æ
ï¼å«åè®äººåå表ï¼") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('hrm:training:query')") |
| | | public CommonResult<HrmTrainingRespVO> getTraining(@RequestParam("id") Long id) { |
| | | HrmTrainingDO training = trainingService.getTraining(id); |
| | | if (training == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å¹è®æ´»å¨å页ï¼å«åè®äººæ°ï¼") |
| | | @PreAuthorize("@ss.hasPermission('hrm:training:query')") |
| | | public CommonResult<PageResult<HrmTrainingRespVO>> getTrainingPage(@Valid HrmTrainingPageReqVO pageReqVO) { |
| | | PageResult<HrmTrainingDO> pageResult = trainingService.getTrainingPage(pageReqVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |
| | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾ææ¬¡å¹è®çåè®äººåå表") |
| | | @Parameter(name = "trainingId", description = "å¹è®æ´»å¨ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('hrm:training:query')") |
| | | public CommonResult<List<HrmTrainingParticipantRespVO>> getParticipantsByTrainingId( |
| | | @RequestParam("trainingId") Long trainingId) { |
| | | List<HrmTrainingParticipantDO> participants = trainingService.getParticipantsByTrainingId(trainingId); |
| | |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @GetMapping("/employee-summary") |
| | | @Operation(summary = "å工工æ¶ç»è®¡ï¼èå¤å£å¾ï¼") |
| | | @PreAuthorize("@ss.hasPermission('hrm:work-hour-statistics:query')") |
| | | public CommonResult<List<HrmEmployeeWorkHourRespVO>> getEmployeeWorkHourSummary( |
| | | HrmEmployeeWorkHourReqVO reqVO) { |
| | | return success(workHourStatisticsService.getEmployeeWorkHourSummary(reqVO)); |
| | |
| | | |
| | | @GetMapping("/team-summary") |
| | | @Operation(summary = "çç»å·¥æ¶ç»è®¡ï¼æ¥å·¥å£å¾ï¼") |
| | | @PreAuthorize("@ss.hasPermission('hrm:work-hour-statistics:query')") |
| | | public CommonResult<List<MesProWorkHourSummaryRespDTO>> getTeamWorkHourSummary( |
| | | MesProWorkHourSummaryReqDTO reqDTO) { |
| | | return success(workHourStatisticsService.getTeamWorkHourSummary(reqDTO)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æåº¦å·¥æ¶æ±æ»å页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:work-hour:query')") |
| | | public CommonResult<PageResult<HrmWorkHourSummaryRespVO>> getPage( |
| | | @Valid HrmWorkHourSummaryPageReqVO pageReqVO) { |
| | | return success(workHourSummaryService.getWorkHourSummaryPage(pageReqVO)); |
| | |
| | | |
| | | @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); |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å¥½åå
³ç³»å页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:friend:query')") |
| | | public CommonResult<PageResult<ImFriendManagerRespVO>> getFriendPage( |
| | | @Valid ImFriendManagerPageReqVO pageReqVO) { |
| | | // 1. å页æ¥è¯¢ |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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)); |
| | |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @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); |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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())) { |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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)); |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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)); |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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)); |
| | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.constraints.Max; |
| | | import jakarta.validation.constraints.Min; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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)); |
| | |
| | | BeanUtils.toBean(list, 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)); |
| | |
| | | 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)); |
| | |
| | | BeanUtils.toBean(list, 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)); |
| | |
| | | import org.springframework.data.redis.connection.RedisServerCommands; |
| | | import org.springframework.data.redis.core.RedisCallback; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | |
| | | @GetMapping("/get-monitor-info") |
| | | @Operation(summary = "è·å¾ Redis çæ§ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermission('infra:redis:get-monitor-info')") |
| | | public CommonResult<RedisMonitorRespVO> getRedisMonitorInfo() { |
| | | // è·å¾ Redis ç»è®¡ä¿¡æ¯ |
| | | Properties info = stringRedisTemplate.execute((RedisCallback<Properties>) RedisServerCommands::info); |
| | |
| | | @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)); |
| | |
| | | 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-measure:query')") |
| | | public CommonResult<MdmUnitMeasureDO> getUnitMeasure(@RequestParam("id") Long id) { |
| | | return success(unitMeasureService.getUnitMeasure(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è®¡éåä½å页") |
| | | @PreAuthorize("@ss.hasPermission('mdm:unit-measure:query')") |
| | | public CommonResult<PageResult<MdmUnitMeasureDO>> getUnitMeasurePage(@Valid MdmUnitMeasurePageReqVO pageReqVO) { |
| | | return success(unitMeasureService.getUnitMeasurePage(pageReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾è®¡éåä½å表") |
| | | @PreAuthorize("@ss.hasPermission('mdm:unit-measure: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-measure:query')") |
| | | public CommonResult<List<MdmUnitMeasureDO>> getUnitMeasureListByIds(@RequestParam("ids") List<Long> ids) { |
| | | return success(unitMeasureService.getUnitMeasureList(ids)); |
| | | } |
| | |
| | | return success(unitMeasureService.importUnitMeasureList(list, importReqVO)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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)); |
| | |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @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)); |
| | |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @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)); |
| | |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @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); |
| | |
| | | import cn.iocoder.yudao.module.member.service.user.MemberUserService; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | @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)); |
| | |
| | | import cn.iocoder.yudao.module.member.service.user.MemberUserService; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | @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())) { |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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("/page") |
| | | @Operation(summary = "è·å¾å工级æçæç»å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-schedule-detail:query')") |
| | | public CommonResult<PageResult<MesCalScheduleDetailRespVO>> getDetailPage( |
| | | @Valid MesCalScheduleDetailPageReqVO pageReqVO) { |
| | | PageResult<MesCalScheduleDetailDO> pageResult = scheduleDetailService.getDetailPage(pageReqVO); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "è·å¾å工级æçæç»å表") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-schedule-detail:query')") |
| | | public CommonResult<List<MesCalScheduleDetailRespVO>> getDetailList( |
| | | @Valid MesCalScheduleDetailPageReqVO pageReqVO) { |
| | | return success(BeanUtils.toBean(scheduleDetailService.getDetailList(pageReqVO), MesCalScheduleDetailRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/check") |
| | | @Operation(summary = "åå·¥æçåè§æ ¡éªï¼è¿ç»å·¥æ¶/伿¯é´éï¼") |
| | | @PreAuthorize("@ss.hasPermission('mes:cal-schedule-detail:query')") |
| | | public CommonResult<List<MesCalScheduleDetailCheckRespVO>> checkCompliance( |
| | | @Valid MesCalScheduleDetailCheckReqVO checkReqVO) { |
| | | return success(scheduleDetailService.checkCompliance(checkReqVO)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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) { |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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())); |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @GetMapping("/summary") |
| | | @Operation(summary = "设å¤ç»è®¡æ±æ»ï¼å°è´¦/ç»´ä¿®/ä¿å
»/ç±»ååå¸ï¼") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-machinery:query')") |
| | | public CommonResult<MesDvStatisticsRespVO> getSummary() { |
| | | MesDvStatisticsRespVO vo = new MesDvStatisticsRespVO(); |
| | | |
| | |
| | | |
| | | @GetMapping("/oee") |
| | | @Operation(summary = "è®¾å¤ OEE ç»è®¡ï¼ç¨¼å¨çÃæ§è½å¼å¨çÃè¯åçï¼") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-machinery:query')") |
| | | public CommonResult<MesDvOeeRespVO> getOee( |
| | | @RequestParam(value = "startTime", required = false) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") LocalDateTime startTime, |
| | |
| | | @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)); |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @GetMapping("/pull") |
| | | @Operation(summary = "æåæ°éæ°æ®å¹¶å
¥åºï¼è¿ 5 åéè®¾å¤æ°æ®ï¼") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-telemetry:query')") |
| | | public CommonResult<MesDvTelemetryPullRespVO> pullTelemetry() { |
| | | return success(telemetryService.pullTelemetry()); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "å页æ¥è¯¢æ°é饿µæ°æ®") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-telemetry:query')") |
| | | public CommonResult<PageResult<MesDvTelemetryRespVO>> getTelemetryPage(@Valid MesDvTelemetryPageReqVO pageReqVO) { |
| | | PageResult<MesDvTelemetryDO> pageResult = telemetryService.getTelemetryPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesDvTelemetryRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/latest") |
| | | @Operation(summary = "æ¥è¯¢åè®¾å¤ææ°é¥æµæ°æ®ï¼å®æ¶çæ§ï¼") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-telemetry:query')") |
| | | public CommonResult<List<MesDvTelemetryRespVO>> getLatestTelemetry(MesDvTelemetryLatestReqVO reqVO) { |
| | | List<MesDvTelemetryDO> list = telemetryService.getLatestTelemetry(reqVO); |
| | | return success(BeanUtils.toBean(list, MesDvTelemetryRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/device-list") |
| | | @Operation(summary = "æ¥è¯¢æ°é设å¤ä¸æå表") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-telemetry:query')") |
| | | public CommonResult<List<MesDvTelemetryDeviceRespVO>> getDeviceList() { |
| | | return success(telemetryService.getDeviceList()); |
| | | } |
| | | |
| | | @GetMapping("/check") |
| | | @Operation(summary = "ä¾çµåæ°æ¯å¯¹æ ¡éªæç»ï¼åè®¾å¤ææ°åæ° vs æ åå¼ï¼") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-telemetry:query')") |
| | | public CommonResult<List<MesDvTelemetryRespVO>> getCheckList(MesDvTelemetryLatestReqVO reqVO) { |
| | | List<MesDvTelemetryDO> list = telemetryService.getLatestTelemetry(reqVO); |
| | | return success(BeanUtils.toBean(list, MesDvTelemetryRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/check-summary") |
| | | @Operation(summary = "ä¾çµåæ°æ¯å¯¹æ ¡éªç»è®¡ï¼æè®¾å¤èåå¼å¸¸çï¼") |
| | | @PreAuthorize("@ss.hasPermission('mes:dv-telemetry:query')") |
| | | public CommonResult<List<MesDvTelemetryCheckSummaryRespVO>> getCheckSummary(MesDvTelemetryLatestReqVO reqVO) { |
| | | return success(telemetryService.getCheckSummary(reqVO)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è½èé¢è¦å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-alert:query')") |
| | | public CommonResult<PageResult<MesEmAlertRespVO>> getAlertPage(@Valid MesEmAlertPageReqVO pageReqVO) { |
| | | PageResult<MesEmAlertDO> pageResult = alertService.getAlertPage(pageReqVO); |
| | | return success(new PageResult<>(alertService.getAlertRespVOList(pageResult.getList()), |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è½èé¢è¦") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:em-alert:query')") |
| | | public CommonResult<MesEmAlertRespVO> getAlert(@RequestParam("id") Long id) { |
| | | MesEmAlertDO alert = alertService.getAlert(id); |
| | | if (alert == null) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è½è计éç¹") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:em-meter:query')") |
| | | public CommonResult<MesEmMeterRespVO> getMeter(@RequestParam("id") Long id) { |
| | | MesEmMeterDO meter = meterService.getMeter(id); |
| | | if (meter == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è½è计éç¹å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-meter:query')") |
| | | public CommonResult<PageResult<MesEmMeterRespVO>> getMeterPage(@Valid MesEmMeterPageReqVO pageReqVO) { |
| | | PageResult<MesEmMeterDO> pageResult = meterService.getMeterPage(pageReqVO); |
| | | return success(new PageResult<>(meterService.getMeterRespVOList(pageResult.getList()), |
| | |
| | | |
| | | @GetMapping("/simple-list") |
| | | @Operation(summary = "è·å¾å¯ç¨ä¸çè½è计éç¹ç²¾ç®å表") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-meter:query')") |
| | | public CommonResult<List<MesEmOptionRespVO>> getMeterSimpleList() { |
| | | return success(meterService.getMeterSimpleList()); |
| | | } |
| | | |
| | | @GetMapping("/workshop-options") |
| | | @Operation(summary = "è·å¾è½¦é´ä¸æé项") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-meter:query')") |
| | | public CommonResult<List<MesEmOptionRespVO>> getWorkshopOptions() { |
| | | return success(meterService.getWorkshopOptions()); |
| | | } |
| | | |
| | | @GetMapping("/line-options") |
| | | @Operation(summary = "è·å¾äº§çº¿ä¸æé项") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-meter:query')") |
| | | public CommonResult<List<MesEmOptionRespVO>> getLineOptions() { |
| | | return success(meterService.getLineOptions()); |
| | | } |
| | | |
| | | @GetMapping("/machinery-options") |
| | | @Operation(summary = "è·å¾è®¾å¤ä¸æé项") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-meter:query')") |
| | | public CommonResult<List<MesEmOptionRespVO>> getMachineryOptions() { |
| | | return success(meterService.getMachineryOptions()); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è½èèæ ¸ææ ") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:em-quota:query')") |
| | | public CommonResult<MesEmQuotaRespVO> getQuota(@RequestParam("id") Long id) { |
| | | MesEmQuotaDO quota = quotaService.getQuota(id); |
| | | if (quota == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è½èèæ ¸ææ å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-quota:query')") |
| | | public CommonResult<PageResult<MesEmQuotaRespVO>> getQuotaPage(@Valid MesEmQuotaPageReqVO pageReqVO) { |
| | | PageResult<MesEmQuotaDO> pageResult = quotaService.getQuotaPage(pageReqVO); |
| | | return success(new PageResult<>(quotaService.getQuotaRespVOList(pageResult.getList()), |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è½èæè¡¨è®°å½") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:em-record:query')") |
| | | public CommonResult<MesEmRecordRespVO> getRecord(@RequestParam("id") Long id) { |
| | | MesEmRecordDO record = mesEmRecordService.getRecord(id); |
| | | if (record == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è½èæè¡¨è®°å½å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-record:query')") |
| | | public CommonResult<PageResult<MesEmRecordRespVO>> getRecordPage(@Valid MesEmRecordPageReqVO pageReqVO) { |
| | | PageResult<MesEmRecordDO> pageResult = mesEmRecordService.getRecordPage(pageReqVO); |
| | | return success(new PageResult<>(mesEmRecordService.getRecordRespVOList(pageResult.getList()), |
| | |
| | | |
| | | @GetMapping("/last-reading") |
| | | @Operation(summary = "è·å¾è®¡éç¹ä¸æè¯»æ°", description = "ç¨äºæ°å¢æè¡¨è®°å½æ¶èªå¨å¸¦å
¥æå读æ°") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-record:query')") |
| | | public CommonResult<MesEmLastReadingRespVO> getLastReading( |
| | | @RequestParam("meterId") Long meterId, |
| | | @RequestParam("recordDate") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate recordDate, |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @GetMapping("/overview") |
| | | @Operation(summary = "è·å¾è½èæ»è§æ°æ®") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-overview:query')") |
| | | public CommonResult<MesEmOverviewRespVO> getOverview( |
| | | @RequestParam(value = "beginDate", required = false) |
| | | @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate beginDate, |
| | |
| | | @GetMapping("/report") |
| | | @Operation(summary = "è·å¾æåº¦è½èæ¥è¡¨ï¼å«åæ¯ãç¯æ¯ï¼") |
| | | @Parameter(name = "period", description = "æä»½ yyyy-MM", example = "2026-10") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-report:query')") |
| | | public CommonResult<MesEmReportRespVO> getReport( |
| | | @RequestParam(value = "period", required = false) String period) { |
| | | return success(statisticsService.getReport(period)); |
| | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.constraints.Max; |
| | | import jakarta.validation.constraints.Min; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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)); |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @PostMapping("/generate") |
| | | @Operation(summary = "çæç¼ç ") |
| | | @PreAuthorize("@ss.hasPermission('mes:auto-code-rule:query')") |
| | | public CommonResult<String> generateAutoCode(@Valid @RequestBody MesMdAutoCodeGenerateReqVO generateReqVO) { |
| | | String code = autoCodeRecordService.generateAutoCode(generateReqVO.getRuleCode(), generateReqVO.getInputChar()); |
| | | return success(code); |
| | |
| | | @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) { |
| | | Page<MesPdArchiveGroupRespVO> page = new Page<>(pageReqVO.getPageNo(), pageReqVO.getPageSize()); |
| | | IPage<MesPdArchiveGroupRespVO> archivePage = archiveService.getArchivePageGroupByProject(pageReqVO, page); |
| | |
| | | @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("/electricity-type/get") |
| | | @Operation(summary = "è·å¾ç¨çµç±»å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<MesPdElectricityTypeRespVO> getElectricityType(@RequestParam("id") Long id) { |
| | | return success(electricityTypeService.getElectricityType(id)); |
| | | } |
| | | |
| | | @GetMapping("/electricity-type/page") |
| | | @Operation(summary = "è·å¾ç¨çµç±»åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<PageResult<MesPdElectricityTypeRespVO>> getElectricityTypePage(@Valid MesPdElectricityTypePageReqVO pageReqVO) { |
| | | return success(electricityTypeService.getElectricityTypePage(pageReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/electricity-type/list") |
| | | @Operation(summary = "è·å¾ç¨çµç±»åå表") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<List<MesPdElectricityTypeDO>> getElectricityTypeList() { |
| | | return success(electricityTypeService.getElectricityTypeList()); |
| | | } |
| | |
| | | @GetMapping("/voltage-level/get") |
| | | @Operation(summary = "è·å¾çµåç级") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<MesPdVoltageLevelRespVO> getVoltageLevel(@RequestParam("id") Long id) { |
| | | return success(voltageLevelService.getVoltageLevel(id)); |
| | | } |
| | | |
| | | @GetMapping("/voltage-level/page") |
| | | @Operation(summary = "è·å¾çµåç级å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<PageResult<MesPdVoltageLevelRespVO>> getVoltageLevelPage(@Valid MesPdVoltageLevelPageReqVO pageReqVO) { |
| | | return success(voltageLevelService.getVoltageLevelPage(pageReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/voltage-level/list") |
| | | @Operation(summary = "è·å¾çµåç级å表") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<List<MesPdVoltageLevelDO>> getVoltageLevelList() { |
| | | return success(voltageLevelService.getVoltageLevelList()); |
| | | } |
| | |
| | | @GetMapping("/service-package/get") |
| | | @Operation(summary = "è·å¾æå¡å¥é¤") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<MesPdServicePackageRespVO> getServicePackage(@RequestParam("id") Long id) { |
| | | return success(servicePackageService.getServicePackage(id)); |
| | | } |
| | | |
| | | @GetMapping("/service-package/page") |
| | | @Operation(summary = "è·å¾æå¡å¥é¤å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<PageResult<MesPdServicePackageRespVO>> getServicePackagePage(@Valid MesPdServicePackagePageReqVO pageReqVO) { |
| | | return success(servicePackageService.getServicePackagePage(pageReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/service-package/list") |
| | | @Operation(summary = "è·å¾æå¡å¥é¤å表") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<List<MesPdServicePackageDO>> getServicePackageList() { |
| | | return success(servicePackageService.getServicePackageList()); |
| | | } |
| | |
| | | @GetMapping("/price-standard/get") |
| | | @Operation(summary = "è·å¾å®ä»·æ å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<MesPdPriceStandardRespVO> getPriceStandard(@RequestParam("id") Long id) { |
| | | return success(priceStandardService.getPriceStandard(id)); |
| | | } |
| | | |
| | | @GetMapping("/price-standard/page") |
| | | @Operation(summary = "è·å¾å®ä»·æ åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<PageResult<MesPdPriceStandardRespVO>> getPriceStandardPage(@Valid MesPdPriceStandardPageReqVO pageReqVO) { |
| | | return success(priceStandardService.getPriceStandardPage(pageReqVO)); |
| | | } |
| | |
| | | @GetMapping("/discount-policy/get") |
| | | @Operation(summary = "è·å¾ä¼æ çç¥") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<MesPdDiscountPolicyRespVO> getDiscountPolicy(@RequestParam("id") Long id) { |
| | | return success(discountPolicyService.getDiscountPolicy(id)); |
| | | } |
| | | |
| | | @GetMapping("/discount-policy/page") |
| | | @Operation(summary = "è·å¾ä¼æ çç¥å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<PageResult<MesPdDiscountPolicyRespVO>> getDiscountPolicyPage(@Valid MesPdDiscountPolicyPageReqVO pageReqVO) { |
| | | return success(discountPolicyService.getDiscountPolicyPage(pageReqVO)); |
| | | } |
| | |
| | | @GetMapping("/tiered-price/get") |
| | | @Operation(summary = "è·å¾é¶æ¢¯çµä»·") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<MesPdTieredPriceRespVO> getTieredPrice(@RequestParam("id") Long id) { |
| | | return success(tieredPriceService.getTieredPrice(id)); |
| | | } |
| | | |
| | | @GetMapping("/tiered-price/page") |
| | | @Operation(summary = "è·å¾é¶æ¢¯çµä»·å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<PageResult<MesPdTieredPriceRespVO>> getTieredPricePage(@Valid MesPdTieredPricePageReqVO pageReqVO) { |
| | | return success(tieredPriceService.getTieredPricePage(pageReqVO)); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾æ¢ä½å¯¼çº¿äº§åææ¯åæ°") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-ctc:query')") |
| | | public CommonResult<ProductCtcRespVO> getCtc(@RequestParam("id") Long id) { |
| | | ProductCtcDO ctc = ctcService.getCtc(id); |
| | | if (ctc == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾æ¢ä½å¯¼çº¿äº§åææ¯åæ°å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-ctc:query')") |
| | | public CommonResult<PageResult<ProductCtcRespVO>> getCtcPage(@Valid ProductCtcPageReqVO pageReqVO) { |
| | | PageResult<ProductCtcDO> pageResult = ctcService.getCtcPage(pageReqVO); |
| | | return success(new PageResult<>(buildCtcRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @PostMapping("/calc-angle") |
| | | @Operation(summary = "ç»å
è§åº¦è®¡ç®ï¼å·²ç¥çº¸å¸¦å®½åº¦ï¼") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-ctc:query')") |
| | | public CommonResult<ProductCtcAngleCalcRespVO> calcAngle(@Valid @RequestBody ProductCtcAngleCalcReqVO reqVO) { |
| | | return success(ctcService.calcAngle(reqVO)); |
| | | } |
| | | |
| | | @PostMapping("/calc-resistance") |
| | | @Operation(summary = "ç´æµçµé»è®¡ç®ï¼ææ¸©åº¦æ¢ç®ï¼") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-ctc:query')") |
| | | public CommonResult<ProductCtcResistanceCalcRespVO> calcResistance(@Valid @RequestBody ProductCtcResistanceCalcReqVO reqVO) { |
| | | return success(ctcService.calcResistance(reqVO)); |
| | | } |
| | | |
| | | @PostMapping("/calc-reel") |
| | | @Operation(summary = "çå
·å®¹é计ç®ï¼æ¯çæå¤§é¿åº¦ï¼") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-ctc:query')") |
| | | public CommonResult<ProductCtcReelCalcRespVO> calcReelCapacity(@Valid @RequestBody ProductCtcReelCalcReqVO reqVO) { |
| | | return success(ctcService.calcReelCapacity(reqVO)); |
| | | } |
| | |
| | | @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())); |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | |
| | | @PostMapping("/calc") |
| | | @Operation(summary = "é¶æ¢¯çµä»·æµç®ï¼å档累计 + 伿 çç¥") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<MesPdPriceCalcRespVO> calcPrice(@Valid @RequestBody MesPdPriceCalcReqVO calcReqVO) { |
| | | return success(priceService.calcPrice(calcReqVO)); |
| | | } |
| | |
| | | @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-product:query')") |
| | | public CommonResult<MesPdProductRespVO> getProduct(@RequestParam("id") Long id) { |
| | | return success(productService.getProduct(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾äº§åæ¡£æ¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-product:query')") |
| | | public CommonResult<PageResult<MesPdProductRespVO>> getProductPage(@Valid MesPdProductPageReqVO pageReqVO) { |
| | | return success(productService.getProductPage(pageReqVO)); |
| | | } |
| | |
| | | @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())); |
| | |
| | | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "è·å¾è®¾è®¡é¡¹ç®çå®¡æ ¸äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-project:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(projectService.getProjectApproverUserIds()); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾çå
·è®¡ç®è®°å½") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-ctc-reel:query')") |
| | | public CommonResult<ProductCtcReelRespVO> getReel(@RequestParam("id") Long id) { |
| | | ProductCtcReelDO reel = reelService.getReel(id); |
| | | if (reel == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾çå
·è®¡ç®è®°å½å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-ctc-reel:query')") |
| | | public CommonResult<PageResult<ProductCtcReelRespVO>> getReelPage(@Valid ProductCtcReelPageReqVO pageReqVO) { |
| | | PageResult<ProductCtcReelDO> pageResult = reelService.getReelPage(pageReqVO); |
| | | return success(new PageResult<>(buildReelRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/list-by-ctc") |
| | | @Operation(summary = "è·å¾æå®æ¢ä½å¯¼çº¿äº§åççå
·è®¡ç®è®°å½å表") |
| | | @Parameter(name = "ctcId", description = "æ¢ä½å¯¼çº¿äº§åID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-ctc-reel:query')") |
| | | public CommonResult<List<ProductCtcReelRespVO>> getReelListByCtcId(@RequestParam("ctcId") Long ctcId) { |
| | | List<ProductCtcReelDO> list = reelService.getReelListByCtcId(ctcId); |
| | | return success(buildReelRespVOList(list)); |
| | |
| | | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "è·å¾ææ¯ç¡®è®¤å½çå®¡æ ¸äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-tech-confirm:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(techConfirmService.getTechConfirmApproverUserIds()); |
| | | } |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾äº§åææ¯ç¡®è®¤å½") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-tech-confirm:query')") |
| | | public CommonResult<ProductTechConfirmRespVO> getTechConfirm(@RequestParam("id") Long id) { |
| | | ProductTechConfirmDO techConfirm = techConfirmService.getTechConfirm(id); |
| | | if (techConfirm == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾äº§åææ¯ç¡®è®¤å½å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-tech-confirm:query')") |
| | | public CommonResult<PageResult<ProductTechConfirmRespVO>> getTechConfirmPage(@Valid ProductTechConfirmPageReqVO pageReqVO) { |
| | | PageResult<ProductTechConfirmDO> pageResult = techConfirmService.getTechConfirmPage(pageReqVO); |
| | | return success(new PageResult<>(BeanUtils.toBean(pageResult.getList(), ProductTechConfirmRespVO.class), |
| | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
| | |
| | | |
| | | @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-alternative-plan:query')") |
| | | public CommonResult<MesProAlternativePlanRespVO> getPlan(@RequestParam("id") Long id) { |
| | | MesProAlternativePlanDO plan = planService.getPlan(id); |
| | | return success(plan != null ? BeanUtils.toBean(plan, MesProAlternativePlanRespVO.class) : null); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ä½ä¸æ¿ä»£æ¹æ¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-alternative-plan:query')") |
| | | public CommonResult<PageResult<MesProAlternativePlanRespVO>> getPlanPage(@Valid MesProAlternativePlanPageReqVO pageReqVO) { |
| | | PageResult<MesProAlternativePlanDO> pageResult = planService.getPlanPage(pageReqVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |
| | |
| | | @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-emergency-plan:query')") |
| | | public CommonResult<MesProEmergencyPlanRespVO> getPlan(@RequestParam("id") Long id) { |
| | | MesProEmergencyPlanDO plan = planService.getPlan(id); |
| | | return success(plan != null ? BeanUtils.toBean(plan, MesProEmergencyPlanRespVO.class) : null); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾åºæ¥å¤ç½®é¢æ¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-emergency-plan:query')") |
| | | public CommonResult<PageResult<MesProEmergencyPlanRespVO>> getPlanPage(@Valid MesProEmergencyPlanPageReqVO pageReqVO) { |
| | | PageResult<MesProEmergencyPlanDO> pageResult = planService.getPlanPage(pageReqVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |
| | |
| | | @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("/summary") |
| | | @Operation(summary = "ä½ä¸æææ±æ»ç»è®¡", description = "ææ¶é´èå´æ±æ»å·²æ¹åæ¥å·¥æ°é/åæ ¼æ°éï¼æå·¥åç±»åãæ¥æåç»") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-feedback:query')") |
| | | public CommonResult<MesProFeedbackSummaryRespVO> getFeedbackSummary( |
| | | @RequestParam(value = "beginDate", required = false) @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate beginDate, |
| | | @RequestParam(value = "endDate", required = false) @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate endDate, |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾çµåè¿ç»´æ¥å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-maintenance-calendar:query')") |
| | | public CommonResult<MesProMaintenanceCalendarRespVO> getCalendar(@RequestParam("id") Long id) { |
| | | MesProMaintenanceCalendarDO calendar = calendarService.getCalendar(id); |
| | | return success(calendar != null ? BeanUtils.toBean(calendar, MesProMaintenanceCalendarRespVO.class) : null); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾çµåè¿ç»´æ¥åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-maintenance-calendar:query')") |
| | | public CommonResult<PageResult<MesProMaintenanceCalendarRespVO>> getCalendarPage(@Valid MesProMaintenanceCalendarPageReqVO pageReqVO) { |
| | | PageResult<MesProMaintenanceCalendarDO> pageResult = calendarService.getCalendarPage(pageReqVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾çµåä½ä¸è®¡å") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-maintenance-plan:query')") |
| | | public CommonResult<MesProMaintenancePlanRespVO> getPlan(@RequestParam("id") Long id) { |
| | | MesProMaintenancePlanDO plan = planService.getPlan(id); |
| | | if (plan == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾çµåä½ä¸è®¡åå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-maintenance-plan:query')") |
| | | public CommonResult<PageResult<MesProMaintenancePlanRespVO>> getPlanPage(@Valid MesProMaintenancePlanPageReqVO pageReqVO) { |
| | | PageResult<MesProMaintenancePlanDO> pageResult = planService.getPlanPage(pageReqVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |
| | |
| | | @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("/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) { |
| | | PageResult<MesProTaskDO> pageResult = taskService.getPendingFeedbackPage(pageReqVO); |
| | | List<MesProTaskRespVO> respVOList = buildTaskRespVOList(pageResult.getList()); |
| | |
| | | |
| | | @GetMapping("/pending-count-by-workstation") |
| | | @Operation(summary = "æå·¥ä½ç«è·å¾å¾
æ¥å·¥ä»»å¡æ°", description = "å·¥ä½å°éæ©å·¥ä½ç«å¡çå±ç¤ºï¼å£å¾åå¾
æ¥å·¥å°è´¦") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-task:query')") |
| | | public CommonResult<Map<Long, Long>> getPendingFeedbackCountByWorkstation() { |
| | | return success(taskService.getPendingFeedbackCountByWorkstation()); |
| | | } |
| | | |
| | | @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("/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); |
| | |
| | | return result; |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | @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); |
| | | return success(BeanUtils.toBean(pageResult, 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())); |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @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())); |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @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("/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())); |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @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("/get") |
| | | @Operation(summary = "è·å¾å§å¤æ£æµ/è¯éªå") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-outsource-test:query')") |
| | | public CommonResult<MesQcOutsourceTestRespVO> getTest(@RequestParam("id") Long id) { |
| | | MesQcOutsourceTestDO test = testService.getTest(id); |
| | | if (test == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å§å¤æ£æµ/è¯éªåå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-outsource-test:query')") |
| | | public CommonResult<PageResult<MesQcOutsourceTestRespVO>> getTestPage(@Valid MesQcOutsourceTestPageReqVO pageReqVO) { |
| | | PageResult<MesQcOutsourceTestDO> pageResult = testService.getTestPage(pageReqVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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())); |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @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("/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) { |
| | |
| | | @Parameter(name = "bizType", description = "ä¸å¡ç±»å", required = true, example = "1") |
| | | @Parameter(name = "bizCode", description = "ä¸å¡ç¼ç ", required = true, example = "WO202403070001") |
| | | @Parameter(name = "bizName", description = "ä¸å¡åç§°", required = false, example = "ä¸å·è½¦é´") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-barcode:query')") |
| | | public CommonResult<String> generateBarcodeContent(@RequestParam("bizType") @NotNull(message = "ä¸å¡ç±»åä¸è½ä¸ºç©º") Integer bizType, |
| | | @RequestParam("bizCode") @NotBlank(message = "ä¸å¡ç¼ç ä¸è½ä¸ºç©º") String bizCode, |
| | | @RequestParam(value = "bizName", required = false) String bizName) { |
| | |
| | | @Parameter(name = "format", description = "æ¡ç æ ¼å¼ï¼1 äºç»´ç / 2 EAN13 / 3 CODE39 / 4 UPC-A / 空é»è®¤ CODE128ï¼", required = false) |
| | | @Parameter(name = "width", description = "å¾ç宽度", required = false) |
| | | @Parameter(name = "height", description = "å¾çé«åº¦", required = false) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-barcode:query')") |
| | | public CommonResult<String> renderBarcodeImage(@RequestParam("content") @NotBlank(message = "æ¡ç å
容ä¸è½ä¸ºç©º") String content, |
| | | @RequestParam(value = "format", required = false) Integer format, |
| | | @RequestParam(value = "width", required = false) Integer width, |
| | |
| | | @PostMapping("/parse") |
| | | @Operation(summary = "è§£ææ¡ç å
容", description = "ææ¡ç å
容精确å½ä¸ææ¨¡æ¿åè§£ï¼è¿åä¸å¡å段") |
| | | @Parameter(name = "content", description = "æ«æå°çæ¡ç å
容", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-barcode:query')") |
| | | public CommonResult<Map<String, Object>> parseBarcodeContent(@RequestParam("content") @NotBlank(message = "æ¡ç å
容ä¸è½ä¸ºç©º") String content) { |
| | | return success(barcodeService.parseBarcodeContent(content)); |
| | | } |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @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("/get") |
| | | @Operation(summary = "è·å¾è®¾å¤å
¥åºå") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm:equipment-receipt:query')") |
| | | public CommonResult<MesWmEquipmentReceiptRespVO> get(@RequestParam("id") Long id) { |
| | | return success(BeanUtils.toBean(equipmentReceiptService.getEquipmentReceipt(id), MesWmEquipmentReceiptRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è®¾å¤å
¥åºåå页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm:equipment-receipt:query')") |
| | | public CommonResult<PageResult<MesWmEquipmentReceiptRespVO>> page(@Valid MesWmEquipmentReceiptPageReqVO reqVO) { |
| | | return success(BeanUtils.toBean(equipmentReceiptService.getEquipmentReceiptPage(reqVO), MesWmEquipmentReceiptRespVO.class)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "è·å¾è®¾å¤å
¥åºåçå®¡æ ¸äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm:equipment-receipt:query')") |
| | | public CommonResult<Set<Long>> approverIds() { |
| | | return success(equipmentReceiptService.getEquipmentReceiptApproverUserIds()); |
| | | } |
| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "è·å¾è®¾å¤å
¥åºåè¡") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm:equipment-receipt:query')") |
| | | public CommonResult<MesWmEquipmentReceiptLineRespVO> get(@RequestParam("id") Long id) { |
| | | MesWmEquipmentReceiptLineDO line = lineService.getEquipmentReceiptLine(id); |
| | | return success(buildResp(Collections.singletonList(line)).get(0)); |
| | |
| | | |
| | | @GetMapping("/list-by-receipt-id") |
| | | @Operation(summary = "è·å¾è®¾å¤å
¥åºåè¡å表") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm:equipment-receipt:query')") |
| | | public CommonResult<List<MesWmEquipmentReceiptLineRespVO>> listByReceiptId(@RequestParam("receiptId") Long receiptId) { |
| | | return success(buildResp(lineService.getEquipmentReceiptLineListByReceiptId(receiptId))); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾è®¾å¤å
¥åºåè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm:equipment-receipt:query')") |
| | | public CommonResult<PageResult<MesWmEquipmentReceiptLineRespVO>> page(@Valid MesWmEquipmentReceiptLinePageReqVO reqVO) { |
| | | PageResult<MesWmEquipmentReceiptLineDO> result = lineService.getEquipmentReceiptLinePage(reqVO); |
| | | return success(new PageResult<>(buildResp(result.getList()), result.getTotal())); |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @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("/approver-ids") |
| | | @Operation(summary = "è·å¾éè´å
¥åºåçå®¡æ ¸äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-item-receipt:query')") |
| | | public CommonResult<Set<Long>> approverIds() { |
| | | return success(itemReceiptService.getItemReceiptApproverUserIds()); |
| | | } |
| | |
| | | @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("/approver-ids") |
| | | @Operation(summary = "è·å¾æé¡¹åºåºåçå®¡æ ¸äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-misc-issue:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(miscIssueService.getMiscIssueApproverUserIds()); |
| | | } |
| | |
| | | @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("/approver-ids") |
| | | @Operation(summary = "è·å¾æé¡¹å
¥åºåçå®¡æ ¸äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm:misc-receipt:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(miscReceiptService.getMiscReceiptApproverUserIds()); |
| | | } |
| | |
| | | @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); |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾ç产å
¥åºåè¡å页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-produce: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)); |
| | | } |
| | |
| | | vo.setClientName(customer.getName()))); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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("/approver-ids") |
| | | @Operation(summary = "è·å¾ä¾åºåéè´§åçå®¡æ ¸äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-return-vendor:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(returnVendorService.getReturnVendorApproverUserIds()); |
| | | } |
| | |
| | | @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("/detail") |
| | | @Operation(summary = "è·å¾ SN åä»¶æç»", description = "è¿åç¶æãå¨åºä½ç½®åæè¿ä¸ç¬åºåäºå¡") |
| | | @Parameter(name = "code", description = "SN ç ", required = true, example = "SN20260305000001") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-sn:query')") |
| | | public CommonResult<MesWmSnDetailRespVO> getSnDetail(@RequestParam("code") @NotBlank(message = "SN ç ä¸è½ä¸ºç©º") String code) { |
| | | return success(snService.getSnDetail(code)); |
| | | } |
| | | |
| | | @GetMapping("/in-stock-page") |
| | | @Operation(summary = "SN ç ç¶æå页", description = "æç¶æ/ç©æ/åºä½ç维度å页æ¥è¯¢ SNï¼æ¯æçç¹æ ¸å¯¹ï¼") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-sn:query')") |
| | | public CommonResult<PageResult<MesWmSnRespVO>> getSnInStockPage(@Valid MesWmSnInStockPageReqVO reqVO) { |
| | | PageResult<MesWmSnRespVO> pageResult = BeanUtils.toBean(snService.getSnInStockPage(reqVO), MesWmSnRespVO.class); |
| | | buildSnItemVO(pageResult.getList()); |
| | |
| | | @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("/approver-ids") |
| | | @Operation(summary = "è·å¾çç¹ç»æå®¡æ¹çå®¡æ ¸äººç¼å·éåï¼ä¾åç«¯å¤ææ¯å¦å±ç¤ºå®¡æ ¸æé®") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-task:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(stockTakingTaskService.getStockTakingTaskApproverUserIds()); |
| | | } |
| | |
| | | @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-import-template") |
| | | @Operation(summary = "ä¸è½½çç¹å¯¼å
¥æ¨¡æ¿") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-task:query')") |
| | | public void getImportTemplate(HttpServletResponse response) throws IOException { |
| | | ExcelUtils.write(response, "çç¹å®çæ°å¯¼å
¥æ¨¡æ¿.xls", "å®çæ°", |
| | | MesWmStockTakingTaskLineImportExcelVO.class, Collections.emptyList()); |
| | |
| | | @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); |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @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) { |
| | | return success(approvalService.getAvailableProcessList(warehouseId, bizType)); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | @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("/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); |
| | |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @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("/get") |
| | | @Operation(summary = "è·å¾å®¡æ¹é
ç½®") |
| | | @Parameter(name = "id", description = "ç¼å·", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('system:approval-config:query')") |
| | | public CommonResult<ApprovalConfigRespVO> getApprovalConfig(@RequestParam("id") Long id) { |
| | | ApprovalConfigDO config = approvalConfigService.getApprovalConfig(id); |
| | | if (config == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "è·å¾å®¡æ¹é
ç½®å页") |
| | | @PreAuthorize("@ss.hasPermission('system:approval-config:query')") |
| | | public CommonResult<PageResult<ApprovalConfigRespVO>> getApprovalConfigPage( |
| | | @Valid ApprovalConfigPageReqVO pageReqVO) { |
| | | return success(approvalConfigService.getApprovalConfigPage(pageReqVO)); |
| | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "è·å¾æå®ä¸å¡ç±»åç审æ¹äººç¼å·éå") |
| | | @Parameter(name = "bizType", description = "ä¸å¡ç±»åç¼ç ", required = true, example = "purchase_plan_approve") |
| | | @PreAuthorize("@ss.hasPermission('system:approval-config:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds(@RequestParam("bizType") String bizType) { |
| | | return success(approvalConfigService.getApproverUserIds(bizType)); |
| | | } |
| | |
| | | @GetMapping("/is-approver") |
| | | @Operation(summary = "夿å½åç»å½ç¨æ·æ¯å¦ä¸ºæå®ä¸å¡ç±»åç审æ¹äºº") |
| | | @Parameter(name = "bizType", description = "ä¸å¡ç±»åç¼ç ", required = true, example = "purchase_plan_approve") |
| | | @PreAuthorize("@ss.hasPermission('system:approval-config:query')") |
| | | public CommonResult<Boolean> isApprover(@RequestParam("bizType") String bizType) { |
| | | Set<Long> approverIds = approvalConfigService.getApproverUserIds(bizType); |
| | | return success(approverIds.contains(getLoginUserId())); |
| | |
| | | |
| | | @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); |
| | | return success(BeanUtils.toBean(operateLog, OperateLogRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "æ¥çæä½æ¥å¿å页å表") |
| | | @PreAuthorize("@ss.hasPermission('system:operate-log:query')") |
| | | @TransMethodResult |
| | | public CommonResult<PageResult<OperateLogRespVO>> pageOperateLog(@Valid OperateLogPageReqVO pageReqVO) { |
| | | PageResult<OperateLogDO> pageResult = operateLogService.getOperateLogPage(pageReqVO); |
| | |
| | | @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)); |
| | |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | |
| | | |
| | | @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)); |
| | |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @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("/page") |
| | | @Operation(summary = "è·å¾è®¿é®ä»¤çå页", description = "åªè¿åæææå
ç") |
| | | @PreAuthorize("@ss.hasPermission('system:oauth2-token:page')") |
| | | public CommonResult<PageResult<OAuth2AccessTokenRespVO>> getAccessTokenPage(@Valid OAuth2AccessTokenPageReqVO reqVO) { |
| | | PageResult<OAuth2AccessTokenDO> pageResult = oauth2TokenService.getAccessTokenPage(reqVO); |
| | | return success(BeanUtils.toBean(pageResult, OAuth2AccessTokenRespVO.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)); |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @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) { |
| | | return success(storageAttachmentService.listAttachments(reqVO)); |
| | |
| | | @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) { |