|  |  | 
 |  |  |  | 
 |  |  | import  com.doumee.api.BaseController; | 
 |  |  | import com.doumee.config.annotation.LoginNoRequired; | 
 |  |  | import com.doumee.core.model.ApiResponse; | 
 |  |  | import com.doumee.core.tms.model.request.TmsOrderInfoRequest; | 
 |  |  | import com.doumee.core.tms.model.request.TmsOrderListPagerRequest; | 
 |  |  | import com.doumee.core.tms.model.request.TmsOrderListParamRequest; | 
 |  |  | import com.doumee.core.tms.model.request.TmsOrderListRequest; | 
 |  |  | import com.doumee.core.tms.model.response.TmsBasePageResponse; | 
 |  |  | import com.doumee.core.tms.model.response.TmsOrderInfoResponse; | 
 |  |  | import com.doumee.core.tms.model.response.TmsOrderListResponse; | 
 |  |  | import com.doumee.core.tms.model.response.TmsOrderNoFinishListResponse; | 
 |  |  | import com.doumee.service.business.third.model.ApiResponse; | 
 |  |  | import com.doumee.service.business.third.model.request.TmsOrderInfoRequest; | 
 |  |  | import com.doumee.service.business.third.model.request.TmsOrderNoFinishListRequest; | 
 |  |  | import com.doumee.service.business.third.model.response.TmsBasePageResponse; | 
 |  |  | import com.doumee.service.business.third.model.response.TmsOrderInfoResponse; | 
 |  |  | import com.doumee.service.business.third.model.response.TmsOrderNoFinishListResponse; | 
 |  |  | import com.doumee.core.utils.Constants; | 
 |  |  | import com.doumee.core.utils.DateUtil; | 
 |  |  | import com.doumee.dao.business.model.TmsFactoryParam; | 
 |  |  | import com.doumee.dao.web.response.platformReport.*; | 
 |  |  | import com.doumee.service.business.third.BoardService; | 
 |  |  | import com.doumee.service.business.third.TmsService; | 
 |  |  | import io.swagger.annotations.*; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | import org.apache.commons.lang3.StringUtils; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.web.bind.annotation.*; | 
 |  |  |  | 
 |  |  | import java.math.BigDecimal; | 
 |  |  | import java.util.ArrayList; | 
 |  |  | import java.util.Date; | 
 |  |  | import java.util.List; | 
 |  |  | import java.util.Random; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * Created by IntelliJ IDEA. | 
 |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private BoardService boardService; | 
 |  |  |     @LoginNoRequired | 
 |  |  |     @ApiOperation("中心数据") | 
 |  |  |     @ApiOperation("中心数据(废弃)") | 
 |  |  |     @GetMapping("/centerData") | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(paramType = "query", dataType = "String", name = "factoryCode", value = "查询类型厂区编码", required = false) | 
 |  |  |     }) | 
 |  |  |     public ApiResponse<WholeProvinceBoardVO> centerData(@RequestParam String factoryCode) { | 
 |  |  |     public ApiResponse<WholeProvinceBoardVO> centerData(@RequestParam(required = false) String factoryCode) { | 
 |  |  |         WholeProvinceBoardVO data = boardService.centerProvinceData(  factoryCode); | 
 |  |  |         return ApiResponse.success(data); | 
 |  |  |     } | 
 |  |  |     @LoginNoRequired | 
 |  |  |     @ApiOperation("中心数据(更新版本)") | 
 |  |  |     @GetMapping("/centerDataNew") | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(paramType = "query", dataType = "String", name = "factoryCode", value = "查询类型厂区编码", required = false) | 
 |  |  |     }) | 
 |  |  |     public ApiResponse<WholeProvinceBoardVO> centerDataNew(@RequestParam(required = false) String factoryCode) { | 
 |  |  |         WholeProvinceBoardVO data = boardService.centerProvinceDataNew(  factoryCode); | 
 |  |  |         return ApiResponse.success(data); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(paramType = "query", dataType = "String", name = "factoryCode", value = "查询类型厂区编码", required = false) | 
 |  |  |     }) | 
 |  |  |     public ApiResponse<List<LastSevenDaysOrderVo>>  arriveGoodsList(@RequestParam String factoryCode) { | 
 |  |  |     public ApiResponse<List<LastSevenDaysOrderVo>>  arriveGoodsList(@RequestParam(required = false) String factoryCode) { | 
 |  |  |         List<LastSevenDaysOrderVo> list = boardService.arriveGoodsList(factoryCode); | 
 |  |  |         return ApiResponse.success(list); | 
 |  |  |     } | 
 |  |  | 
 |  |  |             @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "type", value = "查询类型 0本月 1本周 2本年", required = false), | 
 |  |  |             @ApiImplicitParam(paramType = "query", dataType = "String", name = "factoryCode", value = "查询类型厂区编码", required = false) | 
 |  |  |     }) | 
 |  |  |     public ApiResponse<TotalOutQtyNumVO> totalOutQtyNum(@RequestParam Integer type,@RequestParam String factoryCode) { | 
 |  |  |     public ApiResponse<TotalOutQtyNumVO> totalOutQtyNum(@RequestParam Integer type,@RequestParam(required = false) String factoryCode) { | 
 |  |  |         TotalOutQtyNumVO result = boardService.totalOutQtyNum(type,factoryCode); | 
 |  |  |  | 
 |  |  |         return ApiResponse.success(result); | 
 |  |  | 
 |  |  |         WholeProvinceZXTVO  list = boardService.inventoryUseRate(); | 
 |  |  |         return ApiResponse.success(list); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @LoginNoRequired | 
 |  |  |     @ApiOperation("运力资源利用率") | 
 |  |  |     @GetMapping("/tranportAbilityUseRate") | 
 |  |  | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(paramType = "query", dataType = "String", name = "factoryCode", value = "查询类型厂区编码", required = false) | 
 |  |  |     }) | 
 |  |  |     public ApiResponse<List<WholeProvinceMapVO>> mapYearAndMonthOutList( @RequestParam String factoryCode) { | 
 |  |  |     public ApiResponse<List<WholeProvinceMapVO>> mapYearAndMonthOutList( @RequestParam(required = false) String factoryCode) { | 
 |  |  |         List<WholeProvinceMapVO>  list = boardService.mapYearAndMonthOutList(factoryCode); | 
 |  |  |         return ApiResponse.success(list); | 
 |  |  |     } | 
 |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("订单任务合同列表接口") | 
 |  |  |     @LoginNoRequired | 
 |  |  |     @GetMapping("/orderList") | 
 |  |  |     @PostMapping("/orderList") | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(paramType = "query", dataType = "String", name = "factoryCode", value = "查询类型厂区编码", required = false) | 
 |  |  |     }) | 
 |  |  |     public ApiResponse<List<TmsOrderNoFinishListResponse>> orderNoFinishList(@RequestParam String factoryCode)   { | 
 |  |  |         List<TmsOrderNoFinishListResponse> list = boardService.orderNoFinishList(factoryCode); | 
 |  |  |     public ApiResponse<TmsBasePageResponse<TmsOrderNoFinishListResponse>> orderNoFinishList(@RequestBody TmsOrderNoFinishListRequest param )   { | 
 |  |  |         TmsBasePageResponse<TmsOrderNoFinishListResponse> list = boardService.orderNoFinishList(param); | 
 |  |  |         return  ApiResponse.success(list); | 
 |  |  |     } | 
 |  |  |     @ApiOperation("合同详情接口") |