|
@@ -18,6 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="agentId" column="agent_id" />
|
|
<result property="agentId" column="agent_id" />
|
|
|
<result property="leafAgentId" column="leaf_agent_id" />
|
|
<result property="leafAgentId" column="leaf_agent_id" />
|
|
|
<result property="campusId" column="campus_id" />
|
|
<result property="campusId" column="campus_id" />
|
|
|
|
|
+ <result property="campusClassId" column="campus_class_id" />
|
|
|
<result property="assignLocation" column="assign_location" />
|
|
<result property="assignLocation" column="assign_location" />
|
|
|
<result property="assignExamType" column="assign_exam_type" />
|
|
<result property="assignExamType" column="assign_exam_type" />
|
|
|
<result property="assignSchoolId" column="assign_school_id" />
|
|
<result property="assignSchoolId" column="assign_school_id" />
|
|
@@ -41,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectDzCardsVo">
|
|
<sql id="selectDzCardsVo">
|
|
|
- select card_id, card_no, password, type, status, distribute_status, time_status, pay_status, is_settlement, dept_id, agent_id, leaf_agent_id, campus_id, assign_location,assign_exam_type,assign_school_id, school_id, class_id, year, end_year, open_id, remark, distribute_time, out_date, open_time, pay_time, active_time, days, settlement_time, refund_time, close_time, create_time, update_time from dz_cards
|
|
|
|
|
|
|
+ select card_id, card_no, password, type, status, distribute_status, time_status, pay_status, is_settlement, dept_id, agent_id, leaf_agent_id, campus_id, campus_class_id, assign_location,assign_exam_type,assign_school_id, school_id, class_id, year, end_year, open_id, remark, distribute_time, out_date, open_time, pay_time, active_time, days, settlement_time, refund_time, close_time, create_time, update_time from dz_cards
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectDzCardsList" parameterType="DzCards" resultMap="DzCardsResult">
|
|
<select id="selectDzCardsList" parameterType="DzCards" resultMap="DzCardsResult">
|
|
@@ -63,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
</if>
|
|
|
<if test="leafAgentId != null "> and leaf_agent_id = #{leafAgentId}</if>
|
|
<if test="leafAgentId != null "> and leaf_agent_id = #{leafAgentId}</if>
|
|
|
<if test="campusId != null "> and campus_id = #{campusId}</if>
|
|
<if test="campusId != null "> and campus_id = #{campusId}</if>
|
|
|
|
|
+ <if test="campusClassId != null "> and campus_class_id = #{campusClassId}</if>
|
|
|
<if test="assignLocation != null "> and assign_location = #{assignLocation}</if>
|
|
<if test="assignLocation != null "> and assign_location = #{assignLocation}</if>
|
|
|
<if test="assignExamType != null "> and assign_exam_type = #{assignExamType}</if>
|
|
<if test="assignExamType != null "> and assign_exam_type = #{assignExamType}</if>
|
|
|
<if test="assignSchoolId != null "> and assign_school_id = #{assignSchoolId}</if>
|
|
<if test="assignSchoolId != null "> and assign_school_id = #{assignSchoolId}</if>
|
|
@@ -103,6 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="agentId != null">agent_id,</if>
|
|
<if test="agentId != null">agent_id,</if>
|
|
|
<if test="leafAgentId != null">leaf_agent_id,</if>
|
|
<if test="leafAgentId != null">leaf_agent_id,</if>
|
|
|
<if test="campusId != null">campus_id,</if>
|
|
<if test="campusId != null">campus_id,</if>
|
|
|
|
|
+ <if test="campusClassId != null">campus_class_id,</if>
|
|
|
assign_location,assign_exam_type,assign_school_id,
|
|
assign_location,assign_exam_type,assign_school_id,
|
|
|
<if test="schoolId != null">school_id,</if>
|
|
<if test="schoolId != null">school_id,</if>
|
|
|
<if test="classId != null">class_id,</if>
|
|
<if test="classId != null">class_id,</if>
|
|
@@ -135,6 +138,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="agentId != null">#{agentId},</if>
|
|
<if test="agentId != null">#{agentId},</if>
|
|
|
<if test="leafAgentId != null">#{leafAgentId},</if>
|
|
<if test="leafAgentId != null">#{leafAgentId},</if>
|
|
|
<if test="campusId != null">#{campusId},</if>
|
|
<if test="campusId != null">#{campusId},</if>
|
|
|
|
|
+ <if test="campusClassId != null">#{campusClassId},</if>
|
|
|
#{assignLocation},#{assignExamType},#{assignSchoolId},
|
|
#{assignLocation},#{assignExamType},#{assignSchoolId},
|
|
|
<if test="schoolId != null">#{schoolId},</if>
|
|
<if test="schoolId != null">#{schoolId},</if>
|
|
|
<if test="classId != null">#{classId},</if>
|
|
<if test="classId != null">#{classId},</if>
|
|
@@ -171,6 +175,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="agentId != null">agent_id = #{agentId},</if>
|
|
<if test="agentId != null">agent_id = #{agentId},</if>
|
|
|
<if test="leafAgentId != null">leaf_agent_id = #{leafAgentId},</if>
|
|
<if test="leafAgentId != null">leaf_agent_id = #{leafAgentId},</if>
|
|
|
<if test="campusId != null">campus_id = #{campusId},</if>
|
|
<if test="campusId != null">campus_id = #{campusId},</if>
|
|
|
|
|
+ <if test="campusClassId != null">campus_class_id = #{campusClassId},</if>
|
|
|
assign_location = #{assignLocation},assign_exam_type = #{assignExamType},assign_school_id = #{assignSchoolId},
|
|
assign_location = #{assignLocation},assign_exam_type = #{assignExamType},assign_school_id = #{assignSchoolId},
|
|
|
<if test="schoolId != null">school_id = #{schoolId},</if>
|
|
<if test="schoolId != null">school_id = #{schoolId},</if>
|
|
|
<if test="classId != null">class_id = #{classId},</if>
|
|
<if test="classId != null">class_id = #{classId},</if>
|
|
@@ -207,6 +212,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="agentId != null">agent_id = #{agentId},</if>
|
|
<if test="agentId != null">agent_id = #{agentId},</if>
|
|
|
<if test="leafAgentId != null">leaf_agent_id = #{leafAgentId},</if>
|
|
<if test="leafAgentId != null">leaf_agent_id = #{leafAgentId},</if>
|
|
|
<if test="campusId != null">campus_id = #{campusId},</if>
|
|
<if test="campusId != null">campus_id = #{campusId},</if>
|
|
|
|
|
+ <if test="campusClassId != null">campus_class_id = #{campusClassId},</if>
|
|
|
assign_location = #{assignLocation},assign_exam_type = #{assignExamType},assign_school_id = #{assignSchoolId},
|
|
assign_location = #{assignLocation},assign_exam_type = #{assignExamType},assign_school_id = #{assignSchoolId},
|
|
|
<if test="schoolId != null">school_id = #{schoolId},</if>
|
|
<if test="schoolId != null">school_id = #{schoolId},</if>
|
|
|
<if test="classId != null">class_id = #{classId},</if>
|
|
<if test="classId != null">class_id = #{classId},</if>
|