123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?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.bowintek.practice.mapper.cquery.PositionCQuery">
- <select id="getList" resultType="com.bowintek.practice.vo.PositionModel">
- select pos.* from cf_position pos
- where 1=1
- <if test="schoolYearID!='' and schoolYearID!=null">
- and pos.schoolYearID = #{schoolYearID}
- </if>
- <if test="majorGradeID!='' and majorGradeID!=null">
- and pos.majorGradeID = #{majorGradeID}
- </if>
- <if test="practiceBaseTypeID!='' and practiceBaseTypeID!=null">
- and base.PracticeBaseTypeID = #{practiceBaseTypeID}
- </if>
- <if test="name!='' and name!=null">
- and pos.name like Concat('%',#{name},'%')
- </if>
- <if test="practiceBaseName!='' and practiceBaseName!=null">
- and base.name like Concat('%',#{practiceBaseName},'%')
- </if>
- <if test="positionID!='' and positionID!=null">
- and pos.positionID = #{positionID}
- </if>
- <if test="isPostManage!=null and isPostManage">
- </if>
- <if test="baseStatus!=null and baseStatus!=''">
- and base.recordStatus = #{baseStatus}
- </if>
- <if test="positionIdList!=null and positionIdList!=''">
- and pos.positionID in(${positionIdList})
- </if>
- order by CreateTime desc
- </select>
- <insert id="batchInsertPosition">
- insert into cf_position(PositionID,MajorGradeID,PracticeBaseID,Name,Qty,Remark,RecordStatus,CreateBy,CreateTime,SchoolYearID,ArrangementID)
- values
- <foreach collection="dataList" item="item" separator=",">
- (#{item.positionID},#{item.majorGradeID},#{item.practiceBaseID},#{item.name},#{item.qty},#{item.remark},#{item.recordStatus},#{item.createBy},#{item.createTime},#{item.schoolYearID},#{item.arrangementID})
- </foreach>
- </insert>
- </mapper>
|