<?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.hzya.frame.u9c.salereceiver.dao.impl.VU9cSalereceiverDetailsEntityDaoImpl">

    <resultMap id="get-VU9cSalereceiverDetailsEntity-result" type="com.hzya.frame.u9c.salereceiver.entity.VU9cSalereceiverDetailsEntity" >
        <result property="state" column="state" jdbcType="VARCHAR"/>
        <result property="id" column="ID" jdbcType="VARCHAR"/>
        <result property="num" column="num" jdbcType="VARCHAR"/>
        <result property="orgId" column="org_id" jdbcType="VARCHAR"/>
        <result property="invCode" column="inv_code" jdbcType="VARCHAR"/>
        <result property="invName" column="inv_name" jdbcType="VARCHAR"/>
        <result property="mainId" column="main_id" jdbcType="VARCHAR"/>
        <result property="money" column="money" jdbcType="VARCHAR"/>
        <result property="mainOrgCode" column="main_org_code" jdbcType="VARCHAR"/>
        <result property="mainOrgName" column="main_org_name" jdbcType="VARCHAR"/>
        <result property="proId" column="pro_id" jdbcType="VARCHAR"/>
        <result property="TaxPrice" column="TaxPrice" jdbcType="VARCHAR"/>
        <result property="NonTaxPrice" column="NonTaxPrice" jdbcType="VARCHAR"/>
        <result property="CfmedARGoodsTax_OCMoney" column="CfmedARGoodsTax_OCMoney" jdbcType="VARCHAR"/>
        <result property="TaxPriceSum" column="TaxPriceSum" jdbcType="VARCHAR"/>
        <result property="sRowId" column="s_row_id" jdbcType="VARCHAR"/>
        <result property="deliverBillId" column="deliverBillId" jdbcType="VARCHAR"/>


        <result property="rmaId" column="rma_id" jdbcType="VARCHAR"/>
        <result property="rmaLine" column="rma_line" jdbcType="VARCHAR"/>
        <result property="billType" column="bill_type" jdbcType="VARCHAR"/>
        <result property="soId" column="so_id" jdbcType="VARCHAR"/>
        <result property="rmaMoney" column="rma_money" jdbcType="VARCHAR"/>
        <result property="DocLineNo" column="DocLineNo" jdbcType="VARCHAR"/>


    </resultMap>
    <!-- 查询的字段-->
    <sql id = "VU9cSalereceiverDetailsEntity_Base_Column_List">
        state
        ,s_row_id
        ,deliverBillId
        ,TaxPrice
        ,CfmedARGoodsTax_OCMoney
        ,TaxPriceSum
       ,ID
        ,num 
        ,org_id 
        ,inv_code 
        ,inv_name 
        ,main_id 
        ,money 
        ,main_org_code 
        ,main_org_name 
        ,pro_id 
     </sql>
 <!-- 查询 采用==查询 -->
 <select id="VU9cSalereceiverDetailsEntity_list_base" resultMap="get-VU9cSalereceiverDetailsEntity-result" parameterType = "com.hzya.frame.u9c.salereceiver.entity.VU9cSalereceiverDetailsEntity">
    select
   *
    from v_u9c_salereceiver_details
    where main_id = #{mainId}
</select>

<!--通过主键修改方法-->
<update id="VU9cSalereceiverDetailsEntity_update" parameterType = "com.hzya.frame.u9c.salereceiver.entity.VU9cSalereceiverDetailsEntity" >
    update AR_ARBillLine  set
    <trim suffix="" suffixOverrides=",">
        <if test="dataId != null and dataId != ''"> DescFlexField_PrivateDescSeg1 = #{dataId},</if>
    </trim>
    where  id = #{id}
</update>
</mapper>

