1、正课与学期关系关联;
2、天假删除保护; 3、教学任务计划增加了「结束发布」。已发布或库里的「已发布」都可以结束;结束后写入结束时间,任务书和班次课程任务只读 4、班次学期操作内容调整修改;
This commit is contained in:
+37
-9
@@ -24,6 +24,9 @@
|
||||
<result column="分析报告文档2编号" property="fxbgwd2bh" />
|
||||
<result column="分析报告文档3编号" property="fxbgwd3bh" />
|
||||
<result column="DEL_FLAG" property="delFlag" />
|
||||
<result column="zkcs" property="zkcs" />
|
||||
<result column="xydmc" property="xydmc" />
|
||||
<result column="zyjsmc" property="zyjsmc" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
@@ -32,25 +35,50 @@
|
||||
分析报告生成时间, 分析报告文档1编号, 分析报告文档2编号, 分析报告文档3编号, DEL_FLAG
|
||||
</sql>
|
||||
|
||||
<sql id="List_Select">
|
||||
SELECT a.编号, a.年度, a.学员队编号, a.开学日期, a.结束日期, a.学期第次, a.专用教室编号, a.教学任务编号,
|
||||
a.变动时间, a.备注, a.序号标识, a.预设编班号, a.节次类别, a.系统模式, a.开放教员排课, a.JSONZD,
|
||||
a.分析报告生成时间, a.分析报告文档1编号, a.分析报告文档2编号, a.分析报告文档3编号, a.DEL_FLAG,
|
||||
(SELECT COUNT(*) FROM 学员队任务表 t
|
||||
WHERE t.学员队学期编号 = a.编号 AND NVL(t.DEL_FLAG, 0) = 0) AS zkcs,
|
||||
b.学员队名称 AS xydmc,
|
||||
NVL(r1.教室名称, r2.教室名称) AS zyjsmc
|
||||
FROM 学员队年度学期基本信息表 a
|
||||
LEFT JOIN 学员队表 b ON a.学员队编号 = b.学员队编号
|
||||
LEFT JOIN 教室表 r1 ON a.专用教室编号 = r1.ID
|
||||
LEFT JOIN 教室表 r2 ON a.专用教室编号 = r2.教室编号 AND r1.ID IS NULL
|
||||
</sql>
|
||||
|
||||
<select id="selectPageList" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
FROM 学员队年度学期基本信息表
|
||||
<include refid="List_Select" />
|
||||
<where>
|
||||
<if test="xydndxqjbxxb.delFlag != null">
|
||||
AND DEL_FLAG = #{xydndxqjbxxb.delFlag}
|
||||
AND a.DEL_FLAG = #{xydndxqjbxxb.delFlag}
|
||||
</if>
|
||||
<if test="xydndxqjbxxb.xydbh != null and xydndxqjbxxb.xydbh != ''">
|
||||
AND 学员队编号 LIKE CONCAT('%', #{xydndxqjbxxb.xydbh}, '%')
|
||||
AND a.学员队编号 LIKE CONCAT('%', #{xydndxqjbxxb.xydbh}, '%')
|
||||
</if>
|
||||
<if test="xydndxqjbxxb.nd != null">
|
||||
AND a.年度 = #{xydndxqjbxxb.nd}
|
||||
</if>
|
||||
<if test="xydndxqjbxxb.xqdc != null">
|
||||
AND a.学期第次 = #{xydndxqjbxxb.xqdc}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY 编号
|
||||
<choose>
|
||||
<when test="xydndxqjbxxb.sortWave != null and xydndxqjbxxb.sortWave == 1">
|
||||
ORDER BY NVL(a.预设编班号, 0), a.学员队编号
|
||||
</when>
|
||||
<otherwise>
|
||||
ORDER BY a.年度 DESC, a.学期第次, a.学员队编号
|
||||
</otherwise>
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
<select id="selectAllValid" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
FROM 学员队年度学期基本信息表
|
||||
WHERE DEL_FLAG = '0'
|
||||
ORDER BY 编号
|
||||
<include refid="List_Select" />
|
||||
WHERE a.DEL_FLAG = '0'
|
||||
ORDER BY NVL(a.预设编班号, 0), a.学员队编号
|
||||
</select>
|
||||
|
||||
<select id="selectByBcAndNdAndXqdc" resultMap="BaseResultMap">
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.roomroot.jwgl.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.roomroot.jwgl.entity.JQB;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 假期表(班历时间格)
|
||||
*/
|
||||
@Mapper
|
||||
public interface JQBMapper extends BaseMapper<JQB> {
|
||||
}
|
||||
@@ -25,4 +25,9 @@ public interface XYDBMapper extends BaseMapper<XYDB> {
|
||||
* @return 学员队列表
|
||||
*/
|
||||
java.util.List<XYDB> selectByDateRange(@Param("startTime") String startTime, @Param("endTime") String endTime);
|
||||
|
||||
/**
|
||||
* 未毕业、且指定年度学期尚未建立班次学期信息的班次。
|
||||
*/
|
||||
java.util.List<XYDB> selectCreatableClasses(@Param("nd") Integer nd, @Param("xqdc") Integer xqdc);
|
||||
}
|
||||
|
||||
@@ -161,4 +161,19 @@
|
||||
ORDER BY "序号"
|
||||
</select>
|
||||
|
||||
<!-- 未毕业,且该年度学期尚未建立班次学期 -->
|
||||
<select id="selectCreatableClasses" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
FROM "学员队表" t
|
||||
WHERE (t."毕业日期" IS NULL OR t."毕业日期" > SYSDATE)
|
||||
AND NOT EXISTS (
|
||||
SELECT 1 FROM "学员队年度学期基本信息表" s
|
||||
WHERE s."学员队编号" = t."学员队编号"
|
||||
AND s."年度" = #{nd}
|
||||
AND s."学期第次" = #{xqdc}
|
||||
AND NVL(s.DEL_FLAG, 0) = 0
|
||||
)
|
||||
ORDER BY t."序号", t."学员队编号"
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user