mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-04-07 16:57:32 +00:00
@@ -0,0 +1,44 @@
|
||||
package org.ruoyi.system.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.ruoyi.core.domain.BaseEntity;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 高等学校固定资产分类与代码对象 asset_classification
|
||||
*
|
||||
* @author cass
|
||||
* @date 2025-09-24
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("asset_classification")
|
||||
public class AssetClassification extends BaseEntity {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 分类代码
|
||||
*/
|
||||
private String classificationCode;
|
||||
|
||||
/**
|
||||
* 分类名称
|
||||
*/
|
||||
private String classificationName;
|
||||
|
||||
/**
|
||||
* 国标名称
|
||||
*/
|
||||
private String gbName;
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package org.ruoyi.system.domain.bo;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.ruoyi.common.core.validate.AddGroup;
|
||||
import org.ruoyi.common.core.validate.EditGroup;
|
||||
import org.ruoyi.core.domain.BaseEntity;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 高等学校固定资产分类与代码业务对象 asset_classification
|
||||
*
|
||||
* @author cass
|
||||
* @date 2025-09-24
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class AssetClassificationBo extends BaseEntity {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@NotNull(message = "主键ID不能为空", groups = {EditGroup.class})
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 分类代码
|
||||
*/
|
||||
@NotBlank(message = "分类代码不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||
private String classificationCode;
|
||||
|
||||
/**
|
||||
* 分类名称
|
||||
*/
|
||||
@NotBlank(message = "分类名称不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||
private String classificationName;
|
||||
|
||||
/**
|
||||
* 国标名称
|
||||
*/
|
||||
@NotBlank(message = "国标名称不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||
private String gbName;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package org.ruoyi.system.domain.vo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 高等学校固定资产分类与代码导入视图对象
|
||||
*
|
||||
* @author cass
|
||||
* @date 2025-09-24
|
||||
*/
|
||||
@Data
|
||||
public class AssetClassificationImportVo implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 分类代码
|
||||
*/
|
||||
@ExcelProperty(value = "分类代码")
|
||||
private String classificationCode;
|
||||
|
||||
/**
|
||||
* 分类名称
|
||||
*/
|
||||
@ExcelProperty(value = "分类名称")
|
||||
private String classificationName;
|
||||
|
||||
/**
|
||||
* 国标名称
|
||||
*/
|
||||
@ExcelProperty(value = "国标名称")
|
||||
private String gbName;
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
package org.ruoyi.system.domain.vo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import lombok.Data;
|
||||
import org.ruoyi.common.excel.annotation.ExcelDictFormat;
|
||||
import org.ruoyi.common.excel.convert.ExcelDictConvert;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 高等学校固定资产分类与代码视图对象 asset_classification
|
||||
*
|
||||
* @author cass
|
||||
* @date 2025-09-24
|
||||
*/
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class AssetClassificationVo implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@ExcelProperty(value = "主键ID")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 分类代码
|
||||
*/
|
||||
@ExcelProperty(value = "分类代码")
|
||||
private String classificationCode;
|
||||
|
||||
/**
|
||||
* 分类名称
|
||||
*/
|
||||
@ExcelProperty(value = "分类名称")
|
||||
private String classificationName;
|
||||
|
||||
/**
|
||||
* 国标名称
|
||||
*/
|
||||
@ExcelProperty(value = "国标名称")
|
||||
private String gbName;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ExcelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ExcelProperty(value = "更新时间")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
@ExcelProperty(value = "创建者")
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
@ExcelProperty(value = "更新者")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ExcelProperty(value = "备注")
|
||||
private String remark;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package org.ruoyi.system.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.ruoyi.core.mapper.BaseMapperPlus;
|
||||
import org.ruoyi.system.domain.AssetClassification;
|
||||
import org.ruoyi.system.domain.vo.AssetClassificationVo;
|
||||
|
||||
/**
|
||||
* 高等学校固定资产分类与代码Mapper接口
|
||||
*
|
||||
* @author cass
|
||||
* @date 2025-09-24
|
||||
*/
|
||||
public interface AssetClassificationMapper extends BaseMapperPlus<AssetClassification, AssetClassificationVo> {
|
||||
|
||||
/**
|
||||
* 根据分类代码查询
|
||||
*
|
||||
* @param classificationCode 分类代码
|
||||
* @return 高等学校固定资产分类与代码
|
||||
*/
|
||||
AssetClassification queryByClassificationCode(@Param("classificationCode") String classificationCode);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package org.ruoyi.system.service;
|
||||
|
||||
import org.ruoyi.core.page.TableDataInfo;
|
||||
import org.ruoyi.system.domain.AssetClassification;
|
||||
import org.ruoyi.system.domain.bo.AssetClassificationBo;
|
||||
import org.ruoyi.system.domain.vo.AssetClassificationVo;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 高等学校固定资产分类与代码Service接口
|
||||
*
|
||||
* @author cass
|
||||
* @date 2025-09-24
|
||||
*/
|
||||
public interface IAssetClassificationService {
|
||||
|
||||
/**
|
||||
* 查询高等学校固定资产分类与代码
|
||||
*/
|
||||
AssetClassificationVo queryById(Long id);
|
||||
|
||||
/**
|
||||
* 根据分类代码查询
|
||||
*/
|
||||
AssetClassification queryByClassificationCode(String classificationCode);
|
||||
|
||||
/**
|
||||
* 查询高等学校固定资产分类与代码列表
|
||||
*/
|
||||
TableDataInfo<AssetClassificationVo> queryPageList(AssetClassificationBo bo);
|
||||
|
||||
/**
|
||||
* 查询高等学校固定资产分类与代码列表
|
||||
*/
|
||||
List<AssetClassificationVo> queryList(AssetClassificationBo bo);
|
||||
|
||||
/**
|
||||
* 新增高等学校固定资产分类与代码
|
||||
*/
|
||||
Boolean insertByBo(AssetClassificationBo bo);
|
||||
|
||||
/**
|
||||
* 修改高等学校固定资产分类与代码
|
||||
*/
|
||||
Boolean updateByBo(AssetClassificationBo bo);
|
||||
|
||||
/**
|
||||
* 校验并批量删除高等学校固定资产分类与代码信息
|
||||
*/
|
||||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
||||
|
||||
/**
|
||||
* 导入数据
|
||||
*
|
||||
* @param dataList 数据列表
|
||||
* @param isUpdateSupport 是否更新支持
|
||||
* @param operName 操作用户
|
||||
* @return 结果
|
||||
*/
|
||||
String importData(List<AssetClassificationBo> dataList, Boolean isUpdateSupport, String operName);
|
||||
}
|
||||
Reference in New Issue
Block a user