Browse Source

部门表添加字段

master
xfc 3 weeks ago
parent
commit
0f0c9f79a3
  1. 9
      xzs/src/main/java/com/mindskip/xzs/domain/Dept.java
  2. 1
      xzs/src/main/resources/mapper/ExamPaperMapper.xml

9
xzs/src/main/java/com/mindskip/xzs/domain/Dept.java

@ -16,6 +16,8 @@ public class Dept extends BaseVM implements Serializable {
private String nodeType; private String nodeType;
private String orgtypecode;
private boolean leaf; private boolean leaf;
public Integer getId() { public Integer getId() {
@ -50,6 +52,13 @@ public class Dept extends BaseVM implements Serializable {
this.nodeType = nodeType; this.nodeType = nodeType;
} }
public String getOrgtypecode() {
return orgtypecode;
}
public void setOrgtypecode(String orgtypecode) {
this.orgtypecode = orgtypecode;
}
public boolean isLeaf() { public boolean isLeaf() {
return leaf; return leaf;
} }

1
xzs/src/main/resources/mapper/ExamPaperMapper.xml

@ -310,6 +310,7 @@
OR OR
(dl.dept_id IS NULL AND #{dateTime} BETWEEN p.limit_start_time AND p.limit_end_time) (dl.dept_id IS NULL AND #{dateTime} BETWEEN p.limit_start_time AND p.limit_end_time)
) )
AND p.subject_id = (SELECT (case orgtypecode when '0311' then 3 else 2 end) FROM `t_dept` where id =#{deptId} )
ORDER BY CRC32(CONCAT(#{userId}, #{deptId}, p.id)) ORDER BY CRC32(CONCAT(#{userId}, #{deptId}, p.id))
LIMIT 1 LIMIT 1
</if> </if>

Loading…
Cancel
Save