From 37efb1a8d0399335de8ed7aecc46abc88dc9496a Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Mon, 26 Jan 2026 20:50:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[=E9=83=A8=E9=97=A8=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=20=E5=A2=9E=E5=8A=A0=E7=AE=80=E7=A7=B0=E5=92=8C=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E5=9C=A8=E5=AD=A6=E7=A7=91=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hxhq/system/api/domain/SysDept.java | 24 ++++++++++++++++++++++ .../com/hxhq/business/domain/StudySubject.java | 11 ++++++++++ .../service/impl/StudySubjectServiceImpl.java | 1 + .../mapper/business/StudySubjectMapper.xml | 2 +- .../main/resources/mapper/system/SysDeptMapper.xml | 10 ++++++++- 5 files changed, 46 insertions(+), 2 deletions(-) diff --git a/hxhq-api/hxhq-api-system/src/main/java/com/hxhq/system/api/domain/SysDept.java b/hxhq-api/hxhq-api-system/src/main/java/com/hxhq/system/api/domain/SysDept.java index 5f35381..f5f4e04 100644 --- a/hxhq-api/hxhq-api-system/src/main/java/com/hxhq/system/api/domain/SysDept.java +++ b/hxhq-api/hxhq-api-system/src/main/java/com/hxhq/system/api/domain/SysDept.java @@ -57,6 +57,12 @@ public class SysDept extends BaseEntity /** 缩写 */ private String abbr; + + /** jc */ + private String jc; + + /** 是否在学科处显示1否,10是 */ + private Integer showInSubject; /** 子部门 */ private List children = new ArrayList(); @@ -206,6 +212,8 @@ public class SysDept extends BaseEntity .append("updateTime", getUpdateTime()) .append("type", getType()) .append("abbr", getAbbr()) + .append("jc", getJc()) + .append("showInSubject", getShowInSubject()) .toString(); } @@ -224,4 +232,20 @@ public class SysDept extends BaseEntity public void setAbbr(String abbr) { this.abbr = abbr; } + + public String getJc() { + return jc; + } + + public void setJc(String jc) { + this.jc = jc; + } + + public Integer getShowInSubject() { + return showInSubject; + } + + public void setShowInSubject(Integer showInSubject) { + this.showInSubject = showInSubject; + } } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudySubject.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudySubject.java index 94f3fd1..f2d4055 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudySubject.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudySubject.java @@ -27,6 +27,9 @@ public class StudySubject extends MpBaseEntity /** 学科名称 */ private String deptName; + /** 学科简称 */ + private String deptJc; + /** 负责人id */ private Long leader; @@ -79,6 +82,14 @@ public class StudySubject extends MpBaseEntity return deptName; } + public String getDeptJc() { + return deptJc; + } + + public void setDeptJc(String deptJc) { + this.deptJc = deptJc; + } + public void setLeader(Long leader) { this.leader = leader; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudySubjectServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudySubjectServiceImpl.java index 7391603..6b663f2 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudySubjectServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudySubjectServiceImpl.java @@ -64,6 +64,7 @@ public class StudySubjectServiceImpl extends ServiceImpl exists = existsList.stream().filter(o->o.getDeptId().equals(subject.getDeptId())).collect(Collectors.toList()); diff --git a/hxhq-modules/hxhq-system/src/main/resources/mapper/business/StudySubjectMapper.xml b/hxhq-modules/hxhq-system/src/main/resources/mapper/business/StudySubjectMapper.xml index aa465ea..ba99ec8 100644 --- a/hxhq-modules/hxhq-system/src/main/resources/mapper/business/StudySubjectMapper.xml +++ b/hxhq-modules/hxhq-system/src/main/resources/mapper/business/StudySubjectMapper.xml @@ -4,7 +4,7 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">