fix 87983 工作组来款详情--金额列排序没有作用
This commit is contained in:
+6
@@ -52,4 +52,10 @@ public class PayWorkingGroupSubletSearch {
|
||||
|
||||
@ApiModelProperty(value = "是否打包")
|
||||
private String pack;
|
||||
|
||||
@ApiModelProperty(value = "字段")
|
||||
private String column;
|
||||
|
||||
@ApiModelProperty(value = "排序规则")
|
||||
private String order;
|
||||
}
|
||||
|
||||
+29
-14
@@ -132,7 +132,8 @@
|
||||
</sql>
|
||||
<!--工作组详情-->
|
||||
<select id="queryPageList2" resultType="com.jero.project.entity.PayWorkGroupSubletStatistics">
|
||||
SELECT
|
||||
select * from
|
||||
(SELECT
|
||||
principalNameId as principalId,
|
||||
principalName,
|
||||
chargeCompanyTemporaryName,
|
||||
@@ -202,17 +203,37 @@
|
||||
</if>
|
||||
</otherwise>
|
||||
</choose>
|
||||
<!--<if test="payWorkingGroupSubletSearch.paymentYear != null and payWorkingGroupSubletSearch.paymentYear != ''">
|
||||
and DATE_FORMAT (pcpr.payment_date,'%Y') like concat(#{payWorkingGroupSubletSearch.paymentYear}, '%')
|
||||
<if test="payWorkingGroupSubletSearch.paymentMonth != null and payWorkingGroupSubletSearch.paymentMonth != ''">
|
||||
and DATE_FORMAT (pcpr.payment_date,'%m') like concat(#{payWorkingGroupSubletSearch.paymentMonth}, '%')
|
||||
</if>
|
||||
</if>-->
|
||||
<if test="payWorkingGroupSubletSearch.pack != null and payWorkingGroupSubletSearch.pack != ''">
|
||||
AND pack = #{payWorkingGroupSubletSearch.pack}
|
||||
</if>
|
||||
</where>
|
||||
group by id
|
||||
group by id) p
|
||||
<if test="payWorkingGroupSubletSearch.column != null and payWorkingGroupSubletSearch.column != ''">
|
||||
<if test="payWorkingGroupSubletSearch.column == 'allMoney' and payWorkingGroupSubletSearch.order == 'desc'">
|
||||
order by allMoney desc
|
||||
</if>
|
||||
<if test="payWorkingGroupSubletSearch.column == 'comeAllMoney' and payWorkingGroupSubletSearch.order == 'desc'">
|
||||
order by comeAllMoney desc
|
||||
</if>
|
||||
<if test="payWorkingGroupSubletSearch.column == 'billMoney' and payWorkingGroupSubletSearch.order == 'desc'">
|
||||
order by billMoney desc
|
||||
</if>
|
||||
<if test="payWorkingGroupSubletSearch.column == 'confirmAmount' and payWorkingGroupSubletSearch.order == 'desc'">
|
||||
order by confirmAmount desc
|
||||
</if>
|
||||
<if test="payWorkingGroupSubletSearch.column == 'confirmAmount' and payWorkingGroupSubletSearch.order == 'asc'">
|
||||
order by confirmAmount
|
||||
</if>
|
||||
<if test="payWorkingGroupSubletSearch.column == 'allMoney' and payWorkingGroupSubletSearch.order == 'asc'">
|
||||
order by allMoney
|
||||
</if>
|
||||
<if test="payWorkingGroupSubletSearch.column == 'comeAllMoney' and payWorkingGroupSubletSearch.order == 'asc'">
|
||||
order by comeAllMoney
|
||||
</if>
|
||||
<if test="payWorkingGroupSubletSearch.column == 'billMoney' and payWorkingGroupSubletSearch.order == 'asc'">
|
||||
order by billMoney
|
||||
</if>
|
||||
</if>
|
||||
</select>
|
||||
<!--工作组详情总金额-->
|
||||
<select id="queryPageList233" resultType="com.jero.statistics.entity.AllMoney">
|
||||
@@ -286,12 +307,6 @@
|
||||
<if test="payWorkingGroupSubletSearch.pack != null and payWorkingGroupSubletSearch.pack != ''">
|
||||
AND pack = #{payWorkingGroupSubletSearch.pack}
|
||||
</if>
|
||||
<!--<if test="payWorkingGroupSubletSearch.paymentYear != null and payWorkingGroupSubletSearch.paymentYear != ''">
|
||||
and DATE_FORMAT (pcpr.payment_date,'%Y') like concat(#{payWorkingGroupSubletSearch.paymentYear}, '%')
|
||||
<if test="payWorkingGroupSubletSearch.paymentMonth != null and payWorkingGroupSubletSearch.paymentMonth != ''">
|
||||
and DATE_FORMAT (pcpr.payment_date,'%m') like concat(#{payWorkingGroupSubletSearch.paymentMonth}, '%')
|
||||
</if>
|
||||
</if>-->
|
||||
</where>
|
||||
group by id) p
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user