package com.web.kanban.controller;
|
|
import com.app.base.control.WebController;
|
import com.app.base.data.ApiResponseResult;
|
import com.web.kanban.service.GltKanbanService;
|
import com.web.kanban.service.HgKanbanService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.data.domain.Sort;
|
import org.springframework.stereotype.Controller;
|
import org.springframework.web.bind.annotation.*;
|
|
@Api(description = "格林泰看板")
|
@CrossOrigin
|
@ControllerAdvice
|
//@RestController
|
@Controller
|
@RequestMapping(value = "/gltReport")
|
public class GltKanbanController extends WebController {
|
|
@Autowired
|
private GltKanbanService gltKanbanService;
|
|
|
|
@ApiOperation(value = "IQC待检看板 ", notes = "获取IQC待检看板 ", hidden = true)
|
@RequestMapping(value = "/getKBIQC", method = RequestMethod.GET)
|
@ResponseBody
|
public ApiResponseResult getKBIQC() {
|
try {
|
Sort sort = Sort.unsorted();
|
ApiResponseResult result = gltKanbanService.getPRC_KB_IQC(super.getPageRequest(sort));
|
logger.debug("获取IQC待检看板结果报表=getDXTestReport:" + result);
|
return result;
|
} catch (Exception e) {
|
e.printStackTrace();
|
logger.error("获取IQC待检看板结果报表失败!", e);
|
return ApiResponseResult.failure("获取IQC待检看板结果报表失败!");
|
}
|
}
|
|
|
@ApiOperation(value = "仓库看板", notes = "仓库看板", hidden = true)
|
@RequestMapping(value = "/getWarehouse", method = RequestMethod.GET)
|
@ResponseBody
|
public ApiResponseResult getWarehouse() {
|
try {
|
Sort sort = Sort.unsorted();
|
ApiResponseResult result = gltKanbanService.getWarehouse(super.getPageRequest(sort));
|
logger.debug("获取仓库看板:" + result);
|
return result;
|
} catch (Exception e) {
|
e.printStackTrace();
|
logger.error("获取仓库看板!", e);
|
return ApiResponseResult.failure("获取仓库看板!");
|
}
|
}
|
|
|
|
}
|