dengsixing 8 jam lalu
induk
melakukan
59bef113ef

+ 791 - 0
src/main/java/com/project/hyb/biz/domain/entity/MbArtArtworks.java

@@ -0,0 +1,791 @@
+package com.project.hyb.biz.domain.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 
+ * @since 2025-08-05
+ */
+@Getter
+@Setter
+@TableName("art_artworks")
+public class MbArtArtworks implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * id
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 藏品UUID
+     */
+    private String artworkUuid;
+
+    /**
+     * RFID编号
+     */
+    private String no;
+
+    /**
+     * 总登记号
+     */
+    private String registrationno;
+
+    /**
+     * 创建日期
+     */
+    private Date createdate;
+
+    /**
+     * 创建人
+     */
+    private String creater;
+
+    /**
+     * 编辑日期
+     */
+    private Date editdate;
+
+    /**
+     * 编辑人
+     */
+    private String editor;
+
+    /**
+     * 假删标识
+     */
+    @TableLogic(value = "1", delval = "0")
+    private Integer recordstatus;
+
+    /**
+     * 名称
+     */
+    private String name;
+
+    /**
+     * 作者编号
+     */
+    private String authorno;
+
+    /**
+     * 作者
+     */
+    private String author;
+
+    /**
+     * 年代
+     */
+    private String age;
+
+    /**
+     * 年代类型
+     */
+    private String agetype;
+
+    /**
+     * 完残程度
+     */
+    private String complete;
+
+    /**
+     * 尺寸
+     */
+    private String size;
+
+    /**
+     * 尺寸单位
+     */
+    private String sizeunit;
+
+    /**
+     * 实际数量
+     */
+    private BigDecimal actualquantity;
+
+    /**
+     * 数量单位
+     */
+    private String quantityunit;
+
+    /**
+     * 来源
+     */
+    private String sourceno;
+
+    /**
+     * 来源
+     */
+    private String source;
+
+    /**
+     * 收藏单位
+     */
+    private String collecompany;
+
+    /**
+     * 藏品类别
+     */
+    private String categoryno;
+
+    /**
+     * 分类
+     */
+    private String category;
+
+    /**
+     * 所在库房
+     */
+    private String warehouse;
+
+    /**
+     * 所在库位
+     */
+    private String location;
+
+    /**
+     * 所属库房
+     */
+    private String belongwarehouse;
+
+    /**
+     * 所属库位
+     */
+    private String belonglocation;
+
+    /**
+     * 题材
+     */
+    private String genre;
+
+    /**
+     * 编号
+     */
+    private String genreno;
+
+    /**
+     * 材质编号
+     */
+    private String textureno;
+
+    /**
+     * 材质
+     */
+    private String texture;
+
+    /**
+     * 是否锁定
+     */
+    private String islock;
+
+    /**
+     * 是否上报
+     */
+    private String isreport;
+
+    /**
+     * 作品状态
+     */
+    private String state1;
+
+    /**
+     * 状态2(备用字段)
+     */
+    private String state2;
+
+    /**
+     * 状态3(备用字段)
+     */
+    private String state3;
+
+    /**
+     * 缩略图
+     */
+    private String thumbnail;
+
+    /**
+     * 所属类型
+     */
+    private String belongtype;
+
+    /**
+     * 件数
+     */
+    private Integer piececount;
+
+    /**
+     * 副数
+     */
+    private Integer paircount;
+
+    /**
+     * 复核尺寸
+     */
+    private String checksize;
+
+    /**
+     * 题名
+     */
+    private String title;
+
+    /**
+     * 款识
+     */
+    private String kuanzhi;
+
+    /**
+     * 题跋
+     */
+    private String postscript;
+
+    /**
+     * 铭文
+     */
+    private String inscription;
+
+    /**
+     * 题签
+     */
+    private String sign;
+
+    /**
+     * 印鉴
+     */
+    private String seal;
+
+    /**
+     * 裱式
+     */
+    private String frame;
+
+    /**
+     * 完成程度
+     */
+    private String completion;
+
+    /**
+     * 备注
+     */
+    private String memo;
+
+    /**
+     * 质量
+     */
+    private String quality;
+
+    /**
+     * 入藏日期
+     */
+    private String entrydate;
+
+    /**
+     * 审核状态:0未审核;1审核中;2已审核;3退回
+     */
+    private Integer auditstate;
+
+    /**
+     * 审核日期
+     */
+    private Date auditdate;
+
+    /**
+     * 审核人
+     */
+    private String auditor;
+
+    /**
+     * 审核说明
+     */
+    private String auditcontent;
+
+    /**
+     * 入库类别
+     */
+    private String stkincategory;
+
+    /**
+     * 出库类别
+     */
+    private String stkoutcategory;
+
+    /**
+     * 价格
+     */
+    private Float price;
+
+    /**
+     * 来源
+     */
+    private String sourcememo;
+
+    /**
+     * 签约价格
+     */
+    private Float contractprice;
+
+    /**
+     * 实际成交价
+     */
+    private Float saleprice;
+
+    /**
+     * 拍卖行
+     */
+    private Integer auctionhouse;
+
+    /**
+     * 购买时间
+     */
+    private Date timebuying;
+
+    /**
+     * 国家
+     */
+    private String country;
+
+    /**
+     * 原始编号
+     */
+    private String originalno;
+
+    /**
+     * 出土登记号
+     */
+    private String digno;
+
+    /**
+     * 原名
+     */
+    private String originalname;
+
+    /**
+     * 年代1
+     */
+    private String agetype1;
+
+    /**
+     * 年代2
+     */
+    private String agetype2;
+
+    /**
+     * 年代3
+     */
+    private String agetype3;
+
+    /**
+     * 年代4
+     */
+    private String agetype4;
+
+    /**
+     * 出土时间
+     */
+    private Date digdate;
+
+    /**
+     * 质地类别1
+     */
+    private String texturetype1;
+
+    /**
+     * 质地类别2
+     */
+    private String texturetype2;
+
+    /**
+     * 考古时代
+     */
+    private String era;
+
+    /**
+     * 文物级别
+     */
+    private String grade;
+
+    /**
+     * 口径
+     */
+    private String caliber;
+
+    /**
+     * 厚度
+     */
+    private String thickness;
+
+    /**
+     * 保护优先等级
+     */
+    private String savestate;
+
+    /**
+     * 出土遗址
+     */
+    private String ruins;
+
+    /**
+     * 录入位置
+     */
+    private String grid;
+
+    /**
+     * 重量
+     */
+    private String weight;
+
+    /**
+     * 最大长度
+     */
+    private String maxlongth;
+
+    /**
+     * 最小长度
+     */
+    private String minlongth;
+
+    /**
+     * 最大宽度
+     */
+    private String maxwidth;
+
+    /**
+     * 最小宽度
+     */
+    private String minwidth;
+
+    /**
+     * 内径
+     */
+    private String indiameter;
+
+    /**
+     * 外径
+     */
+    private String outdiameter;
+
+    /**
+     * 高度
+     */
+    private String height;
+
+    /**
+     * 直径
+     */
+    private String diameter;
+
+    /**
+     * 底径
+     */
+    private String bottomdiameter;
+
+    /**
+     * 器物说明
+     */
+    private String intro;
+
+    /**
+     * 分类号后面的流水号
+     */
+    private Integer categoryserial;
+
+    /**
+     * 分类号
+     */
+    private String categorynumber;
+
+    /**
+     * 入馆登记号
+     */
+    private String entrylibraryno;
+
+    /**
+     * 入馆日期
+     */
+    private String entrylibrarydate;
+
+    /**
+     * 年代研究信息
+     */
+    private String ageresearch;
+
+    /**
+     * 地域类型
+     */
+    private String regiontype;
+
+    /**
+     * 地域
+     */
+    private String region;
+
+    /**
+     * 人文类型
+     */
+    private String humanitytype;
+
+    /**
+     * 人文
+     */
+    private String humanity;
+
+    /**
+     * 人物传略
+     */
+    private String biography;
+
+    /**
+     * 功能类别
+     */
+    private String functioncategory;
+
+    /**
+     * 传统数量
+     */
+    private BigDecimal traditionalquantity;
+
+    /**
+     * 传统数量单位
+     */
+    private String traditionalunit;
+
+    /**
+     * 容积
+     */
+    private String volume;
+
+    /**
+     * 形态特征
+     */
+    private String shapefeature;
+
+    /**
+     * 工艺技法
+     */
+    private String processtechnology;
+
+    /**
+     * 颜色
+     */
+    private String color;
+
+    /**
+     * 光泽
+     */
+    private String sheen;
+
+    /**
+     * 文字种类
+     */
+    private String characterstype;
+
+    /**
+     * 字体
+     */
+    private String font;
+
+    /**
+     * 字迹颜色
+     */
+    private String handwritingcolor;
+
+    /**
+     * 题识情况
+     */
+    private String labelsituation;
+
+    /**
+     * 附属物情况
+     */
+    private String appurtenancesituation;
+
+    /**
+     * 来源号
+     */
+    private String sourcenumber;
+
+    /**
+     * 来源单位或个人
+     */
+    private String sourcetype;
+
+    /**
+     * 搜集经过
+     */
+    private String getprocess;
+
+    /**
+     * 流传经历
+     */
+    private String spreadexperience;
+
+    /**
+     * 出土情况
+     */
+    private String digsituation;
+
+    /**
+     * 鉴定情况
+     */
+    private String dentifysituation;
+
+    /**
+     * 当前状况
+     */
+    private String currentsituation;
+
+    /**
+     * 保存条件
+     */
+    private String savacondition;
+
+    /**
+     * 损坏原因
+     */
+    private String damagecause;
+
+    /**
+     * 历次保护记录
+     */
+    private String protectrecord;
+
+    /**
+     * 主要利用情况记录
+     */
+    private String majoruserecord;
+
+    /**
+     * 展览环境
+     */
+    private String exhibitionenvironment;
+
+    /**
+     * 陈列尺寸
+     */
+    private String displaysize;
+
+    /**
+     * 展览工具
+     */
+    private String exhibitiontool;
+
+    /**
+     * 展览状态
+     */
+    private String exhibitionstatus;
+
+    /**
+     * 休眠期
+     */
+    private String dormanttime;
+
+    /**
+     * 独特标记
+     */
+    private String uniquemarker;
+
+    /**
+     * 你采取的保护措施
+     */
+    private String youprotectway;
+
+    /**
+     * 质量单位
+     */
+    private String qualityunit;
+
+    /**
+     * 观察检查记录
+     */
+    private String inspectrecord;
+
+    /**
+     * 保护修复记录
+     */
+    private String repairrecord;
+
+    /**
+     * 鉴定变更记录
+     */
+    private String identifyrecord;
+
+    /**
+     * 研究利用情况
+     */
+    private String userecord;
+
+    /**
+     * 事故情况记录
+     */
+    private String accidentrecord;
+
+    /**
+     * 藏品注销记录
+     */
+    private String cancelrecord;
+
+    /**
+     * 文献及研究论著目录
+     */
+    private String literaturecatalog;
+
+    /**
+     * 其他声像资料目录
+     */
+    private String otherimagecatalog;
+
+    /**
+     * 相关研究情况备注
+     */
+    private String relationresearchmemo;
+
+    /**
+     * 动态跟踪记录备注
+     */
+    private String dynamictracingrecord;
+
+    /**
+     * 卷内目录
+     */
+    private String filelist;
+
+    /**
+     * 提取退还记录
+     */
+    private String carryreturnrecord;
+
+    /**
+     * 保护优先等级
+     */
+    private String protectlevel;
+
+    /**
+     * 浏览次数
+     */
+    private Integer visitCount;
+
+    /**
+     * 点赞量
+     */
+    private Integer likeCount;
+
+    /**
+     * 钤印
+     */
+    private String officialSeal;
+
+
+}

+ 24 - 0
src/main/java/com/project/hyb/biz/mapper/MbArtArtworksMapper.java

@@ -0,0 +1,24 @@
+package com.project.hyb.biz.mapper;
+
+import com.project.hyb.biz.domain.entity.MbArtArtworks;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.project.hyb.biz.domain.request.ArtArtworksPageRequest;
+import org.apache.ibatis.annotations.Mapper;
+
+import java.util.List;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 
+ * @since 2025-08-05
+ */
+@Mapper
+public interface MbArtArtworksMapper extends BaseMapper<MbArtArtworks> {
+
+    List<String> listCategory();
+
+    List<MbArtArtworks> listArtArtworks(ArtArtworksPageRequest request);
+}

+ 31 - 0
src/main/java/com/project/hyb/biz/service/MbArtArtworksService.java

@@ -0,0 +1,31 @@
+package com.project.hyb.biz.service;
+
+import com.project.hyb.biz.domain.dto.MbArtArtworksDto;
+import com.project.hyb.biz.domain.entity.MbArtArtworks;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.project.hyb.biz.domain.request.ArtArtworksPageRequest;
+import com.project.hyb.common.response.PageInfo;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 
+ * @since 2025-08-05
+ */
+public interface MbArtArtworksService extends IService<MbArtArtworks> {
+
+    PageInfo<MbArtArtworksDto> pageArtArtworks(ArtArtworksPageRequest request);
+
+    List<String> listCategory();
+
+    List<MbArtArtworks> listArtArtworks(@Param("param") ArtArtworksPageRequest request);
+
+    MbArtArtworksDto getArtArtworkById(Long id);
+
+    List<MbArtArtworksDto> listArtWork(ArtArtworksPageRequest request);
+}

+ 22 - 0
src/main/java/com/project/hyb/biz/service/impl/ArtArtworksServiceImpl.java

@@ -0,0 +1,22 @@
+package com.project.hyb.biz.service.impl;
+
+import com.baomidou.dynamic.datasource.annotation.DS;
+import com.project.hyb.biz.domain.entity.ArtArtworks;
+import com.project.hyb.biz.mapper.ArtArtworksMapper;
+import com.project.hyb.biz.service.ArtArtworksService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 
+ * @since 2025-08-14
+ */
+@DS("artoffice_museum")
+@Service
+public class ArtArtworksServiceImpl extends ServiceImpl<ArtArtworksMapper, ArtArtworks> implements ArtArtworksService {
+
+}

+ 34 - 0
src/main/resources/mapper/biz/MbArtArtworksMapper.xml

@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.project.hyb.biz.mapper.MbArtArtworksMapper">
+
+
+    <select id="listCategory" resultType="java.lang.String">
+        SELECT DISTINCT t.category FROM `art_artworks` t WHERE t.`recordstatus` = 1
+    </select>
+
+    <select id="listArtArtworks" resultType="com.project.hyb.biz.domain.entity.MbArtArtworks">
+        select * from art_artworks
+        where recordstatus = 1
+        <if test="grade != null and grade != ''">
+            and grade = #{grade}
+        </if>
+        <if test="category != null and category != ''">
+            and category = #{category}
+        </if>
+        <if test="texture != null and texture != ''">
+            and texture = #{texture}
+        </if>
+        <if test="agetype != null and agetype != ''">
+            and (
+                agetype1 = #{agetype} or
+                agetype2 = #{agetype} or
+                agetype3 = #{agetype} or
+                agetype4 = #{agetype}
+            )
+        </if>
+        <if test="searchText != null and searchText != ''">
+            and name like concat('%', #{searchText}, '%')
+        </if>
+    </select>
+</mapper>