feat(wms): 添加物流预览和快递问题相关功能

- 新增物流预览和快递问题相关的实体类、Mapper、Service和Controller
- 实现物流预览列表查询、导出、详情获取、新增、修改和删除功能
- 实现快递问题列表查询、详情获取、新增、修改和删除功能
- 添加百世、顺丰、申通快递的路由查询工具类
- 更新pom.xml,添加fastjson2等依赖
- 修改application-stage.yml,禁用xxl-job
This commit is contained in:
2025-08-11 18:06:37 +08:00
parent 542b481155
commit 1cd1699bf3
40 changed files with 3321 additions and 2 deletions

View File

@@ -0,0 +1,107 @@
package com.klp.controller;
import com.klp.common.annotation.Log;
import com.klp.common.annotation.RepeatSubmit;
import com.klp.common.core.controller.BaseController;
import com.klp.common.core.domain.PageQuery;
import com.klp.common.core.domain.R;
import com.klp.common.core.page.TableDataInfo;
import com.klp.common.core.validate.AddGroup;
import com.klp.common.core.validate.EditGroup;
import com.klp.common.enums.BusinessType;
import com.klp.common.utils.poi.ExcelUtil;
import com.klp.domain.bo.WmsExpressBo;
import com.klp.domain.vo.WmsExpressVo;
import com.klp.service.IWmsExpressService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
/**
* 物流预览
*
* @author hdka
* @date 2025-07-20
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/oa/express")
public class WmsExpressController extends BaseController {
private final IWmsExpressService iWmsExpressService;
/**
* 查询物流预览列表
*/
@GetMapping("/list")
public TableDataInfo<WmsExpressVo> list(WmsExpressBo bo, PageQuery pageQuery) {
return iWmsExpressService.queryPageList(bo, pageQuery);
}
/**
* 导出物流预览列表
*/
@Log(title = "物流预览", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(WmsExpressBo bo, HttpServletResponse response) {
List<WmsExpressVo> list = iWmsExpressService.queryList(bo);
ExcelUtil.exportExcel(list, "物流预览", WmsExpressVo.class, response);
}
/**
* 获取物流预览详细信息
*
* @param expressId 主键
*/
@GetMapping("/{expressId}")
public R<WmsExpressVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long expressId) {
return R.ok(iWmsExpressService.queryById(expressId));
}
/**
* 新增物流预览
*/
@Log(title = "物流预览", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody WmsExpressBo bo) {
return toAjax(iWmsExpressService.insertByBo(bo));
}
/**
* 修改物流预览
*/
@Log(title = "物流预览", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody WmsExpressBo bo) {
return toAjax(iWmsExpressService.updateByBo(bo));
}
/**
* 删除物流预览
*
* @param expressIds 主键串
*/
@Log(title = "物流预览", businessType = BusinessType.DELETE)
@DeleteMapping("/{expressIds}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] expressIds) {
return toAjax(iWmsExpressService.deleteWithValidByIds(Arrays.asList(expressIds), true));
}
@GetMapping("/refresh/{expressIds}")
public R<Void> getRefreshExpress(@PathVariable Long[] expressIds) throws IOException {
return toAjax(iWmsExpressService.getRefreshExpress(Arrays.asList(expressIds)));
}
}

View File

@@ -0,0 +1,100 @@
package com.klp.controller;
import com.klp.common.annotation.Log;
import com.klp.common.annotation.RepeatSubmit;
import com.klp.common.core.controller.BaseController;
import com.klp.common.core.domain.PageQuery;
import com.klp.common.core.domain.R;
import com.klp.common.core.page.TableDataInfo;
import com.klp.common.core.validate.AddGroup;
import com.klp.common.core.validate.EditGroup;
import com.klp.common.enums.BusinessType;
import com.klp.common.utils.poi.ExcelUtil;
import com.klp.domain.bo.WmsExpressQuestionBo;
import com.klp.domain.vo.WmsExpressQuestionVo;
import com.klp.service.IWmsExpressQuestionService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Arrays;
import java.util.List;
/**
* 快递问题
*
* @author hdka
* @date 2025-07-21
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/oa/expressQuestion")
public class WmsExpressQuestionController extends BaseController {
private final IWmsExpressQuestionService IWmsExpressQuestionService;
/**
* 查询快递问题列表
*/
@GetMapping("/list")
public TableDataInfo<WmsExpressQuestionVo> list(WmsExpressQuestionBo bo, PageQuery pageQuery) {
return IWmsExpressQuestionService.queryPageList(bo, pageQuery);
}
/**
* 导出快递问题列表
*/
@Log(title = "快递问题", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(WmsExpressQuestionBo bo, HttpServletResponse response) {
List<WmsExpressQuestionVo> list = IWmsExpressQuestionService.queryList(bo);
ExcelUtil.exportExcel(list, "快递问题", WmsExpressQuestionVo.class, response);
}
/**
* 获取快递问题详细信息
*
* @param questionId 主键
*/
@GetMapping("/{questionId}")
public R<WmsExpressQuestionVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long questionId) {
return R.ok(IWmsExpressQuestionService.queryById(questionId));
}
/**
* 新增快递问题
*/
@Log(title = "快递问题", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody WmsExpressQuestionBo bo) {
return toAjax(IWmsExpressQuestionService.insertByBo(bo));
}
/**
* 修改快递问题
*/
@Log(title = "快递问题", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody WmsExpressQuestionBo bo) {
return toAjax(IWmsExpressQuestionService.updateByBo(bo));
}
/**
* 删除快递问题
*
* @param questionIds 主键串
*/
@Log(title = "快递问题", businessType = BusinessType.DELETE)
@DeleteMapping("/{questionIds}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] questionIds) {
return toAjax(IWmsExpressQuestionService.deleteWithValidByIds(Arrays.asList(questionIds), true));
}
}

View File

@@ -0,0 +1,109 @@
package com.klp.controller;
import com.klp.common.annotation.Log;
import com.klp.common.annotation.RepeatSubmit;
import com.klp.common.core.controller.BaseController;
import com.klp.common.core.domain.PageQuery;
import com.klp.common.core.domain.R;
import com.klp.common.core.page.TableDataInfo;
import com.klp.common.core.validate.AddGroup;
import com.klp.common.core.validate.EditGroup;
import com.klp.common.enums.BusinessType;
import com.klp.common.utils.poi.ExcelUtil;
import com.klp.domain.bo.WmsReportDetailBo;
import com.klp.domain.vo.WmsReportDetailVo;
import com.klp.service.IWmsReportDetailService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Arrays;
import java.util.List;
/**
* 设计项目汇报详情
*
* @author ruoyi
* @date 2025-05-13
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/system/reportDetail")
public class WmsReportDetailController extends BaseController {
private final IWmsReportDetailService IWmsReportDetailService;
/**
* 查询设计项目汇报详情列表
*/
@GetMapping("/list")
public TableDataInfo<WmsReportDetailVo> list(WmsReportDetailBo bo, PageQuery pageQuery) {
return IWmsReportDetailService.queryPageList(bo, pageQuery);
}
/**
* 导出设计项目汇报详情列表
*/
@Log(title = "设计项目汇报详情", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(WmsReportDetailBo bo, HttpServletResponse response) {
List<WmsReportDetailVo> list = IWmsReportDetailService.queryList(bo);
ExcelUtil.exportExcel(list, "设计项目汇报详情", WmsReportDetailVo.class, response);
}
/**
* 获取设计项目汇报详情详细信息
*
* @param id 主键
*/
@GetMapping("/{id}")
public R<WmsReportDetailVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
return R.ok(IWmsReportDetailService.queryById(id));
}
// /**
// * 获取设计项目汇报详情详细信息
// *
// * @param projectId 主键
// */
// @GetMapping("/project/{projectId}")
// public R<List<WmsReportDetailVo>> listReportDetailByProjectId(@NotNull(message = "主键不能为空")
// @PathVariable Long projectId) {
// return R.ok(IWmsReportDetailService.queryByProjectId(projectId));
// }
/**
* 新增设计项目汇报详情
*/
@Log(title = "设计项目汇报详情", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody WmsReportDetailBo bo) {
return toAjax(IWmsReportDetailService.insertByBo(bo));
}
/**
* 修改设计项目汇报详情
*/
@Log(title = "设计项目汇报详情", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody WmsReportDetailBo bo) {
return toAjax(IWmsReportDetailService.updateByBo(bo));
}
/**
* 删除设计项目汇报详情
*
* @param ids 主键串
*/
@DeleteMapping("/{ids}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] ids) {
return toAjax(IWmsReportDetailService.deleteWithValidByIds(Arrays.asList(ids), true));
}
}

View File

@@ -0,0 +1,100 @@
package com.klp.controller;
import com.klp.common.annotation.Log;
import com.klp.common.annotation.RepeatSubmit;
import com.klp.common.core.controller.BaseController;
import com.klp.common.core.domain.PageQuery;
import com.klp.common.core.domain.R;
import com.klp.common.core.page.TableDataInfo;
import com.klp.common.core.validate.AddGroup;
import com.klp.common.core.validate.EditGroup;
import com.klp.common.enums.BusinessType;
import com.klp.common.utils.poi.ExcelUtil;
import com.klp.domain.bo.WmsReportSummaryBo;
import com.klp.domain.vo.WmsReportSummaryVo;
import com.klp.service.IWmsReportSummaryService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Arrays;
import java.util.List;
/**
* 设计项目汇报概述
*
* @author cpy
* @date 2025-05-13
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/system/reportSummary")
public class WmsReportSummaryController extends BaseController {
private final IWmsReportSummaryService IWmsReportSummaryService;
/**
* 查询设计项目汇报概述列表
*/
@GetMapping("/list")
public TableDataInfo<WmsReportSummaryVo> list(WmsReportSummaryBo bo, PageQuery pageQuery) {
return IWmsReportSummaryService.queryPageList(bo, pageQuery);
}
/**
* 导出设计项目汇报概述列表
*/
@Log(title = "设计项目汇报概述", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(WmsReportSummaryBo bo, HttpServletResponse response) {
List<WmsReportSummaryVo> list = IWmsReportSummaryService.queryList(bo);
ExcelUtil.exportExcel(list, "设计项目汇报概述", WmsReportSummaryVo.class, response);
}
/**
* 获取设计项目汇报概述详细信息
*
* @param id 主键
*/
@GetMapping("/{id}")
public R<WmsReportSummaryVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
return R.ok(IWmsReportSummaryService.queryById(id));
}
/**
* 新增设计项目汇报概述
*/
@Log(title = "设计项目汇报概述", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody WmsReportSummaryBo bo) {
return toAjax(IWmsReportSummaryService.insertByBo(bo));
}
/**
* 修改设计项目汇报概述
*/
@Log(title = "设计项目汇报概述", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody WmsReportSummaryBo bo) {
return toAjax(IWmsReportSummaryService.updateByBo(bo));
}
/**
* 删除设计项目汇报概述
*
* @param ids 主键串
*/
@Log(title = "设计项目汇报概述", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] ids) {
return toAjax(IWmsReportSummaryService.deleteWithValidByIds(Arrays.asList(ids), true));
}
}