Browse Source

[首页统计][修改][修改收缴信息]

release_toaliyun_real
luozukai 7 years ago
parent
commit
a9a5b61352
5 changed files with 12 additions and 19 deletions
  1. +7
    -7
      mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java
  2. +1
    -3
      mallinkService/src/main/resources/mapper/WxBillDepositMapper.xml
  3. +2
    -5
      mallinkService/src/main/resources/mapper/WxBillOtherMapper.xml
  4. +1
    -2
      mallinkService/src/main/resources/mapper/WxBillPropertyMapper.xml
  5. +1
    -2
      mallinkService/src/main/resources/mapper/WxBillRentMapper.xml

+ 7
- 7
mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java View File

@@ -2399,7 +2399,7 @@ public class WxChartServiceImpl implements WxChartDataService {
} }
} else { } else {
datamap.put("otherysje", 0); datamap.put("otherysje", 0);
datamap.put("otheryssje", 0);
datamap.put("otherssje", 0);
datamap.put("otherzjsjl", 0); datamap.put("otherzjsjl", 0);
} }


@@ -2408,7 +2408,7 @@ public class WxChartServiceImpl implements WxChartDataService {
payinfo = wxBillRentMapper.queryOweInfo(params); payinfo = wxBillRentMapper.queryOweInfo(params);
if (payinfo != null) { if (payinfo != null) {
BigDecimal owe = (BigDecimal) payinfo.get("owe"); BigDecimal owe = (BigDecimal) payinfo.get("owe");
totalOwe.add(owe);
totalOwe = totalOwe.add(owe);
datamap.put("rentOwe", owe); datamap.put("rentOwe", owe);
} else { } else {
datamap.put("rentOwe", 0); datamap.put("rentOwe", 0);
@@ -2417,7 +2417,7 @@ public class WxChartServiceImpl implements WxChartDataService {
payinfo = wxBillPropertyMapper.queryOweInfo(params); payinfo = wxBillPropertyMapper.queryOweInfo(params);
if (payinfo != null) { if (payinfo != null) {
BigDecimal owe = (BigDecimal) payinfo.get("owe"); BigDecimal owe = (BigDecimal) payinfo.get("owe");
totalOwe.add(owe);
totalOwe = totalOwe.add(owe);
datamap.put("propertyOwe", owe); datamap.put("propertyOwe", owe);
} else { } else {
datamap.put("propertyOwe", 0); datamap.put("propertyOwe", 0);
@@ -2426,7 +2426,7 @@ public class WxChartServiceImpl implements WxChartDataService {
payinfo = wxBillOtherMapper.queryOweInfo(params); payinfo = wxBillOtherMapper.queryOweInfo(params);
if (payinfo != null) { if (payinfo != null) {
BigDecimal owe = (BigDecimal) payinfo.get("owe"); BigDecimal owe = (BigDecimal) payinfo.get("owe");
totalOwe.add(owe);
totalOwe = totalOwe.add(owe);
datamap.put("otherOwe", owe); datamap.put("otherOwe", owe);
} else { } else {
datamap.put("otherOwe", 0); datamap.put("otherOwe", 0);
@@ -2435,10 +2435,10 @@ public class WxChartServiceImpl implements WxChartDataService {
payinfo = wxBillDepositMapper.queryOweInfoAll(params); payinfo = wxBillDepositMapper.queryOweInfoAll(params);
if (payinfo != null) { if (payinfo != null) {
BigDecimal owe = (BigDecimal) payinfo.get("owe"); BigDecimal owe = (BigDecimal) payinfo.get("owe");
totalOwe.add(owe);
datamap.put("depositOwe", owe);
totalOwe = totalOwe.add(owe);
datamap.put("totalOwe", owe);
} else { } else {
datamap.put("depositOwe", 0);
datamap.put("totalOwe", 0);
} }
datamap.put("totalOwe", totalOwe); datamap.put("totalOwe", totalOwe);




+ 1
- 3
mallinkService/src/main/resources/mapper/WxBillDepositMapper.xml View File

@@ -112,7 +112,7 @@
</select> </select>


<select id="queryOweInfoAll" resultType="hashmap" parameterType="hashmap"> <select id="queryOweInfoAll" resultType="hashmap" parameterType="hashmap">
select sum(res.owe) owe,res.tenant_id from
select IFNULL(round(sum(res.owe)/100,2),0) owe,res.tenant_id from
( (
select IFNULL(sum(owe),0) owe,tenant_id from wx_bill_rent_deposit select IFNULL(sum(owe),0) owe,tenant_id from wx_bill_rent_deposit
where tenant_id=#{tenantId} and date_format(receive_date,'%Y-%m')=#{receiveDate} where tenant_id=#{tenantId} and date_format(receive_date,'%Y-%m')=#{receiveDate}
@@ -123,8 +123,6 @@
select IFNULL(sum(owe),0) owe,tenant_id from wx_bill_other_deposit select IFNULL(sum(owe),0) owe,tenant_id from wx_bill_other_deposit
where tenant_id=#{tenantId} and date_format(receive_date,'%Y-%m')=#{receiveDate} where tenant_id=#{tenantId} and date_format(receive_date,'%Y-%m')=#{receiveDate}
) res ) res
group by res.tenant_id

</select> </select>


<update id="updateNotPaidStatus" parameterType="hashmap"> <update id="updateNotPaidStatus" parameterType="hashmap">


+ 2
- 5
mallinkService/src/main/resources/mapper/WxBillOtherMapper.xml View File

@@ -99,23 +99,20 @@




<select id="queryPayInfoTotal" resultType="hashmap" parameterType="hashmap"> <select id="queryPayInfoTotal" resultType="hashmap" parameterType="hashmap">
select sum(t.receivepay),receivepay,sum(t.pay) pay from
select round(sum(t.receivepay)/100,2) receivepay,round(sum(t.pay)/100,2) pay from
( (
select IFNULL(sum(receive_pay),0) receivepay,IFNULL(sum(pay),0) pay,tenant_id from wx_bill_other select IFNULL(sum(receive_pay),0) receivepay,IFNULL(sum(pay),0) pay,tenant_id from wx_bill_other
where tenant_id=#{tenantId} and receive_date between #{startdate} and #{enddate} where tenant_id=#{tenantId} and receive_date between #{startdate} and #{enddate}
group by tenant_id
union union
select IFNULL(sum(receive_pay),0) receivepay,IFNULL(sum(pay),0) pay,tenant_id from wx_bill_daily select IFNULL(sum(receive_pay),0) receivepay,IFNULL(sum(pay),0) pay,tenant_id from wx_bill_daily
where tenant_id=#{tenantId} and receive_date between #{startdate} and #{enddate} where tenant_id=#{tenantId} and receive_date between #{startdate} and #{enddate}
group by tenant_id
) t ) t
</select> </select>




<select id="queryOweInfo" resultType="hashmap" parameterType="hashmap"> <select id="queryOweInfo" resultType="hashmap" parameterType="hashmap">
select IFNULL(sum(owe),0) owe,tenant_id from wx_bill_other
select IFNULL(round(sum(owe)/100,2),0) owe,tenant_id from wx_bill_other
where status = 1 and tenant_id=#{tenantId} and receive_date between #{startdate} and #{enddate} where status = 1 and tenant_id=#{tenantId} and receive_date between #{startdate} and #{enddate}
group by tenant_id
</select> </select>
</mapper> </mapper>

+ 1
- 2
mallinkService/src/main/resources/mapper/WxBillPropertyMapper.xml View File

@@ -128,9 +128,8 @@




<select id="queryOweInfo" resultType="hashmap" parameterType="hashmap"> <select id="queryOweInfo" resultType="hashmap" parameterType="hashmap">
select IFNULL(sum(owe),0) owe,tenant_id from wx_bill_property
select IFNULL(round(sum(owe)/100,2),0) owe,tenant_id from wx_bill_property
where status = 1 and tenant_id=#{tenantId} and receive_date between #{startdate} and #{enddate} and is_preview = 0 where status = 1 and tenant_id=#{tenantId} and receive_date between #{startdate} and #{enddate} and is_preview = 0
group by tenant_id
</select> </select>
<update id="updateNotPaidStatus" parameterType="hashmap"> <update id="updateNotPaidStatus" parameterType="hashmap">


+ 1
- 2
mallinkService/src/main/resources/mapper/WxBillRentMapper.xml View File

@@ -131,9 +131,8 @@




<select id="queryOweInfo" resultType="hashmap" parameterType="hashmap"> <select id="queryOweInfo" resultType="hashmap" parameterType="hashmap">
select IFNULL(sum(owe),0) owe,tenant_id from wx_bill_rent
select IFNULL(round(sum(owe)/100,2),0) owe,tenant_id from wx_bill_rent
where status = 1 and tenant_id=#{tenantId} and receive_date between #{startdate} and #{enddate} and is_preview = 0 where status = 1 and tenant_id=#{tenantId} and receive_date between #{startdate} and #{enddate} and is_preview = 0
group by tenant_id
</select> </select>
<update id="updateNotPaidStatus" parameterType="hashmap"> <update id="updateNotPaidStatus" parameterType="hashmap">


Loading…
Cancel
Save