|
@@ -14,14 +14,13 @@
|
|
|
<result column="member_unaudited_count" jdbcType="INTEGER" property="memberUnauditedCount" />
|
|
<result column="member_unaudited_count" jdbcType="INTEGER" property="memberUnauditedCount" />
|
|
|
<result column="payment_count" jdbcType="INTEGER" property="paymentCount" />
|
|
<result column="payment_count" jdbcType="INTEGER" property="paymentCount" />
|
|
|
<result column="payment_unaudited_count" jdbcType="INTEGER" property="paymentUnauditedCount" />
|
|
<result column="payment_unaudited_count" jdbcType="INTEGER" property="paymentUnauditedCount" />
|
|
|
- <result column="public_release_count" jdbcType="INTEGER" property="publicReleaseCount" />
|
|
|
|
|
<result column="date_time" jdbcType="DATE" property="dateTime" />
|
|
<result column="date_time" jdbcType="DATE" property="dateTime" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
id, aid, order_count, order_unaudited_count, expense_count, expense_unaudited_count,
|
|
id, aid, order_count, order_unaudited_count, expense_count, expense_unaudited_count,
|
|
|
invoice_count, invoice_unaudited_count, member_count, member_unaudited_count, payment_count,
|
|
invoice_count, invoice_unaudited_count, member_count, member_unaudited_count, payment_count,
|
|
|
- payment_unaudited_count, public_release_count, date_time, create_time
|
|
|
|
|
|
|
+ payment_unaudited_count, date_time, create_time
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
select
|
|
@@ -29,7 +28,7 @@
|
|
|
from finance_count
|
|
from finance_count
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
</select>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
delete from finance_count
|
|
delete from finance_count
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
</delete>
|
|
@@ -37,13 +36,13 @@
|
|
|
insert into finance_count (aid, order_count, order_unaudited_count,
|
|
insert into finance_count (aid, order_count, order_unaudited_count,
|
|
|
expense_count, expense_unaudited_count, invoice_count,
|
|
expense_count, expense_unaudited_count, invoice_count,
|
|
|
invoice_unaudited_count, member_count, member_unaudited_count,
|
|
invoice_unaudited_count, member_count, member_unaudited_count,
|
|
|
- payment_count, payment_unaudited_count, public_release_count,
|
|
|
|
|
- date_time, create_time)
|
|
|
|
|
|
|
+ payment_count, payment_unaudited_count, date_time,
|
|
|
|
|
+ create_time)
|
|
|
values (#{aid,jdbcType=VARCHAR}, #{orderCount,jdbcType=INTEGER}, #{orderUnauditedCount,jdbcType=INTEGER},
|
|
values (#{aid,jdbcType=VARCHAR}, #{orderCount,jdbcType=INTEGER}, #{orderUnauditedCount,jdbcType=INTEGER},
|
|
|
#{expenseCount,jdbcType=INTEGER}, #{expenseUnauditedCount,jdbcType=INTEGER}, #{invoiceCount,jdbcType=INTEGER},
|
|
#{expenseCount,jdbcType=INTEGER}, #{expenseUnauditedCount,jdbcType=INTEGER}, #{invoiceCount,jdbcType=INTEGER},
|
|
|
#{invoiceUnauditedCount,jdbcType=INTEGER}, #{memberCount,jdbcType=INTEGER}, #{memberUnauditedCount,jdbcType=INTEGER},
|
|
#{invoiceUnauditedCount,jdbcType=INTEGER}, #{memberCount,jdbcType=INTEGER}, #{memberUnauditedCount,jdbcType=INTEGER},
|
|
|
- #{paymentCount,jdbcType=INTEGER}, #{paymentUnauditedCount,jdbcType=INTEGER}, #{publicReleaseCount,jdbcType=INTEGER},
|
|
|
|
|
- #{dateTime,jdbcType=DATE}, #{createTime,jdbcType=TIMESTAMP})
|
|
|
|
|
|
|
+ #{paymentCount,jdbcType=INTEGER}, #{paymentUnauditedCount,jdbcType=INTEGER}, #{dateTime,jdbcType=DATE},
|
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.FinanceCount" useGeneratedKeys="true">
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.FinanceCount" useGeneratedKeys="true">
|
|
|
insert into finance_count
|
|
insert into finance_count
|
|
@@ -81,9 +80,6 @@
|
|
|
<if test="paymentUnauditedCount != null">
|
|
<if test="paymentUnauditedCount != null">
|
|
|
payment_unaudited_count,
|
|
payment_unaudited_count,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="publicReleaseCount != null">
|
|
|
|
|
- public_release_count,
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="dateTime != null">
|
|
<if test="dateTime != null">
|
|
|
date_time,
|
|
date_time,
|
|
|
</if>
|
|
</if>
|
|
@@ -125,9 +121,6 @@
|
|
|
<if test="paymentUnauditedCount != null">
|
|
<if test="paymentUnauditedCount != null">
|
|
|
#{paymentUnauditedCount,jdbcType=INTEGER},
|
|
#{paymentUnauditedCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="publicReleaseCount != null">
|
|
|
|
|
- #{publicReleaseCount,jdbcType=INTEGER},
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="dateTime != null">
|
|
<if test="dateTime != null">
|
|
|
#{dateTime,jdbcType=DATE},
|
|
#{dateTime,jdbcType=DATE},
|
|
|
</if>
|
|
</if>
|
|
@@ -172,9 +165,6 @@
|
|
|
<if test="paymentUnauditedCount != null">
|
|
<if test="paymentUnauditedCount != null">
|
|
|
payment_unaudited_count = #{paymentUnauditedCount,jdbcType=INTEGER},
|
|
payment_unaudited_count = #{paymentUnauditedCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="publicReleaseCount != null">
|
|
|
|
|
- public_release_count = #{publicReleaseCount,jdbcType=INTEGER},
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="dateTime != null">
|
|
<if test="dateTime != null">
|
|
|
date_time = #{dateTime,jdbcType=DATE},
|
|
date_time = #{dateTime,jdbcType=DATE},
|
|
|
</if>
|
|
</if>
|
|
@@ -197,7 +187,6 @@
|
|
|
member_unaudited_count = #{memberUnauditedCount,jdbcType=INTEGER},
|
|
member_unaudited_count = #{memberUnauditedCount,jdbcType=INTEGER},
|
|
|
payment_count = #{paymentCount,jdbcType=INTEGER},
|
|
payment_count = #{paymentCount,jdbcType=INTEGER},
|
|
|
payment_unaudited_count = #{paymentUnauditedCount,jdbcType=INTEGER},
|
|
payment_unaudited_count = #{paymentUnauditedCount,jdbcType=INTEGER},
|
|
|
- public_release_count = #{publicReleaseCount,jdbcType=INTEGER},
|
|
|
|
|
date_time = #{dateTime,jdbcType=DATE},
|
|
date_time = #{dateTime,jdbcType=DATE},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
@@ -236,9 +225,7 @@
|
|
|
<if test="paymentUnauditedCount != null">
|
|
<if test="paymentUnauditedCount != null">
|
|
|
payment_unaudited_count = #{paymentUnauditedCount,jdbcType=INTEGER},
|
|
payment_unaudited_count = #{paymentUnauditedCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="publicReleaseCount != null">
|
|
|
|
|
- public_release_count = #{publicReleaseCount,jdbcType=INTEGER},
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
+
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
@@ -275,4 +262,21 @@
|
|
|
from finance_count
|
|
from finance_count
|
|
|
where aid = #{aid} and date_time = #{startTime}
|
|
where aid = #{aid} and date_time = #{startTime}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <insert id="insetBatch">
|
|
|
|
|
+ insert into finance_count (aid, order_count, order_unaudited_count,
|
|
|
|
|
+ expense_count, expense_unaudited_count, invoice_count,
|
|
|
|
|
+ invoice_unaudited_count, member_count, member_unaudited_count,
|
|
|
|
|
+ payment_count, payment_unaudited_count,
|
|
|
|
|
+ date_time, create_time)
|
|
|
|
|
+ values
|
|
|
|
|
+ <foreach item="e" index="index" collection="list" separator=",">
|
|
|
|
|
+ (#{e.aid,jdbcType=VARCHAR}, #{e.orderCount,jdbcType=INTEGER}, #{e.orderUnauditedCount,jdbcType=INTEGER},
|
|
|
|
|
+ #{e.expenseCount,jdbcType=INTEGER}, #{e.expenseUnauditedCount,jdbcType=INTEGER}, #{e.invoiceCount,jdbcType=INTEGER},
|
|
|
|
|
+ #{e.invoiceUnauditedCount,jdbcType=INTEGER}, #{e.memberCount,jdbcType=INTEGER}, #{e.memberUnauditedCount,jdbcType=INTEGER},
|
|
|
|
|
+ #{e.paymentCount,jdbcType=INTEGER}, #{e.paymentUnauditedCount,jdbcType=INTEGER},
|
|
|
|
|
+ #{e.dateTime,jdbcType=DATE}, now())
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </insert>
|
|
|
</mapper>
|
|
</mapper>
|