package com.steerinfo.dil.feign; import com.steerinfo.framework.controller.RESTfulResult; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.*; import java.util.List; import java.util.Map; /** * @ author :TXF * @ time :2021/9/28 9:30 */ @FeignClient(name = "dil-tms-truck-dev", url = "${openfeign.TmsTruckFeign.url}") public interface TmsTruckFeign { /* TmstruckLoadResultController */ @PostMapping("api/v1/truckTms/tmstruckloadresults/addLoadResultForConverted") Map addLoadResultForConverted(@RequestBody(required=false) Map map); @PostMapping("api/v1/truckTms/tmstruckloadresults/getSaleOrderOnQueue") public Map getSaleOrderOnQueue(@RequestBody(required=false) Map mapValue, @RequestParam("apiId") Integer apiId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize, @RequestParam("con") String con); @ApiOperation(value="查询订单下的物资") @GetMapping("api/v1/truckTms/dropDown/getOrderMaterial/{orderId}") public Map getOrderMaterial(@PathVariable("orderId") Integer orderId); @ApiOperation(value="查询仓库下所有月台") @GetMapping("api/v1/truckTms/dropDown/getPlatformIdByWarehouse/{warehouseId}") public Map getPlatformIdByWarehouse(@PathVariable("warehouseId") Integer warehouseId); @ApiOperation(value="修改装车点和装车顺序:销售钢材专用 ") @PostMapping("api/v1/truckTms/tmstruckloadresults/updateLoadingIdAndLoadSq") public Map updateLoadingIdAndLoadSq(@RequestBody(required=false) Map map); @PostMapping("api/v1/truckTms/tmstruckloadresults/getAllLoadResult") public Map getAllLoadResult(@RequestBody(required=false) Map mapValue, @RequestParam("apiId") Integer apiId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize, @RequestParam("status") Integer status , @RequestParam("orderType") Integer orderType, @RequestParam("con") String con); @PostMapping("api/v1/truckTms/tmstruckloadresults/selectLoadResultForConverted") public Map selectLoadResultForConverted(@RequestBody(required=false) Map mapValue, @RequestParam("apiId") Integer apiId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize); @PostMapping("api/v1/truckTms/tmstruckloadresults/getLoadResultByResultId/{resultId}") public Map getLoadResultByResultId(@PathVariable("resultId") Integer resultId); @PostMapping("api/v1/truckTms/tmstruckloadresults/addUnLoadResultForconverted") public Map addUnLoadResultForconverted(@RequestBody(required = false) Map map); @PostMapping("api/v1/truckTms/tmstruckloadresults/addCGLoadResult") public Map addCGLoadResult(@RequestBody(required=false) Map mapValue); @PostMapping("api/v1/truckTms/tmstruckloadresults/addSaleLoadResult") public Map addSaleLoadResult(@RequestBody(required=false) Map map); @PostMapping("api/v1/truckTms/tmstruckloadresults/addSale2LoadResult") public Map addSale2LoadResult(@RequestBody(required=false) Map map); @PostMapping("api/v1/truckTms/tmstruckloadresults/updateLoadResult") public Map updateLoadResult(@RequestBody(required=false) Map mapValue); @PostMapping("api/v1/truckTms/tmstruckloadresults/getLoadResultById/{resultId}") public Map getLoadResultById(@PathVariable("resultId") Integer resultId); @PostMapping("api/v1/truckTms/tmstruckloadresults/deleteLoadResult/{resultId}") public Map deleteLoadResult(@PathVariable("resultId")Integer resultId); /* TmstruckEnfactoryResultController */ @ApiOperation(value="查询所有的进厂实绩") @ApiImplicitParams({ @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"), @ApiImplicitParam(name = "apiId(99)", value = "动态表头", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"), @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"), @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"), }) @PostMapping("api/v1/truckTms/tmstruckenfactoryresults/getAllEnFactoryResult") public Map getAllEnFactoryResult(@RequestBody(required=false) Map mapValue, @RequestParam("apiId") Integer apiId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize, @RequestParam("orderType")Integer orderType, @RequestParam("con") String con ); @GetMapping("api/v1/truckTms/tmstruckenfactoryresults/getMaterial") public Map getMaterial(@RequestParam("orderId") Integer orderId); @ApiOperation(value="通过采集系统传来的数据新增进厂作业实绩") @ApiImplicitParams({ @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"), }) @PostMapping("api/v1/truckTms/tmstruckenfactoryresults/addEnFactoryResult") public Map addEnFactoryResult(@RequestBody(required=false) Map mapValue); @ApiOperation(value="PDA扫描更新进厂作业实绩") @ApiImplicitParams({ @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"), }) @PostMapping("api/v1/truckTms/tmstruckenfactoryresults/enFactoryResultByPDA") public Map enFactoryResultByPDA(@RequestBody(required=false) Map mapValue); /* TmstruckWeightResultController */ @PostMapping("api/v1/truckTms/tmstruckweightresults/getAllJiMaoResult") public Map getAllJiMaoResult(@RequestBody(required=false) Map mapValue, @RequestParam("apiId") Integer apiId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize, @RequestParam("orderType") Integer orderType, @RequestParam("con") String con ); @PostMapping("api/v1/truckTms/tmstruckweightresults/getAllJiPiResult") public Map getAllJiPiResult(@RequestBody(required=false) Map mapValue, @RequestParam("apiId") Integer apiId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize, @RequestParam("orderType") Integer orderType, @RequestParam("con") String con); @PostMapping("api/v1/truckTms/tmstruckweightresults/addJiMaoResult") public Map addJiMaoResult(@RequestBody Map mapValue); @PostMapping("api/v1/truckTms/tmstruckweightresults/addJiPiResult") public Map addJiPiResult(@RequestBody Map mapValue); /* TmstruckUnloadResultController */ @PostMapping("api/v1/truckTms/tmstruckunloadresult/getUnloadResult") public Map getUnloadResult(@RequestBody(required=false) Map mapValue, @RequestParam("apiId") Integer apiId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize, @RequestParam("orderType") Integer orderType, @RequestParam("con") String con ); @PostMapping("api/v1/truckTms/tmstruckunloadresult/addUnloadResult") public Map addUnloadResult(@RequestBody Map mapValue); @PostMapping("api/v1/truckTms/tmstruckunloadresult/updateUnloadResult") public Map updateUnloadResult(@RequestBody Map mapValue); /* TmstruckReceiptResultController */ @PostMapping("api/v1/truckTms/tmstruckreceiptresults/getReceiveResult") public Map getReceiveResult(@RequestBody(required=false) Map mapValue, @RequestParam("apiId") Integer apiId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize, @RequestParam("orderType") Integer orderType, @RequestParam("con") String con); /* TmstruckLeaveFactoryResultController */ @PostMapping("api/v1/truckTms/tmstruckleavefactoryresults/getLeaveFactoryResult") public Map getLeaveFactoryResult(@RequestBody(required=false) Map mapValue, @RequestParam("apiId") Integer apiId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize, @RequestParam("orderType") Integer orderType, @RequestParam("con") String con ); @PostMapping("api/v1/truckTms/tmstruckleavefactoryresults/addLeaveFactoryResult") public Map addLeaveFactoryResult(@RequestBody(required=false) Map mapValue); /* TmstruckMeasureCommissionController */ @PostMapping("api/v1/truckTms/tmstruckmeasurecommissions/getAllMeasureCommission/{type}") public Map getAllMeasureCommission(@PathVariable("type") Integer type); /* TmstruckQualityResultController */ @PostMapping("api/v1/truckTms/tmstruckqualityresults/getQualityResult") public Map getQualityResult(@RequestBody(required=false) Map mapValue, @RequestParam("apiId") Integer apiId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize, @RequestParam("con")String con); @PostMapping("api/v1/truckTms/tmstruckqualityresults/getQualityResultById/{resultId}") public Map getQualityResultById(@PathVariable("resultId") Integer resultId); @PostMapping("api/v1/truckTms/tmstruckqualityresults/updateQualityResult") public Map updateQualityResult(@RequestBody(required=false) Map mapValue); @PostMapping("api/v1/truckTms/tmstruckqualityresults/selectQualityResultForConverted") Map selectQualityResultForConverted(@RequestBody(required=false) Map mapValue, @RequestParam("apiId") Integer apiId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize); /** * TmstruckTotalResult */ @PostMapping("api/v1/truckTms/tmstrucktotalresults/selectCountList") Map selectCountList(@RequestBody(required=false) Map mapValue, @RequestParam("apiId") Integer apiId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize); /** * 下拉框 */ @GetMapping("api/v1/truckTms/dropDown/getDilBatch") Map getDilBatch(); @GetMapping("api/v1/truckTms/dropDown/getCarrier") Map getCarrier(); @GetMapping("api/v1/truckTms/dropDown/getLine") Map getLine(); @GetMapping("api/v1/truckTms/dropDown/getWarehouse") Map getWarehouse(); @GetMapping("api/v1/truckTms/dropDown/getGatepost") Map getGatepost(); @GetMapping("api/v1/truckTms/dropDown/getAPO") Map getAPO(); @GetMapping("api/v1/truckTms/dropDown/getFuCapacityId") Map getFuCapacityId(); @GetMapping("api/v1/truckTms/dropDown/getPort") Map getPort(); @GetMapping("api/v1/truckTms/dropDown/getFuMaterial/{type}") Map getFuMaterial(@PathVariable("type")Integer type); @GetMapping("api/v1/truckTms/dropDown/getUnloadPoint/{type}") Map getUnloadPoint(@PathVariable("type") Integer type); /** * 包月总实绩 */ @PostMapping("api/v1/truckTms/tmstrucktotalresults/getTmstruckMonthResult") Map getTmstruckMonthResult(@RequestBody(required=false) Map mapValue, @RequestParam("apiId") Integer apiId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize); /** *通过运输订单判断下一步是否需要计量,更新汽车衡到计量实绩中 */ @PostMapping("api/v1/truckTms/tmstruckweightresults/{orderId}") Map isNextNeedJl(@PathVariable("orderId") Integer orderId); /** *查询短信实绩 */ @PostMapping("api/v1/truckTms/tmstrucksmsrusults/getSmsResult") Map getSmsResult(@RequestBody(required=false) Map mapValue, @RequestParam("apiId") Integer apiId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize, @RequestParam("con") String con); @ApiOperation(value="APP查询进厂实绩") @PostMapping("api/v1/truckTms/tmstruckenfactoryresults/getEnfactoryResultList") Map getEnfactoryResultList(); @ApiOperation(value="APP通过运输订单id查询进厂实绩") @PostMapping("api/v1/truckTms/tmstruckenfactoryresults/getEnfactoryMessageByOrderId") Map getEnfactoryMessageByOrderId(@RequestParam String orderNumber); }