代码同步 02.20

main
张博文 3 months ago
parent 54027aef42
commit c99b74cb47

@ -3,6 +3,8 @@ package cn.iocoder.yudao.module.configure.controller.admin.tracetemplate.vo;
import lombok.*; import lombok.*;
import java.util.*; import java.util.*;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ApiModel("管理后台 - 溯源模板创建 Request VO") @ApiModel("管理后台 - 溯源模板创建 Request VO")
@ -10,6 +12,8 @@ import javax.validation.constraints.*;
public class TraceTemplateCreateReqVO { public class TraceTemplateCreateReqVO {
@ApiModelProperty(value = "模板名称") @ApiModelProperty(value = "模板名称")
@NotBlank(message = "模板名称不能为空")
@Length(max = 32, message = "模板名称最长32个字符")
private String templateName; private String templateName;
@ApiModelProperty(value = "商品编码", required = true) @ApiModelProperty(value = "商品编码", required = true)

@ -1,5 +1,6 @@
package cn.iocoder.yudao.module.identity.controller.admin.code; package cn.iocoder.yudao.module.identity.controller.admin.code;
import cn.hutool.core.bean.BeanUtil;
import cn.iocoder.yudao.framework.common.pojo.CommonResult; import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.pojo.PageResult; import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
@ -93,7 +94,7 @@ public class CodeController {
List<CodeDO> list = codeService.getCodesByGenerateRecordId(generateRecordId); List<CodeDO> list = codeService.getCodesByGenerateRecordId(generateRecordId);
// 导出 Excel // 导出 Excel
List<CodeExcelVO> datas = CodeConvert.INSTANCE.convertList02(list); List<CodeExcelVO> datas = BeanUtil.copyToList(list, CodeExcelVO.class);
//拼接getIdentityCode路径 //拼接getIdentityCode路径
for (CodeExcelVO codeExcelVO : datas) { for (CodeExcelVO codeExcelVO : datas) {
String identityCode = qrCodeProperties.getUrl() + codeExcelVO.getIdentityCode(); String identityCode = qrCodeProperties.getUrl() + codeExcelVO.getIdentityCode();

@ -49,7 +49,7 @@ public class CodeExcelVO {
@ExcelProperty("经销商编码") @ExcelProperty("经销商编码")
private String dealerId; private String dealerId;
@ExcelProperty("所属商户编码") @ExcelProperty("所属商户ID")
private Long belongBusinessId; private Long belongBusinessId;
@ExcelProperty("所属商户名称") @ExcelProperty("所属商户名称")

@ -28,7 +28,7 @@ public class BlockCertificateSaveReqVO {
private Integer operateType; private Integer operateType;
@ApiModelProperty(value = "操作类型描述") @ApiModelProperty(value = "操作类型描述")
@Length(max = 255) @Length(max = 255, message = "操作类型描述最大长度不能超过255个字符")
private String operateName; private String operateName;
@ApiModelProperty(value = "操作对象id根据operate_type的值存储不同关联表的id") @ApiModelProperty(value = "操作对象id根据operate_type的值存储不同关联表的id")
@ -42,7 +42,7 @@ public class BlockCertificateSaveReqVO {
@ApiModelProperty(value = "环节名称", required = true) @ApiModelProperty(value = "环节名称", required = true)
@NotNull(message = "环节名称不能为空") @NotNull(message = "环节名称不能为空")
@Length(max = 255) @Length(max = 255, message = "环节名称最大长度不能超过255个字符")
private String linkName; private String linkName;
@ApiModelProperty(value = "上链状态 0未上链 1已上链") @ApiModelProperty(value = "上链状态 0未上链 1已上链")

@ -16,7 +16,7 @@ public class OperateDetailSaveReqVO {
private Long id; private Long id;
@ApiModelProperty(value = "内容标题") @ApiModelProperty(value = "内容标题")
@Length(max = 255) @Length(max = 255, message = "内容标题最大长度不能超过255个字符")
private String title; private String title;
@ApiModelProperty(value = "内容类型,详见字典") @ApiModelProperty(value = "内容类型,详见字典")
@ -24,11 +24,11 @@ public class OperateDetailSaveReqVO {
private Integer type; private Integer type;
@ApiModelProperty(value = "详细内容如图片视频url地址、文本、文件链接等") @ApiModelProperty(value = "详细内容如图片视频url地址、文本、文件链接等")
@Length(max = 1024) @Length(max = 1024, message = "详细内容最大长度不能超过1024个字符")
private String content; private String content;
@ApiModelProperty(value = "链接地址") @ApiModelProperty(value = "链接地址")
@Length(max = 255) @Length(max = 255, message = "链接地址最大长度不能超过255个字符")
private String linkText; private String linkText;
@ApiModelProperty(value = "是否扫码展示") @ApiModelProperty(value = "是否扫码展示")

Loading…
Cancel
Save