|
@@ -11,6 +11,7 @@
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
<result property="definitionId" column="definition_id" />
|
|
|
+ <result property="definitionName" column="definition_name"/>
|
|
|
<result property="policyNo" column="policy_no" />
|
|
|
<result property="insuredId" column="insured_id" />
|
|
|
<result property="insuredName" column="insured_name" />
|
|
@@ -44,34 +45,34 @@
|
|
|
(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}
|
|
|
+ #{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>
|
|
@@ -176,11 +177,16 @@
|
|
|
</select>
|
|
|
<select id="search" parameterType="hashmap" resultMap="StudentApplicationMap">
|
|
|
<![CDATA[
|
|
|
- select * from business_student_application
|
|
|
+ select a.*,b.name_ as definition_name
|
|
|
+ from business_student_application a
|
|
|
+ left join base_insurance_definition b on a.definition_id = b.id_
|
|
|
]]>
|
|
|
<where>
|
|
|
<if test="searchParams.id != null">
|
|
|
- and ID_ like #{searchParams.id}
|
|
|
+ and a.ID_ like #{searchParams.id}
|
|
|
+ </if>
|
|
|
+ <if test="searchParams.delFlag != null">
|
|
|
+ and a.del_flag = #{searchParams.delFlag}
|
|
|
</if>
|
|
|
</where>
|
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|