mall + trade:review 自提代码

This commit is contained in:
YunaiV 2023-05-31 09:18:24 +08:00
parent 894b19b8ec
commit e34eddc386
4 changed files with 9 additions and 6 deletions

View File

@ -47,6 +47,7 @@ public interface ErrorCodeConstants {
// ========== 物流配送模块 1011003000 ==========
ErrorCode DELIVERY_EXPRESS_NOT_EXISTS = new ErrorCode(1011003000, "快递公司不存在");
// TODO @jason最好每个模块一段哈express 一个exmpresstemplate 一个pickup 一个
ErrorCode EXPRESS_CODE_DUPLICATE = new ErrorCode(1011003001, "已经存在该编码的快递公司");
ErrorCode EXPRESS_TEMPLATE_NOT_EXISTS = new ErrorCode(1011003002, "运费模板不存在");
ErrorCode EXPRESS_TEMPLATE_NAME_DUPLICATE = new ErrorCode(1011003002, "已经存在该运费模板名");

View File

@ -84,6 +84,7 @@ public class DeliveryPickUpStoreController {
return success(DeliveryPickUpStoreConvert.INSTANCE.convertPage(pageResult));
}
// TODO @jason导出去掉好列简化下一般用不到哈
@GetMapping("/export-excel")
@Operation(summary = "导出自提门店 Excel")
@PreAuthorize("@ss.hasPermission('trade:delivery:pick-up-store:export')")

View File

@ -22,10 +22,10 @@ public class DeliveryPickUpStoreBaseVO {
@NotBlank(message = "门店名称不能为空")
private String name;
@Schema(description = "门店简介")
@Schema(description = "门店简介", example = "我是门店简介")
private String introduction;
@Schema(description = "门店手机", required = true)
@Schema(description = "门店手机", required = true, example = "15601892312")
@NotBlank(message = "门店手机不能为空")
@Mobile
private String phone;
@ -34,11 +34,11 @@ public class DeliveryPickUpStoreBaseVO {
@NotNull(message = "区域编号不能为空")
private Integer areaId;
@Schema(description = "门店详细地址", required = true)
@Schema(description = "门店详细地址", required = true, example = "复旦大学路 188 号")
@NotBlank(message = "门店详细地址不能为空")
private String detailAddress;
@Schema(description = "门店 logo", required = true)
@Schema(description = "门店 logo", required = true, example = "https://www.iocoder.cn/1.png")
@NotBlank(message = "门店 logo 不能为空")
private String logo;
@ -52,11 +52,11 @@ public class DeliveryPickUpStoreBaseVO {
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
private LocalTime closingTime;
@Schema(description = "纬度", required = true)
@Schema(description = "纬度", required = true, example = "5.88")
@NotNull(message = "纬度不能为空")
private Double latitude;
@Schema(description = "经度", required = true)
@Schema(description = "经度", required = true, example = "6.99")
@NotNull(message = "经度不能为空")
private Double longitude;

View File

@ -32,6 +32,7 @@ public class DeliveryPickUpStoreExcelVO {
@ExcelProperty("门店logo")
private String logo;
// TODO @jason是不是可以加个 convert
/**
* easy-excel 好像暂时不支持 LocalTime. 转成string
*/