Pārlūkot izejas kodu

优化报表功能

wuxw 1 gadu atpakaļ
vecāks
revīzija
3e98391d7a

+ 9 - 0
java110-bean/src/main/java/com/java110/dto/reportFee/ReportFeeMonthStatisticsDto.java

@@ -56,6 +56,7 @@ public class ReportFeeMonthStatisticsDto extends PageDto implements Serializable
 
 
 
 
     private String ownerName;
     private String ownerName;
+    private String ownerTel;
     private String ownerId;
     private String ownerId;
     private String detailId;
     private String detailId;
     private String builtUpArea;
     private String builtUpArea;
@@ -1191,4 +1192,12 @@ public class ReportFeeMonthStatisticsDto extends PageDto implements Serializable
     public void setRoomName(String roomName) {
     public void setRoomName(String roomName) {
         this.roomName = roomName;
         this.roomName = roomName;
     }
     }
+
+    public String getOwnerTel() {
+        return ownerTel;
+    }
+
+    public void setOwnerTel(String ownerTel) {
+        this.ownerTel = ownerTel;
+    }
 }
 }

+ 2 - 2
java110-db/src/main/resources/mapper/report/ReportFeeMonthStatisticsServiceDaoImplMapper.xml

@@ -1491,7 +1491,7 @@
     <!-- 查询费用月统计信息 add by wuxw 2018-07-03 -->
     <!-- 查询费用月统计信息 add by wuxw 2018-07-03 -->
     <select id="queryOweFeeDetail" parameterType="Map" resultType="Map">
     <select id="queryOweFeeDetail" parameterType="Map" resultType="Map">
         select t.payer_obj_name objName,t.fee_name feeName,pf.end_time feeCreateTime,t.update_time updateTime,
         select t.payer_obj_name objName,t.fee_name feeName,pf.end_time feeCreateTime,t.update_time updateTime,
-        pfa.`value` ownerName,br.built_up_area builtUpArea ,SUM(t.amount_owed) oweAmount,max(t.deadline_time)
+        t.owner_name ownerName,t.owner_tel ownerTel,br.built_up_area builtUpArea ,SUM(t.amount_owed) oweAmount,max(t.deadline_time)
         deadlineTime
         deadlineTime
         from report_owe_fee t
         from report_owe_fee t
         inner join pay_fee_config pfc on t.config_id = pfc.config_id and pfc.status_cd = '0'
         inner join pay_fee_config pfc on t.config_id = pfc.config_id and pfc.status_cd = '0'
@@ -1541,7 +1541,7 @@
             and t.create_time &lt;= #{endTime}
             and t.create_time &lt;= #{endTime}
         </if>
         </if>
         and t.amount_owed != 0 and pf.end_time &lt; now()
         and t.amount_owed != 0 and pf.end_time &lt; now()
-        group by t.payer_obj_name ,t.fee_name ,pf.end_time ,t.update_time,pfa.`value` ,br.built_up_area
+        group by t.payer_obj_name ,t.fee_name ,pf.end_time ,t.update_time, t.owner_name ,t.owner_tel ,br.built_up_area
         HAVING oweAmount != 0
         HAVING oweAmount != 0
         order by t.payer_obj_name
         order by t.payer_obj_name
         <if test="page != -1 and page != null ">
         <if test="page != -1 and page != null ">

+ 1 - 1
service-acct/src/main/java/com/java110/acct/cmd/invoice/SaveInvoiceApplyCmd.java

@@ -230,7 +230,7 @@ public class SaveInvoiceApplyCmd extends Cmd {
             invoiceApplyItemPo.setItemAmount(tmpFeeDetailDto.getReceivedAmount());
             invoiceApplyItemPo.setItemAmount(tmpFeeDetailDto.getReceivedAmount());
             invoiceApplyItemPo.setItemId(GenerateCodeFactory.getGeneratorId("11"));
             invoiceApplyItemPo.setItemId(GenerateCodeFactory.getGeneratorId("11"));
             invoiceApplyItemPo.setItemName(tmpFeeDetailDto.getFeeName());
             invoiceApplyItemPo.setItemName(tmpFeeDetailDto.getFeeName());
-            invoiceApplyItemPo.setRemark(tmpFeeDetailDto.getFeeName()
+            invoiceApplyItemPo.setRemark(tmpFeeDetailDto.getPayerObjName()+tmpFeeDetailDto.getFeeName()
                     + "("
                     + "("
                     + DateUtil.getFormatTimeStringB(tmpFeeDetailDto.getStartTime())
                     + DateUtil.getFormatTimeStringB(tmpFeeDetailDto.getStartTime())
                     + "~"
                     + "~"

+ 5 - 5
service-report/src/main/java/com/java110/report/dao/impl/ReportFeeMonthStatisticsServiceDaoImpl.java

@@ -321,21 +321,21 @@ public class ReportFeeMonthStatisticsServiceDaoImpl extends BaseServiceDao imple
     public int queryOweFeeDetailCount(Map info) {
     public int queryOweFeeDetailCount(Map info) {
         logger.debug("查询费用月统计数据 入参 info : {}", info);
         logger.debug("查询费用月统计数据 入参 info : {}", info);
 
 
-        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryOweFeeDetailCount", info);
-        if (businessReportFeeMonthStatisticsInfos.size() < 1) {
+        List<Map> infos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryOweFeeDetailCount", info);
+        if (infos.size() < 1) {
             return 0;
             return 0;
         }
         }
 
 
-        return Integer.parseInt(businessReportFeeMonthStatisticsInfos.get(0).get("count").toString());
+        return Integer.parseInt(infos.get(0).get("count").toString());
     }
     }
 
 
     @Override
     @Override
     public List<Map> queryOweFeeDetail(Map info) throws DAOException {
     public List<Map> queryOweFeeDetail(Map info) throws DAOException {
         logger.debug("查询费用月统计信息 入参 info : {}", info);
         logger.debug("查询费用月统计信息 入参 info : {}", info);
 
 
-        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryOweFeeDetail", info);
+        List<Map> infos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryOweFeeDetail", info);
 
 
-        return businessReportFeeMonthStatisticsInfos;
+        return infos;
     }
     }
 
 
     @Override
     @Override

+ 2 - 2
service-report/src/main/java/com/java110/report/smo/impl/ReportFeeMonthStatisticsInnerServiceSMOImpl.java

@@ -288,9 +288,9 @@ public class ReportFeeMonthStatisticsInnerServiceSMOImpl extends BaseServiceSMO
             reportFeeMonthStatisticsDto.setPage((page - 1) * reportFeeMonthStatisticsDto.getRow());
             reportFeeMonthStatisticsDto.setPage((page - 1) * reportFeeMonthStatisticsDto.getRow());
         }
         }
 
 
-        List<ReportFeeMonthStatisticsDto> reportFeeMonthStatisticss = BeanConvertUtil.covertBeanList(reportFeeMonthStatisticsServiceDaoImpl.queryOweFeeDetail(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsDto)), ReportFeeMonthStatisticsDto.class);
+        List<ReportFeeMonthStatisticsDto> infos = BeanConvertUtil.covertBeanList(reportFeeMonthStatisticsServiceDaoImpl.queryOweFeeDetail(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsDto)), ReportFeeMonthStatisticsDto.class);
 
 
-        return reportFeeMonthStatisticss;
+        return infos;
     }
     }
 
 
     @Override
     @Override