|
@@ -0,0 +1,158 @@
|
|
|
|
|
+package com.yr.warehouse.admin.web.driver.controller;
|
|
|
|
|
+
|
|
|
|
|
+import com.yr.bluecat.common.entity.response.PageResult;
|
|
|
|
|
+import com.yr.bluecat.common.entity.response.Result;
|
|
|
|
|
+import com.yr.prism.auth.core.user.AdminUserInfo;
|
|
|
|
|
+import com.yr.warehouse.admin.driver.bo.DriverIntervalCargoDamageDetailExportBo;
|
|
|
|
|
+import com.yr.warehouse.admin.driver.bo.DriverIntervalCargoDamageDetailPageBo;
|
|
|
|
|
+import com.yr.warehouse.admin.driver.bo.DriverIntervalCargoDamageGeneratorBo;
|
|
|
|
|
+import com.yr.warehouse.admin.driver.bo.DriverIntervalCargoDamagePageBo;
|
|
|
|
|
+import com.yr.warehouse.admin.web.common.BaseController;
|
|
|
|
|
+import com.yr.warehouse.admin.web.driver.mapstruct.DriverIntervalCargoDamageMapStruct;
|
|
|
|
|
+import com.yr.warehouse.admin.web.driver.request.*;
|
|
|
|
|
+import com.yr.warehouse.admin.web.driver.response.DriverIntervalCargoDamageDetailPageResponse;
|
|
|
|
|
+import com.yr.warehouse.admin.web.driver.response.DriverIntervalCargoDamagePageResponse;
|
|
|
|
|
+import com.yr.warehouse.admin.web.driver.response.DriverRouteAccountRecordMainResponse;
|
|
|
|
|
+import com.yr.warehouse.admin.web.driver.response.DriverRouteDetailResponse;
|
|
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
+
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * 司机区间货损
|
|
|
|
|
+ */
|
|
|
|
|
+@RestController
|
|
|
|
|
+@RequestMapping("/driver/interval/cargoDamage")
|
|
|
|
|
+public class DriverIntervalCargoDamageController extends BaseController {
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 查询运营商对应的区间货损最后统计时间
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/searchLastTotalTime/{operatorId}")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public Result<String> searchLastTotalTime(@PathVariable("operatorId") Long operatorId, AdminUserInfo adminUserInfo) {
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 生成区间统计记录
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/generator")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public Result<String> generator(@Validated @RequestBody DriverIntervalCargoDamageGeneratorRequest request, AdminUserInfo adminUserInfo) {
|
|
|
|
|
+ DriverIntervalCargoDamageGeneratorBo bo = DriverIntervalCargoDamageMapStruct.MAPSTRUCT.generatorRequestToBo(request);
|
|
|
|
|
+ buildUserInfo(bo, adminUserInfo);
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 分页查询区间生成统计记录
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/page")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public PageResult<DriverIntervalCargoDamagePageResponse> page(@Validated @RequestBody DriverIntervalCargoDamagePageRequest request, AdminUserInfo adminUserInfo) {
|
|
|
|
|
+ DriverIntervalCargoDamagePageBo bo = DriverIntervalCargoDamageMapStruct.MAPSTRUCT.pageRequestToBo(request);
|
|
|
|
|
+ buildUserInfo(bo, adminUserInfo);
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 区间生成统计记录详情分页查询
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/detail/page")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public PageResult<DriverIntervalCargoDamageDetailPageResponse> detailPage(@Validated @RequestBody DriverIntervalCargoDamageDetailPageRequest request, AdminUserInfo adminUserInfo) {
|
|
|
|
|
+ DriverIntervalCargoDamageDetailPageBo bo = DriverIntervalCargoDamageMapStruct.MAPSTRUCT.detailPageRequestToBo(request);
|
|
|
|
|
+ buildUserInfo(bo, adminUserInfo);
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 导出区间生成统计记录详情
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/detail/export")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public Result<String> detailExport(@Validated @RequestBody DriverIntervalCargoDamageDetailExportRequest request, AdminUserInfo adminUserInfo) {
|
|
|
|
|
+ DriverIntervalCargoDamageDetailExportBo bo = DriverIntervalCargoDamageMapStruct.MAPSTRUCT.detailExportRequestToBo(request);
|
|
|
|
|
+ buildUserInfo(bo, adminUserInfo);
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 添加司机在途核算记录
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/routeAccountRecord/add")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public Result<String> addRouteAccountRecord(@Validated @RequestBody DriverIntervalRouteAccountRecordCreateRequest request, AdminUserInfo adminUserInfo) {
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 取消司机在途核算记录
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/routeAccountRecord/cancel/{routeAccountRecordMainId}")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public Result<String> cancelRouteAccountRecord(@PathVariable("routeAccountRecordMainId") Long routeAccountRecordMainId, AdminUserInfo adminUserInfo) {
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 导出司机在途核算记录
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/routeAccountRecord/export")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public Result<String> exportRouteAccountRecord(@Validated @RequestBody DriverRouteAccountRecordExportRequest request, AdminUserInfo adminUserInfo) {
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 分页查询司机在途核算记录
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/routeAccountRecord/page")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public PageResult<DriverRouteAccountRecordMainResponse> routeAccountRecordPage(@Validated @RequestBody DriverRouteAccountRecordPageRequest request, AdminUserInfo adminUserInfo) {
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 查询司机在途核算记录明细
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/routeAccountRecord/detail/{routeAccountRecordMainId}")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public Result<List<DriverRouteDetailResponse>> routeAccountRecordDetail(@PathVariable("routeAccountRecordMainId") Long routeAccountId, AdminUserInfo adminUserInfo) {
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 编辑司机在途明细
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/routeAccountRecord/detail/edit")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public Result<String> editRouteAccountRecord(@Validated @RequestBody DriverIntervalRouteAccountRecordEditorRequest request, AdminUserInfo adminUserInfo) {
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 导出司机在途明细
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/routeAccountRecord/detail/export/{routeAccountRecordMainId}")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public Result<String> exportRouteAccountRecordDetail(@PathVariable("routeAccountRecordMainId") Long routeAccountId, AdminUserInfo adminUserInfo) {
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+}
|