forked from liweijie/education
1、添加教学场地历;
2、很多表继承了基础类,但是没有添加对应字段导致报错,把继承去掉
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
<result column="确认时间" property="qrsj"/>
|
||||
<result column="确认备注" property="qrbz"/>
|
||||
<result column="创建时间" property="cjsj"/>
|
||||
<result column="更新时间" property="updateTime"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 教学保障历史联想结果映射 -->
|
||||
@@ -44,9 +43,9 @@
|
||||
m.保障类别编号,
|
||||
l.名称 AS 保障类别名称,
|
||||
COUNT(a.编号) AS 使用次数,
|
||||
MAX(a.创建时间) AS 最近时间,
|
||||
MAX(a.日期) AS 最近时间,
|
||||
CAST(ROUND(AVG(a.数量), 0) AS INT) AS 平均数量,
|
||||
MAX(a.数量) KEEP (DENSE_RANK LAST ORDER BY a.创建时间) AS 最近数量
|
||||
MAX(a.数量) KEEP (DENSE_RANK LAST ORDER BY a.日期) AS 最近数量
|
||||
FROM "课程表_保障明细" a
|
||||
INNER JOIN "实施_课程表" b ON a.课程表编号 = b.编号
|
||||
LEFT JOIN "保障提供明细" m ON a.保障提供明细编号 = m.编号
|
||||
@@ -94,8 +93,7 @@
|
||||
REGEXP_SUBSTR(a.备注, '"confirmRemark":"([^"]*)"', 1, 1, NULL, 1)
|
||||
ELSE NULL
|
||||
END AS 确认备注,
|
||||
a.创建时间,
|
||||
a.update_time AS 更新时间
|
||||
a.日期 AS 创建时间
|
||||
FROM "课程表_保障明细" a
|
||||
LEFT JOIN "保障提供明细" m ON a.保障提供明细编号 = m.编号
|
||||
LEFT JOIN "保障类别" l ON m.保障类别编号 = l.编号
|
||||
@@ -107,7 +105,7 @@
|
||||
END
|
||||
) = t.编号
|
||||
WHERE a.课程表编号 = #{sskcbbh}
|
||||
ORDER BY a.创建时间 DESC
|
||||
ORDER BY a.日期 DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -15,4 +15,9 @@ public interface SSKCMapper extends BaseMapper<SSKC> {
|
||||
List<SSKC> selectByClassBh(@Param("classBh") String classBh, @Param("nd") Integer nd);
|
||||
|
||||
SSKC selectByCourseBhAndClassBh(@Param("courseBh") String courseBh, @Param("classBh") String classBh, @Param("nd") Integer nd);
|
||||
|
||||
/**
|
||||
* 按编号批量查询(编号为 VARBINARY GUID,不能用 selectBatchIds——主键 typeHandler 对 IN 参数不生效)
|
||||
*/
|
||||
List<SSKC> selectByBhs(@Param("list") List<String> bhs);
|
||||
}
|
||||
@@ -31,4 +31,13 @@
|
||||
WHERE sc.课编号 = #{courseBh} AND scxd.学员队编号 = #{classBh} AND sc.年度 = #{nd} AND sc.停用 = 0
|
||||
</select>
|
||||
|
||||
<!-- 按编号批量查询:编号为 VARBINARY(16),入参为 36 位 UUID 字符串,须先转十六进制比对 -->
|
||||
<select id="selectByBhs" resultMap="SSKCMap">
|
||||
SELECT * FROM 实施_课程
|
||||
WHERE LOWER(RAWTOHEX("编号")) IN
|
||||
<foreach collection="list" item="bh" open="(" separator="," close=")">
|
||||
LOWER(REPLACE(TRIM(#{bh}), '-', ''))
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user