feat: 导出主键去除
This commit is contained in:
@@ -16,7 +16,7 @@ import java.util.List;
|
||||
public class CustomerRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "25585")
|
||||
@ExcelProperty("主键")
|
||||
// @ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "客户名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
|
||||
|
||||
@@ -22,7 +22,7 @@ import java.util.List;
|
||||
public class LicenseRespVO implements VO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "25585")
|
||||
@ExcelProperty("主键")
|
||||
// @ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "客户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31667")
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.time.LocalDateTime;
|
||||
public class ProjectRespVO implements VO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "25585")
|
||||
@ExcelProperty("主键")
|
||||
// @ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "客户ID")
|
||||
|
||||
@@ -200,17 +200,17 @@ public class LicenseServiceImpl implements LicenseService {
|
||||
if (StrUtil.isBlank(sn)) {
|
||||
return true;
|
||||
}
|
||||
LicenseDO license = licenseMapper.selectBySn(sn);
|
||||
if (license == null) {
|
||||
return true;
|
||||
}
|
||||
// 如果 id 为空,说明不用比较是否为相同 id 的License
|
||||
if (id == null) {
|
||||
return false;
|
||||
}
|
||||
if (!license.getId().equals(id)) {
|
||||
return false;
|
||||
}
|
||||
// LicenseDO license = licenseMapper.selectBySn(sn);
|
||||
// if (license == null) {
|
||||
// return true;
|
||||
// }
|
||||
// // 如果 id 为空,说明不用比较是否为相同 id 的License
|
||||
// if (id == null) {
|
||||
// return false;
|
||||
// }
|
||||
// if (!license.getId().equals(id)) {
|
||||
// return false;
|
||||
// }
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user