Files
fad-l3/klp-aps/src/main/java/com/klp/aps/controller/ApsGanttController.java
wangyu e793b19c41 refactor: drop klp_pocketfactory/cgldb/double_rack and related code
- Remove klp-pocket module entirely (acid/galvanize1/common)
- Remove klp-da OEE files (depended on pocket)
- Remove klp-wms Dr* files (double-rack)
- Strip double-rack code from WmsCoilPendingActionServiceImpl
- Remove acid/galvanize1/double-rack datasources from prod/dev yml
- Remove sql-server-api, da.oee, oee.acid config
2026-06-08 15:42:29 +08:00

46 lines
1.4 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.fad.aps.controller;
import com.fad.common.core.controller.BaseController;
import com.fad.common.core.domain.R;
import com.fad.aps.domain.dto.ApsGanttQueryReq;
import com.fad.aps.domain.vo.ApsFactoryCalendarRespVo;
import com.fad.aps.domain.vo.ApsGanttItemVo;
import com.fad.aps.service.ApsGanttService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* APS 甘特图查询MVP
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/aps")
public class ApsGanttController extends BaseController {
private final ApsGanttService apsGanttService;
/**
* GET /aps/gantt
* 参数lineId/queryStart/queryEnd/planId/orderId
*/
@GetMapping("/gantt")
public R<List<ApsGanttItemVo>> gantt(@Validated ApsGanttQueryReq req) {
return R.ok(apsGanttService.selectGanttItems(req));
}
/**
* 工厂日历聚合接口(减轻前端计算压力)
*/
@GetMapping("/factory-calendar")
public R<ApsFactoryCalendarRespVo> factoryCalendar(@Validated ApsGanttQueryReq req) {
return R.ok(apsGanttService.queryFactoryCalendar(req));
}
}