java中 mapper.xml 文件中resultmap

 <resultMap id="sapMap" type="org.springblade.desk.entity.sap.purchase.SapProcessPurchaseOrder">
        <result column="card_code" property="cardCode"/>
        <result column="card_name" property="cardName"/>
        <result column="doc_date" property="docDate"/>
        <result column="doc_due_date" property="docDueDate"/>
        <result column="tax_date" property="taxDate"/>
        <result column="ut001" property="u_T001"/>
        <result column="ut010" property="u_T010"/>
        <result column="slpcode" property="slpcode"/>
        <result column="comments" property="comments"/>
        <result column="order_number" property="orderNumber"/>
        <result column="company" property="company"/>
        <result column="u_t004" property="u_T004"/>
        <result column="u_t011" property="u_T011"/>
    </resultMap>




 <!--查询寻需要写入sap的数据-->
    <select id="getOderInfo" resultMap="sapMap">
        select * from blade_process_purchase_order where process_instance_id=#{processInstanceId}
    </select>

  

posted @ 2021-03-16 10:58  红尘沙漏  阅读(515)  评论(0编辑  收藏  举报