|
|
|
@ -0,0 +1,33 @@ |
|
|
|
package com.gaotao.modules.api.controller; |
|
|
|
|
|
|
|
import com.gaotao.common.utils.R; |
|
|
|
import com.gaotao.modules.handlingunit.entity.HandlingUnit; |
|
|
|
import com.gaotao.modules.handlingunit.entity.dto.*; |
|
|
|
import com.gaotao.modules.handlingunit.service.HandlingUnitService; |
|
|
|
import com.gaotao.modules.sys.controller.AbstractController; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@RequestMapping("/api/handlingunit") |
|
|
|
@RestController |
|
|
|
public class HandlingUnitApiController extends AbstractController { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private HandlingUnitService handlingUnitService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询处理单元详情 |
|
|
|
*/ |
|
|
|
@PostMapping("getHandlingUnitDetail") |
|
|
|
public R getHandlingUnitDetail(@RequestBody HandlingUnitDto dto) { |
|
|
|
HandlingUnit detail = handlingUnitService.getHandlingUnit(dto.getSite(), dto.getUnitId()); |
|
|
|
return R.ok().put("data", detail); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |