<?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.prolog.cs.biz.inbound.dao.failure.InReceivingAbnormalDMapper">
	<resultMap id="map" type="com.prolog.cs.biz.inbound.model.failure.InReceivingAbnormalD">
		<result column="line_id" property="lineId"/>
		<result column="billid" property="billid"/>
		<result column="billno" property="billno"/>
		<result column="seqno" property="seqno"/>
		<result column="ref_billtype" property="refBilltype"/>
		<result column="ref_billid" property="refBillid"/>
		<result column="ref_billno" property="refBillno"/>
		<result column="ref_seqno" property="refSeqno"/>
		<result column="consignorid" property="consignorid"/>
		<result column="consignorcode" property="consignorcode"/>
		<result column="consignorname" property="consignorname"/>
		<result column="itemid" property="itemid"/>
		<result column="itemcode" property="itemcode"/>
		<result column="itemname" property="itemname"/>
		<result column="parernt_itemid" property="parerntItemid"/>
		<result column="spec" property="spec"/>
		<result column="pack_size" property="packSize"/>
		<result column="pack_units" property="packUnits"/>
		<result column="origin" property="origin"/>
		<result column="manufacturer" property="manufacturer"/>
		<result column="lot_no" property="lotNo"/>
		<result column="batch_no" property="batchNo"/>
		<result column="pdate_from" property="pdateFrom"/>
		<result column="valid_until" property="validUntil"/>
		<result column="affirmed_pcs" property="affirmedPcs"/>
		<result column="affirmed_odd" property="affirmedOdd"/>
		<result column="affirmed_freeqty" property="affirmedFreeqty"/>
		<result column="affirmed_qty" property="affirmedQty"/>
		<result column="affirmed_weight" property="affirmedWeight"/>
		<result column="affirmed_volume" property="affirmedVolume"/>
		<result column="price" property="price"/>
		<result column="tni_price" property="tniPrice"/>
		<result column="amt" property="amt"/>
		<result column="tni_amt" property="tniAmt"/>
		<result column="piece_cost_te" property="pieceCostTe"/>
		<result column="piece_cost_ti" property="pieceCostTi"/>
		<result column="tax_rate" property="taxRate"/>
		<result column="abnormal_reasons" property="abnormalReasons"/>
		<result column="remark" property="remark"/>
		<result column="attr_str1" property="attrStr1"/>
		<result column="attr_str2" property="attrStr2"/>
		<result column="attr_str3" property="attrStr3"/>
		<result column="attr_str4" property="attrStr4"/>
		<result column="attr_str5" property="attrStr5"/>
		<result column="createby" property="createby"/>
		<result column="createdate" property="createdate"/>
		<result column="lastmodifyby" property="lastmodifyby"/>
		<result column="lastmodifydate" property="lastmodifydate"/>
		<result column="p_enterpriseid" property="enterpriseid"/>
		<result column="p_enterprisename" property="enterprisename"/>
	</resultMap>
	<sql id="mainClomuns" >
		line_id, 
		billid, 
		billno, 
		seqno, 
		ref_billtype, 
		ref_billid, 
		ref_billno, 
		ref_seqno, 
		consignorid, 
		consignorcode, 
		consignorname, 
		itemid, 
		itemcode, 
		itemname, 
		parernt_itemid, 
		spec, 
		pack_size, 
		pack_units, 
		origin, 
		manufacturer, 
		lot_no, 
		batch_no, 
		pdate_from, 
		valid_until, 
		affirmed_pcs, 
		affirmed_odd, 
		affirmed_freeqty, 
		affirmed_qty, 
		affirmed_weight, 
		affirmed_volume, 
		price, 
		tni_price, 
		amt, 
		tni_amt, 
		piece_cost_te, 
		piece_cost_ti, 
		tax_rate, 
		abnormal_reasons, 
		remark, 
		attr_str1, 
		attr_str2, 
		attr_str3, 
		attr_str4, 
		attr_str5, 
		createby, 
		createdate, 
		lastmodifyby, 
		lastmodifydate, 
		p_enterpriseid, 
		p_enterprisename
	</sql>
</mapper>
