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">