|
@@ -159,12 +159,12 @@ |
|
@@ -159,12 +159,12 @@ |
159
|
|
159
|
|
160
|
|
160
|
|
161
|
<sql id="Assets_Details_View_Query_Condition_Sql" >
|
161
|
<sql id="Assets_Details_View_Query_Condition_Sql" >
|
162
|
- uid = #{request.uid,jdbcType=INTEGER} and income_outcome = 1 and deal_status != 1
|
162
|
+ uid = #{uid,jdbcType=INTEGER} and income_outcome = 1 and deal_status != 1
|
163
|
and ( (user_type =1 and trade_type = 3) or (user_type =2 and trade_type = 2) or (user_type =2 and trade_type = 3) )
|
163
|
and ( (user_type =1 and trade_type = 3) or (user_type =2 and trade_type = 2) or (user_type =2 and trade_type = 3) )
|
164
|
- <if test="request.queryType = 1" >
|
164
|
+ <if test="queryType = 1" >
|
165
|
and trade_status = 10
|
165
|
and trade_status = 10
|
166
|
</if>
|
166
|
</if>
|
167
|
- <if test="request.queryType = 2" >
|
167
|
+ <if test="queryType = 2" >
|
168
|
and trade_status != 10
|
168
|
and trade_status != 10
|
169
|
</if>
|
169
|
</if>
|
170
|
</sql>
|
170
|
</sql>
|
|
@@ -182,12 +182,12 @@ |
|
@@ -182,12 +182,12 @@ |
182
|
from trade_bills
|
182
|
from trade_bills
|
183
|
where <include refid="Assets_Details_View_Query_Condition_Sql" />
|
183
|
where <include refid="Assets_Details_View_Query_Condition_Sql" />
|
184
|
order by id desc
|
184
|
order by id desc
|
185
|
- limit #{request.start,jdbcType=INTEGER},#{request.limit,jdbcType=INTEGER}
|
185
|
+ limit #{start,jdbcType=INTEGER},#{limit,jdbcType=INTEGER}
|
186
|
</select>
|
186
|
</select>
|
187
|
|
187
|
|
188
|
|
188
|
|
189
|
<select id="selectIncomeAmountForAssetsDetailsView" parameterType="com.yohoufo.dal.order.model.AssetsDetailsViewRequest" resultType="com.yohoufo.dal.order.model.AssetsDetailsViewIncomeAmount">
|
189
|
<select id="selectIncomeAmountForAssetsDetailsView" parameterType="com.yohoufo.dal.order.model.AssetsDetailsViewRequest" resultType="com.yohoufo.dal.order.model.AssetsDetailsViewIncomeAmount">
|
190
|
- select trade_status as tradeStatus, trade_type as tradeType ,sum(amount) as amount from trade_bills
|
190
|
+ select trade_status, trade_type ,sum(amount) from trade_bills
|
191
|
where <include refid="Assets_Details_View_Query_Condition_Sql" />
|
191
|
where <include refid="Assets_Details_View_Query_Condition_Sql" />
|
192
|
group by trade_status, trade_type
|
192
|
group by trade_status, trade_type
|
193
|
</select>
|
193
|
</select>
|