You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

2 weeks ago
  1. package com.gaotao.modules.api.controller;
  2. import com.gaotao.common.utils.R;
  3. import com.gaotao.modules.handlingunit.entity.HandlingUnit;
  4. import com.gaotao.modules.handlingunit.entity.dto.*;
  5. import com.gaotao.modules.handlingunit.service.HandlingUnitService;
  6. import com.gaotao.modules.sys.controller.AbstractController;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.web.bind.annotation.PostMapping;
  9. import org.springframework.web.bind.annotation.RequestBody;
  10. import org.springframework.web.bind.annotation.RequestMapping;
  11. import org.springframework.web.bind.annotation.RestController;
  12. import java.util.List;
  13. @RequestMapping("/api/handlingunit")
  14. @RestController
  15. public class HandlingUnitApiController extends AbstractController {
  16. @Autowired
  17. private HandlingUnitService handlingUnitService;
  18. /**
  19. * 查询处理单元详情
  20. */
  21. @PostMapping("getHandlingUnitDetail")
  22. public R getHandlingUnitDetail(@RequestBody HandlingUnitDto dto) {
  23. HandlingUnit detail = handlingUnitService.getHandlingUnit(dto.getSite(), dto.getUnitId());
  24. return R.ok().put("data", detail);
  25. }
  26. }