|
|
@@ -16,6 +16,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="sourceCode" column="source_code"/>
|
|
|
<result property="remark" column="remark"/>
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
+ <result property="businessId" column="business_id"/>
|
|
|
+ <result property="businessName" column="business_name"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="sumStatistics" resultType="java.math.BigDecimal">
|
|
|
@@ -23,8 +25,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
WHERE agent_id = #{bo.agentId}
|
|
|
AND bill_type = #{bo.billType}
|
|
|
AND source_type = #{bo.sourceType}
|
|
|
- <if test="bo.sourceId != null">
|
|
|
- AND source_id = #{bo.sourceId}
|
|
|
+ <if test="bo.businessId != null">
|
|
|
+ AND business_id = #{bo.businessId}
|
|
|
</if>
|
|
|
|
|
|
</select>
|