ReceptionCustomerPaySourceMapper.xml
1.7 KB
<?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="cn.com.glsx.dj.mindworkplate.mapper.ReceptionCustomerPaySourceMapper" >
<resultMap id="BaseResultMap" type="cn.com.glsx.dj.mindworkplate.model.ReceptionCustomerPaySource" >
<!--
WARNING - @mbg.generated
-->
<id column="id" property="id" jdbcType="INTEGER" />
<result column="rec_customer_id" property="recCustomerId" jdbcType="INTEGER" />
<result column="source_type" property="sourceType" jdbcType="INTEGER" />
<result column="source_url" property="sourceUrl" jdbcType="VARCHAR" />
<result column="created_by" property="createdBy" jdbcType="VARCHAR" />
<result column="created_date" property="createdDate" jdbcType="TIMESTAMP" />
<result column="updated_by" property="updatedBy" jdbcType="VARCHAR" />
<result column="updated_date" property="updatedDate" jdbcType="TIMESTAMP" />
<result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" />
</resultMap>
<sql id="Base_Column_List" >
<!--
WARNING - @mbg.generated
-->
id, rec_customer_id, source_type, source_url,
created_by, created_date, updated_by, updated_date, deleted_flag
</sql>
<update id="deleteByCustomerId">
update reception_customer_pay_source set deleted_flag = 'D' where rec_customer_id = #{customerId,jdbcType=INTEGER}
</update>
<select id="findByCustomerId"
resultType="cn.com.glsx.dj.mindworkplate.model.ReceptionCustomerPaySource">
select
<include refid="Base_Column_List" />
from reception_customer_pay_source where rec_customer_id = #{customerId,jdbcType=INTEGER}
</select>
</mapper>