package com.eksad.masterdata.controller; import com.eksad.masterdata.common.dto.responseDto.ResponsePickSlipGetDTO; import com.eksad.masterdata.service.PickSlipService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; @RestController @Slf4j public class PickSlipRestController { @Autowired private PickSlipService pickSlipService; @RequestMapping(value = "/get.pickslip.by.salesorderid/{salesOrderID}/{ahassID}", method = RequestMethod.GET, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity<ResponsePickSlipGetDTO> getPickSlipBySalesOrderIDAndAhassID( @PathVariable("salesOrderID") String salesOrderID, @PathVariable("ahassID") String ahassID) { return pickSlipService.getPickSlipBySalesOrderID(salesOrderID, ahassID); } }