|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.doumee.api.BaseController; | 
|---|
|  |  |  | import com.doumee.config.annotation.LoginNoRequired; | 
|---|
|  |  |  | import com.doumee.core.tms.model.request.TmsLockStatusQueryRequest; | 
|---|
|  |  |  | import com.doumee.core.tms.model.request.TmsOrderInfoRequest; | 
|---|
|  |  |  | import com.doumee.core.tms.model.request.TmsOrderListRequest; | 
|---|
|  |  |  | import com.doumee.core.tms.model.response.TmsBaseResponse; | 
|---|
|  |  |  | import com.doumee.core.tms.model.response.TmsLockStatusQueryResponse; | 
|---|
|  |  |  | import com.doumee.core.tms.model.response.TmsOrderInfoResponse; | 
|---|
|  |  |  | import com.doumee.core.tms.model.response.TmsOrderListResponse; | 
|---|
|  |  |  | import com.doumee.core.utils.Constants; | 
|---|
|  |  |  | import com.doumee.core.wms.model.response.WmsBaseResponse; | 
|---|
|  |  |  | import com.doumee.service.business.WmsService; | 
|---|
|  |  |  | import com.doumee.service.business.third.TmsService; | 
|---|
|  |  |  | import com.doumee.service.business.third.WmsService; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | import lombok.extern.slf4j.Slf4j; | 
|---|
|  |  |  | import org.apache.commons.lang3.StringUtils; | 
|---|
|  |  |  | 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 javax.servlet.http.HttpServletRequest; | 
|---|
|  |  |  | import javax.servlet.http.HttpServletResponse; | 
|---|
|  |  |  | import java.io.BufferedReader; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @author 江蹄蹄 | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private WmsService wmsService; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private TmsService tmsService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("【WMS】推送入库单通知任务") | 
|---|
|  |  |  | @PostMapping("/push/inboundNotice") | 
|---|
|  |  |  | 
|---|
|  |  |  | doPringParam(request,"【WMS】推送出入库作业完成通知任务"); | 
|---|
|  |  |  | return new WmsBaseResponse(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("【TMS】电子锁上锁时间接口") | 
|---|
|  |  |  | @LoginNoRequired | 
|---|
|  |  |  | @PostMapping("/tms/lockStatusQuery") | 
|---|
|  |  |  | public TmsBaseResponse<List<TmsLockStatusQueryResponse>>  lockStatusQuery(@RequestBody  TmsLockStatusQueryRequest request )   { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private void doPringParam(HttpServletRequest request,String name) { | 
|---|
|  |  |  | return  tmsService.lockStatusQuery(request); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("【TMS】合同列表接口") | 
|---|
|  |  |  | @LoginNoRequired | 
|---|
|  |  |  | @PostMapping("/tms/orderList") | 
|---|
|  |  |  | public TmsBaseResponse<List<TmsOrderListResponse>> orderList(@RequestBody TmsOrderListRequest request )   { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return  tmsService.orderList(request); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("【TMS】合同详情接口") | 
|---|
|  |  |  | @LoginNoRequired | 
|---|
|  |  |  | @PostMapping("/tms/orderInfo") | 
|---|
|  |  |  | public TmsBaseResponse<TmsOrderInfoResponse> ordreInfo(@RequestBody TmsOrderInfoRequest request )   { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return  tmsService.orderInfo(request); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static void doPringParam(HttpServletRequest request,String name) { | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | StringBuilder data =new StringBuilder(); | 
|---|
|  |  |  | String line; | 
|---|