<?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="procedure">
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="generateTableIDResultMap">
		<result column="TableName" property="paramString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="FieldName" property="paramString2" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="NewBillNo" property="outString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="tradePayResultMap">
		<result column="TradeNo" property="paramString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="MemberId" property="paramLong1" javaType="java.lang.Long"
			jdbcType="BIGINT" />
		<result column="Nick" property="paramString2" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="Result" property="outString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="buySettleResultMap">
		<result column="userno" property="paramString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="result" property="outString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="putInExchangeMap">
		<result column="exchangeid" property="paramString1" javaType="java.lang.Long"
			jdbcType="BIGINT" />
		<result column="nick" property="paramString2" javaType="java.lang.String"
			jdbcType="NVARCHAR" />
		<result column="result" property="outString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="submitReturnMap">
		<result column="returnid" property="paramLong1" javaType="java.lang.Long"
			jdbcType="BIGINT" />
		<result column="nick" property="paramString2" javaType="java.lang.String"
			jdbcType="NVARCHAR" />
		<result column="userno" property="paramString3" javaType="java.lang.String"
			jdbcType="NVARCHAR" />
		<result column="result" property="outString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="settlePayMap">
		<result column="settleid" property="paramLong1" javaType="java.lang.Long"
			jdbcType="BIGINT" />
		<result column="payer" property="paramString1" javaType="java.lang.String"
			jdbcType="NVARCHAR" />
		<result column="expenses" property="bigDecimal1" javaType="java.math.BigDecimal"
			jdbcType="DECIMAL" />
		<result column="income" property="bigDecimal2" javaType="java.math.BigDecimal"
			jdbcType="DECIMAL" />
		<result column="remark" property="paramString2" javaType="java.lang.String"
			jdbcType="NVARCHAR" />
		<result column="result" property="outString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="wx_registerVIPByWeiXinResultMap">
		<result column="mobile" property="paramString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="wxId" property="paramString2" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="passwd" property="paramString3" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="code" property="outString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="from" property="paramString4" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="nick" property="paramString5" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="photoUrl" property="paramString6" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="DeptReg" property="paramString7" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="HideReg" property="paramString8" javaType="java.lang.Integer"
			jdbcType="VARCHAR" />
		<result column="FromReg" property="paramString9" javaType="java.lang.Integer"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="GetItemStockMap">
		<result column="goodsid" property="paramString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="generateGoodsIDResultMap">
		<result column="TableTag" property="paramInt1" javaType="java.lang.Integer"
			jdbcType="INTEGER" />
		<result column="NewBillNo" property="outString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="sendGoodsResultMap">
		<result column="eorderid" property="paramString1" javaType="java.lang.Long"
			jdbcType="VARCHAR" />
		<result column="postid" property="paramString2" javaType="java.lang.Integer"
			jdbcType="VARCHAR" />
		<result column="postno" property="paramString3" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="Flag" property="paramInt1" javaType="java.lang.Integer"
			jdbcType="VARCHAR" />
		<result column="WareID" property="paramString4" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="madeBy" property="paramString5" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="generateTicketNoResultMap">
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="autoorderhandleResultMap">
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="autoordersreportResultMap">
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="fx_registerVIPByWxResultMap">
		<result column="mobile" property="paramString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="deptId" property="paramString2" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="code" property="outString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="nick" property="paramString3" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="Sex" property="paramString4" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="Province" property="paramString5" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="city" property="paramString6" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="from" property="paramString7" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="fx_updateVIPInfResultMap">
		<result column="VIPNo" property="paramString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="mobile" property="paramString2" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="nick" property="paramString3" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="Sex" property="paramString4" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="Province" property="paramString5" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="city" property="paramString6" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="BirtyDay" property="paramString7" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="EMail" property="paramString8" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="fx_VIPPoint_addResultMap">
		<result column="VIP" property="paramString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="Point" property="paramBigDecimal1" javaType="java.math.BigDecimal"
			jdbcType="VARCHAR" />
		<result column="Remark" property="paramString2" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="fx_VIPPoint_DecResultMap">
		<result column="VIP" property="paramString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="Point" property="paramBigDecimal1" javaType="java.math.BigDecimal"
			jdbcType="VARCHAR" />
		<result column="deptID" property="paramString2" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="Remark" property="paramString3" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="fx_VIPTicket_addResultMap">
		<result column="vip" property="paramString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="TicketNo" property="paramString2" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="Amount" property="paramBigDecimal1" javaType="java.math.BigDecimal"
			jdbcType="VARCHAR" />
		<result column="EndDate" property="paramString3" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="CustLst" property="paramString4" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="SendCust" property="paramString5" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="Remark" property="paramString6" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="fx_VIPTicket_usedResultMap">
		<result column="TicketNo" property="paramString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="vip" property="paramString2" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="EOrderID" property="paramLong1" javaType="java.lang.Long"
			jdbcType="VARCHAR" />
		<result column="DeptId" property="paramString3" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="recieveResultMap">
		<result column="ReturnID" property="paramLong1" javaType="java.lang.Long"
			jdbcType="BIGINT" />
		<result column="madeBy" property="paramString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<resultMap type="com.fuxi.ws.data.entity.Procedure" id="wx_vipDeposit">
		<result column="VIPID" property="paramString1" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="deptID" property="paramString2" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="payment" property="paramBigDecimal1" javaType="java.math.BigDecimal"
			jdbcType="VARCHAR" />
		<result column="depositAmt" property="paramBigDecimal2" javaType="java.math.BigDecimal"
			jdbcType="VARCHAR" />
		<result column="online" property="paramInt1" javaType="java.lang.Integer"
			jdbcType="INTEGER" />
		<result column="madeBy" property="paramString4" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="cardtype" property="paramString5" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="empID" property="paramString6" javaType="java.lang.String"
			jdbcType="VARCHAR" />
		<result column="Memo" property="paramString7" javaType="java.lang.String"
			jdbcType="VARCHAR" />
	</resultMap>
	<select id="generateTableID" statementType="CALLABLE"
		resultMap="generateTableIDResultMap">  
	<![CDATA[  
	    {call GetTableID (#{TableName,mode=IN,jdbcType=VARCHAR},#{FieldName,mode=IN,jdbcType=VARCHAR},#{NewBillNo,mode=OUT,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="tradePay" statementType="CALLABLE" resultMap="generateTableIDResultMap">
	<![CDATA[  
	    {call T_TradePay (#{TradeNo,mode=IN,jdbcType=VARCHAR},#{MemberId,mode=IN,jdbcType=BIGINT},#{Nick,mode=IN,jdbcType=VARCHAR},#{Result,mode=OUT,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="createBuySettle" statementType="CALLABLE" resultMap="buySettleResultMap">  
	<![CDATA[  
	    {call F_CreateBuySettle (#{userno,mode=IN,jdbcType=VARCHAR},#{result,mode=OUT,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="putInExchange" statementType="CALLABLE" resultMap="putInExchangeMap">  
	<![CDATA[  
	    {call F_PutInExchange (#{exchangeid,mode=IN,jdbcType=BIGINT},#{nick,mode=IN,jdbcType=NVARCHAR},#{result,mode=OUT,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="submitReturn" statementType="CALLABLE" resultMap="submitReturnMap">  
	<![CDATA[  
	    {call confirmReturn(#{returnid,mode=IN,jdbcType=BIGINT},#{nick,mode=IN,jdbcType=NVARCHAR},#{userno,mode=IN,jdbcType=NVARCHAR},#{result,mode=OUT,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="fsettlePay" statementType="CALLABLE" resultMap="settlePayMap">  
	<![CDATA[  
	    {call F_SettlePay(#{settleid,mode=IN,jdbcType=BIGINT},#{payer,mode=IN,jdbcType=VARCHAR},#{expenses,mode=IN,jdbcType=DECIMAL},#{income,mode=IN,jdbcType=DECIMAL},#{remark,mode=IN,jdbcType=VARCHAR},#{result,mode=OUT,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="wx_registerVIPByWeiXin" statementType="CALLABLE"
		resultMap="wx_registerVIPByWeiXinResultMap">  
	<![CDATA[  
	    {call wx_registerVIPByWeiXin (#{mobile,mode=IN,jdbcType=VARCHAR},#{wxId,mode=IN,jdbcType=VARCHAR},#{passwd,mode=IN,jdbcType=VARCHAR},#{code,mode=OUT,jdbcType=VARCHAR},#{from,mode=IN,jdbcType=VARCHAR},#{nick,mode=IN,jdbcType=VARCHAR},#{photoUrl,mode=IN,jdbcType=VARCHAR},#{DeptReg,mode=IN,jdbcType=VARCHAR},#{HideReg,mode=IN,jdbcType=INTEGER},#{FromReg,mode=IN,jdbcType=TINYINT})}  
	]]>
	</select>
	<select id="refreshstore" statementType="CALLABLE" resultMap="GetItemStockMap">  
	<![CDATA[  
	    {call proc_GetItemStock_WX (#{goodsid,mode=IN,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="generateGoodsID" statementType="CALLABLE"
		resultMap="generateGoodsIDResultMap">  
	<![CDATA[  
	    {call GetNewIDValue (#{TableTag,mode=IN,jdbcType=INTEGER},#{IDValue,mode=OUT,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="sendGoods" statementType="CALLABLE" resultMap="sendGoodsResultMap">  
	<![CDATA[  
	    {call ExecEOrderSale (#{eorderid,mode=IN,jdbcType=BIGINT},#{postid,mode=IN,jdbcType=INTEGER},#{postno,mode=IN,jdbcType=VARCHAR},#{Flag,mode=IN,jdbcType=INTEGER},#{WareID,mode=IN,jdbcType=VARCHAR},#{madeBy,mode=IN,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="generateTicketNo" statementType="CALLABLE"
		resultMap="generateTicketNoResultMap">  
	<![CDATA[  
	    {call GetTecketNo (#{ticketno,mode=OUT,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="autoorderhandle" statementType="CALLABLE"
		resultMap="autoorderhandleResultMap">  
	<![CDATA[  
	    {call AutoHandleOrders }  
	]]>
	</select>
	<select id="recieve" statementType="CALLABLE"
		resultMap="recieveResultMap">  
	<![CDATA[  
	    {call ExecWxReturnRecieve (#{ReturnID,mode=IN,jdbcType=BIGINT},#{madeBy,mode=IN,jdbcType=VARCHAR})}
	]]>
	</select>
	<select id="autoordersreport" statementType="CALLABLE"
		resultMap="autoordersreportResultMap">  
	<![CDATA[  
	    {call AutoOrdersReport }  
	]]>
	</select>
	<select id="fx_registerVIPByWx" statementType="CALLABLE"
		resultMap="fx_registerVIPByWxResultMap">  
	<![CDATA[  
	    {call fx_registerVIPByWx (#{mobile,mode=IN,jdbcType=VARCHAR},#{deptId,mode=IN,jdbcType=VARCHAR},#{code,mode=OUT,jdbcType=VARCHAR},#{nick,mode=IN,jdbcType=VARCHAR},#{Sex,mode=IN,jdbcType=VARCHAR},#{Province,mode=IN,jdbcType=VARCHAR},#{city,mode=IN,jdbcType=VARCHAR},#{from,mode=IN,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="fx_updateVIPInf" statementType="CALLABLE"
		resultMap="fx_updateVIPInfResultMap">  
	<![CDATA[  
	    {call fx_updateVIPInf (#{VIPNo,mode=IN,jdbcType=VARCHAR},#{mobile,mode=IN,jdbcType=VARCHAR},#{nick,mode=IN,jdbcType=VARCHAR},#{Sex,mode=IN,jdbcType=VARCHAR},#{Province,mode=IN,jdbcType=VARCHAR},#{city,mode=IN,jdbcType=VARCHAR},#{BirtyDay,mode=IN,jdbcType=VARCHAR},#{EMail,mode=IN,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="fx_VIPPoint_add" statementType="CALLABLE"
		resultMap="fx_VIPPoint_addResultMap">  
	<![CDATA[  
	    {call fx_VIPPoint_add (#{VIP,mode=IN,jdbcType=VARCHAR},#{Point,mode=IN,jdbcType=DECIMAL},#{Remark,mode=IN,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="fx_VIPPoint_Dec" statementType="CALLABLE"
		resultMap="fx_VIPPoint_DecResultMap">  
	<![CDATA[  
	    {call fx_VIPPoint_Dec (#{VIP,mode=IN,jdbcType=VARCHAR},#{Point,mode=IN,jdbcType=DECIMAL},#{deptID,mode=IN,jdbcType=VARCHAR},#{Remark,mode=IN,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="fx_VIPTicket_add" statementType="CALLABLE"
		resultMap="fx_VIPTicket_addResultMap">  
	<![CDATA[  
	    {call fx_VIPTicket_add (#{vip,mode=IN,jdbcType=VARCHAR},#{TicketNo,mode=IN,jdbcType=VARCHAR},#{Amount,mode=IN,jdbcType=DECIMAL},#{EndDate,mode=IN,jdbcType=VARCHAR},#{CustLst,mode=IN,jdbcType=VARCHAR},#{SendCust,mode=IN,jdbcType=VARCHAR},#{Remark,mode=IN,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="fx_VIPTicket_used" statementType="CALLABLE"
		resultMap="fx_VIPTicket_usedResultMap">  
	<![CDATA[  
	    {call fx_VIPTicket_used (#{TicketNo,mode=IN,jdbcType=VARCHAR},#{vip,mode=IN,jdbcType=VARCHAR},#{EOrderID,mode=IN,jdbcType=BIGINT},#{DeptId,mode=IN,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="fx_getVipPointAumont" statementType="CALLABLE"
		resultType="java.util.LinkedHashMap">  
	<![CDATA[  
	    {call fx_getVipPointAumont (#{mobile,mode=IN,jdbcType=VARCHAR})}  
	]]>
	</select>
	<select id="wx_vipDeposit" statementType="CALLABLE"
		resultType="java.util.LinkedHashMap">  
	<![CDATA[  
	    {call wx_vipDeposit (#{VIPID,mode=IN,jdbcType=VARCHAR},#{deptID,mode=IN,jdbcType=VARCHAR},#{payment,mode=IN,jdbcType=DECIMAL},#{depositAmt,mode=IN,jdbcType=DECIMAL},#{online,mode=IN,jdbcType=INTEGER},#{madeBy,mode=IN,jdbcType=VARCHAR},#{cardtype,mode=IN,jdbcType=VARCHAR},#{empID,mode=IN,jdbcType=VARCHAR},#{Memo,mode=IN,jdbcType=VARCHAR})}  
	]]>
	</select>
</mapper>