<?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.yifu.cloud.plus.v1.yifu.insurances.mapper.insurances.TInsuranceRefundMapper"> <resultMap id="BaseResultMap" type="com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceRefund"> <id property="id" column="ID" jdbcType="BIGINT"/> <result property="insDetailId" column="INS_DETAIL_ID" jdbcType="BIGINT"/> <result property="reduceHandleStatus" column="REDUCE_HANDLE_STATUS" jdbcType="TINYINT"/> <result property="refundMoney" column="REFUND_MONEY" jdbcType="DECIMAL"/> <result property="remark" column="REMARK" jdbcType="VARCHAR"/> <result property="createTime" column="CREATE_TIME" jdbcType="TIMESTAMP"/> <result property="createBy" column="CREATE_BY" jdbcType="VARCHAR"/> <result property="createName" column="CREATE_NAME" jdbcType="VARCHAR"/> <result property="createBy" column="CREATE_BY" jdbcType="VARCHAR"/> <result property="orderNo" column="ORDER_NO" jdbcType="VARCHAR"/> <result property="createUserDeptId" column="CREATE_USER_DEPT_ID" jdbcType="VARCHAR"/> <result property="createUserDeptName" column="CREATE_USER_DEPT_NAME" jdbcType="VARCHAR"/> </resultMap> <sql id="Base_Column_List"> ID,INS_DETAIL_ID,REDUCE_HANDLE_STATUS, REFUND_MONEY,REMARK,CREATE_TIME, CREATE_BY,CREATE_NAME,ORDER_NO,CREATE_USER_DEPT_ID,CREATE_USER_DEPT_NAME </sql> <update id="updateByInsDetailId"> update t_insurance_refund set <if test="param.createName != null and param.createName.trim() != ''"> CREATE_NAME= #{param.createName}, </if> <if test="param.createBy != null and param.createBy.trim() != ''"> CREATE_BY = #{param.createBy}, </if> <if test="param.createTime != null"> CREATE_TIME = #{param.createTime}, </if> <if test="param.updateBy != null and param.updateBy.trim() != ''"> UPDATE_BY = #{param.updateBy}, </if> <if test="param.updateTime != null "> UPDATE_TIME = #{param.updateTime}, </if> <if test="param.createUserDeptName != null and param.createUserDeptName.trim() != ''"> CREATE_USER_DEPT_NAME= #{param.createUserDeptName}, </if> <if test="param.createUserDeptId != null and param.createUserDeptId.trim() != ''"> CREATE_USER_DEPT_ID = #{param.createUserDeptId}, </if> <if test="param.orderNo != null and param.orderNo.trim() != ''"> ORDER_NO = #{param.orderNo}, </if> <if test="param.remark != null and param.remark.trim() != ''"> REMARK = #{param.remark}, </if> REDUCE_HANDLE_STATUS = #{param.reduceHandleStatus} where ID = #{param.id} </update> <update id="updateRefundMoney"> update t_insurance_refund set REFUND_MONEY = #{refundMoney}, UPDATE_BY = #{updateBy}, UPDATE_TIME = #{updateTime} where INS_DETAIL_ID = #{insDetailId} </update> <select id="getByInsDetailId" resultType="com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceRefund"> </select> </mapper>