<resultMapid="BaseResultMap"type="cn.com.hwasunsoft.lims.biz.model.extra.AssayOrderExt"><idcolumn="ID"jdbcType="VARCHAR"property="id"/><resultcolumn="REG_NO"jdbcType="VARCHAR"property="regNo"/><resultcolumn="REG_WAY"jdbcType="VARCHAR"property="regWay"/><resultcolumn="REG_PEOPLE"jdbcType="VARCHAR"property="regPeople"/><resultcolumn="REG_TIME"jdbcType="TIMESTAMP"property="regTime"/><resultcolumn="REG_TEL"jdbcType="VARCHAR"property="regTel"/><resultcolumn="CUSTOMER_ID"jdbcType="VARCHAR"property="customerId"/><resultcolumn="SAMP_BIZ_MODE_ID"jdbcType="VARCHAR"property="sampBizModeId"/><resultcolumn="TEST_OBJECT_MODEL_ID"jdbcType="VARCHAR"property="testObjectModelId"/><resultcolumn="TEST_OBJECT_ID"jdbcType="VARCHAR"property="testObjectId"/><resultcolumn="LAB_ID"jdbcType="VARCHAR"property="labId"/><resultcolumn="ASSAY_TIME_LIMIT"jdbcType="NUMERIC"property="assayTimeLimit"/><resultcolumn="SAMPLE_SUBMIT_WAY"jdbcType="NUMERIC"property="sampleSubmitWay"/><resultcolumn="CONFIRMATION_STATUS"jdbcType="NUMERIC"property="confirmationStatus"/><resultcolumn="SAMPLING_WAY"jdbcType="NUMERIC"property="samplingWay"/><resultcolumn="NEED_SAMPLE_PREPARATION"jdbcType="NUMERIC"property="needSamplePreparation"/><resultcolumn="SAMP_REG_AMOUNT"jdbcType="NUMERIC"property="sampRegAmount"/><resultcolumn="TESTED_UNIT_ID"jdbcType="VARCHAR"property="testedUnitId"/><resultcolumn="SAMP_STAT"jdbcType="VARCHAR"property="sampStat"/><resultcolumn="ORDER_NAME"jdbcType="VARCHAR"property="orderName"/><resultcolumn="ORDER_REMARK"jdbcType="VARCHAR"property="orderRemark"/><resultcolumn="ORDER_NO"jdbcType="VARCHAR"property="orderNo"/><resultcolumn="DAILY_PLAN_NO"jdbcType="VARCHAR"property="dailyPlanNo"/><resultcolumn="CONTRACT_INFO_ID"jdbcType="VARCHAR"property="contractInfoId"/><resultcolumn="CONTRACT_CODE"jdbcType="VARCHAR"property="contractCode"/><resultcolumn="ORDER_DATE"jdbcType="TIMESTAMP"property="orderDate"/><resultcolumn="CUST_PHONE"jdbcType="VARCHAR"property="custPhone"/><resultcolumn="SAMPLE_DELIVERER_NAME"jdbcType="VARCHAR"property="sampleDelivererName"/><resultcolumn="SAMPLE_DELIVERER_PHONE"jdbcType="VARCHAR"property="sampleDelivererPhone"/><resultcolumn="ORDER_TYPE"jdbcType="NUMERIC"property="orderType"/><resultcolumn="SETTLEMENT_WAY"jdbcType="NUMERIC"property="settlementWay"/><resultcolumn="ASSAY_BIZ_CODE"jdbcType="VARCHAR"property="assayBizCode"/><resultcolumn="AUDIT_STATUS"jdbcType="NUMERIC"property="auditStatus"/><resultcolumn="SETTLE_STATUS"jdbcType="NUMERIC"property="settleStatus"/><resultcolumn="ASSAY_COST_COUNT"jdbcType="NUMERIC"property="assayCostCount"/><resultcolumn="ATTACHMENT"jdbcType="VARCHAR"property="attachment"/><resultcolumn="RECORD_STATUS"jdbcType="NUMERIC"property="recordStatus"/><resultcolumn="CREATE_TIME"jdbcType="TIMESTAMP"property="createTime"/><resultcolumn="MODIFY_TIME"jdbcType="TIMESTAMP"property="modifyTime"/><resultcolumn="CONSOLIDATED_REPORT"jdbcType="NUMERIC"property="consolidatedReport"/><!-- ######################################### 擴展屬性 ###################################################--><!--采樣方式--><resultcolumn="SAMPLE_SUBMIT_WAY"jdbcType="NUMERIC"property="sampleSubmitWayEnum"typeHandler="cn.com.hwasunsoft.lims.core.enums.handler.CommonEnumHandler"/><!--記錄狀態--><resultcolumn="RECORD_STATUS"jdbcType="NUMERIC"property="recordStatusEnum"typeHandler="cn.com.hwasunsoft.lims.core.enums.handler.CommonEnumHandler"/><!--確認狀態--><resultcolumn="CONFIRMATION_STATUS"jdbcType="NUMERIC"property="confirmationStatusEnum"typeHandler="cn.com.hwasunsoft.lims.core.enums.handler.CommonEnumHandler"/><!--結算方式--><resultcolumn="SETTLEMENT_WAY"jdbcType="NUMERIC"property="settlementWayEnum"javaType="cn.com.hwasunsoft.lims.biz.enums.AccountingWayEnum"typeHandler="cn.com.hwasunsoft.lims.core.enums.handler.CommonEnumHandler"/><!--審核狀態--><resultcolumn="AUDIT_STATUS"jdbcType="NUMERIC"property="auditStatusEnum"typeHandler="cn.com.hwasunsoft.lims.core.enums.handler.CommonEnumHandler"/><!--結算狀態--><resultcolumn="SETTLE_STATUS"jdbcType="NUMERIC"property="settleStatusEnum"typeHandler="cn.com.hwasunsoft.lims.core.enums.handler.CommonEnumHandler"/><!--綜合報告顯示(1是,0否)--><resultcolumn="CONSOLIDATED_REPORT"jdbcType="NUMERIC"property="consolidatedReportEnum"typeHandler="cn.com.hwasunsoft.lims.core.enums.handler.CommonEnumHandler"/><associationcolumn="CUSTOMER_ID"jdbcType="VARCHAR"property="customer"select="getCustomer"/><associationcolumn="TEST_OBJECT_ID"jdbcType="VARCHAR"property="testObject"select="getTestObject"/><associationcolumn="CONTRACT_INFO_ID"jdbcType="VARCHAR"property="contractInfo"select="getContractInfo"/><associationcolumn="LAB_ID"jdbcType="VARCHAR"property="lab"select="getLab"/><associationcolumn="ASSAY_TASK_INFO_ID"jdbcType="VARCHAR"property="assayTaskInfo"javaType="cn.com.hwasunsoft.lims.biz.model.AssayTaskInfo"><resultcolumn="ASSAY_TASK_INFO_ID"jdbcType="VARCHAR"property="id"/><resultcolumn="sample_No"jdbcType="VARCHAR"property="sampleNo"/><resultcolumn="ASSAY_RESULT_AUDITOR"jdbcType="VARCHAR"property="assayResultAuditor"/></association><associationcolumn="sample_id"jdbcType="VARCHAR"property="assayOrderSample"javaType="cn.com.hwasunsoft.lims.biz.model.AssayOrderSample"><resultcolumn="sample_id"jdbcType="VARCHAR"property="id"/><resultcolumn="sample_No"jdbcType="VARCHAR"property="sampleNo"/><resultcolumn="LAB_ID"jdbcType="VARCHAR"property="labId"/><resultcolumn="SAMP_BIZ_MODE_ID"jdbcType="VARCHAR"property="sampBizModeId"/><resultcolumn="TEST_OBJECT_ID"jdbcType="VARCHAR"property="testObjectId"/></association><associationcolumn="SAMP_BIZ_MODE_ID"jdbcType="VARCHAR"property="sampleBusinessModel"javaType="cn.com.hwasunsoft.lims.biz.model.SampleBusinessModel"><resultcolumn="SAMP_BIZ_MODE_ID"jdbcType="VARCHAR"property="id"/><resultcolumn="SAMP_BIZ_MODE_NAME"jdbcType="VARCHAR"property="sampBizModeName"/></association></resultMap><selectid="getCustomer"parameterType="java.lang.String"resultType="cn.com.hwasunsoft.lims.biz.model.Customer">select * from INS_CUSTOMER where ID=#{id}
</select><selectid="getTestObject"parameterType="java.lang.String"resultType="cn.com.hwasunsoft.lims.biz.model.TestObject">select * from DIC_TEST_OBJECT where ID=#{id}
</select>