Browse Source

feat(base): 新增荣誉资质和招聘相关实体及接口

- 新增 QualificationCertificateServiceImpl 类实现 QualificationCertificateService 接口
- 新增 SmartEmployment 实体类,用于招聘相关信息
- 新增 SmartEmploymentMapper 接口和对应的 XML 文件,实现招聘信息的数据库操作
林仔 8 months ago
parent
commit
74326fcc4f

+ 104 - 0
zksy-system/src/main/java/com/zksy/base/domain/SmartEmployment.java

@@ -0,0 +1,104 @@
+package com.zksy.base.domain;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import java.time.LocalDateTime;
+import lombok.Data;
+
+/**
+ * 招聘
+ * @TableName smart_employment
+ */
+@TableName(value ="smart_employment")
+@Data
+public class SmartEmployment implements Serializable {
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.ASSIGN_UUID)
+    private Long id;
+
+    /**
+     * 招聘岗位
+     */
+    @TableField(value = "job_openings")
+    private String jobOpenings;
+
+    /**
+     * 关键词条
+     */
+    @TableField(value = "key_terms")
+    private String keyTerms;
+
+    /**
+     * 招聘详情
+     */
+    @TableField(value = "job_requirements")
+    private String jobRequirements;
+
+    /**
+     * 招聘人数
+     */
+    @TableField(value = "number_recruits")
+    private String numberRecruits;
+
+    /**
+     * 薪资
+     */
+    @TableField(value = "salary")
+    private String salary;
+
+    /**
+     * 工作地点
+     */
+    @TableField(value = "work_location")
+    private String workLocation;
+
+    /**
+     * 联系人
+     */
+    @TableField(value = "contact")
+    private String contact;
+
+    /**
+     * 联系方式
+     */
+    @TableField(value = "contact_information")
+    private String contactInformation;
+
+    /**
+     * 备注
+     */
+    @TableField(value = "remarks")
+    private String remarks;
+
+    /**
+     * 创建人
+     */
+    @TableField(value = "create_by")
+    private String createBy;
+
+    /**
+     * 创建时间
+     */
+    @TableField(value = "create_time")
+    private LocalDateTime createTime;
+
+    /**
+     * 修改人
+     */
+    @TableField(value = "update_by")
+    private String updateBy;
+
+    /**
+     * 修改时间
+     */
+    @TableField(value = "update_time")
+    private LocalDateTime updateTime;
+
+    @TableField(exist = false)
+    private static final long serialVersionUID = 1L;
+}

+ 18 - 0
zksy-system/src/main/java/com/zksy/base/mapper/SmartEmploymentMapper.java

@@ -0,0 +1,18 @@
+package com.zksy.base.mapper;
+
+import com.zksy.base.domain.SmartEmployment;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+* @author Administrator
+* @description 针对表【smart_employment(招聘)】的数据库操作Mapper
+* @createDate 2025-09-08 08:57:08
+* @Entity com.zksy.base.domain.SmartEmployment
+*/
+public interface SmartEmploymentMapper extends BaseMapper<SmartEmployment> {
+
+}
+
+
+
+

+ 22 - 0
zksy-system/src/main/java/com/zksy/base/service/impl/QualificationCertificateServiceImpl.java

@@ -0,0 +1,22 @@
+package com.zksy.base.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.zksy.base.domain.QualificationCertificate;
+import com.zksy.base.service.QualificationCertificateService;
+import com.zksy.base.mapper.QualificationCertificateMapper;
+import org.springframework.stereotype.Service;
+
+/**
+* @author Administrator
+* @description 针对表【qualification_certificate(荣誉资质)】的数据库操作Service实现
+* @createDate 2025-09-08 08:57:08
+*/
+@Service
+public class QualificationCertificateServiceImpl extends ServiceImpl<QualificationCertificateMapper, QualificationCertificate>
+    implements QualificationCertificateService{
+
+}
+
+
+
+

+ 31 - 0
zksy-system/src/main/resources/mapper/base/SmartEmploymentMapper.xml

@@ -0,0 +1,31 @@
+<?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.zksy.base.mapper.SmartEmploymentMapper">
+
+    <resultMap id="BaseResultMap" type="com.zksy.base.domain.SmartEmployment">
+            <id property="id" column="id" jdbcType="BIGINT"/>
+            <result property="jobOpenings" column="job_openings" jdbcType="VARCHAR"/>
+            <result property="keyTerms" column="key_terms" jdbcType="VARCHAR"/>
+            <result property="jobRequirements" column="job_requirements" jdbcType="VARCHAR"/>
+            <result property="numberRecruits" column="number_recruits" jdbcType="VARCHAR"/>
+            <result property="salary" column="salary" jdbcType="VARCHAR"/>
+            <result property="workLocation" column="work_location" jdbcType="VARCHAR"/>
+            <result property="contact" column="contact" jdbcType="VARCHAR"/>
+            <result property="contactInformation" column="contact_information" jdbcType="VARCHAR"/>
+            <result property="remarks" column="remarks" jdbcType="VARCHAR"/>
+            <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
+            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
+            <result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
+            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,job_openings,key_terms,
+        job_requirements,number_recruits,salary,
+        work_location,contact,contact_information,
+        remarks,create_by,create_time,
+        update_by,update_time
+    </sql>
+</mapper>