feat: 提交课表冲突检查相关功能模块
This commit is contained in:
+64
@@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.roomroot.jwgl.mapper.TeachingStockDetailMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.roomroot.jwgl.entity.JCKCMXX">
|
||||
<id column="ID" property="id" />
|
||||
<result column="编号" property="bh" />
|
||||
<result column="教材库存单编号" property="jckcdbbh" />
|
||||
<result column="教材信息编号" property="jcxxbh" />
|
||||
<result column="数量" property="sl" />
|
||||
<result column="前置库存明细项编号" property="qzkcmxxbh" />
|
||||
<result column="还回完毕" property="hwbw" />
|
||||
<result column="还回完毕时间" property="hwbwsj" />
|
||||
<result column="备注" property="bz" />
|
||||
<result column="JSONZD" property="jsonzd" />
|
||||
<result column="快照_事务后库存数量" property="kzswHkcsl" />
|
||||
<result column="快照_事务后借出数量" property="kzswHjcsl" />
|
||||
<result column="快照_事务前库存数量" property="kzswQkcsl" />
|
||||
<result column="快照_事务前借出数量" property="kzswQjcsl" />
|
||||
<result column="DEL_FLAG" property="delFlag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
ID, 编号, 教材库存单编号, 教材信息编号, 数量, 前置库存明细项编号,
|
||||
还回完毕, 还回完毕时间, 备注, JSONZD,
|
||||
快照_事务后库存数量, 快照_事务后借出数量,
|
||||
快照_事务前库存数量, 快照_事务前借出数量, DEL_FLAG
|
||||
</sql>
|
||||
|
||||
<select id="selectPageList" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
FROM 教材库存明细项
|
||||
<where>
|
||||
<if test="jckcmxx.bh != null and jckcmxx.bh != ''">
|
||||
AND 编号 LIKE CONCAT('%', #{jckcmxx.bh}, '%')
|
||||
</if>
|
||||
<if test="jckcmxx.jckcdbbh != null and jckcmxx.jckcdbbh != ''">
|
||||
AND 教材库存单编号 = #{jckcmxx.jckcdbbh}
|
||||
</if>
|
||||
<if test="jckcmxx.jcxxbh != null and jckcmxx.jcxxbh != ''">
|
||||
AND 教材信息编号 LIKE CONCAT('%', #{jckcmxx.jcxxbh}, '%')
|
||||
</if>
|
||||
<if test="jckcmxx.hwbw != null">
|
||||
AND 还回完毕 = #{jckcmxx.hwbw}
|
||||
</if>
|
||||
<if test="jckcmxx.delFlag != null">
|
||||
AND DEL_FLAG = #{jckcmxx.delFlag}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY ID DESC
|
||||
</select>
|
||||
|
||||
<select id="selectMaxBh" resultType="java.lang.String">
|
||||
SELECT MAX(编号) FROM 教材库存明细项 WHERE DEL_FLAG = 0
|
||||
</select>
|
||||
|
||||
<select id="selectByJckcdbbh" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
FROM 教材库存明细项
|
||||
WHERE 教材库存单编号 = #{jckcdbbh} AND DEL_FLAG = 0
|
||||
ORDER BY ID
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user