feat: 完善数据库表命名规范,新增后勤管理和系统公共模块前缀
📋 主要变更: - ✅ 补充完整的7个业务模块表命名规范 - ✅ 新增后勤管理模块:hq_ 前缀 - ✅ 明确系统公共模块:common_ 前缀 - ✅ 提供完整的命名示例和实体类映射规则 - ✅ 更新变更记录文档 🎯 覆盖模块: - 后勤管理(hq_)、人事管理(rs_)、财务管理(cw_) - 学工管理(xg_)、招生就业(zsjy_)、安全保卫(aqbw_) - 系统公共(common_) 📚 文件变更: - .cursor/cursorrules-backend.md - 数据库表命名规范 - docs/变更管理/code-adjust-record-2025-01-23-wuzilong.md - 变更记录 - 各业务模块工程文件和前端结构文件 Co-authored-by: Cursor AI <cursor@cursor.sh>
This commit is contained in:
1 parent
00297e714b
commit
90b13a6e0c
193 files changed
+2726
-409
No files matched your search
@@ -1,7 +0,0 @@
|
||||
<?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="org.dromara.zhxy.hq.mapper.HqHallInfoMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?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="org.dromara.zhxy.hq.mapper.HqHallReservationMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?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="org.dromara.zhxy.hq.mapper.HqSatCategoryMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?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="org.dromara.zhxy.hq.mapper.HqSatDetailMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?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="org.dromara.zhxy.hq.mapper.HqSatOptionMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?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="org.dromara.zhxy.hq.mapper.HqSatQuestionMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?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="org.dromara.zhxy.hq.mapper.HqSatRecordMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?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="org.dromara.zhxy.hq.mapper.HqSatSurveyMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -1,32 +0,0 @@
|
||||
<?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="org.dromara.zhxy.hq.mapper.HqSatSurveyQuestionMapper">
|
||||
|
||||
<!-- 联表查询问卷题目详情 -->
|
||||
<select id="selectSurveyQuestionsWithDetail" resultType="org.dromara.zhxy.hq.domain.vo.HqSatSurveyQuestionVo">
|
||||
SELECT
|
||||
sq.id,
|
||||
sq.deleted,
|
||||
sq.survey_id AS surveyId,
|
||||
sq.question_id AS questionId,
|
||||
sq.sort_order AS sortOrder,
|
||||
sq.weight,
|
||||
sq.is_required AS isRequired,
|
||||
sq.remark,
|
||||
q.question_title AS questionTitle,
|
||||
q.question_content AS questionContent,
|
||||
q.category_id AS categoryId,
|
||||
q.question_type AS questionType,
|
||||
q.status,
|
||||
c.category_name AS categoryName
|
||||
FROM hq_sat_survey_question sq
|
||||
LEFT JOIN hq_sat_question q ON sq.question_id = q.id AND q.deleted = 0
|
||||
LEFT JOIN hq_sat_category c ON q.category_id = c.id AND c.deleted = 0
|
||||
WHERE sq.survey_id = #{surveyId}
|
||||
AND sq.deleted = 0
|
||||
ORDER BY sq.sort_order ASC, sq.id ASC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,37 +0,0 @@
|
||||
<?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="org.dromara.zhxy.hq.mapper.PmRepairAttachmentMapper">
|
||||
|
||||
<resultMap type="org.dromara.zhxy.hq.domain.PmRepairAttachment" id="PmRepairAttachmentResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="fileName" column="file_name" />
|
||||
<result property="filePath" column="file_path" />
|
||||
<result property="fileSize" column="file_size" />
|
||||
<result property="fileType" column="file_type" />
|
||||
<result property="fileExtension" column="file_extension" />
|
||||
<result property="fileMimeType" column="file_mime_type" />
|
||||
<result property="uploadStage" column="upload_stage" />
|
||||
<result property="uploaderId" column="uploader_id" />
|
||||
<result property="uploaderName" column="uploader_name" />
|
||||
<result property="thumbnailPath" column="thumbnail_path" />
|
||||
<result property="duration" column="duration" />
|
||||
<result property="resolution" column="resolution" />
|
||||
<result property="description" column="description" />
|
||||
<result property="sortOrder" column="sort_order" />
|
||||
<result property="tenantId" column="tenant_id" />
|
||||
<result property="createDept" column="create_dept" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="deleted" column="deleted" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPmRepairAttachmentVo">
|
||||
select id, order_id, file_name, file_path, file_size, file_type, file_extension, file_mime_type, upload_stage, uploader_id, uploader_name, thumbnail_path, duration, resolution, description, sort_order, tenant_id, create_dept, create_by, create_time, update_by, update_time, deleted from pm_repair_attachment
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?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="org.dromara.zhxy.hq.mapper.PmRepairCategoryMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -1,28 +0,0 @@
|
||||
<?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="org.dromara.zhxy.hq.mapper.PmRepairOrderMapper">
|
||||
|
||||
<!-- 查询拥有"维修人员"角色的用户列表 -->
|
||||
<select id="selectMaintenanceWorkers" resultType="java.util.Map">
|
||||
SELECT
|
||||
u.user_id as value,
|
||||
u.nick_name as label,
|
||||
u.user_name as userName,
|
||||
d.dept_name as deptName
|
||||
FROM sys_user u
|
||||
LEFT JOIN sys_dept d ON u.dept_id = d.dept_id
|
||||
INNER JOIN sys_user_role ur ON u.user_id = ur.user_id
|
||||
INNER JOIN sys_role r ON ur.role_id = r.role_id
|
||||
WHERE (r.role_key = 'maintenance_worker'
|
||||
OR r.role_name = '维修人员'
|
||||
OR r.role_id = 5
|
||||
OR r.role_name LIKE '%维修%'
|
||||
OR r.role_key LIKE '%worker%')
|
||||
AND u.status = '0'
|
||||
AND u.del_flag = '0'
|
||||
ORDER BY u.user_id
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,39 +0,0 @@
|
||||
<?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="org.dromara.zhxy.hq.mapper.PmRepairProgressMapper">
|
||||
|
||||
<resultMap type="org.dromara.zhxy.hq.domain.PmRepairProgress" id="PmRepairProgressResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="progressType" column="progress_type" />
|
||||
<result property="progressStatus" column="progress_status" />
|
||||
<result property="progressDetail" column="progress_detail" />
|
||||
<result property="operatorId" column="operator_id" />
|
||||
<result property="operatorName" column="operator_name" />
|
||||
<result property="operatorRole" column="operator_role" />
|
||||
<result property="locationInfo" column="location_info" />
|
||||
<result property="gpsLatitude" column="gps_latitude" />
|
||||
<result property="gpsLongitude" column="gps_longitude" />
|
||||
<result property="operationTime" column="operation_time" />
|
||||
<result property="estimatedDuration" column="estimated_duration" />
|
||||
<result property="attachmentIds" column="attachment_ids" />
|
||||
<result property="nextStep" column="next_step" />
|
||||
<result property="issuesEncountered" column="issues_encountered" />
|
||||
<result property="materialsNeeded" column="materials_needed" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="tenantId" column="tenant_id" />
|
||||
<result property="createDept" column="create_dept" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="deleted" column="deleted" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPmRepairProgressVo">
|
||||
select id, order_id, progress_type, progress_status, progress_detail, operator_id, operator_name, operator_role, location_info, gps_latitude, gps_longitude, operation_time, estimated_duration, attachment_ids, next_step, issues_encountered, materials_needed, remark, tenant_id, create_dept, create_by, create_time, update_by, update_time, deleted from pm_repair_progress
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
Reference in new issue
Block a user