java110
2021-02-22 49fc8e6e071a614c96b82b5fe0e013e5151aa419
加入报表专家代码
3个文件已修改
31个文件已添加
1954 ■■■■■ 已修改文件
java110-bean/src/main/java/com/java110/dto/reportFeeYearCollection/ReportFeeYearCollectionDto.java 125 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-bean/src/main/java/com/java110/dto/reportFeeYearCollectionDetail/ReportFeeYearCollectionDetailDto.java 90 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-bean/src/main/java/com/java110/po/reportFeeYearCollection/ReportFeeYearCollectionPo.java 102 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-bean/src/main/java/com/java110/po/reportFeeYearCollectionDetail/ReportFeeYearCollectionDetailPo.java 67 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-core/src/main/java/com/java110/core/factory/GenerateCodeFactory.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-db/src/main/resources/mapper/report/ReportFeeYearCollectionDetailServiceDaoImplMapper.xml 124 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-db/src/main/resources/mapper/report/ReportFeeYearCollectionServiceDaoImplMapper.xml 169 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-generator/src/main/resources/newBack/template_1.json 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-interface/src/main/java/com/java110/intf/report/IReportFeeYearCollectionDetailInnerServiceSMO.java 53 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-interface/src/main/java/com/java110/intf/report/IReportFeeYearCollectionInnerServiceSMO.java 53 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-front/src/main/java/com/java110/front/smo/wechatGateway/impl/WechatGatewaySMOImpl.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/api/ReportFeeYearCollectionApi.java 204 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollection/IDeleteReportFeeYearCollectionBMO.java 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollection/IGetReportFeeYearCollectionBMO.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollection/ISaveReportFeeYearCollectionBMO.java 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollection/IUpdateReportFeeYearCollectionBMO.java 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollection/impl/DeleteReportFeeYearCollectionBMOImpl.java 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollection/impl/GetReportFeeYearCollectionBMOImpl.java 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollection/impl/SaveReportFeeYearCollectionBMOImpl.java 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollection/impl/UpdateReportFeeYearCollectionBMOImpl.java 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollectionDetail/IDeleteReportFeeYearCollectionDetailBMO.java 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollectionDetail/IGetReportFeeYearCollectionDetailBMO.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollectionDetail/ISaveReportFeeYearCollectionDetailBMO.java 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollectionDetail/IUpdateReportFeeYearCollectionDetailBMO.java 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollectionDetail/impl/DeleteReportFeeYearCollectionDetailBMOImpl.java 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollectionDetail/impl/GetReportFeeYearCollectionDetailBMOImpl.java 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollectionDetail/impl/SaveReportFeeYearCollectionDetailBMOImpl.java 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollectionDetail/impl/UpdateReportFeeYearCollectionDetailBMOImpl.java 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/dao/IReportFeeYearCollectionDetailServiceDao.java 61 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/dao/IReportFeeYearCollectionServiceDao.java 61 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/dao/impl/ReportFeeYearCollectionDetailServiceDaoImpl.java 98 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/dao/impl/ReportFeeYearCollectionServiceDaoImpl.java 98 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/smo/impl/ReportFeeYearCollectionDetailInnerServiceSMOImpl.java 83 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/smo/impl/ReportFeeYearCollectionInnerServiceSMOImpl.java 83 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-bean/src/main/java/com/java110/dto/reportFeeYearCollection/ReportFeeYearCollectionDto.java
New file
@@ -0,0 +1,125 @@
package com.java110.dto.reportFeeYearCollection;
import com.java110.dto.PageDto;
import java.io.Serializable;
import java.util.Date;
/**
 * @ClassName FloorDto
 * @Description 费用年收费数据层封装
 * @Author wuxw
 * @Date 2019/4/24 8:52
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
public class ReportFeeYearCollectionDto extends PageDto implements Serializable {
    private String ownerLink;
private String objName;
private String ownerId;
private String feeId;
private String builtUpArea;
private String ownerName;
private String configId;
private String objId;
private String feeName;
private String communityId;
private String collectionId;
private String objType;
    private Date createTime;
    private String statusCd = "0";
    public String getOwnerLink() {
        return ownerLink;
    }
public void setOwnerLink(String ownerLink) {
        this.ownerLink = ownerLink;
    }
public String getObjName() {
        return objName;
    }
public void setObjName(String objName) {
        this.objName = objName;
    }
public String getOwnerId() {
        return ownerId;
    }
public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }
public String getFeeId() {
        return feeId;
    }
public void setFeeId(String feeId) {
        this.feeId = feeId;
    }
public String getBuiltUpArea() {
        return builtUpArea;
    }
public void setBuiltUpArea(String builtUpArea) {
        this.builtUpArea = builtUpArea;
    }
public String getOwnerName() {
        return ownerName;
    }
public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }
public String getConfigId() {
        return configId;
    }
public void setConfigId(String configId) {
        this.configId = configId;
    }
public String getObjId() {
        return objId;
    }
public void setObjId(String objId) {
        this.objId = objId;
    }
public String getFeeName() {
        return feeName;
    }
public void setFeeName(String feeName) {
        this.feeName = feeName;
    }
public String getCommunityId() {
        return communityId;
    }
public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }
public String getCollectionId() {
        return collectionId;
    }
public void setCollectionId(String collectionId) {
        this.collectionId = collectionId;
    }
public String getObjType() {
        return objType;
    }
public void setObjType(String objType) {
        this.objType = objType;
    }
    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getStatusCd() {
        return statusCd;
    }
    public void setStatusCd(String statusCd) {
        this.statusCd = statusCd;
    }
}
java110-bean/src/main/java/com/java110/dto/reportFeeYearCollectionDetail/ReportFeeYearCollectionDetailDto.java
New file
@@ -0,0 +1,90 @@
package com.java110.dto.reportFeeYearCollectionDetail;
import com.java110.dto.PageDto;
import java.io.Serializable;
import java.util.Date;
/**
 * @ClassName FloorDto
 * @Description 费用年收费明细数据层封装
 * @Author wuxw
 * @Date 2019/4/24 8:52
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
public class ReportFeeYearCollectionDetailDto extends PageDto implements Serializable {
    private String collectionYear;
private String relationYear;
private String detailId;
private String receivableAmount;
private String receivedAmount;
private String communityId;
private String collectionId;
    private Date createTime;
    private String statusCd = "0";
    public String getCollectionYear() {
        return collectionYear;
    }
public void setCollectionYear(String collectionYear) {
        this.collectionYear = collectionYear;
    }
public String getRelationYear() {
        return relationYear;
    }
public void setRelationYear(String relationYear) {
        this.relationYear = relationYear;
    }
public String getDetailId() {
        return detailId;
    }
public void setDetailId(String detailId) {
        this.detailId = detailId;
    }
public String getReceivableAmount() {
        return receivableAmount;
    }
public void setReceivableAmount(String receivableAmount) {
        this.receivableAmount = receivableAmount;
    }
public String getReceivedAmount() {
        return receivedAmount;
    }
public void setReceivedAmount(String receivedAmount) {
        this.receivedAmount = receivedAmount;
    }
public String getCommunityId() {
        return communityId;
    }
public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }
public String getCollectionId() {
        return collectionId;
    }
public void setCollectionId(String collectionId) {
        this.collectionId = collectionId;
    }
    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getStatusCd() {
        return statusCd;
    }
    public void setStatusCd(String statusCd) {
        this.statusCd = statusCd;
    }
}
java110-bean/src/main/java/com/java110/po/reportFeeYearCollection/ReportFeeYearCollectionPo.java
New file
@@ -0,0 +1,102 @@
package com.java110.po.reportFeeYearCollection;
import java.io.Serializable;
import java.util.Date;
public class ReportFeeYearCollectionPo implements Serializable {
    private String ownerLink;
private String statusCd = "0";
private String objName;
private String ownerId;
private String feeId;
private String builtUpArea;
private String ownerName;
private String configId;
private String objId;
private String feeName;
private String communityId;
private String collectionId;
private String objType;
public String getOwnerLink() {
        return ownerLink;
    }
public void setOwnerLink(String ownerLink) {
        this.ownerLink = ownerLink;
    }
public String getStatusCd() {
        return statusCd;
    }
public void setStatusCd(String statusCd) {
        this.statusCd = statusCd;
    }
public String getObjName() {
        return objName;
    }
public void setObjName(String objName) {
        this.objName = objName;
    }
public String getOwnerId() {
        return ownerId;
    }
public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }
public String getFeeId() {
        return feeId;
    }
public void setFeeId(String feeId) {
        this.feeId = feeId;
    }
public String getBuiltUpArea() {
        return builtUpArea;
    }
public void setBuiltUpArea(String builtUpArea) {
        this.builtUpArea = builtUpArea;
    }
public String getOwnerName() {
        return ownerName;
    }
public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }
public String getConfigId() {
        return configId;
    }
public void setConfigId(String configId) {
        this.configId = configId;
    }
public String getObjId() {
        return objId;
    }
public void setObjId(String objId) {
        this.objId = objId;
    }
public String getFeeName() {
        return feeName;
    }
public void setFeeName(String feeName) {
        this.feeName = feeName;
    }
public String getCommunityId() {
        return communityId;
    }
public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }
public String getCollectionId() {
        return collectionId;
    }
public void setCollectionId(String collectionId) {
        this.collectionId = collectionId;
    }
public String getObjType() {
        return objType;
    }
public void setObjType(String objType) {
        this.objType = objType;
    }
}
java110-bean/src/main/java/com/java110/po/reportFeeYearCollectionDetail/ReportFeeYearCollectionDetailPo.java
New file
@@ -0,0 +1,67 @@
package com.java110.po.reportFeeYearCollectionDetail;
import java.io.Serializable;
import java.util.Date;
public class ReportFeeYearCollectionDetailPo implements Serializable {
    private String collectionYear;
private String relationYear;
private String detailId;
private String receivableAmount;
private String statusCd = "0";
private String receivedAmount;
private String communityId;
private String collectionId;
public String getCollectionYear() {
        return collectionYear;
    }
public void setCollectionYear(String collectionYear) {
        this.collectionYear = collectionYear;
    }
public String getRelationYear() {
        return relationYear;
    }
public void setRelationYear(String relationYear) {
        this.relationYear = relationYear;
    }
public String getDetailId() {
        return detailId;
    }
public void setDetailId(String detailId) {
        this.detailId = detailId;
    }
public String getReceivableAmount() {
        return receivableAmount;
    }
public void setReceivableAmount(String receivableAmount) {
        this.receivableAmount = receivableAmount;
    }
public String getStatusCd() {
        return statusCd;
    }
public void setStatusCd(String statusCd) {
        this.statusCd = statusCd;
    }
public String getReceivedAmount() {
        return receivedAmount;
    }
public void setReceivedAmount(String receivedAmount) {
        this.receivedAmount = receivedAmount;
    }
public String getCommunityId() {
        return communityId;
    }
public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }
public String getCollectionId() {
        return collectionId;
    }
public void setCollectionId(String collectionId) {
        this.collectionId = collectionId;
    }
}
java110-core/src/main/java/com/java110/core/factory/GenerateCodeFactory.java
@@ -185,6 +185,8 @@
    public static final String CODE_PREFIX_userQaId = "20";
    public static final String CODE_PREFIX_userTitleId = "21";
    public static final String CODE_PREFIX_beId = "22";
    public static final String CODE_PREFIX_collectionId = "23";
    /**
java110-db/src/main/resources/mapper/report/ReportFeeYearCollectionDetailServiceDaoImplMapper.xml
New file
@@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="reportFeeYearCollectionDetailServiceDaoImpl">
    <!-- 保存费用年收费明细信息 add by wuxw 2018-07-03 -->
    <insert id="saveReportFeeYearCollectionDetailInfo" parameterType="Map">
        insert into report_fee_year_collection_detail(
collection_year,relation_year,detail_id,receivable_amount,received_amount,community_id,collection_id
) values (
#{collectionYear},#{relationYear},#{detailId},#{receivableAmount},#{receivedAmount},#{communityId},#{collectionId}
)
    </insert>
    <!-- 查询费用年收费明细信息 add by wuxw 2018-07-03 -->
    <select id="getReportFeeYearCollectionDetailInfo" parameterType="Map" resultType="Map">
        select  t.collection_year,t.collection_year collectionYear,t.relation_year,t.relation_year relationYear,t.detail_id,t.detail_id detailId,t.receivable_amount,t.receivable_amount receivableAmount,t.status_cd,t.status_cd statusCd,t.received_amount,t.received_amount receivedAmount,t.community_id,t.community_id communityId,t.collection_id,t.collection_id collectionId
from report_fee_year_collection_detail t
where 1 =1
<if test="collectionYear !=null and collectionYear != ''">
   and t.collection_year= #{collectionYear}
</if>
<if test="relationYear !=null and relationYear != ''">
   and t.relation_year= #{relationYear}
</if>
<if test="detailId !=null and detailId != ''">
   and t.detail_id= #{detailId}
</if>
<if test="receivableAmount !=null and receivableAmount != ''">
   and t.receivable_amount= #{receivableAmount}
</if>
<if test="statusCd !=null and statusCd != ''">
   and t.status_cd= #{statusCd}
</if>
<if test="receivedAmount !=null and receivedAmount != ''">
   and t.received_amount= #{receivedAmount}
</if>
<if test="communityId !=null and communityId != ''">
   and t.community_id= #{communityId}
</if>
<if test="collectionId !=null and collectionId != ''">
   and t.collection_id= #{collectionId}
</if>
order by t.create_time desc
<if test="page != -1 and page != null ">
   limit #{page}, #{row}
</if>
    </select>
    <!-- 修改费用年收费明细信息 add by wuxw 2018-07-03 -->
    <update id="updateReportFeeYearCollectionDetailInfo" parameterType="Map">
        update  report_fee_year_collection_detail t set t.status_cd = #{statusCd}
<if test="newBId != null and newBId != ''">
,t.b_id = #{newBId}
</if>
<if test="collectionYear !=null and collectionYear != ''">
, t.collection_year= #{collectionYear}
</if>
<if test="relationYear !=null and relationYear != ''">
, t.relation_year= #{relationYear}
</if>
<if test="receivableAmount !=null and receivableAmount != ''">
, t.receivable_amount= #{receivableAmount}
</if>
<if test="receivedAmount !=null and receivedAmount != ''">
, t.received_amount= #{receivedAmount}
</if>
<if test="communityId !=null and communityId != ''">
, t.community_id= #{communityId}
</if>
<if test="collectionId !=null and collectionId != ''">
, t.collection_id= #{collectionId}
</if>
 where 1=1 <if test="detailId !=null and detailId != ''">
and t.detail_id= #{detailId}
</if>
    </update>
    <!-- 查询费用年收费明细数量 add by wuxw 2018-07-03 -->
     <select id="queryReportFeeYearCollectionDetailsCount" parameterType="Map" resultType="Map">
        select  count(1) count
from report_fee_year_collection_detail t
where 1 =1
<if test="collectionYear !=null and collectionYear != ''">
   and t.collection_year= #{collectionYear}
</if>
<if test="relationYear !=null and relationYear != ''">
   and t.relation_year= #{relationYear}
</if>
<if test="detailId !=null and detailId != ''">
   and t.detail_id= #{detailId}
</if>
<if test="receivableAmount !=null and receivableAmount != ''">
   and t.receivable_amount= #{receivableAmount}
</if>
<if test="statusCd !=null and statusCd != ''">
   and t.status_cd= #{statusCd}
</if>
<if test="receivedAmount !=null and receivedAmount != ''">
   and t.received_amount= #{receivedAmount}
</if>
<if test="communityId !=null and communityId != ''">
   and t.community_id= #{communityId}
</if>
<if test="collectionId !=null and collectionId != ''">
   and t.collection_id= #{collectionId}
</if>
     </select>
</mapper>
java110-db/src/main/resources/mapper/report/ReportFeeYearCollectionServiceDaoImplMapper.xml
New file
@@ -0,0 +1,169 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="reportFeeYearCollectionServiceDaoImpl">
    <!-- 保存费用年收费信息 add by wuxw 2018-07-03 -->
    <insert id="saveReportFeeYearCollectionInfo" parameterType="Map">
        insert into report_fee_year_collection(
owner_link,obj_name,owner_id,fee_id,built_up_area,owner_name,config_id,obj_id,fee_name,community_id,collection_id,obj_type
) values (
#{ownerLink},#{objName},#{ownerId},#{feeId},#{builtUpArea},#{ownerName},#{configId},#{objId},#{feeName},#{communityId},#{collectionId},#{objType}
)
    </insert>
    <!-- 查询费用年收费信息 add by wuxw 2018-07-03 -->
    <select id="getReportFeeYearCollectionInfo" parameterType="Map" resultType="Map">
        select  t.owner_link,t.owner_link ownerLink,t.status_cd,t.status_cd statusCd,t.obj_name,t.obj_name objName,t.owner_id,t.owner_id ownerId,t.fee_id,t.fee_id feeId,t.built_up_area,t.built_up_area builtUpArea,t.owner_name,t.owner_name ownerName,t.config_id,t.config_id configId,t.obj_id,t.obj_id objId,t.fee_name,t.fee_name feeName,t.community_id,t.community_id communityId,t.collection_id,t.collection_id collectionId,t.obj_type,t.obj_type objType
from report_fee_year_collection t
where 1 =1
<if test="ownerLink !=null and ownerLink != ''">
   and t.owner_link= #{ownerLink}
</if>
<if test="statusCd !=null and statusCd != ''">
   and t.status_cd= #{statusCd}
</if>
<if test="objName !=null and objName != ''">
   and t.obj_name= #{objName}
</if>
<if test="ownerId !=null and ownerId != ''">
   and t.owner_id= #{ownerId}
</if>
<if test="feeId !=null and feeId != ''">
   and t.fee_id= #{feeId}
</if>
<if test="builtUpArea !=null and builtUpArea != ''">
   and t.built_up_area= #{builtUpArea}
</if>
<if test="ownerName !=null and ownerName != ''">
   and t.owner_name= #{ownerName}
</if>
<if test="configId !=null and configId != ''">
   and t.config_id= #{configId}
</if>
<if test="objId !=null and objId != ''">
   and t.obj_id= #{objId}
</if>
<if test="feeName !=null and feeName != ''">
   and t.fee_name= #{feeName}
</if>
<if test="communityId !=null and communityId != ''">
   and t.community_id= #{communityId}
</if>
<if test="collectionId !=null and collectionId != ''">
   and t.collection_id= #{collectionId}
</if>
<if test="objType !=null and objType != ''">
   and t.obj_type= #{objType}
</if>
order by t.create_time desc
<if test="page != -1 and page != null ">
   limit #{page}, #{row}
</if>
    </select>
    <!-- 修改费用年收费信息 add by wuxw 2018-07-03 -->
    <update id="updateReportFeeYearCollectionInfo" parameterType="Map">
        update  report_fee_year_collection t set t.status_cd = #{statusCd}
<if test="newBId != null and newBId != ''">
,t.b_id = #{newBId}
</if>
<if test="ownerLink !=null and ownerLink != ''">
, t.owner_link= #{ownerLink}
</if>
<if test="objName !=null and objName != ''">
, t.obj_name= #{objName}
</if>
<if test="ownerId !=null and ownerId != ''">
, t.owner_id= #{ownerId}
</if>
<if test="feeId !=null and feeId != ''">
, t.fee_id= #{feeId}
</if>
<if test="builtUpArea !=null and builtUpArea != ''">
, t.built_up_area= #{builtUpArea}
</if>
<if test="ownerName !=null and ownerName != ''">
, t.owner_name= #{ownerName}
</if>
<if test="configId !=null and configId != ''">
, t.config_id= #{configId}
</if>
<if test="objId !=null and objId != ''">
, t.obj_id= #{objId}
</if>
<if test="feeName !=null and feeName != ''">
, t.fee_name= #{feeName}
</if>
<if test="communityId !=null and communityId != ''">
, t.community_id= #{communityId}
</if>
<if test="objType !=null and objType != ''">
, t.obj_type= #{objType}
</if>
 where 1=1 <if test="collectionId !=null and collectionId != ''">
and t.collection_id= #{collectionId}
</if>
    </update>
    <!-- 查询费用年收费数量 add by wuxw 2018-07-03 -->
     <select id="queryReportFeeYearCollectionsCount" parameterType="Map" resultType="Map">
        select  count(1) count
from report_fee_year_collection t
where 1 =1
<if test="ownerLink !=null and ownerLink != ''">
   and t.owner_link= #{ownerLink}
</if>
<if test="statusCd !=null and statusCd != ''">
   and t.status_cd= #{statusCd}
</if>
<if test="objName !=null and objName != ''">
   and t.obj_name= #{objName}
</if>
<if test="ownerId !=null and ownerId != ''">
   and t.owner_id= #{ownerId}
</if>
<if test="feeId !=null and feeId != ''">
   and t.fee_id= #{feeId}
</if>
<if test="builtUpArea !=null and builtUpArea != ''">
   and t.built_up_area= #{builtUpArea}
</if>
<if test="ownerName !=null and ownerName != ''">
   and t.owner_name= #{ownerName}
</if>
<if test="configId !=null and configId != ''">
   and t.config_id= #{configId}
</if>
<if test="objId !=null and objId != ''">
   and t.obj_id= #{objId}
</if>
<if test="feeName !=null and feeName != ''">
   and t.fee_name= #{feeName}
</if>
<if test="communityId !=null and communityId != ''">
   and t.community_id= #{communityId}
</if>
<if test="collectionId !=null and collectionId != ''">
   and t.collection_id= #{collectionId}
</if>
<if test="objType !=null and objType != ''">
   and t.obj_type= #{objType}
</if>
     </select>
</mapper>
java110-generator/src/main/resources/newBack/template_1.json
@@ -1,38 +1,38 @@
{
  "autoMove": true,
  "id": "beId",
  "name": "activitiesBeautifulStaff",
  "desc": "活动规则",
  "shareParam": "storeId",
  "shareColumn": "store_id",
  "shareName": "user",
  "tableName": "activities_beautiful_staff",
  "id": "detailId",
  "name": "reportFeeYearCollectionDetail",
  "desc": "费用年收费明细",
  "shareParam": "communityId",
  "shareColumn": "community_id",
  "shareName": "report",
  "tableName": "report_fee_year_collection_detail",
  "param": {
    "beId": "be_id",
    "ruleId": "rule_id",
    "staffId": "staff_id",
    "activitiesNum": "activities_num",
    "storeId": "store_id",
    "workContent": "work_content",
    "poll": "poll",
    "detailId": "detail_id",
    "collectionId": "collection_id",
    "collectionYear": "collection_year",
    "receivableAmount": "receivable_amount",
    "receivedAmount": "received_amount",
    "communityId": "community_id",
    "relationYear": "relation_year",
    "statusCd": "status_cd"
  },
  "required": [
    {
      "code": "staffId",
      "msg": "员工不能为空"
      "code": "communityId",
      "msg": "小区不能为空"
    },
    {
      "code": "activitiesNum",
      "msg": "员工编号不能为空"
      "code": "collectionId",
      "msg": "年收费ID不能为空"
    },
    {
      "code": "workContent",
      "msg": "工作内容不能为空"
      "code": "receivedAmount",
      "msg": "实收金额不能为空"
    },
    {
      "code": "ruleId",
      "msg": "活动规则不能为空"
      "code": "receivableAmount",
      "msg": "应收金额不能为空"
    }
  ]
}
java110-interface/src/main/java/com/java110/intf/report/IReportFeeYearCollectionDetailInnerServiceSMO.java
New file
@@ -0,0 +1,53 @@
package com.java110.intf.report;
import com.java110.config.feign.FeignConfiguration;
import com.java110.dto.reportFeeYearCollectionDetail.ReportFeeYearCollectionDetailDto;
import com.java110.po.reportFeeYearCollectionDetail.ReportFeeYearCollectionDetailPo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import java.util.List;
/**
 * @ClassName IReportFeeYearCollectionDetailInnerServiceSMO
 * @Description 费用年收费明细接口类
 * @Author wuxw
 * @Date 2019/4/24 9:04
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@FeignClient(name = "report-service", configuration = {FeignConfiguration.class})
@RequestMapping("/reportFeeYearCollectionDetailApi")
public interface IReportFeeYearCollectionDetailInnerServiceSMO {
    @RequestMapping(value = "/saveReportFeeYearCollectionDetail", method = RequestMethod.POST)
    public int saveReportFeeYearCollectionDetail(@RequestBody ReportFeeYearCollectionDetailPo reportFeeYearCollectionDetailPo);
    @RequestMapping(value = "/updateReportFeeYearCollectionDetail", method = RequestMethod.POST)
    public int updateReportFeeYearCollectionDetail(@RequestBody  ReportFeeYearCollectionDetailPo reportFeeYearCollectionDetailPo);
    @RequestMapping(value = "/deleteReportFeeYearCollectionDetail", method = RequestMethod.POST)
    public int deleteReportFeeYearCollectionDetail(@RequestBody  ReportFeeYearCollectionDetailPo reportFeeYearCollectionDetailPo);
    /**
     * <p>查询小区楼信息</p>
     *
     *
     * @param reportFeeYearCollectionDetailDto 数据对象分享
     * @return ReportFeeYearCollectionDetailDto 对象数据
     */
    @RequestMapping(value = "/queryReportFeeYearCollectionDetails", method = RequestMethod.POST)
    List<ReportFeeYearCollectionDetailDto> queryReportFeeYearCollectionDetails(@RequestBody ReportFeeYearCollectionDetailDto reportFeeYearCollectionDetailDto);
    /**
     * 查询<p>小区楼</p>总记录数
     *
     * @param reportFeeYearCollectionDetailDto 数据对象分享
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryReportFeeYearCollectionDetailsCount", method = RequestMethod.POST)
    int queryReportFeeYearCollectionDetailsCount(@RequestBody ReportFeeYearCollectionDetailDto reportFeeYearCollectionDetailDto);
}
java110-interface/src/main/java/com/java110/intf/report/IReportFeeYearCollectionInnerServiceSMO.java
New file
@@ -0,0 +1,53 @@
package com.java110.intf.report;
import com.java110.config.feign.FeignConfiguration;
import com.java110.dto.reportFeeYearCollection.ReportFeeYearCollectionDto;
import com.java110.po.reportFeeYearCollection.ReportFeeYearCollectionPo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import java.util.List;
/**
 * @ClassName IReportFeeYearCollectionInnerServiceSMO
 * @Description 费用年收费接口类
 * @Author wuxw
 * @Date 2019/4/24 9:04
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@FeignClient(name = "report-service", configuration = {FeignConfiguration.class})
@RequestMapping("/reportFeeYearCollectionApi")
public interface IReportFeeYearCollectionInnerServiceSMO {
    @RequestMapping(value = "/saveReportFeeYearCollection", method = RequestMethod.POST)
    public int saveReportFeeYearCollection(@RequestBody ReportFeeYearCollectionPo reportFeeYearCollectionPo);
    @RequestMapping(value = "/updateReportFeeYearCollection", method = RequestMethod.POST)
    public int updateReportFeeYearCollection(@RequestBody  ReportFeeYearCollectionPo reportFeeYearCollectionPo);
    @RequestMapping(value = "/deleteReportFeeYearCollection", method = RequestMethod.POST)
    public int deleteReportFeeYearCollection(@RequestBody  ReportFeeYearCollectionPo reportFeeYearCollectionPo);
    /**
     * <p>查询小区楼信息</p>
     *
     *
     * @param reportFeeYearCollectionDto 数据对象分享
     * @return ReportFeeYearCollectionDto 对象数据
     */
    @RequestMapping(value = "/queryReportFeeYearCollections", method = RequestMethod.POST)
    List<ReportFeeYearCollectionDto> queryReportFeeYearCollections(@RequestBody ReportFeeYearCollectionDto reportFeeYearCollectionDto);
    /**
     * 查询<p>小区楼</p>总记录数
     *
     * @param reportFeeYearCollectionDto 数据对象分享
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryReportFeeYearCollectionsCount", method = RequestMethod.POST)
    int queryReportFeeYearCollectionsCount(@RequestBody ReportFeeYearCollectionDto reportFeeYearCollectionDto);
}
service-front/src/main/java/com/java110/front/smo/wechatGateway/impl/WechatGatewaySMOImpl.java
@@ -48,8 +48,7 @@
    private WechatAuthProperties wechatAuthProperties;
    @Override
    public ResponseEntity<String>
    gateway(IPageData pd, String wId) throws Exception {
    public ResponseEntity<String> gateway(IPageData pd, String wId) throws Exception {
        JSONObject paramIn = JSONObject.parseObject(pd.getReqData());
        Assert.hasKeyAndValue(paramIn, "fromUserName", "请求报文中未包含fromUserName");
service-report/src/main/java/com/java110/report/api/ReportFeeYearCollectionApi.java
New file
@@ -0,0 +1,204 @@
package com.java110.report.api;
import com.alibaba.fastjson.JSONObject;
import com.java110.dto.reportFeeYearCollection.ReportFeeYearCollectionDto;
import com.java110.dto.reportFeeYearCollectionDetail.ReportFeeYearCollectionDetailDto;
import com.java110.po.reportFeeYearCollection.ReportFeeYearCollectionPo;
import com.java110.po.reportFeeYearCollectionDetail.ReportFeeYearCollectionDetailPo;
import com.java110.report.bmo.reportFeeYearCollection.IDeleteReportFeeYearCollectionBMO;
import com.java110.report.bmo.reportFeeYearCollection.IGetReportFeeYearCollectionBMO;
import com.java110.report.bmo.reportFeeYearCollection.ISaveReportFeeYearCollectionBMO;
import com.java110.report.bmo.reportFeeYearCollection.IUpdateReportFeeYearCollectionBMO;
import com.java110.report.bmo.reportFeeYearCollectionDetail.IDeleteReportFeeYearCollectionDetailBMO;
import com.java110.report.bmo.reportFeeYearCollectionDetail.IGetReportFeeYearCollectionDetailBMO;
import com.java110.report.bmo.reportFeeYearCollectionDetail.ISaveReportFeeYearCollectionDetailBMO;
import com.java110.report.bmo.reportFeeYearCollectionDetail.IUpdateReportFeeYearCollectionDetailBMO;
import com.java110.utils.util.Assert;
import com.java110.utils.util.BeanConvertUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping(value = "/reportFeeYearCollection")
public class ReportFeeYearCollectionApi {
    @Autowired
    private ISaveReportFeeYearCollectionBMO saveReportFeeYearCollectionBMOImpl;
    @Autowired
    private IUpdateReportFeeYearCollectionBMO updateReportFeeYearCollectionBMOImpl;
    @Autowired
    private IDeleteReportFeeYearCollectionBMO deleteReportFeeYearCollectionBMOImpl;
    @Autowired
    private IGetReportFeeYearCollectionBMO getReportFeeYearCollectionBMOImpl;
    @Autowired
    private ISaveReportFeeYearCollectionDetailBMO saveReportFeeYearCollectionDetailBMOImpl;
    @Autowired
    private IUpdateReportFeeYearCollectionDetailBMO updateReportFeeYearCollectionDetailBMOImpl;
    @Autowired
    private IDeleteReportFeeYearCollectionDetailBMO deleteReportFeeYearCollectionDetailBMOImpl;
    @Autowired
    private IGetReportFeeYearCollectionDetailBMO getReportFeeYearCollectionDetailBMOImpl;
    /**
     * 微信保存消息模板
     *
     * @param reqJson
     * @return
     * @serviceCode /reportFeeYearCollection/saveReportFeeYearCollection
     * @path /app/reportFeeYearCollection/saveReportFeeYearCollection
     */
    @RequestMapping(value = "/saveReportFeeYearCollection", method = RequestMethod.POST)
    public ResponseEntity<String> saveReportFeeYearCollection(@RequestBody JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId");
        Assert.hasKeyAndValue(reqJson, "configId", "请求报文中未包含configId");
        Assert.hasKeyAndValue(reqJson, "objType", "请求报文中未包含objType");
        Assert.hasKeyAndValue(reqJson, "objId", "请求报文中未包含objId");
        ReportFeeYearCollectionPo reportFeeYearCollectionPo = BeanConvertUtil.covertBean(reqJson, ReportFeeYearCollectionPo.class);
        return saveReportFeeYearCollectionBMOImpl.save(reportFeeYearCollectionPo);
    }
    /**
     * 微信修改消息模板
     *
     * @param reqJson
     * @return
     * @serviceCode /reportFeeYearCollection/updateReportFeeYearCollection
     * @path /app/reportFeeYearCollection/updateReportFeeYearCollection
     */
    @RequestMapping(value = "/updateReportFeeYearCollection", method = RequestMethod.POST)
    public ResponseEntity<String> updateReportFeeYearCollection(@RequestBody JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId");
        Assert.hasKeyAndValue(reqJson, "configId", "请求报文中未包含configId");
        Assert.hasKeyAndValue(reqJson, "objType", "请求报文中未包含objType");
        Assert.hasKeyAndValue(reqJson, "objId", "请求报文中未包含objId");
        Assert.hasKeyAndValue(reqJson, "collectionId", "collectionId不能为空");
        ReportFeeYearCollectionPo reportFeeYearCollectionPo = BeanConvertUtil.covertBean(reqJson, ReportFeeYearCollectionPo.class);
        return updateReportFeeYearCollectionBMOImpl.update(reportFeeYearCollectionPo);
    }
    /**
     * 微信删除消息模板
     *
     * @param reqJson
     * @return
     * @serviceCode /reportFeeYearCollection/deleteReportFeeYearCollection
     * @path /app/reportFeeYearCollection/deleteReportFeeYearCollection
     */
    @RequestMapping(value = "/deleteReportFeeYearCollection", method = RequestMethod.POST)
    public ResponseEntity<String> deleteReportFeeYearCollection(@RequestBody JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "communityId", "小区ID不能为空");
        Assert.hasKeyAndValue(reqJson, "collectionId", "collectionId不能为空");
        ReportFeeYearCollectionPo reportFeeYearCollectionPo = BeanConvertUtil.covertBean(reqJson, ReportFeeYearCollectionPo.class);
        return deleteReportFeeYearCollectionBMOImpl.delete(reportFeeYearCollectionPo);
    }
    /**
     * 微信删除消息模板
     *
     * @param communityId 小区ID
     * @return
     * @serviceCode /reportFeeYearCollection/queryReportFeeYearCollection
     * @path /app/reportFeeYearCollection/queryReportFeeYearCollection
     */
    @RequestMapping(value = "/queryReportFeeYearCollection", method = RequestMethod.GET)
    public ResponseEntity<String> queryReportFeeYearCollection(@RequestParam(value = "communityId") String communityId,
                                                               @RequestParam(value = "page") int page,
                                                               @RequestParam(value = "row") int row) {
        ReportFeeYearCollectionDto reportFeeYearCollectionDto = new ReportFeeYearCollectionDto();
        reportFeeYearCollectionDto.setPage(page);
        reportFeeYearCollectionDto.setRow(row);
        reportFeeYearCollectionDto.setCommunityId(communityId);
        return getReportFeeYearCollectionBMOImpl.get(reportFeeYearCollectionDto);
    }
    /**
     * 微信保存消息模板
     * @serviceCode /reportFeeYearCollectionDetail/saveReportFeeYearCollectionDetail
     * @path /app/reportFeeYearCollectionDetail/saveReportFeeYearCollectionDetail
     * @param reqJson
     * @return
     */
    @RequestMapping(value = "/saveReportFeeYearCollectionDetail", method = RequestMethod.POST)
    public ResponseEntity<String> saveReportFeeYearCollectionDetail(@RequestBody JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId");
        Assert.hasKeyAndValue(reqJson, "collectionId", "请求报文中未包含collectionId");
        Assert.hasKeyAndValue(reqJson, "receivedAmount", "请求报文中未包含receivedAmount");
        Assert.hasKeyAndValue(reqJson, "receivableAmount", "请求报文中未包含receivableAmount");
        ReportFeeYearCollectionDetailPo reportFeeYearCollectionDetailPo = BeanConvertUtil.covertBean(reqJson, ReportFeeYearCollectionDetailPo.class);
        return saveReportFeeYearCollectionDetailBMOImpl.save(reportFeeYearCollectionDetailPo);
    }
    /**
     * 微信修改消息模板
     * @serviceCode /reportFeeYearCollection/updateReportFeeYearCollectionDetail
     * @path /app/reportFeeYearCollection/updateReportFeeYearCollectionDetail
     * @param reqJson
     * @return
     */
    @RequestMapping(value = "/updateReportFeeYearCollectionDetail", method = RequestMethod.POST)
    public ResponseEntity<String> updateReportFeeYearCollectionDetail(@RequestBody JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId");
        Assert.hasKeyAndValue(reqJson, "collectionId", "请求报文中未包含collectionId");
        Assert.hasKeyAndValue(reqJson, "receivedAmount", "请求报文中未包含receivedAmount");
        Assert.hasKeyAndValue(reqJson, "receivableAmount", "请求报文中未包含receivableAmount");
        Assert.hasKeyAndValue(reqJson, "detailId", "detailId不能为空");
        ReportFeeYearCollectionDetailPo reportFeeYearCollectionDetailPo = BeanConvertUtil.covertBean(reqJson, ReportFeeYearCollectionDetailPo.class);
        return updateReportFeeYearCollectionDetailBMOImpl.update(reportFeeYearCollectionDetailPo);
    }
    /**
     * 微信删除消息模板
     * @serviceCode /reportFeeYearCollection/deleteReportFeeYearCollectionDetail
     * @path /app/reportFeeYearCollection/deleteReportFeeYearCollectionDetail
     * @param reqJson
     * @return
     */
    @RequestMapping(value = "/deleteReportFeeYearCollectionDetail", method = RequestMethod.POST)
    public ResponseEntity<String> deleteReportFeeYearCollectionDetail(@RequestBody JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "communityId", "小区ID不能为空");
        Assert.hasKeyAndValue(reqJson, "detailId", "detailId不能为空");
        ReportFeeYearCollectionDetailPo reportFeeYearCollectionDetailPo = BeanConvertUtil.covertBean(reqJson, ReportFeeYearCollectionDetailPo.class);
        return deleteReportFeeYearCollectionDetailBMOImpl.delete(reportFeeYearCollectionDetailPo);
    }
    /**
     * 微信删除消息模板
     * @serviceCode /reportFeeYearCollection/queryReportFeeYearCollectionDetail
     * @path /app/reportFeeYearCollection/queryReportFeeYearCollectionDetail
     * @param communityId 小区ID
     * @return
     */
    @RequestMapping(value = "/queryReportFeeYearCollectionDetail", method = RequestMethod.GET)
    public ResponseEntity<String> queryReportFeeYearCollectionDetail(@RequestParam(value = "communityId") String communityId,
                                                                     @RequestParam(value = "page") int page,
                                                                     @RequestParam(value = "row") int row) {
        ReportFeeYearCollectionDetailDto reportFeeYearCollectionDetailDto = new ReportFeeYearCollectionDetailDto();
        reportFeeYearCollectionDetailDto.setPage(page);
        reportFeeYearCollectionDetailDto.setRow(row);
        reportFeeYearCollectionDetailDto.setCommunityId(communityId);
        return getReportFeeYearCollectionDetailBMOImpl.get(reportFeeYearCollectionDetailDto);
    }
}
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollection/IDeleteReportFeeYearCollectionBMO.java
New file
@@ -0,0 +1,17 @@
package com.java110.report.bmo.reportFeeYearCollection;
import com.java110.po.reportFeeYearCollection.ReportFeeYearCollectionPo;
import org.springframework.http.ResponseEntity;
public interface IDeleteReportFeeYearCollectionBMO {
    /**
     * 修改费用年收费
     * add by wuxw
     * @param reportFeeYearCollectionPo
     * @return
     */
    ResponseEntity<String> delete(ReportFeeYearCollectionPo reportFeeYearCollectionPo);
}
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollection/IGetReportFeeYearCollectionBMO.java
New file
@@ -0,0 +1,16 @@
package com.java110.report.bmo.reportFeeYearCollection;
import com.java110.dto.reportFeeYearCollection.ReportFeeYearCollectionDto;
import org.springframework.http.ResponseEntity;
public interface IGetReportFeeYearCollectionBMO {
    /**
     * 查询费用年收费
     * add by wuxw
     * @param  reportFeeYearCollectionDto
     * @return
     */
    ResponseEntity<String> get(ReportFeeYearCollectionDto reportFeeYearCollectionDto);
}
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollection/ISaveReportFeeYearCollectionBMO.java
New file
@@ -0,0 +1,17 @@
package com.java110.report.bmo.reportFeeYearCollection;
import com.java110.po.reportFeeYearCollection.ReportFeeYearCollectionPo;
import org.springframework.http.ResponseEntity;
public interface ISaveReportFeeYearCollectionBMO {
    /**
     * 添加费用年收费
     * add by wuxw
     * @param reportFeeYearCollectionPo
     * @return
     */
    ResponseEntity<String> save(ReportFeeYearCollectionPo reportFeeYearCollectionPo);
}
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollection/IUpdateReportFeeYearCollectionBMO.java
New file
@@ -0,0 +1,17 @@
package com.java110.report.bmo.reportFeeYearCollection;
import com.java110.po.reportFeeYearCollection.ReportFeeYearCollectionPo;
import org.springframework.http.ResponseEntity;
public interface IUpdateReportFeeYearCollectionBMO {
    /**
     * 修改费用年收费
     * add by wuxw
     * @param reportFeeYearCollectionPo
     * @return
     */
    ResponseEntity<String> update(ReportFeeYearCollectionPo reportFeeYearCollectionPo);
}
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollection/impl/DeleteReportFeeYearCollectionBMOImpl.java
New file
@@ -0,0 +1,34 @@
package com.java110.report.bmo.reportFeeYearCollection.impl;
import com.java110.core.annotation.Java110Transactional;
import com.java110.intf.report.IReportFeeYearCollectionInnerServiceSMO;
import com.java110.po.reportFeeYearCollection.ReportFeeYearCollectionPo;
import com.java110.report.bmo.reportFeeYearCollection.IDeleteReportFeeYearCollectionBMO;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
@Service("deleteReportFeeYearCollectionBMOImpl")
public class DeleteReportFeeYearCollectionBMOImpl implements IDeleteReportFeeYearCollectionBMO {
    @Autowired
    private IReportFeeYearCollectionInnerServiceSMO reportFeeYearCollectionInnerServiceSMOImpl;
    /**
     * @param reportFeeYearCollectionPo 数据
     * @return 订单服务能够接受的报文
     */
    @Java110Transactional
    public ResponseEntity<String> delete(ReportFeeYearCollectionPo reportFeeYearCollectionPo) {
        int flag = reportFeeYearCollectionInnerServiceSMOImpl.deleteReportFeeYearCollection(reportFeeYearCollectionPo);
        if (flag > 0) {
            return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功");
        }
        return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败");
    }
}
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollection/impl/GetReportFeeYearCollectionBMOImpl.java
New file
@@ -0,0 +1,44 @@
package com.java110.report.bmo.reportFeeYearCollection.impl;
import com.java110.dto.reportFeeYearCollection.ReportFeeYearCollectionDto;
import com.java110.intf.report.IReportFeeYearCollectionInnerServiceSMO;
import com.java110.report.bmo.reportFeeYearCollection.IGetReportFeeYearCollectionBMO;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
@Service("getReportFeeYearCollectionBMOImpl")
public class GetReportFeeYearCollectionBMOImpl implements IGetReportFeeYearCollectionBMO {
    @Autowired
    private IReportFeeYearCollectionInnerServiceSMO reportFeeYearCollectionInnerServiceSMOImpl;
    /**
     * @param reportFeeYearCollectionDto
     * @return 订单服务能够接受的报文
     */
    public ResponseEntity<String> get(ReportFeeYearCollectionDto reportFeeYearCollectionDto) {
        int count = reportFeeYearCollectionInnerServiceSMOImpl.queryReportFeeYearCollectionsCount(reportFeeYearCollectionDto);
        List<ReportFeeYearCollectionDto> reportFeeYearCollectionDtos = null;
        if (count > 0) {
            reportFeeYearCollectionDtos = reportFeeYearCollectionInnerServiceSMOImpl.queryReportFeeYearCollections(reportFeeYearCollectionDto);
        } else {
            reportFeeYearCollectionDtos = new ArrayList<>();
        }
        ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reportFeeYearCollectionDto.getRow()), count, reportFeeYearCollectionDtos);
        ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
        return responseEntity;
    }
}
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollection/impl/SaveReportFeeYearCollectionBMOImpl.java
New file
@@ -0,0 +1,38 @@
package com.java110.report.bmo.reportFeeYearCollection.impl;
import com.java110.core.annotation.Java110Transactional;
import com.java110.core.factory.GenerateCodeFactory;
import com.java110.intf.report.IReportFeeYearCollectionInnerServiceSMO;
import com.java110.po.reportFeeYearCollection.ReportFeeYearCollectionPo;
import com.java110.report.bmo.reportFeeYearCollection.ISaveReportFeeYearCollectionBMO;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
@Service("saveReportFeeYearCollectionBMOImpl")
public class SaveReportFeeYearCollectionBMOImpl implements ISaveReportFeeYearCollectionBMO {
    @Autowired
    private IReportFeeYearCollectionInnerServiceSMO reportFeeYearCollectionInnerServiceSMOImpl;
    /**
     * 添加小区信息
     *
     * @param reportFeeYearCollectionPo
     * @return 订单服务能够接受的报文
     */
    @Java110Transactional
    public ResponseEntity<String> save(ReportFeeYearCollectionPo reportFeeYearCollectionPo) {
        reportFeeYearCollectionPo.setCollectionId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_collectionId));
        int flag = reportFeeYearCollectionInnerServiceSMOImpl.saveReportFeeYearCollection(reportFeeYearCollectionPo);
        if (flag > 0) {
            return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功");
        }
        return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败");
    }
}
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollection/impl/UpdateReportFeeYearCollectionBMOImpl.java
New file
@@ -0,0 +1,34 @@
package com.java110.report.bmo.reportFeeYearCollection.impl;
import com.java110.core.annotation.Java110Transactional;
import com.java110.intf.report.IReportFeeYearCollectionInnerServiceSMO;
import com.java110.po.reportFeeYearCollection.ReportFeeYearCollectionPo;
import com.java110.report.bmo.reportFeeYearCollection.IUpdateReportFeeYearCollectionBMO;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
@Service("updateReportFeeYearCollectionBMOImpl")
public class UpdateReportFeeYearCollectionBMOImpl implements IUpdateReportFeeYearCollectionBMO {
    @Autowired
    private IReportFeeYearCollectionInnerServiceSMO reportFeeYearCollectionInnerServiceSMOImpl;
    /**
     * @param reportFeeYearCollectionPo
     * @return 订单服务能够接受的报文
     */
    @Java110Transactional
    public ResponseEntity<String> update(ReportFeeYearCollectionPo reportFeeYearCollectionPo) {
        int flag = reportFeeYearCollectionInnerServiceSMOImpl.updateReportFeeYearCollection(reportFeeYearCollectionPo);
        if (flag > 0) {
            return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功");
        }
        return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败");
    }
}
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollectionDetail/IDeleteReportFeeYearCollectionDetailBMO.java
New file
@@ -0,0 +1,17 @@
package com.java110.report.bmo.reportFeeYearCollectionDetail;
import com.java110.po.reportFeeYearCollectionDetail.ReportFeeYearCollectionDetailPo;
import org.springframework.http.ResponseEntity;
public interface IDeleteReportFeeYearCollectionDetailBMO {
    /**
     * 修改费用年收费明细
     * add by wuxw
     * @param reportFeeYearCollectionDetailPo
     * @return
     */
    ResponseEntity<String> delete(ReportFeeYearCollectionDetailPo reportFeeYearCollectionDetailPo);
}
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollectionDetail/IGetReportFeeYearCollectionDetailBMO.java
New file
@@ -0,0 +1,16 @@
package com.java110.report.bmo.reportFeeYearCollectionDetail;
import com.java110.dto.reportFeeYearCollectionDetail.ReportFeeYearCollectionDetailDto;
import org.springframework.http.ResponseEntity;
public interface IGetReportFeeYearCollectionDetailBMO {
    /**
     * 查询费用年收费明细
     * add by wuxw
     * @param  reportFeeYearCollectionDetailDto
     * @return
     */
    ResponseEntity<String> get(ReportFeeYearCollectionDetailDto reportFeeYearCollectionDetailDto);
}
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollectionDetail/ISaveReportFeeYearCollectionDetailBMO.java
New file
@@ -0,0 +1,17 @@
package com.java110.report.bmo.reportFeeYearCollectionDetail;
import com.java110.po.reportFeeYearCollectionDetail.ReportFeeYearCollectionDetailPo;
import org.springframework.http.ResponseEntity;
public interface ISaveReportFeeYearCollectionDetailBMO {
    /**
     * 添加费用年收费明细
     * add by wuxw
     * @param reportFeeYearCollectionDetailPo
     * @return
     */
    ResponseEntity<String> save(ReportFeeYearCollectionDetailPo reportFeeYearCollectionDetailPo);
}
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollectionDetail/IUpdateReportFeeYearCollectionDetailBMO.java
New file
@@ -0,0 +1,17 @@
package com.java110.report.bmo.reportFeeYearCollectionDetail;
import com.java110.po.reportFeeYearCollectionDetail.ReportFeeYearCollectionDetailPo;
import org.springframework.http.ResponseEntity;
public interface IUpdateReportFeeYearCollectionDetailBMO {
    /**
     * 修改费用年收费明细
     * add by wuxw
     * @param reportFeeYearCollectionDetailPo
     * @return
     */
    ResponseEntity<String> update(ReportFeeYearCollectionDetailPo reportFeeYearCollectionDetailPo);
}
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollectionDetail/impl/DeleteReportFeeYearCollectionDetailBMOImpl.java
New file
@@ -0,0 +1,34 @@
package com.java110.report.bmo.reportFeeYearCollectionDetail.impl;
import com.java110.core.annotation.Java110Transactional;
import com.java110.intf.report.IReportFeeYearCollectionDetailInnerServiceSMO;
import com.java110.po.reportFeeYearCollectionDetail.ReportFeeYearCollectionDetailPo;
import com.java110.report.bmo.reportFeeYearCollectionDetail.IDeleteReportFeeYearCollectionDetailBMO;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
@Service("deleteReportFeeYearCollectionDetailBMOImpl")
public class DeleteReportFeeYearCollectionDetailBMOImpl implements IDeleteReportFeeYearCollectionDetailBMO {
    @Autowired
    private IReportFeeYearCollectionDetailInnerServiceSMO reportFeeYearCollectionDetailInnerServiceSMOImpl;
    /**
     * @param reportFeeYearCollectionDetailPo 数据
     * @return 订单服务能够接受的报文
     */
    @Java110Transactional
    public ResponseEntity<String> delete(ReportFeeYearCollectionDetailPo reportFeeYearCollectionDetailPo) {
        int flag = reportFeeYearCollectionDetailInnerServiceSMOImpl.deleteReportFeeYearCollectionDetail(reportFeeYearCollectionDetailPo);
        if (flag > 0) {
            return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功");
        }
        return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败");
    }
}
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollectionDetail/impl/GetReportFeeYearCollectionDetailBMOImpl.java
New file
@@ -0,0 +1,44 @@
package com.java110.report.bmo.reportFeeYearCollectionDetail.impl;
import com.java110.dto.reportFeeYearCollectionDetail.ReportFeeYearCollectionDetailDto;
import com.java110.intf.report.IReportFeeYearCollectionDetailInnerServiceSMO;
import com.java110.report.bmo.reportFeeYearCollectionDetail.IGetReportFeeYearCollectionDetailBMO;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
@Service("getReportFeeYearCollectionDetailBMOImpl")
public class GetReportFeeYearCollectionDetailBMOImpl implements IGetReportFeeYearCollectionDetailBMO {
    @Autowired
    private IReportFeeYearCollectionDetailInnerServiceSMO reportFeeYearCollectionDetailInnerServiceSMOImpl;
    /**
     * @param reportFeeYearCollectionDetailDto
     * @return 订单服务能够接受的报文
     */
    public ResponseEntity<String> get(ReportFeeYearCollectionDetailDto reportFeeYearCollectionDetailDto) {
        int count = reportFeeYearCollectionDetailInnerServiceSMOImpl.queryReportFeeYearCollectionDetailsCount(reportFeeYearCollectionDetailDto);
        List<ReportFeeYearCollectionDetailDto> reportFeeYearCollectionDetailDtos = null;
        if (count > 0) {
            reportFeeYearCollectionDetailDtos = reportFeeYearCollectionDetailInnerServiceSMOImpl.queryReportFeeYearCollectionDetails(reportFeeYearCollectionDetailDto);
        } else {
            reportFeeYearCollectionDetailDtos = new ArrayList<>();
        }
        ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reportFeeYearCollectionDetailDto.getRow()), count, reportFeeYearCollectionDetailDtos);
        ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
        return responseEntity;
    }
}
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollectionDetail/impl/SaveReportFeeYearCollectionDetailBMOImpl.java
New file
@@ -0,0 +1,38 @@
package com.java110.report.bmo.reportFeeYearCollectionDetail.impl;
import com.java110.core.annotation.Java110Transactional;
import com.java110.core.factory.GenerateCodeFactory;
import com.java110.intf.report.IReportFeeYearCollectionDetailInnerServiceSMO;
import com.java110.po.reportFeeYearCollectionDetail.ReportFeeYearCollectionDetailPo;
import com.java110.report.bmo.reportFeeYearCollectionDetail.ISaveReportFeeYearCollectionDetailBMO;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
@Service("saveReportFeeYearCollectionDetailBMOImpl")
public class SaveReportFeeYearCollectionDetailBMOImpl implements ISaveReportFeeYearCollectionDetailBMO {
    @Autowired
    private IReportFeeYearCollectionDetailInnerServiceSMO reportFeeYearCollectionDetailInnerServiceSMOImpl;
    /**
     * 添加小区信息
     *
     * @param reportFeeYearCollectionDetailPo
     * @return 订单服务能够接受的报文
     */
    @Java110Transactional
    public ResponseEntity<String> save(ReportFeeYearCollectionDetailPo reportFeeYearCollectionDetailPo) {
        reportFeeYearCollectionDetailPo.setDetailId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_detailId));
        int flag = reportFeeYearCollectionDetailInnerServiceSMOImpl.saveReportFeeYearCollectionDetail(reportFeeYearCollectionDetailPo);
        if (flag > 0) {
            return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功");
        }
        return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败");
    }
}
service-report/src/main/java/com/java110/report/bmo/reportFeeYearCollectionDetail/impl/UpdateReportFeeYearCollectionDetailBMOImpl.java
New file
@@ -0,0 +1,34 @@
package com.java110.report.bmo.reportFeeYearCollectionDetail.impl;
import com.java110.core.annotation.Java110Transactional;
import com.java110.intf.report.IReportFeeYearCollectionDetailInnerServiceSMO;
import com.java110.po.reportFeeYearCollectionDetail.ReportFeeYearCollectionDetailPo;
import com.java110.report.bmo.reportFeeYearCollectionDetail.IUpdateReportFeeYearCollectionDetailBMO;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
@Service("updateReportFeeYearCollectionDetailBMOImpl")
public class UpdateReportFeeYearCollectionDetailBMOImpl implements IUpdateReportFeeYearCollectionDetailBMO {
    @Autowired
    private IReportFeeYearCollectionDetailInnerServiceSMO reportFeeYearCollectionDetailInnerServiceSMOImpl;
    /**
     * @param reportFeeYearCollectionDetailPo
     * @return 订单服务能够接受的报文
     */
    @Java110Transactional
    public ResponseEntity<String> update(ReportFeeYearCollectionDetailPo reportFeeYearCollectionDetailPo) {
        int flag = reportFeeYearCollectionDetailInnerServiceSMOImpl.updateReportFeeYearCollectionDetail(reportFeeYearCollectionDetailPo);
        if (flag > 0) {
            return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功");
        }
        return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败");
    }
}
service-report/src/main/java/com/java110/report/dao/IReportFeeYearCollectionDetailServiceDao.java
New file
@@ -0,0 +1,61 @@
package com.java110.report.dao;
import com.java110.utils.exception.DAOException;
import com.java110.entity.merchant.BoMerchant;
import com.java110.entity.merchant.BoMerchantAttr;
import com.java110.entity.merchant.Merchant;
import com.java110.entity.merchant.MerchantAttr;
import java.util.List;
import java.util.Map;
/**
 * 费用年收费明细组件内部之间使用,没有给外围系统提供服务能力
 * 费用年收费明细服务接口类,要求全部以字符串传输,方便微服务化
 * 新建客户,修改客户,删除客户,查询客户等功能
 *
 * Created by wuxw on 2016/12/27.
 */
public interface IReportFeeYearCollectionDetailServiceDao {
    /**
     * 保存 费用年收费明细信息
     * @param info
     * @throws DAOException DAO异常
     */
    void saveReportFeeYearCollectionDetailInfo(Map info) throws DAOException;
    /**
     * 查询费用年收费明细信息(instance过程)
     * 根据bId 查询费用年收费明细信息
     * @param info bId 信息
     * @return 费用年收费明细信息
     * @throws DAOException DAO异常
     */
    List<Map> getReportFeeYearCollectionDetailInfo(Map info) throws DAOException;
    /**
     * 修改费用年收费明细信息
     * @param info 修改信息
     * @throws DAOException DAO异常
     */
    void updateReportFeeYearCollectionDetailInfo(Map info) throws DAOException;
    /**
     * 查询费用年收费明细总数
     *
     * @param info 费用年收费明细信息
     * @return 费用年收费明细数量
     */
    int queryReportFeeYearCollectionDetailsCount(Map info);
}
service-report/src/main/java/com/java110/report/dao/IReportFeeYearCollectionServiceDao.java
New file
@@ -0,0 +1,61 @@
package com.java110.report.dao;
import com.java110.utils.exception.DAOException;
import com.java110.entity.merchant.BoMerchant;
import com.java110.entity.merchant.BoMerchantAttr;
import com.java110.entity.merchant.Merchant;
import com.java110.entity.merchant.MerchantAttr;
import java.util.List;
import java.util.Map;
/**
 * 费用年收费组件内部之间使用,没有给外围系统提供服务能力
 * 费用年收费服务接口类,要求全部以字符串传输,方便微服务化
 * 新建客户,修改客户,删除客户,查询客户等功能
 *
 * Created by wuxw on 2016/12/27.
 */
public interface IReportFeeYearCollectionServiceDao {
    /**
     * 保存 费用年收费信息
     * @param info
     * @throws DAOException DAO异常
     */
    void saveReportFeeYearCollectionInfo(Map info) throws DAOException;
    /**
     * 查询费用年收费信息(instance过程)
     * 根据bId 查询费用年收费信息
     * @param info bId 信息
     * @return 费用年收费信息
     * @throws DAOException DAO异常
     */
    List<Map> getReportFeeYearCollectionInfo(Map info) throws DAOException;
    /**
     * 修改费用年收费信息
     * @param info 修改信息
     * @throws DAOException DAO异常
     */
    void updateReportFeeYearCollectionInfo(Map info) throws DAOException;
    /**
     * 查询费用年收费总数
     *
     * @param info 费用年收费信息
     * @return 费用年收费数量
     */
    int queryReportFeeYearCollectionsCount(Map info);
}
service-report/src/main/java/com/java110/report/dao/impl/ReportFeeYearCollectionDetailServiceDaoImpl.java
New file
@@ -0,0 +1,98 @@
package com.java110.report.dao.impl;
import com.alibaba.fastjson.JSONObject;
import com.java110.utils.constant.ResponseConstant;
import com.java110.utils.exception.DAOException;
import com.java110.utils.util.DateUtil;
import com.java110.core.base.dao.BaseServiceDao;
import com.java110.report.dao.IReportFeeYearCollectionDetailServiceDao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Map;
/**
 * 费用年收费明细服务 与数据库交互
 * Created by wuxw on 2017/4/5.
 */
@Service("reportFeeYearCollectionDetailServiceDaoImpl")
//@Transactional
public class ReportFeeYearCollectionDetailServiceDaoImpl extends BaseServiceDao implements IReportFeeYearCollectionDetailServiceDao {
    private static Logger logger = LoggerFactory.getLogger(ReportFeeYearCollectionDetailServiceDaoImpl.class);
    /**
     * 保存费用年收费明细信息 到 instance
     * @param info   bId 信息
     * @throws DAOException DAO异常
     */
    @Override
    public void saveReportFeeYearCollectionDetailInfo(Map info) throws DAOException {
        logger.debug("保存费用年收费明细信息Instance 入参 info : {}",info);
        int saveFlag = sqlSessionTemplate.insert("reportFeeYearCollectionDetailServiceDaoImpl.saveReportFeeYearCollectionDetailInfo",info);
        if(saveFlag < 1){
            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存费用年收费明细信息Instance数据失败:"+ JSONObject.toJSONString(info));
        }
    }
    /**
     * 查询费用年收费明细信息(instance)
     * @param info bId 信息
     * @return List<Map>
     * @throws DAOException DAO异常
     */
    @Override
    public List<Map> getReportFeeYearCollectionDetailInfo(Map info) throws DAOException {
        logger.debug("查询费用年收费明细信息 入参 info : {}",info);
        List<Map> businessReportFeeYearCollectionDetailInfos = sqlSessionTemplate.selectList("reportFeeYearCollectionDetailServiceDaoImpl.getReportFeeYearCollectionDetailInfo",info);
        return businessReportFeeYearCollectionDetailInfos;
    }
    /**
     * 修改费用年收费明细信息
     * @param info 修改信息
     * @throws DAOException DAO异常
     */
    @Override
    public void updateReportFeeYearCollectionDetailInfo(Map info) throws DAOException {
        logger.debug("修改费用年收费明细信息Instance 入参 info : {}",info);
        int saveFlag = sqlSessionTemplate.update("reportFeeYearCollectionDetailServiceDaoImpl.updateReportFeeYearCollectionDetailInfo",info);
        if(saveFlag < 1){
            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改费用年收费明细信息Instance数据失败:"+ JSONObject.toJSONString(info));
        }
    }
     /**
     * 查询费用年收费明细数量
     * @param info 费用年收费明细信息
     * @return 费用年收费明细数量
     */
    @Override
    public int queryReportFeeYearCollectionDetailsCount(Map info) {
        logger.debug("查询费用年收费明细数据 入参 info : {}",info);
        List<Map> businessReportFeeYearCollectionDetailInfos = sqlSessionTemplate.selectList("reportFeeYearCollectionDetailServiceDaoImpl.queryReportFeeYearCollectionDetailsCount", info);
        if (businessReportFeeYearCollectionDetailInfos.size() < 1) {
            return 0;
        }
        return Integer.parseInt(businessReportFeeYearCollectionDetailInfos.get(0).get("count").toString());
    }
}
service-report/src/main/java/com/java110/report/dao/impl/ReportFeeYearCollectionServiceDaoImpl.java
New file
@@ -0,0 +1,98 @@
package com.java110.report.dao.impl;
import com.alibaba.fastjson.JSONObject;
import com.java110.utils.constant.ResponseConstant;
import com.java110.utils.exception.DAOException;
import com.java110.utils.util.DateUtil;
import com.java110.core.base.dao.BaseServiceDao;
import com.java110.report.dao.IReportFeeYearCollectionServiceDao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Map;
/**
 * 费用年收费服务 与数据库交互
 * Created by wuxw on 2017/4/5.
 */
@Service("reportFeeYearCollectionServiceDaoImpl")
//@Transactional
public class ReportFeeYearCollectionServiceDaoImpl extends BaseServiceDao implements IReportFeeYearCollectionServiceDao {
    private static Logger logger = LoggerFactory.getLogger(ReportFeeYearCollectionServiceDaoImpl.class);
    /**
     * 保存费用年收费信息 到 instance
     * @param info   bId 信息
     * @throws DAOException DAO异常
     */
    @Override
    public void saveReportFeeYearCollectionInfo(Map info) throws DAOException {
        logger.debug("保存费用年收费信息Instance 入参 info : {}",info);
        int saveFlag = sqlSessionTemplate.insert("reportFeeYearCollectionServiceDaoImpl.saveReportFeeYearCollectionInfo",info);
        if(saveFlag < 1){
            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存费用年收费信息Instance数据失败:"+ JSONObject.toJSONString(info));
        }
    }
    /**
     * 查询费用年收费信息(instance)
     * @param info bId 信息
     * @return List<Map>
     * @throws DAOException DAO异常
     */
    @Override
    public List<Map> getReportFeeYearCollectionInfo(Map info) throws DAOException {
        logger.debug("查询费用年收费信息 入参 info : {}",info);
        List<Map> businessReportFeeYearCollectionInfos = sqlSessionTemplate.selectList("reportFeeYearCollectionServiceDaoImpl.getReportFeeYearCollectionInfo",info);
        return businessReportFeeYearCollectionInfos;
    }
    /**
     * 修改费用年收费信息
     * @param info 修改信息
     * @throws DAOException DAO异常
     */
    @Override
    public void updateReportFeeYearCollectionInfo(Map info) throws DAOException {
        logger.debug("修改费用年收费信息Instance 入参 info : {}",info);
        int saveFlag = sqlSessionTemplate.update("reportFeeYearCollectionServiceDaoImpl.updateReportFeeYearCollectionInfo",info);
        if(saveFlag < 1){
            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改费用年收费信息Instance数据失败:"+ JSONObject.toJSONString(info));
        }
    }
     /**
     * 查询费用年收费数量
     * @param info 费用年收费信息
     * @return 费用年收费数量
     */
    @Override
    public int queryReportFeeYearCollectionsCount(Map info) {
        logger.debug("查询费用年收费数据 入参 info : {}",info);
        List<Map> businessReportFeeYearCollectionInfos = sqlSessionTemplate.selectList("reportFeeYearCollectionServiceDaoImpl.queryReportFeeYearCollectionsCount", info);
        if (businessReportFeeYearCollectionInfos.size() < 1) {
            return 0;
        }
        return Integer.parseInt(businessReportFeeYearCollectionInfos.get(0).get("count").toString());
    }
}
service-report/src/main/java/com/java110/report/smo/impl/ReportFeeYearCollectionDetailInnerServiceSMOImpl.java
New file
@@ -0,0 +1,83 @@
package com.java110.report.smo.impl;
import com.java110.core.base.smo.BaseServiceSMO;
import com.java110.dto.PageDto;
import com.java110.dto.reportFeeYearCollectionDetail.ReportFeeYearCollectionDetailDto;
import com.java110.intf.report.IReportFeeYearCollectionDetailInnerServiceSMO;
import com.java110.po.reportFeeYearCollectionDetail.ReportFeeYearCollectionDetailPo;
import com.java110.report.dao.IReportFeeYearCollectionDetailServiceDao;
import com.java110.utils.util.BeanConvertUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
 * @ClassName FloorInnerServiceSMOImpl
 * @Description 费用年收费明细内部服务实现类
 * @Author wuxw
 * @Date 2019/4/24 9:20
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@RestController
public class ReportFeeYearCollectionDetailInnerServiceSMOImpl extends BaseServiceSMO implements IReportFeeYearCollectionDetailInnerServiceSMO {
    @Autowired
    private IReportFeeYearCollectionDetailServiceDao reportFeeYearCollectionDetailServiceDaoImpl;
    @Override
    public int saveReportFeeYearCollectionDetail(@RequestBody ReportFeeYearCollectionDetailPo reportFeeYearCollectionDetailPo) {
        int saveFlag = 1;
        reportFeeYearCollectionDetailServiceDaoImpl.saveReportFeeYearCollectionDetailInfo(BeanConvertUtil.beanCovertMap(reportFeeYearCollectionDetailPo));
        return saveFlag;
    }
    @Override
    public int updateReportFeeYearCollectionDetail(@RequestBody ReportFeeYearCollectionDetailPo reportFeeYearCollectionDetailPo) {
        int saveFlag = 1;
        reportFeeYearCollectionDetailServiceDaoImpl.updateReportFeeYearCollectionDetailInfo(BeanConvertUtil.beanCovertMap(reportFeeYearCollectionDetailPo));
        return saveFlag;
    }
    @Override
    public int deleteReportFeeYearCollectionDetail(@RequestBody ReportFeeYearCollectionDetailPo reportFeeYearCollectionDetailPo) {
        int saveFlag = 1;
        reportFeeYearCollectionDetailPo.setStatusCd("1");
        reportFeeYearCollectionDetailServiceDaoImpl.updateReportFeeYearCollectionDetailInfo(BeanConvertUtil.beanCovertMap(reportFeeYearCollectionDetailPo));
        return saveFlag;
    }
    @Override
    public List<ReportFeeYearCollectionDetailDto> queryReportFeeYearCollectionDetails(@RequestBody ReportFeeYearCollectionDetailDto reportFeeYearCollectionDetailDto) {
        //校验是否传了 分页信息
        int page = reportFeeYearCollectionDetailDto.getPage();
        if (page != PageDto.DEFAULT_PAGE) {
            reportFeeYearCollectionDetailDto.setPage((page - 1) * reportFeeYearCollectionDetailDto.getRow());
        }
        List<ReportFeeYearCollectionDetailDto> reportFeeYearCollectionDetails = BeanConvertUtil.covertBeanList(reportFeeYearCollectionDetailServiceDaoImpl.getReportFeeYearCollectionDetailInfo(BeanConvertUtil.beanCovertMap(reportFeeYearCollectionDetailDto)), ReportFeeYearCollectionDetailDto.class);
        return reportFeeYearCollectionDetails;
    }
    @Override
    public int queryReportFeeYearCollectionDetailsCount(@RequestBody ReportFeeYearCollectionDetailDto reportFeeYearCollectionDetailDto) {
        return reportFeeYearCollectionDetailServiceDaoImpl.queryReportFeeYearCollectionDetailsCount(BeanConvertUtil.beanCovertMap(reportFeeYearCollectionDetailDto));
    }
    public IReportFeeYearCollectionDetailServiceDao getReportFeeYearCollectionDetailServiceDaoImpl() {
        return reportFeeYearCollectionDetailServiceDaoImpl;
    }
    public void setReportFeeYearCollectionDetailServiceDaoImpl(IReportFeeYearCollectionDetailServiceDao reportFeeYearCollectionDetailServiceDaoImpl) {
        this.reportFeeYearCollectionDetailServiceDaoImpl = reportFeeYearCollectionDetailServiceDaoImpl;
    }
}
service-report/src/main/java/com/java110/report/smo/impl/ReportFeeYearCollectionInnerServiceSMOImpl.java
New file
@@ -0,0 +1,83 @@
package com.java110.report.smo.impl;
import com.java110.core.base.smo.BaseServiceSMO;
import com.java110.dto.PageDto;
import com.java110.dto.reportFeeYearCollection.ReportFeeYearCollectionDto;
import com.java110.intf.report.IReportFeeYearCollectionInnerServiceSMO;
import com.java110.po.reportFeeYearCollection.ReportFeeYearCollectionPo;
import com.java110.report.dao.IReportFeeYearCollectionServiceDao;
import com.java110.utils.util.BeanConvertUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
 * @ClassName FloorInnerServiceSMOImpl
 * @Description 费用年收费内部服务实现类
 * @Author wuxw
 * @Date 2019/4/24 9:20
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@RestController
public class ReportFeeYearCollectionInnerServiceSMOImpl extends BaseServiceSMO implements IReportFeeYearCollectionInnerServiceSMO {
    @Autowired
    private IReportFeeYearCollectionServiceDao reportFeeYearCollectionServiceDaoImpl;
    @Override
    public int saveReportFeeYearCollection(@RequestBody ReportFeeYearCollectionPo reportFeeYearCollectionPo) {
        int saveFlag = 1;
        reportFeeYearCollectionServiceDaoImpl.saveReportFeeYearCollectionInfo(BeanConvertUtil.beanCovertMap(reportFeeYearCollectionPo));
        return saveFlag;
    }
    @Override
    public int updateReportFeeYearCollection(@RequestBody ReportFeeYearCollectionPo reportFeeYearCollectionPo) {
        int saveFlag = 1;
        reportFeeYearCollectionServiceDaoImpl.updateReportFeeYearCollectionInfo(BeanConvertUtil.beanCovertMap(reportFeeYearCollectionPo));
        return saveFlag;
    }
    @Override
    public int deleteReportFeeYearCollection(@RequestBody ReportFeeYearCollectionPo reportFeeYearCollectionPo) {
        int saveFlag = 1;
        reportFeeYearCollectionPo.setStatusCd("1");
        reportFeeYearCollectionServiceDaoImpl.updateReportFeeYearCollectionInfo(BeanConvertUtil.beanCovertMap(reportFeeYearCollectionPo));
        return saveFlag;
    }
    @Override
    public List<ReportFeeYearCollectionDto> queryReportFeeYearCollections(@RequestBody ReportFeeYearCollectionDto reportFeeYearCollectionDto) {
        //校验是否传了 分页信息
        int page = reportFeeYearCollectionDto.getPage();
        if (page != PageDto.DEFAULT_PAGE) {
            reportFeeYearCollectionDto.setPage((page - 1) * reportFeeYearCollectionDto.getRow());
        }
        List<ReportFeeYearCollectionDto> reportFeeYearCollections = BeanConvertUtil.covertBeanList(reportFeeYearCollectionServiceDaoImpl.getReportFeeYearCollectionInfo(BeanConvertUtil.beanCovertMap(reportFeeYearCollectionDto)), ReportFeeYearCollectionDto.class);
        return reportFeeYearCollections;
    }
    @Override
    public int queryReportFeeYearCollectionsCount(@RequestBody ReportFeeYearCollectionDto reportFeeYearCollectionDto) {
        return reportFeeYearCollectionServiceDaoImpl.queryReportFeeYearCollectionsCount(BeanConvertUtil.beanCovertMap(reportFeeYearCollectionDto));
    }
    public IReportFeeYearCollectionServiceDao getReportFeeYearCollectionServiceDaoImpl() {
        return reportFeeYearCollectionServiceDaoImpl;
    }
    public void setReportFeeYearCollectionServiceDaoImpl(IReportFeeYearCollectionServiceDao reportFeeYearCollectionServiceDaoImpl) {
        this.reportFeeYearCollectionServiceDaoImpl = reportFeeYearCollectionServiceDaoImpl;
    }
}