|
@@ -1,7 +1,7 @@
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?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">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.hcloud.microserver.system.bank.dao.GoodsOrderInfoMapper">
|
|
<mapper namespace="com.hcloud.microserver.system.bank.dao.GoodsOrderInfoMapper">
|
|
- <resultMap id="BaseResultMap" type="GoodsOrderInfo">
|
|
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.hcloud.microserver.system.facade.carbon.entity.GoodsOrderInfo">
|
|
<id column="guid" jdbcType="CHAR" property="guid" />
|
|
<id column="guid" jdbcType="CHAR" property="guid" />
|
|
<result column="fk_customer_guid" jdbcType="CHAR" property="fkCustomerGuid" />
|
|
<result column="fk_customer_guid" jdbcType="CHAR" property="fkCustomerGuid" />
|
|
<result column="order_no" jdbcType="CHAR" property="orderNo" />
|
|
<result column="order_no" jdbcType="CHAR" property="orderNo" />
|
|
@@ -30,7 +30,7 @@
|
|
where guid = #{guid,jdbcType=CHAR}
|
|
where guid = #{guid,jdbcType=CHAR}
|
|
</select>
|
|
</select>
|
|
<select id="searchOrderInfoByPage" parameterType="com.hcloud.microserver.commoncore.base.PageBean"
|
|
<select id="searchOrderInfoByPage" parameterType="com.hcloud.microserver.commoncore.base.PageBean"
|
|
- resultType="OrderInfoBO">
|
|
|
|
|
|
+ resultType="com.hcloud.microserver.system.bank.bo.OrderInfoBO">
|
|
SELECT
|
|
SELECT
|
|
aa.guid,
|
|
aa.guid,
|
|
aa.order_no AS orderNo,
|
|
aa.order_no AS orderNo,
|
|
@@ -98,7 +98,7 @@
|
|
</if>
|
|
</if>
|
|
order by aa.create_time desc
|
|
order by aa.create_time desc
|
|
</select>
|
|
</select>
|
|
- <select id="searchOrderInfoByCustomerId" resultType="OrderInfoBO">
|
|
|
|
|
|
+ <select id="searchOrderInfoByCustomerId" resultType="com.hcloud.microserver.system.bank.bo.OrderInfoBO">
|
|
SELECT
|
|
SELECT
|
|
aa.guid,
|
|
aa.guid,
|
|
aa.order_no AS orderNo,
|
|
aa.order_no AS orderNo,
|
|
@@ -129,7 +129,7 @@
|
|
delete from t_goods_order_info
|
|
delete from t_goods_order_info
|
|
where guid = #{guid,jdbcType=CHAR}
|
|
where guid = #{guid,jdbcType=CHAR}
|
|
</delete>
|
|
</delete>
|
|
- <insert id="insert" parameterType="GoodsOrderInfo">
|
|
|
|
|
|
+ <insert id="insert" parameterType="com.hcloud.microserver.system.facade.carbon.entity.GoodsOrderInfo">
|
|
insert into t_goods_order_info (guid, fk_customer_guid, order_no,
|
|
insert into t_goods_order_info (guid, fk_customer_guid, order_no,
|
|
customer_name,customer_type,order_amount, order_carbon_amount, order_status,
|
|
customer_name,customer_type,order_amount, order_carbon_amount, order_status,
|
|
state, create_user, create_time,
|
|
state, create_user, create_time,
|
|
@@ -140,7 +140,7 @@
|
|
#{state,jdbcType=INTEGER}, #{createUser,jdbcType=CHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
#{state,jdbcType=INTEGER}, #{createUser,jdbcType=CHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
#{modifiedUser,jdbcType=CHAR}, #{modifiedTime,jdbcType=TIMESTAMP},#{payNo,jdbcType=VARCHAR},#{orderType,jdbcType=INTEGER})
|
|
#{modifiedUser,jdbcType=CHAR}, #{modifiedTime,jdbcType=TIMESTAMP},#{payNo,jdbcType=VARCHAR},#{orderType,jdbcType=INTEGER})
|
|
</insert>
|
|
</insert>
|
|
- <insert id="insertSelective" parameterType="GoodsOrderInfo">
|
|
|
|
|
|
+ <insert id="insertSelective" parameterType="com.hcloud.microserver.system.facade.carbon.entity.GoodsOrderInfo">
|
|
insert into t_goods_order_info
|
|
insert into t_goods_order_info
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="guid != null">
|
|
<if test="guid != null">
|
|
@@ -237,7 +237,7 @@
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
- <update id="updateByPrimaryKeySelective" parameterType="GoodsOrderInfo">
|
|
|
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.hcloud.microserver.system.facade.carbon.entity.GoodsOrderInfo">
|
|
update t_goods_order_info
|
|
update t_goods_order_info
|
|
<set>
|
|
<set>
|
|
<if test="fkCustomerGuid != null">
|
|
<if test="fkCustomerGuid != null">
|
|
@@ -285,7 +285,7 @@
|
|
</set>
|
|
</set>
|
|
where guid = #{guid,jdbcType=CHAR}
|
|
where guid = #{guid,jdbcType=CHAR}
|
|
</update>
|
|
</update>
|
|
- <update id="updateByPrimaryKey" parameterType="GoodsOrderInfo">
|
|
|
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.hcloud.microserver.system.facade.carbon.entity.GoodsOrderInfo">
|
|
update t_goods_order_info
|
|
update t_goods_order_info
|
|
set fk_customer_guid = #{fkCustomerGuid,jdbcType=CHAR},
|
|
set fk_customer_guid = #{fkCustomerGuid,jdbcType=CHAR},
|
|
order_no = #{orderNo,jdbcType=CHAR},
|
|
order_no = #{orderNo,jdbcType=CHAR},
|
|
@@ -309,7 +309,7 @@
|
|
where fk_customer_guid = #{oldId}
|
|
where fk_customer_guid = #{oldId}
|
|
</update>
|
|
</update>
|
|
<!-- 线下认购订单列表 -->
|
|
<!-- 线下认购订单列表 -->
|
|
- <select id="offlineOrderList" parameterType="com.hcloud.microserver.commoncore.base.PageBean" resultType="OfflineOrderBO">
|
|
|
|
|
|
+ <select id="offlineOrderList" parameterType="com.hcloud.microserver.commoncore.base.PageBean" resultType="com.hcloud.microserver.system.facade.carbon.entity.GoodsOrderInfo">
|
|
SELECT o.guid,
|
|
SELECT o.guid,
|
|
o.order_no AS orderNo,
|
|
o.order_no AS orderNo,
|
|
o.order_amount AS orderAmount,
|
|
o.order_amount AS orderAmount,
|
|
@@ -357,7 +357,7 @@
|
|
ORDER BY o.create_time DESC
|
|
ORDER BY o.create_time DESC
|
|
</select>
|
|
</select>
|
|
<!-- 查询线下认购订单详情-->
|
|
<!-- 查询线下认购订单详情-->
|
|
- <select id="queryOfflineOrderDetial" parameterType="String" resultType="OfflineOrderDetailBO">
|
|
|
|
|
|
+ <select id="queryOfflineOrderDetial" parameterType="String" resultType="com.hcloud.microserver.system.facade.carbon.entity.GoodsOrderInfo">
|
|
SELECT o.guid,
|
|
SELECT o.guid,
|
|
o.order_no AS orderNo,
|
|
o.order_no AS orderNo,
|
|
o.order_amount AS orderAmount,
|
|
o.order_amount AS orderAmount,
|