Просмотр исходного кода

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

release_toaliyun_real
luozukai 7 лет назад
Родитель
Сommit
a9a5b61352
5 измененных файлов: 12 добавлений и 19 удалений
  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 Просмотреть файл

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

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



+ 1
- 3
mallinkService/src/main/resources/mapper/WxBillDepositMapper.xml Просмотреть файл

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

<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
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
where tenant_id=#{tenantId} and date_format(receive_date,'%Y-%m')=#{receiveDate}
) res
group by res.tenant_id

</select>

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


+ 2
- 5
mallinkService/src/main/resources/mapper/WxBillOtherMapper.xml Просмотреть файл

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


<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
where tenant_id=#{tenantId} and receive_date between #{startdate} and #{enddate}
group by tenant_id
union
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}
group by tenant_id
) t
</select>


<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}
group by tenant_id
</select>
</mapper>

+ 1
- 2
mallinkService/src/main/resources/mapper/WxBillPropertyMapper.xml Просмотреть файл

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


<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
group by tenant_id
</select>
<update id="updateNotPaidStatus" parameterType="hashmap">


+ 1
- 2
mallinkService/src/main/resources/mapper/WxBillRentMapper.xml Просмотреть файл

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


<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
group by tenant_id
</select>
<update id="updateNotPaidStatus" parameterType="hashmap">


Загрузка…
Отмена
Сохранить