|
@@ -0,0 +1,190 @@
|
|
|
+<?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">
|
|
|
+<!-- namespace必须指向DAO接口 -->
|
|
|
+<mapper namespace="com.jpsoft.picc.modules.business.dao.StudentApplicationDAO">
|
|
|
+ <resultMap id="StudentApplicationMap" type="com.jpsoft.picc.modules.business.entity.StudentApplication">
|
|
|
+ <id property="id" column="id_" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
+ <result property="definitionId" column="definition_id" />
|
|
|
+ <result property="policyNo" column="policy_no" />
|
|
|
+ <result property="insuredId" column="insured_id" />
|
|
|
+ <result property="insuredName" column="insured_name" />
|
|
|
+ <result property="insuredCard" column="insured_card" />
|
|
|
+ <result property="insuredTel" column="insured_tel" />
|
|
|
+ <result property="haveAttach" column="have_attach" />
|
|
|
+ <result property="attachId" column="attach_id" />
|
|
|
+ <result property="attachName" column="attach_name" />
|
|
|
+ <result property="attachCard" column="attach_card" />
|
|
|
+ <result property="attachTel" column="attach_tel" />
|
|
|
+ <result property="haveMedicare" column="have_medicare" />
|
|
|
+ <result property="startTime" column="start_time" />
|
|
|
+ <result property="endTime" column="end_time" />
|
|
|
+ <result property="insuranceFee" column="insurance_fee" />
|
|
|
+ <result property="status" column="status_" />
|
|
|
+ <result property="processStatus" column="process_status" />
|
|
|
+ <result property="finishTime" column="finish_time" />
|
|
|
+ <result property="signature" column="signature_" />
|
|
|
+ <result property="signature2" column="signature_2" />
|
|
|
+ <result property="signature3" column="signature_3" />
|
|
|
+ <result property="paymentOrder" column="payment_order" />
|
|
|
+ </resultMap>
|
|
|
+ <insert id="insert" parameterType="com.jpsoft.picc.modules.business.entity.StudentApplication">
|
|
|
+ <!--
|
|
|
+ <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
|
|
+ select sys_guid() from dual
|
|
|
+ </selectKey>
|
|
|
+ -->
|
|
|
+ <![CDATA[
|
|
|
+ insert into business_student_application
|
|
|
+ (id_,create_by,create_time,update_by,update_time,del_flag,definition_id,policy_no,insured_id,insured_name,insured_card,insured_tel,have_attach,attach_id,attach_name,attach_card,attach_tel,have_medicare,start_time,end_time,insurance_fee,status_,process_status,finish_time,signature_,signature_2,signature_3,payment_order)
|
|
|
+ values
|
|
|
+ (
|
|
|
+#{id,jdbcType=VARCHAR}
|
|
|
+,#{createBy,jdbcType=VARCHAR}
|
|
|
+,#{createTime,jdbcType= TIMESTAMP }
|
|
|
+,#{updateBy,jdbcType=VARCHAR}
|
|
|
+,#{updateTime,jdbcType= TIMESTAMP }
|
|
|
+,#{delFlag,jdbcType= NUMERIC }
|
|
|
+,#{definitionId,jdbcType=VARCHAR}
|
|
|
+,#{policyNo,jdbcType=VARCHAR}
|
|
|
+,#{insuredId,jdbcType=VARCHAR}
|
|
|
+,#{insuredName,jdbcType=VARCHAR}
|
|
|
+,#{insuredCard,jdbcType=VARCHAR}
|
|
|
+,#{insuredTel,jdbcType=VARCHAR}
|
|
|
+,#{haveAttach,jdbcType= NUMERIC }
|
|
|
+,#{attachId,jdbcType=VARCHAR}
|
|
|
+,#{attachName,jdbcType=VARCHAR}
|
|
|
+,#{attachCard,jdbcType=VARCHAR}
|
|
|
+,#{attachTel,jdbcType=VARCHAR}
|
|
|
+,#{haveMedicare,jdbcType= NUMERIC }
|
|
|
+,#{startTime,jdbcType= TIMESTAMP }
|
|
|
+,#{endTime,jdbcType= TIMESTAMP }
|
|
|
+,#{insuranceFee,jdbcType= NUMERIC }
|
|
|
+,#{status,jdbcType=VARCHAR}
|
|
|
+,#{processStatus,jdbcType=VARCHAR}
|
|
|
+,#{finishTime,jdbcType= TIMESTAMP }
|
|
|
+,#{signature,jdbcType=VARCHAR}
|
|
|
+,#{signature2,jdbcType=VARCHAR}
|
|
|
+,#{signature3,jdbcType=VARCHAR}
|
|
|
+,#{paymentOrder,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
+ ]]>
|
|
|
+ </insert>
|
|
|
+ <delete id="delete" parameterType="string">
|
|
|
+ delete from business_student_application where id_=#{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <update id="update" parameterType="com.jpsoft.picc.modules.business.entity.StudentApplication">
|
|
|
+ update business_student_application
|
|
|
+ <set>
|
|
|
+ <if test="createBy!=null">
|
|
|
+ create_by=#{createBy,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime!=null">
|
|
|
+ create_time=#{createTime,jdbcType= TIMESTAMP },
|
|
|
+ </if>
|
|
|
+ <if test="updateBy!=null">
|
|
|
+ update_by=#{updateBy,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime!=null">
|
|
|
+ update_time=#{updateTime,jdbcType= TIMESTAMP },
|
|
|
+ </if>
|
|
|
+ <if test="delFlag!=null">
|
|
|
+ del_flag=#{delFlag,jdbcType= NUMERIC },
|
|
|
+ </if>
|
|
|
+ <if test="definitionId!=null">
|
|
|
+ definition_id=#{definitionId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="policyNo!=null">
|
|
|
+ policy_no=#{policyNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="insuredId!=null">
|
|
|
+ insured_id=#{insuredId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="insuredName!=null">
|
|
|
+ insured_name=#{insuredName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="insuredCard!=null">
|
|
|
+ insured_card=#{insuredCard,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="insuredTel!=null">
|
|
|
+ insured_tel=#{insuredTel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="haveAttach!=null">
|
|
|
+ have_attach=#{haveAttach,jdbcType= NUMERIC },
|
|
|
+ </if>
|
|
|
+ <if test="attachId!=null">
|
|
|
+ attach_id=#{attachId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="attachName!=null">
|
|
|
+ attach_name=#{attachName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="attachCard!=null">
|
|
|
+ attach_card=#{attachCard,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="attachTel!=null">
|
|
|
+ attach_tel=#{attachTel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="haveMedicare!=null">
|
|
|
+ have_medicare=#{haveMedicare,jdbcType= NUMERIC },
|
|
|
+ </if>
|
|
|
+ <if test="startTime!=null">
|
|
|
+ start_time=#{startTime,jdbcType= TIMESTAMP },
|
|
|
+ </if>
|
|
|
+ <if test="endTime!=null">
|
|
|
+ end_time=#{endTime,jdbcType= TIMESTAMP },
|
|
|
+ </if>
|
|
|
+ <if test="insuranceFee!=null">
|
|
|
+ insurance_fee=#{insuranceFee,jdbcType= NUMERIC },
|
|
|
+ </if>
|
|
|
+ <if test="status!=null">
|
|
|
+ status_=#{status,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="processStatus!=null">
|
|
|
+ process_status=#{processStatus,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="finishTime!=null">
|
|
|
+ finish_time=#{finishTime,jdbcType= TIMESTAMP },
|
|
|
+ </if>
|
|
|
+ <if test="signature!=null">
|
|
|
+ signature_=#{signature,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="signature2!=null">
|
|
|
+ signature_2=#{signature2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="signature3!=null">
|
|
|
+ signature_3=#{signature3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="paymentOrder!=null">
|
|
|
+ payment_order=#{paymentOrder,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id_=#{id}
|
|
|
+ </update>
|
|
|
+ <select id="get" parameterType="string" resultMap="StudentApplicationMap">
|
|
|
+ select * from business_student_application where id_=#{0}
|
|
|
+ </select>
|
|
|
+ <select id="exist" parameterType="string" resultType="int">
|
|
|
+ select count(*) from business_student_application where id_=#{0}
|
|
|
+ </select>
|
|
|
+ <select id="list" resultMap="StudentApplicationMap">
|
|
|
+ select * from business_student_application
|
|
|
+ </select>
|
|
|
+ <select id="search" parameterType="hashmap" resultMap="StudentApplicationMap">
|
|
|
+ <![CDATA[
|
|
|
+ select * from business_student_application
|
|
|
+ ]]>
|
|
|
+ <where>
|
|
|
+ <if test="searchParams.id != null">
|
|
|
+ and ID_ like #{searchParams.id}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ <foreach item="sort" collection="sortList" open="order by" separator=",">
|
|
|
+ ${sort.name} ${sort.order}
|
|
|
+ </foreach>
|
|
|
+ </select>
|
|
|
+</mapper>
|