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

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);
}
}