|
@@ -241,10 +241,13 @@
|
|
|
select
|
|
|
accountnumber,
|
|
|
accountname,
|
|
|
+ `year`,`month`,
|
|
|
CONCAT(year,'年',LPAD(month, 2, 0),'月费用') as "name" ,
|
|
|
'--'as "ladderlevelname",
|
|
|
payseriesno as "payseriesno",
|
|
|
sum(receivedamount) as "receivedamount",
|
|
|
+ (case when min(reced.payway) != 5 then min(reced.payway) else max(reced.payway) end ) as "payway",
|
|
|
+ max(reced.state) as "state",
|
|
|
(select label from pay_sys_dict where type = '支付方式' and value =
|
|
|
(case when min(reced.payway) != 5 then min(reced.payway) else max(reced.payway) end )
|
|
|
and site_id = #{siteId} and customer_id =#{customerId}) as "paywayname",
|