java110
2021-11-09 42940f5da4f29d35ef7455f71082f3b517f927cb
优化代码
2个文件已修改
33个文件已添加
2793 ■■■■■ 已修改文件
java110-bean/src/main/java/com/java110/dto/reportCustomComponentCondition/ReportCustomComponentConditionDto.java 90 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-bean/src/main/java/com/java110/dto/reportCustomComponentRel/ReportCustomComponentRelDto.java 69 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-bean/src/main/java/com/java110/dto/reportCustomGroup/ReportCustomGroupDto.java 69 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-bean/src/main/java/com/java110/po/reportCustomComponentCondition/ReportCustomComponentConditionPo.java 89 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-bean/src/main/java/com/java110/po/reportCustomComponentRel/ReportCustomComponentRelPo.java 68 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-bean/src/main/java/com/java110/po/reportCustomGroup/ReportCustomGroupPo.java 68 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-db/src/main/resources/mapper/report/ReportCustomComponentConditionV1ServiceDaoImplMapper.xml 124 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-db/src/main/resources/mapper/report/ReportCustomComponentRelV1ServiceDaoImplMapper.xml 97 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-db/src/main/resources/mapper/report/ReportCustomGroupV1ServiceDaoImplMapper.xml 97 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-generator/src/main/java/com/java110/code/TableToJson.java 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-generator/src/main/resources/newBack/template_1.json 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-interface/src/main/java/com/java110/intf/report/IReportCustomComponentConditionV1InnerServiceSMO.java 68 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-interface/src/main/java/com/java110/intf/report/IReportCustomComponentRelV1InnerServiceSMO.java 68 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-interface/src/main/java/com/java110/intf/report/IReportCustomGroupV1InnerServiceSMO.java 68 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/cmd/reportCustomComponentCondition/DeleteReportCustomComponentConditionCmd.java 71 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/cmd/reportCustomComponentCondition/ListReportCustomComponentConditionCmd.java 84 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/cmd/reportCustomComponentCondition/SaveReportCustomComponentConditionCmd.java 79 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/cmd/reportCustomComponentCondition/UpdateReportCustomComponentConditionCmd.java 75 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/cmd/reportCustomComponentRel/DeleteReportCustomComponentRelCmd.java 71 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/cmd/reportCustomComponentRel/ListReportCustomComponentRelCmd.java 84 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/cmd/reportCustomComponentRel/SaveReportCustomComponentRelCmd.java 77 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/cmd/reportCustomComponentRel/UpdateReportCustomComponentRelCmd.java 75 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/cmd/reportCustomGroup/DeleteReportCustomGroupCmd.java 71 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/cmd/reportCustomGroup/ListReportCustomGroupCmd.java 81 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/cmd/reportCustomGroup/SaveReportCustomGroupCmd.java 76 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/cmd/reportCustomGroup/UpdateReportCustomGroupCmd.java 74 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/dao/IReportCustomComponentConditionV1ServiceDao.java 77 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/dao/IReportCustomComponentRelV1ServiceDao.java 77 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/dao/IReportCustomGroupV1ServiceDao.java 77 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/dao/impl/ReportCustomComponentConditionV1ServiceDaoImpl.java 112 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/dao/impl/ReportCustomComponentRelV1ServiceDaoImpl.java 112 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/dao/impl/ReportCustomGroupV1ServiceDaoImpl.java 112 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/smo/impl/ReportCustomComponentConditionV1InnerServiceSMOImpl.java 89 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/smo/impl/ReportCustomComponentRelV1InnerServiceSMOImpl.java 89 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/smo/impl/ReportCustomGroupV1InnerServiceSMOImpl.java 89 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-bean/src/main/java/com/java110/dto/reportCustomComponentCondition/ReportCustomComponentConditionDto.java
New file
@@ -0,0 +1,90 @@
package com.java110.dto.reportCustomComponentCondition;
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 ReportCustomComponentConditionDto extends PageDto implements Serializable {
    private String componentId;
private String conditionId;
private String param;
private String name;
private String remark;
private String holdpace;
private String type;
    private Date createTime;
    private String statusCd = "0";
    public String getComponentId() {
        return componentId;
    }
public void setComponentId(String componentId) {
        this.componentId = componentId;
    }
public String getConditionId() {
        return conditionId;
    }
public void setConditionId(String conditionId) {
        this.conditionId = conditionId;
    }
public String getParam() {
        return param;
    }
public void setParam(String param) {
        this.param = param;
    }
public String getName() {
        return name;
    }
public void setName(String name) {
        this.name = name;
    }
public String getRemark() {
        return remark;
    }
public void setRemark(String remark) {
        this.remark = remark;
    }
public String getHoldpace() {
        return holdpace;
    }
public void setHoldpace(String holdpace) {
        this.holdpace = holdpace;
    }
public String getType() {
        return type;
    }
public void setType(String type) {
        this.type = type;
    }
    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/reportCustomComponentRel/ReportCustomComponentRelDto.java
New file
@@ -0,0 +1,69 @@
package com.java110.dto.reportCustomComponentRel;
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 ReportCustomComponentRelDto extends PageDto implements Serializable {
    private String relId;
private String componentId;
private String customId;
private String seq;
    private Date createTime;
    private String statusCd = "0";
    public String getRelId() {
        return relId;
    }
public void setRelId(String relId) {
        this.relId = relId;
    }
public String getComponentId() {
        return componentId;
    }
public void setComponentId(String componentId) {
        this.componentId = componentId;
    }
public String getCustomId() {
        return customId;
    }
public void setCustomId(String customId) {
        this.customId = customId;
    }
public String getSeq() {
        return seq;
    }
public void setSeq(String seq) {
        this.seq = seq;
    }
    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/reportCustomGroup/ReportCustomGroupDto.java
New file
@@ -0,0 +1,69 @@
package com.java110.dto.reportCustomGroup;
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 ReportCustomGroupDto extends PageDto implements Serializable {
    private String groupId;
private String name;
private String remark;
private String url;
    private Date createTime;
    private String statusCd = "0";
    public String getGroupId() {
        return groupId;
    }
public void setGroupId(String groupId) {
        this.groupId = groupId;
    }
public String getName() {
        return name;
    }
public void setName(String name) {
        this.name = name;
    }
public String getRemark() {
        return remark;
    }
public void setRemark(String remark) {
        this.remark = remark;
    }
public String getUrl() {
        return url;
    }
public void setUrl(String url) {
        this.url = url;
    }
    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/reportCustomComponentCondition/ReportCustomComponentConditionPo.java
New file
@@ -0,0 +1,89 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.po.reportCustomComponentCondition;
import java.io.Serializable;
import java.util.Date;
/**
 * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体
 * add by 吴学文 at 2021-11-09 13:33:12 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
public class ReportCustomComponentConditionPo implements Serializable {
    private String componentId;
private String conditionId;
private String param;
private String name;
private String remark;
private String statusCd = "0";
private String holdpace;
private String type;
public String getComponentId() {
        return componentId;
    }
public void setComponentId(String componentId) {
        this.componentId = componentId;
    }
public String getConditionId() {
        return conditionId;
    }
public void setConditionId(String conditionId) {
        this.conditionId = conditionId;
    }
public String getParam() {
        return param;
    }
public void setParam(String param) {
        this.param = param;
    }
public String getName() {
        return name;
    }
public void setName(String name) {
        this.name = name;
    }
public String getRemark() {
        return remark;
    }
public void setRemark(String remark) {
        this.remark = remark;
    }
public String getStatusCd() {
        return statusCd;
    }
public void setStatusCd(String statusCd) {
        this.statusCd = statusCd;
    }
public String getHoldpace() {
        return holdpace;
    }
public void setHoldpace(String holdpace) {
        this.holdpace = holdpace;
    }
public String getType() {
        return type;
    }
public void setType(String type) {
        this.type = type;
    }
}
java110-bean/src/main/java/com/java110/po/reportCustomComponentRel/ReportCustomComponentRelPo.java
New file
@@ -0,0 +1,68 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.po.reportCustomComponentRel;
import java.io.Serializable;
import java.util.Date;
/**
 * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体
 * add by 吴学文 at 2021-11-09 13:28:13 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
public class ReportCustomComponentRelPo implements Serializable {
    private String relId;
private String componentId;
private String statusCd = "0";
private String customId;
private String seq;
public String getRelId() {
        return relId;
    }
public void setRelId(String relId) {
        this.relId = relId;
    }
public String getComponentId() {
        return componentId;
    }
public void setComponentId(String componentId) {
        this.componentId = componentId;
    }
public String getStatusCd() {
        return statusCd;
    }
public void setStatusCd(String statusCd) {
        this.statusCd = statusCd;
    }
public String getCustomId() {
        return customId;
    }
public void setCustomId(String customId) {
        this.customId = customId;
    }
public String getSeq() {
        return seq;
    }
public void setSeq(String seq) {
        this.seq = seq;
    }
}
java110-bean/src/main/java/com/java110/po/reportCustomGroup/ReportCustomGroupPo.java
New file
@@ -0,0 +1,68 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.po.reportCustomGroup;
import java.io.Serializable;
import java.util.Date;
/**
 * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体
 * add by 吴学文 at 2021-11-09 13:30:41 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
public class ReportCustomGroupPo implements Serializable {
    private String groupId;
private String name;
private String remark;
private String statusCd = "0";
private String url;
public String getGroupId() {
        return groupId;
    }
public void setGroupId(String groupId) {
        this.groupId = groupId;
    }
public String getName() {
        return name;
    }
public void setName(String name) {
        this.name = name;
    }
public String getRemark() {
        return remark;
    }
public void setRemark(String remark) {
        this.remark = remark;
    }
public String getStatusCd() {
        return statusCd;
    }
public void setStatusCd(String statusCd) {
        this.statusCd = statusCd;
    }
public String getUrl() {
        return url;
    }
public void setUrl(String url) {
        this.url = url;
    }
}
java110-db/src/main/resources/mapper/report/ReportCustomComponentConditionV1ServiceDaoImplMapper.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="reportCustomComponentConditionV1ServiceDaoImpl">
    <!-- 保存报表组件条件信息 add by wuxw 2018-07-03 -->
    <insert id="saveReportCustomComponentConditionInfo" parameterType="Map">
        insert into report_custom_component_condition(
component_id,condition_id,param,name,remark,holdpace,type
) values (
#{componentId},#{conditionId},#{param},#{name},#{remark},#{holdpace},#{type}
)
    </insert>
    <!-- 查询报表组件条件信息 add by wuxw 2018-07-03 -->
    <select id="getReportCustomComponentConditionInfo" parameterType="Map" resultType="Map">
        select  t.component_id,t.component_id componentId,t.condition_id,t.condition_id conditionId,t.param,t.name,t.remark,t.status_cd,t.status_cd statusCd,t.holdpace,t.type
from report_custom_component_condition t
where 1 =1
<if test="componentId !=null and componentId != ''">
   and t.component_id= #{componentId}
</if>
<if test="conditionId !=null and conditionId != ''">
   and t.condition_id= #{conditionId}
</if>
<if test="param !=null and param != ''">
   and t.param= #{param}
</if>
<if test="name !=null and name != ''">
   and t.name= #{name}
</if>
<if test="remark !=null and remark != ''">
   and t.remark= #{remark}
</if>
<if test="statusCd !=null and statusCd != ''">
   and t.status_cd= #{statusCd}
</if>
<if test="holdpace !=null and holdpace != ''">
   and t.holdpace= #{holdpace}
</if>
<if test="type !=null and type != ''">
   and t.type= #{type}
</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="updateReportCustomComponentConditionInfo" parameterType="Map">
        update  report_custom_component_condition t set t.status_cd = #{statusCd}
<if test="newBId != null and newBId != ''">
,t.b_id = #{newBId}
</if>
<if test="componentId !=null and componentId != ''">
, t.component_id= #{componentId}
</if>
<if test="param !=null and param != ''">
, t.param= #{param}
</if>
<if test="name !=null and name != ''">
, t.name= #{name}
</if>
<if test="remark !=null and remark != ''">
, t.remark= #{remark}
</if>
<if test="holdpace !=null and holdpace != ''">
, t.holdpace= #{holdpace}
</if>
<if test="type !=null and type != ''">
, t.type= #{type}
</if>
 where 1=1 <if test="conditionId !=null and conditionId != ''">
and t.condition_id= #{conditionId}
</if>
    </update>
    <!-- 查询报表组件条件数量 add by wuxw 2018-07-03 -->
     <select id="queryReportCustomComponentConditionsCount" parameterType="Map" resultType="Map">
        select  count(1) count
from report_custom_component_condition t
where 1 =1
<if test="componentId !=null and componentId != ''">
   and t.component_id= #{componentId}
</if>
<if test="conditionId !=null and conditionId != ''">
   and t.condition_id= #{conditionId}
</if>
<if test="param !=null and param != ''">
   and t.param= #{param}
</if>
<if test="name !=null and name != ''">
   and t.name= #{name}
</if>
<if test="remark !=null and remark != ''">
   and t.remark= #{remark}
</if>
<if test="statusCd !=null and statusCd != ''">
   and t.status_cd= #{statusCd}
</if>
<if test="holdpace !=null and holdpace != ''">
   and t.holdpace= #{holdpace}
</if>
<if test="type !=null and type != ''">
   and t.type= #{type}
</if>
     </select>
</mapper>
java110-db/src/main/resources/mapper/report/ReportCustomComponentRelV1ServiceDaoImplMapper.xml
New file
@@ -0,0 +1,97 @@
<?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="reportCustomComponentRelV1ServiceDaoImpl">
    <!-- 保存报表组件关系信息 add by wuxw 2018-07-03 -->
    <insert id="saveReportCustomComponentRelInfo" parameterType="Map">
        insert into report_custom_component_rel(
rel_id,component_id,custom_id,seq
) values (
#{relId},#{componentId},#{customId},#{seq}
)
    </insert>
    <!-- 查询报表组件关系信息 add by wuxw 2018-07-03 -->
    <select id="getReportCustomComponentRelInfo" parameterType="Map" resultType="Map">
        select  t.rel_id,t.rel_id relId,t.component_id,t.component_id componentId,t.status_cd,t.status_cd statusCd,t.custom_id,t.custom_id customId,t.seq
from report_custom_component_rel t
where 1 =1
<if test="relId !=null and relId != ''">
   and t.rel_id= #{relId}
</if>
<if test="componentId !=null and componentId != ''">
   and t.component_id= #{componentId}
</if>
<if test="statusCd !=null and statusCd != ''">
   and t.status_cd= #{statusCd}
</if>
<if test="customId !=null and customId != ''">
   and t.custom_id= #{customId}
</if>
<if test="seq !=null and seq != ''">
   and t.seq= #{seq}
</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="updateReportCustomComponentRelInfo" parameterType="Map">
        update  report_custom_component_rel t set t.status_cd = #{statusCd}
<if test="newBId != null and newBId != ''">
,t.b_id = #{newBId}
</if>
<if test="componentId !=null and componentId != ''">
, t.component_id= #{componentId}
</if>
<if test="customId !=null and customId != ''">
, t.custom_id= #{customId}
</if>
<if test="seq !=null and seq != ''">
, t.seq= #{seq}
</if>
 where 1=1 <if test="relId !=null and relId != ''">
and t.rel_id= #{relId}
</if>
    </update>
    <!-- 查询报表组件关系数量 add by wuxw 2018-07-03 -->
     <select id="queryReportCustomComponentRelsCount" parameterType="Map" resultType="Map">
        select  count(1) count
from report_custom_component_rel t
where 1 =1
<if test="relId !=null and relId != ''">
   and t.rel_id= #{relId}
</if>
<if test="componentId !=null and componentId != ''">
   and t.component_id= #{componentId}
</if>
<if test="statusCd !=null and statusCd != ''">
   and t.status_cd= #{statusCd}
</if>
<if test="customId !=null and customId != ''">
   and t.custom_id= #{customId}
</if>
<if test="seq !=null and seq != ''">
   and t.seq= #{seq}
</if>
     </select>
</mapper>
java110-db/src/main/resources/mapper/report/ReportCustomGroupV1ServiceDaoImplMapper.xml
New file
@@ -0,0 +1,97 @@
<?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="reportCustomGroupV1ServiceDaoImpl">
    <!-- 保存报表组信息 add by wuxw 2018-07-03 -->
    <insert id="saveReportCustomGroupInfo" parameterType="Map">
        insert into report_custom_group(
group_id,name,remark,url
) values (
#{groupId},#{name},#{remark},#{url}
)
    </insert>
    <!-- 查询报表组信息 add by wuxw 2018-07-03 -->
    <select id="getReportCustomGroupInfo" parameterType="Map" resultType="Map">
        select  t.group_id,t.group_id groupId,t.name,t.remark,t.status_cd,t.status_cd statusCd,t.url
from report_custom_group t
where 1 =1
<if test="groupId !=null and groupId != ''">
   and t.group_id= #{groupId}
</if>
<if test="name !=null and name != ''">
   and t.name= #{name}
</if>
<if test="remark !=null and remark != ''">
   and t.remark= #{remark}
</if>
<if test="statusCd !=null and statusCd != ''">
   and t.status_cd= #{statusCd}
</if>
<if test="url !=null and url != ''">
   and t.url= #{url}
</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="updateReportCustomGroupInfo" parameterType="Map">
        update  report_custom_group t set t.status_cd = #{statusCd}
<if test="newBId != null and newBId != ''">
,t.b_id = #{newBId}
</if>
<if test="name !=null and name != ''">
, t.name= #{name}
</if>
<if test="remark !=null and remark != ''">
, t.remark= #{remark}
</if>
<if test="url !=null and url != ''">
, t.url= #{url}
</if>
 where 1=1 <if test="groupId !=null and groupId != ''">
and t.group_id= #{groupId}
</if>
    </update>
    <!-- 查询报表组数量 add by wuxw 2018-07-03 -->
     <select id="queryReportCustomGroupsCount" parameterType="Map" resultType="Map">
        select  count(1) count
from report_custom_group t
where 1 =1
<if test="groupId !=null and groupId != ''">
   and t.group_id= #{groupId}
</if>
<if test="name !=null and name != ''">
   and t.name= #{name}
</if>
<if test="remark !=null and remark != ''">
   and t.remark= #{remark}
</if>
<if test="statusCd !=null and statusCd != ''">
   and t.status_cd= #{statusCd}
</if>
<if test="url !=null and url != ''">
   and t.url= #{url}
</if>
     </select>
</mapper>
java110-generator/src/main/java/com/java110/code/TableToJson.java
@@ -7,23 +7,25 @@
public class TableToJson {
    //show create table c_orders  用这个语句获取
    public static final String createTableSql = "CREATE TABLE `report_custom` (\n" +
            "  `custom_id` varchar(30) NOT NULL COMMENT '报表编号',\n" +
            "  `group_id` varchar(30) NOT NULL COMMENT '组编号',\n" +
            "  `title` varchar(64) NOT NULL COMMENT '选项标题',\n" +
            "  `seq` int(11) NOT NULL COMMENT '排序',\n" +
    public static final String createTableSql = "CREATE TABLE `report_custom_component_condition` (\n" +
            "  `condition_id` varchar(30) NOT NULL COMMENT '条件ID',\n" +
            "  `component_id` varchar(30) NOT NULL COMMENT '组件ID',\n" +
            "  `name` varchar(64) NOT NULL COMMENT '名称',\n" +
            "  `holdpace` varchar(64) NOT NULL DEFAULT 'C' COMMENT '提示',\n" +
            "  `param` varchar(64) NOT NULL COMMENT '参数',\n" +
            "  `type` varchar(12) NOT NULL COMMENT '类型 input 输入框',\n" +
            "  `remark` varchar(512) DEFAULT NULL COMMENT '描述',\n" +
            "  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',\n" +
            "  `status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,S 保存,0, 在用 1失效'\n" +
            ") ";
            ")";
    public static void main(String[] args) {
        String desc = "报表组件";
        String id = "customId";
        String name = "reportCustom";
        String desc = "报表组件条件";
        String id = "conditionId";
        String name = "reportCustomComponentCondition";
        String shareName = "report"; //生成到那个服务下
        String shareColumn = "custom_id";
        String shareParam = "customId";
        String shareColumn = "condition_id";
        String shareParam = "conditionId";
        //业务名称 desc 业务编码名称生成后类名 name 主键 id  需要放到那个服务 shareName
        String newSql = createTableSql.substring(createTableSql.indexOf("(") + 1, createTableSql.lastIndexOf(")"));
        String tableName = createTableSql.substring(createTableSql.indexOf("TABLE") + 5, createTableSql.indexOf("("));
java110-generator/src/main/resources/newBack/template_1.json
@@ -1,32 +1,42 @@
{
  "param": {
    "groupId": "group_id",
    "componentId": "component_id",
    "conditionId": "condition_id",
    "param": "param",
    "name": "name",
    "remark": "remark",
    "statusCd": "status_cd",
    "title": "title",
    "customId": "custom_id",
    "seq": "seq"
    "holdpace": "holdpace",
    "type": "type"
  },
  "name": "reportCustom",
  "shareColumn": "custom_id",
  "id": "customId",
  "name": "reportCustomComponentCondition",
  "shareColumn": "condition_id",
  "id": "conditionId",
  "shareName": "report",
  "autoMove": true,
  "required": [
    {
      "msg": "组编号不能为空",
      "code": "groupId"
      "msg": "组件ID不能为空",
      "code": "componentId"
    },
    {
      "msg": "选项标题不能为空",
      "code": "title"
      "msg": "名称不能为空",
      "code": "name"
    },
    {
      "msg": "排序不能为空",
      "code": "seq"
      "msg": "提示不能为空",
      "code": "holdpace"
    },
    {
      "msg": "参数不能为空",
      "code": "param"
    },
    {
      "msg": "类型不能为空",
      "code": "type"
    }
  ],
  "desc": "报表组件",
  "shareParam": "customId",
  "tableName": "report_custom"
  "desc": "报表组件条件",
  "shareParam": "conditionId",
  "tableName": "report_custom_component_condition"
}
java110-interface/src/main/java/com/java110/intf/report/IReportCustomComponentConditionV1InnerServiceSMO.java
New file
@@ -0,0 +1,68 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.intf.report;
import com.java110.config.feign.FeignConfiguration;
import com.java110.dto.reportCustomComponentCondition.ReportCustomComponentConditionDto;
import com.java110.po.reportCustomComponentCondition.ReportCustomComponentConditionPo;
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;
/**
 * 类表述: 服务之前调用的接口类,不对外提供接口能力 只用于接口建调用
 * add by 吴学文 at 2021-11-09 13:33:12 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@FeignClient(name = "report-service", configuration = {FeignConfiguration.class})
@RequestMapping("/reportCustomComponentConditionV1Api")
public interface IReportCustomComponentConditionV1InnerServiceSMO {
    @RequestMapping(value = "/saveReportCustomComponentCondition", method = RequestMethod.POST)
    public int saveReportCustomComponentCondition(@RequestBody  ReportCustomComponentConditionPo reportCustomComponentConditionPo);
    @RequestMapping(value = "/updateReportCustomComponentCondition", method = RequestMethod.POST)
    public int updateReportCustomComponentCondition(@RequestBody  ReportCustomComponentConditionPo reportCustomComponentConditionPo);
    @RequestMapping(value = "/deleteReportCustomComponentCondition", method = RequestMethod.POST)
    public int deleteReportCustomComponentCondition(@RequestBody  ReportCustomComponentConditionPo reportCustomComponentConditionPo);
    /**
     * <p>查询小区楼信息</p>
     *
     *
     * @param reportCustomComponentConditionDto 数据对象分享
     * @return ReportCustomComponentConditionDto 对象数据
     */
    @RequestMapping(value = "/queryReportCustomComponentConditions", method = RequestMethod.POST)
    List<ReportCustomComponentConditionDto> queryReportCustomComponentConditions(@RequestBody ReportCustomComponentConditionDto reportCustomComponentConditionDto);
    /**
     * 查询<p>小区楼</p>总记录数
     *
     * @param reportCustomComponentConditionDto 数据对象分享
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryReportCustomComponentConditionsCount", method = RequestMethod.POST)
    int queryReportCustomComponentConditionsCount(@RequestBody ReportCustomComponentConditionDto reportCustomComponentConditionDto);
}
java110-interface/src/main/java/com/java110/intf/report/IReportCustomComponentRelV1InnerServiceSMO.java
New file
@@ -0,0 +1,68 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.intf.report;
import com.java110.config.feign.FeignConfiguration;
import com.java110.dto.reportCustomComponentRel.ReportCustomComponentRelDto;
import com.java110.po.reportCustomComponentRel.ReportCustomComponentRelPo;
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;
/**
 * 类表述: 服务之前调用的接口类,不对外提供接口能力 只用于接口建调用
 * add by 吴学文 at 2021-11-09 13:28:13 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@FeignClient(name = "report-service", configuration = {FeignConfiguration.class})
@RequestMapping("/reportCustomComponentRelV1Api")
public interface IReportCustomComponentRelV1InnerServiceSMO {
    @RequestMapping(value = "/saveReportCustomComponentRel", method = RequestMethod.POST)
    public int saveReportCustomComponentRel(@RequestBody  ReportCustomComponentRelPo reportCustomComponentRelPo);
    @RequestMapping(value = "/updateReportCustomComponentRel", method = RequestMethod.POST)
    public int updateReportCustomComponentRel(@RequestBody  ReportCustomComponentRelPo reportCustomComponentRelPo);
    @RequestMapping(value = "/deleteReportCustomComponentRel", method = RequestMethod.POST)
    public int deleteReportCustomComponentRel(@RequestBody  ReportCustomComponentRelPo reportCustomComponentRelPo);
    /**
     * <p>查询小区楼信息</p>
     *
     *
     * @param reportCustomComponentRelDto 数据对象分享
     * @return ReportCustomComponentRelDto 对象数据
     */
    @RequestMapping(value = "/queryReportCustomComponentRels", method = RequestMethod.POST)
    List<ReportCustomComponentRelDto> queryReportCustomComponentRels(@RequestBody ReportCustomComponentRelDto reportCustomComponentRelDto);
    /**
     * 查询<p>小区楼</p>总记录数
     *
     * @param reportCustomComponentRelDto 数据对象分享
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryReportCustomComponentRelsCount", method = RequestMethod.POST)
    int queryReportCustomComponentRelsCount(@RequestBody ReportCustomComponentRelDto reportCustomComponentRelDto);
}
java110-interface/src/main/java/com/java110/intf/report/IReportCustomGroupV1InnerServiceSMO.java
New file
@@ -0,0 +1,68 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.intf.report;
import com.java110.config.feign.FeignConfiguration;
import com.java110.dto.reportCustomGroup.ReportCustomGroupDto;
import com.java110.po.reportCustomGroup.ReportCustomGroupPo;
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;
/**
 * 类表述: 服务之前调用的接口类,不对外提供接口能力 只用于接口建调用
 * add by 吴学文 at 2021-11-09 13:30:41 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@FeignClient(name = "report-service", configuration = {FeignConfiguration.class})
@RequestMapping("/reportCustomGroupV1Api")
public interface IReportCustomGroupV1InnerServiceSMO {
    @RequestMapping(value = "/saveReportCustomGroup", method = RequestMethod.POST)
    public int saveReportCustomGroup(@RequestBody  ReportCustomGroupPo reportCustomGroupPo);
    @RequestMapping(value = "/updateReportCustomGroup", method = RequestMethod.POST)
    public int updateReportCustomGroup(@RequestBody  ReportCustomGroupPo reportCustomGroupPo);
    @RequestMapping(value = "/deleteReportCustomGroup", method = RequestMethod.POST)
    public int deleteReportCustomGroup(@RequestBody  ReportCustomGroupPo reportCustomGroupPo);
    /**
     * <p>查询小区楼信息</p>
     *
     *
     * @param reportCustomGroupDto 数据对象分享
     * @return ReportCustomGroupDto 对象数据
     */
    @RequestMapping(value = "/queryReportCustomGroups", method = RequestMethod.POST)
    List<ReportCustomGroupDto> queryReportCustomGroups(@RequestBody ReportCustomGroupDto reportCustomGroupDto);
    /**
     * 查询<p>小区楼</p>总记录数
     *
     * @param reportCustomGroupDto 数据对象分享
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryReportCustomGroupsCount", method = RequestMethod.POST)
    int queryReportCustomGroupsCount(@RequestBody ReportCustomGroupDto reportCustomGroupDto);
}
service-report/src/main/java/com/java110/report/cmd/reportCustomComponentCondition/DeleteReportCustomComponentConditionCmd.java
New file
@@ -0,0 +1,71 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.report.cmd.reportCustomComponentCondition;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.annotation.Java110Cmd;
import com.java110.core.annotation.Java110Transactional;
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.AbstractServiceCmdListener;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.core.factory.GenerateCodeFactory;
import com.java110.intf.report.IReportCustomComponentConditionV1InnerServiceSMO;
import com.java110.po.reportCustomComponentCondition.ReportCustomComponentConditionPo;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
 * 类表述:删除
 * 服务编码:reportCustomComponentCondition.deleteReportCustomComponentCondition
 * 请求路劲:/app/reportCustomComponentCondition.DeleteReportCustomComponentCondition
 * add by 吴学文 at 2021-11-09 13:33:12 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@Java110Cmd(serviceCode = "reportCustomComponentCondition.deleteReportCustomComponentCondition")
public class DeleteReportCustomComponentConditionCmd extends AbstractServiceCmdListener {
  private static Logger logger = LoggerFactory.getLogger(DeleteReportCustomComponentConditionCmd.class);
    @Autowired
    private IReportCustomComponentConditionV1InnerServiceSMO reportCustomComponentConditionV1InnerServiceSMOImpl;
    @Override
    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "conditionId", "conditionId不能为空");
Assert.hasKeyAndValue(reqJson, "conditionId", "conditionId不能为空");
    }
    @Override
    @Java110Transactional
    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
       ReportCustomComponentConditionPo reportCustomComponentConditionPo = BeanConvertUtil.covertBean(reqJson, ReportCustomComponentConditionPo.class);
        int flag = reportCustomComponentConditionV1InnerServiceSMOImpl.deleteReportCustomComponentCondition(reportCustomComponentConditionPo);
        if (flag < 1) {
            throw new CmdException("删除数据失败");
        }
        cmdDataFlowContext.setResponseEntity(ResultVo.success());
    }
}
service-report/src/main/java/com/java110/report/cmd/reportCustomComponentCondition/ListReportCustomComponentConditionCmd.java
New file
@@ -0,0 +1,84 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.report.cmd.reportCustomComponentCondition;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.annotation.Java110Cmd;
import com.java110.core.annotation.Java110Transactional;
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.AbstractServiceCmdListener;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.core.factory.GenerateCodeFactory;
import com.java110.intf.report.IReportCustomComponentConditionV1InnerServiceSMO;
import com.java110.po.reportCustomComponentCondition.ReportCustomComponentConditionPo;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import com.java110.dto.reportCustomComponentCondition.ReportCustomComponentConditionDto;
import java.util.List;
import java.util.ArrayList;
import org.springframework.http.ResponseEntity;
import org.springframework.http.HttpStatus;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
 * 类表述:查询
 * 服务编码:reportCustomComponentCondition.listReportCustomComponentCondition
 * 请求路劲:/app/reportCustomComponentCondition.ListReportCustomComponentCondition
 * add by 吴学文 at 2021-11-09 13:33:12 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@Java110Cmd(serviceCode = "reportCustomComponentCondition.listReportCustomComponentCondition")
public class ListReportCustomComponentConditionCmd extends AbstractServiceCmdListener {
  private static Logger logger = LoggerFactory.getLogger(ListReportCustomComponentConditionCmd.class);
    @Autowired
    private IReportCustomComponentConditionV1InnerServiceSMO reportCustomComponentConditionV1InnerServiceSMOImpl;
    @Override
    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
        super.validatePageInfo(reqJson);
    }
    @Override
    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
           ReportCustomComponentConditionDto reportCustomComponentConditionDto = BeanConvertUtil.covertBean(reqJson, ReportCustomComponentConditionDto.class);
           int count = reportCustomComponentConditionV1InnerServiceSMOImpl.queryReportCustomComponentConditionsCount(reportCustomComponentConditionDto);
           List<ReportCustomComponentConditionDto> reportCustomComponentConditionDtos = null;
           if (count > 0) {
               reportCustomComponentConditionDtos = reportCustomComponentConditionV1InnerServiceSMOImpl.queryReportCustomComponentConditions(reportCustomComponentConditionDto);
           } else {
               reportCustomComponentConditionDtos = new ArrayList<>();
           }
           ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, reportCustomComponentConditionDtos);
           ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
           cmdDataFlowContext.setResponseEntity(responseEntity);
    }
}
service-report/src/main/java/com/java110/report/cmd/reportCustomComponentCondition/SaveReportCustomComponentConditionCmd.java
New file
@@ -0,0 +1,79 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.report.cmd.reportCustomComponentCondition;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.annotation.Java110Cmd;
import com.java110.core.annotation.Java110Transactional;
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.AbstractServiceCmdListener;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.core.factory.GenerateCodeFactory;
import com.java110.intf.report.IReportCustomComponentConditionV1InnerServiceSMO;
import com.java110.po.reportCustomComponentCondition.ReportCustomComponentConditionPo;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
 * 类表述:保存
 * 服务编码:reportCustomComponentCondition.saveReportCustomComponentCondition
 * 请求路劲:/app/reportCustomComponentCondition.SaveReportCustomComponentCondition
 * add by 吴学文 at 2021-11-09 13:33:12 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@Java110Cmd(serviceCode = "reportCustomComponentCondition.saveReportCustomComponentCondition")
public class SaveReportCustomComponentConditionCmd extends AbstractServiceCmdListener {
    private static Logger logger = LoggerFactory.getLogger(SaveReportCustomComponentConditionCmd.class);
    public static final String CODE_PREFIX_ID = "10";
    @Autowired
    private IReportCustomComponentConditionV1InnerServiceSMO reportCustomComponentConditionV1InnerServiceSMOImpl;
    @Override
    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "componentId", "请求报文中未包含componentId");
Assert.hasKeyAndValue(reqJson, "name", "请求报文中未包含name");
Assert.hasKeyAndValue(reqJson, "holdpace", "请求报文中未包含holdpace");
Assert.hasKeyAndValue(reqJson, "param", "请求报文中未包含param");
Assert.hasKeyAndValue(reqJson, "type", "请求报文中未包含type");
    }
    @Override
    @Java110Transactional
    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
       ReportCustomComponentConditionPo reportCustomComponentConditionPo = BeanConvertUtil.covertBean(reqJson, ReportCustomComponentConditionPo.class);
        reportCustomComponentConditionPo.setConditionId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID));
        int flag = reportCustomComponentConditionV1InnerServiceSMOImpl.saveReportCustomComponentCondition(reportCustomComponentConditionPo);
        if (flag < 1) {
            throw new CmdException("保存数据失败");
        }
        cmdDataFlowContext.setResponseEntity(ResultVo.success());
    }
}
service-report/src/main/java/com/java110/report/cmd/reportCustomComponentCondition/UpdateReportCustomComponentConditionCmd.java
New file
@@ -0,0 +1,75 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.report.cmd.reportCustomComponentCondition;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.annotation.Java110Cmd;
import com.java110.core.annotation.Java110Transactional;
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.AbstractServiceCmdListener;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.core.factory.GenerateCodeFactory;
import com.java110.intf.report.IReportCustomComponentConditionV1InnerServiceSMO;
import com.java110.po.reportCustomComponentCondition.ReportCustomComponentConditionPo;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
 * 类表述:更新
 * 服务编码:reportCustomComponentCondition.updateReportCustomComponentCondition
 * 请求路劲:/app/reportCustomComponentCondition.UpdateReportCustomComponentCondition
 * add by 吴学文 at 2021-11-09 13:33:12 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@Java110Cmd(serviceCode = "reportCustomComponentCondition.updateReportCustomComponentCondition")
public class UpdateReportCustomComponentConditionCmd extends AbstractServiceCmdListener {
  private static Logger logger = LoggerFactory.getLogger(UpdateReportCustomComponentConditionCmd.class);
    @Autowired
    private IReportCustomComponentConditionV1InnerServiceSMO reportCustomComponentConditionV1InnerServiceSMOImpl;
    @Override
    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "conditionId", "conditionId不能为空");
Assert.hasKeyAndValue(reqJson, "conditionId", "conditionId不能为空");
    }
    @Override
    @Java110Transactional
    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
       ReportCustomComponentConditionPo reportCustomComponentConditionPo = BeanConvertUtil.covertBean(reqJson, ReportCustomComponentConditionPo.class);
        int flag = reportCustomComponentConditionV1InnerServiceSMOImpl.updateReportCustomComponentCondition(reportCustomComponentConditionPo);
        if (flag < 1) {
            throw new CmdException("更新数据失败");
        }
        cmdDataFlowContext.setResponseEntity(ResultVo.success());
    }
}
service-report/src/main/java/com/java110/report/cmd/reportCustomComponentRel/DeleteReportCustomComponentRelCmd.java
New file
@@ -0,0 +1,71 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.report.cmd.reportCustomComponentRel;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.annotation.Java110Cmd;
import com.java110.core.annotation.Java110Transactional;
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.AbstractServiceCmdListener;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.intf.report.IReportCustomComponentRelV1InnerServiceSMO;
import com.java110.po.reportCustomComponentRel.ReportCustomComponentRelPo;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.vo.ResultVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * 类表述:删除
 * 服务编码:reportCustomComponentRel.deleteReportCustomComponentRel
 * 请求路劲:/app/reportCustomComponentRel.DeleteReportCustomComponentRel
 * add by 吴学文 at 2021-11-09 13:28:13 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@Java110Cmd(serviceCode = "reportCustomComponentRel.deleteReportCustomComponentRel")
public class DeleteReportCustomComponentRelCmd extends AbstractServiceCmdListener {
    private static Logger logger = LoggerFactory.getLogger(DeleteReportCustomComponentRelCmd.class);
    @Autowired
    private IReportCustomComponentRelV1InnerServiceSMO reportCustomComponentRelV1InnerServiceSMOImpl;
    @Override
    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "relId", "relId不能为空");
        Assert.hasKeyAndValue(reqJson, "customId", "customId不能为空");
    }
    @Override
    @Java110Transactional
    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
        ReportCustomComponentRelPo reportCustomComponentRelPo = BeanConvertUtil.covertBean(reqJson, ReportCustomComponentRelPo.class);
        int flag = reportCustomComponentRelV1InnerServiceSMOImpl.deleteReportCustomComponentRel(reportCustomComponentRelPo);
        if (flag < 1) {
            throw new CmdException("删除数据失败");
        }
        cmdDataFlowContext.setResponseEntity(ResultVo.success());
    }
}
service-report/src/main/java/com/java110/report/cmd/reportCustomComponentRel/ListReportCustomComponentRelCmd.java
New file
@@ -0,0 +1,84 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.report.cmd.reportCustomComponentRel;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.annotation.Java110Cmd;
import com.java110.core.annotation.Java110Transactional;
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.AbstractServiceCmdListener;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.core.factory.GenerateCodeFactory;
import com.java110.intf.report.IReportCustomComponentRelV1InnerServiceSMO;
import com.java110.po.reportCustomComponentRel.ReportCustomComponentRelPo;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import com.java110.dto.reportCustomComponentRel.ReportCustomComponentRelDto;
import java.util.List;
import java.util.ArrayList;
import org.springframework.http.ResponseEntity;
import org.springframework.http.HttpStatus;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
 * 类表述:查询
 * 服务编码:reportCustomComponentRel.listReportCustomComponentRel
 * 请求路劲:/app/reportCustomComponentRel.ListReportCustomComponentRel
 * add by 吴学文 at 2021-11-09 13:28:13 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@Java110Cmd(serviceCode = "reportCustomComponentRel.listReportCustomComponentRel")
public class ListReportCustomComponentRelCmd extends AbstractServiceCmdListener {
  private static Logger logger = LoggerFactory.getLogger(ListReportCustomComponentRelCmd.class);
    @Autowired
    private IReportCustomComponentRelV1InnerServiceSMO reportCustomComponentRelV1InnerServiceSMOImpl;
    @Override
    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
        super.validatePageInfo(reqJson);
    }
    @Override
    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
           ReportCustomComponentRelDto reportCustomComponentRelDto = BeanConvertUtil.covertBean(reqJson, ReportCustomComponentRelDto.class);
           int count = reportCustomComponentRelV1InnerServiceSMOImpl.queryReportCustomComponentRelsCount(reportCustomComponentRelDto);
           List<ReportCustomComponentRelDto> reportCustomComponentRelDtos = null;
           if (count > 0) {
               reportCustomComponentRelDtos = reportCustomComponentRelV1InnerServiceSMOImpl.queryReportCustomComponentRels(reportCustomComponentRelDto);
           } else {
               reportCustomComponentRelDtos = new ArrayList<>();
           }
           ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, reportCustomComponentRelDtos);
           ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
           cmdDataFlowContext.setResponseEntity(responseEntity);
    }
}
service-report/src/main/java/com/java110/report/cmd/reportCustomComponentRel/SaveReportCustomComponentRelCmd.java
New file
@@ -0,0 +1,77 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.report.cmd.reportCustomComponentRel;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.annotation.Java110Cmd;
import com.java110.core.annotation.Java110Transactional;
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.AbstractServiceCmdListener;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.core.factory.GenerateCodeFactory;
import com.java110.intf.report.IReportCustomComponentRelV1InnerServiceSMO;
import com.java110.po.reportCustomComponentRel.ReportCustomComponentRelPo;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
 * 类表述:保存
 * 服务编码:reportCustomComponentRel.saveReportCustomComponentRel
 * 请求路劲:/app/reportCustomComponentRel.SaveReportCustomComponentRel
 * add by 吴学文 at 2021-11-09 13:28:13 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@Java110Cmd(serviceCode = "reportCustomComponentRel.saveReportCustomComponentRel")
public class SaveReportCustomComponentRelCmd extends AbstractServiceCmdListener {
    private static Logger logger = LoggerFactory.getLogger(SaveReportCustomComponentRelCmd.class);
    public static final String CODE_PREFIX_ID = "10";
    @Autowired
    private IReportCustomComponentRelV1InnerServiceSMO reportCustomComponentRelV1InnerServiceSMOImpl;
    @Override
    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "componentId", "请求报文中未包含componentId");
Assert.hasKeyAndValue(reqJson, "customId", "请求报文中未包含customId");
Assert.hasKeyAndValue(reqJson, "seq", "请求报文中未包含seq");
    }
    @Override
    @Java110Transactional
    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
       ReportCustomComponentRelPo reportCustomComponentRelPo = BeanConvertUtil.covertBean(reqJson, ReportCustomComponentRelPo.class);
        reportCustomComponentRelPo.setRelId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID));
        int flag = reportCustomComponentRelV1InnerServiceSMOImpl.saveReportCustomComponentRel(reportCustomComponentRelPo);
        if (flag < 1) {
            throw new CmdException("保存数据失败");
        }
        cmdDataFlowContext.setResponseEntity(ResultVo.success());
    }
}
service-report/src/main/java/com/java110/report/cmd/reportCustomComponentRel/UpdateReportCustomComponentRelCmd.java
New file
@@ -0,0 +1,75 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.report.cmd.reportCustomComponentRel;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.annotation.Java110Cmd;
import com.java110.core.annotation.Java110Transactional;
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.AbstractServiceCmdListener;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.core.factory.GenerateCodeFactory;
import com.java110.intf.report.IReportCustomComponentRelV1InnerServiceSMO;
import com.java110.po.reportCustomComponentRel.ReportCustomComponentRelPo;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
 * 类表述:更新
 * 服务编码:reportCustomComponentRel.updateReportCustomComponentRel
 * 请求路劲:/app/reportCustomComponentRel.UpdateReportCustomComponentRel
 * add by 吴学文 at 2021-11-09 13:28:13 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@Java110Cmd(serviceCode = "reportCustomComponentRel.updateReportCustomComponentRel")
public class UpdateReportCustomComponentRelCmd extends AbstractServiceCmdListener {
  private static Logger logger = LoggerFactory.getLogger(UpdateReportCustomComponentRelCmd.class);
    @Autowired
    private IReportCustomComponentRelV1InnerServiceSMO reportCustomComponentRelV1InnerServiceSMOImpl;
    @Override
    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "relId", "relId不能为空");
Assert.hasKeyAndValue(reqJson, "customId", "customId不能为空");
    }
    @Override
    @Java110Transactional
    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
       ReportCustomComponentRelPo reportCustomComponentRelPo = BeanConvertUtil.covertBean(reqJson, ReportCustomComponentRelPo.class);
        int flag = reportCustomComponentRelV1InnerServiceSMOImpl.updateReportCustomComponentRel(reportCustomComponentRelPo);
        if (flag < 1) {
            throw new CmdException("更新数据失败");
        }
        cmdDataFlowContext.setResponseEntity(ResultVo.success());
    }
}
service-report/src/main/java/com/java110/report/cmd/reportCustomGroup/DeleteReportCustomGroupCmd.java
New file
@@ -0,0 +1,71 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.report.cmd.reportCustomGroup;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.annotation.Java110Cmd;
import com.java110.core.annotation.Java110Transactional;
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.AbstractServiceCmdListener;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.intf.report.IReportCustomGroupV1InnerServiceSMO;
import com.java110.po.reportCustomGroup.ReportCustomGroupPo;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.vo.ResultVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * 类表述:删除
 * 服务编码:reportCustomGroup.deleteReportCustomGroup
 * 请求路劲:/app/reportCustomGroup.DeleteReportCustomGroup
 * add by 吴学文 at 2021-11-09 13:30:41 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@Java110Cmd(serviceCode = "reportCustomGroup.deleteReportCustomGroup")
public class DeleteReportCustomGroupCmd extends AbstractServiceCmdListener {
    private static Logger logger = LoggerFactory.getLogger(DeleteReportCustomGroupCmd.class);
    @Autowired
    private IReportCustomGroupV1InnerServiceSMO reportCustomGroupV1InnerServiceSMOImpl;
    @Override
    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "groupId", "groupId不能为空");
        Assert.hasKeyAndValue(reqJson, "groupId", "groupId不能为空");
    }
    @Override
    @Java110Transactional
    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
        ReportCustomGroupPo reportCustomGroupPo = BeanConvertUtil.covertBean(reqJson, ReportCustomGroupPo.class);
        int flag = reportCustomGroupV1InnerServiceSMOImpl.deleteReportCustomGroup(reportCustomGroupPo);
        if (flag < 1) {
            throw new CmdException("删除数据失败");
        }
        cmdDataFlowContext.setResponseEntity(ResultVo.success());
    }
}
service-report/src/main/java/com/java110/report/cmd/reportCustomGroup/ListReportCustomGroupCmd.java
New file
@@ -0,0 +1,81 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.report.cmd.reportCustomGroup;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.annotation.Java110Cmd;
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.AbstractServiceCmdListener;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.dto.reportCustomGroup.ReportCustomGroupDto;
import com.java110.intf.report.IReportCustomGroupV1InnerServiceSMO;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.vo.ResultVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import java.util.ArrayList;
import java.util.List;
/**
 * 类表述:查询
 * 服务编码:reportCustomGroup.listReportCustomGroup
 * 请求路劲:/app/reportCustomGroup.ListReportCustomGroup
 * add by 吴学文 at 2021-11-09 13:30:41 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@Java110Cmd(serviceCode = "reportCustomGroup.listReportCustomGroup")
public class ListReportCustomGroupCmd extends AbstractServiceCmdListener {
    private static Logger logger = LoggerFactory.getLogger(ListReportCustomGroupCmd.class);
    @Autowired
    private IReportCustomGroupV1InnerServiceSMO reportCustomGroupV1InnerServiceSMOImpl;
    @Override
    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
        super.validatePageInfo(reqJson);
    }
    @Override
    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
        ReportCustomGroupDto reportCustomGroupDto = BeanConvertUtil.covertBean(reqJson, ReportCustomGroupDto.class);
        int count = reportCustomGroupV1InnerServiceSMOImpl.queryReportCustomGroupsCount(reportCustomGroupDto);
        List<ReportCustomGroupDto> reportCustomGroupDtos = null;
        if (count > 0) {
            reportCustomGroupDtos = reportCustomGroupV1InnerServiceSMOImpl.queryReportCustomGroups(reportCustomGroupDto);
        } else {
            reportCustomGroupDtos = new ArrayList<>();
        }
        ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, reportCustomGroupDtos);
        ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
        cmdDataFlowContext.setResponseEntity(responseEntity);
    }
}
service-report/src/main/java/com/java110/report/cmd/reportCustomGroup/SaveReportCustomGroupCmd.java
New file
@@ -0,0 +1,76 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.report.cmd.reportCustomGroup;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.annotation.Java110Cmd;
import com.java110.core.annotation.Java110Transactional;
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.AbstractServiceCmdListener;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.core.factory.GenerateCodeFactory;
import com.java110.intf.report.IReportCustomGroupV1InnerServiceSMO;
import com.java110.po.reportCustomGroup.ReportCustomGroupPo;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.vo.ResultVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * 类表述:保存
 * 服务编码:reportCustomGroup.saveReportCustomGroup
 * 请求路劲:/app/reportCustomGroup.SaveReportCustomGroup
 * add by 吴学文 at 2021-11-09 13:30:41 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@Java110Cmd(serviceCode = "reportCustomGroup.saveReportCustomGroup")
public class SaveReportCustomGroupCmd extends AbstractServiceCmdListener {
    private static Logger logger = LoggerFactory.getLogger(SaveReportCustomGroupCmd.class);
    public static final String CODE_PREFIX_ID = "10";
    @Autowired
    private IReportCustomGroupV1InnerServiceSMO reportCustomGroupV1InnerServiceSMOImpl;
    @Override
    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "name", "请求报文中未包含name");
        Assert.hasKeyAndValue(reqJson, "url", "请求报文中未包含url");
    }
    @Override
    @Java110Transactional
    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
        ReportCustomGroupPo reportCustomGroupPo = BeanConvertUtil.covertBean(reqJson, ReportCustomGroupPo.class);
        reportCustomGroupPo.setGroupId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID));
        int flag = reportCustomGroupV1InnerServiceSMOImpl.saveReportCustomGroup(reportCustomGroupPo);
        if (flag < 1) {
            throw new CmdException("保存数据失败");
        }
        cmdDataFlowContext.setResponseEntity(ResultVo.success());
    }
}
service-report/src/main/java/com/java110/report/cmd/reportCustomGroup/UpdateReportCustomGroupCmd.java
New file
@@ -0,0 +1,74 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.report.cmd.reportCustomGroup;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.annotation.Java110Cmd;
import com.java110.core.annotation.Java110Transactional;
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.AbstractServiceCmdListener;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.intf.report.IReportCustomGroupV1InnerServiceSMO;
import com.java110.po.reportCustomGroup.ReportCustomGroupPo;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.vo.ResultVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * 类表述:更新
 * 服务编码:reportCustomGroup.updateReportCustomGroup
 * 请求路劲:/app/reportCustomGroup.UpdateReportCustomGroup
 * add by 吴学文 at 2021-11-09 13:30:41 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@Java110Cmd(serviceCode = "reportCustomGroup.updateReportCustomGroup")
public class UpdateReportCustomGroupCmd extends AbstractServiceCmdListener {
    private static Logger logger = LoggerFactory.getLogger(UpdateReportCustomGroupCmd.class);
    @Autowired
    private IReportCustomGroupV1InnerServiceSMO reportCustomGroupV1InnerServiceSMOImpl;
    @Override
    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "groupId", "groupId不能为空");
        Assert.hasKeyAndValue(reqJson, "groupId", "groupId不能为空");
    }
    @Override
    @Java110Transactional
    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
        ReportCustomGroupPo reportCustomGroupPo = BeanConvertUtil.covertBean(reqJson, ReportCustomGroupPo.class);
        int flag = reportCustomGroupV1InnerServiceSMOImpl.updateReportCustomGroup(reportCustomGroupPo);
        if (flag < 1) {
            throw new CmdException("更新数据失败");
        }
        cmdDataFlowContext.setResponseEntity(ResultVo.success());
    }
}
service-report/src/main/java/com/java110/report/dao/IReportCustomComponentConditionV1ServiceDao.java
New file
@@ -0,0 +1,77 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
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;
/**
 * 类表述:
 * add by 吴学文 at 2021-11-09 13:33:12 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
public interface IReportCustomComponentConditionV1ServiceDao {
    /**
     * 保存 报表组件条件信息
     * @param info
     * @throws DAOException DAO异常
     */
    int saveReportCustomComponentConditionInfo(Map info) throws DAOException;
    /**
     * 查询报表组件条件信息(instance过程)
     * 根据bId 查询报表组件条件信息
     * @param info bId 信息
     * @return 报表组件条件信息
     * @throws DAOException DAO异常
     */
    List<Map> getReportCustomComponentConditionInfo(Map info) throws DAOException;
    /**
     * 修改报表组件条件信息
     * @param info 修改信息
     * @throws DAOException DAO异常
     */
    int updateReportCustomComponentConditionInfo(Map info) throws DAOException;
    /**
     * 查询报表组件条件总数
     *
     * @param info 报表组件条件信息
     * @return 报表组件条件数量
     */
    int queryReportCustomComponentConditionsCount(Map info);
}
service-report/src/main/java/com/java110/report/dao/IReportCustomComponentRelV1ServiceDao.java
New file
@@ -0,0 +1,77 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
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;
/**
 * 类表述:
 * add by 吴学文 at 2021-11-09 13:28:13 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
public interface IReportCustomComponentRelV1ServiceDao {
    /**
     * 保存 报表组件关系信息
     * @param info
     * @throws DAOException DAO异常
     */
    int saveReportCustomComponentRelInfo(Map info) throws DAOException;
    /**
     * 查询报表组件关系信息(instance过程)
     * 根据bId 查询报表组件关系信息
     * @param info bId 信息
     * @return 报表组件关系信息
     * @throws DAOException DAO异常
     */
    List<Map> getReportCustomComponentRelInfo(Map info) throws DAOException;
    /**
     * 修改报表组件关系信息
     * @param info 修改信息
     * @throws DAOException DAO异常
     */
    int updateReportCustomComponentRelInfo(Map info) throws DAOException;
    /**
     * 查询报表组件关系总数
     *
     * @param info 报表组件关系信息
     * @return 报表组件关系数量
     */
    int queryReportCustomComponentRelsCount(Map info);
}
service-report/src/main/java/com/java110/report/dao/IReportCustomGroupV1ServiceDao.java
New file
@@ -0,0 +1,77 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
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;
/**
 * 类表述:
 * add by 吴学文 at 2021-11-09 13:30:41 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
public interface IReportCustomGroupV1ServiceDao {
    /**
     * 保存 报表组信息
     * @param info
     * @throws DAOException DAO异常
     */
    int saveReportCustomGroupInfo(Map info) throws DAOException;
    /**
     * 查询报表组信息(instance过程)
     * 根据bId 查询报表组信息
     * @param info bId 信息
     * @return 报表组信息
     * @throws DAOException DAO异常
     */
    List<Map> getReportCustomGroupInfo(Map info) throws DAOException;
    /**
     * 修改报表组信息
     * @param info 修改信息
     * @throws DAOException DAO异常
     */
    int updateReportCustomGroupInfo(Map info) throws DAOException;
    /**
     * 查询报表组总数
     *
     * @param info 报表组信息
     * @return 报表组数量
     */
    int queryReportCustomGroupsCount(Map info);
}
service-report/src/main/java/com/java110/report/dao/impl/ReportCustomComponentConditionV1ServiceDaoImpl.java
New file
@@ -0,0 +1,112 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
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.IReportCustomComponentConditionV1ServiceDao;
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;
/**
 * 类表述:
 * add by 吴学文 at 2021-11-09 13:33:12 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@Service("reportCustomComponentConditionV1ServiceDaoImpl")
public class ReportCustomComponentConditionV1ServiceDaoImpl extends BaseServiceDao implements IReportCustomComponentConditionV1ServiceDao {
    private static Logger logger = LoggerFactory.getLogger(ReportCustomComponentConditionV1ServiceDaoImpl.class);
    /**
     * 保存报表组件条件信息 到 instance
     * @param info   bId 信息
     * @throws DAOException DAO异常
     */
    @Override
    public int saveReportCustomComponentConditionInfo(Map info) throws DAOException {
        logger.debug("保存 saveReportCustomComponentConditionInfo 入参 info : {}",info);
        int saveFlag = sqlSessionTemplate.insert("reportCustomComponentConditionV1ServiceDaoImpl.saveReportCustomComponentConditionInfo",info);
        return saveFlag;
    }
    /**
     * 查询报表组件条件信息(instance)
     * @param info bId 信息
     * @return List<Map>
     * @throws DAOException DAO异常
     */
    @Override
    public List<Map> getReportCustomComponentConditionInfo(Map info) throws DAOException {
        logger.debug("查询 getReportCustomComponentConditionInfo 入参 info : {}",info);
        List<Map> businessReportCustomComponentConditionInfos = sqlSessionTemplate.selectList("reportCustomComponentConditionV1ServiceDaoImpl.getReportCustomComponentConditionInfo",info);
        return businessReportCustomComponentConditionInfos;
    }
    /**
     * 修改报表组件条件信息
     * @param info 修改信息
     * @throws DAOException DAO异常
     */
    @Override
    public int updateReportCustomComponentConditionInfo(Map info) throws DAOException {
        logger.debug("修改 updateReportCustomComponentConditionInfo 入参 info : {}",info);
        int saveFlag = sqlSessionTemplate.update("reportCustomComponentConditionV1ServiceDaoImpl.updateReportCustomComponentConditionInfo",info);
        return saveFlag;
    }
     /**
     * 查询报表组件条件数量
     * @param info 报表组件条件信息
     * @return 报表组件条件数量
     */
    @Override
    public int queryReportCustomComponentConditionsCount(Map info) {
        logger.debug("查询 queryReportCustomComponentConditionsCount 入参 info : {}",info);
        List<Map> businessReportCustomComponentConditionInfos = sqlSessionTemplate.selectList("reportCustomComponentConditionV1ServiceDaoImpl.queryReportCustomComponentConditionsCount", info);
        if (businessReportCustomComponentConditionInfos.size() < 1) {
            return 0;
        }
        return Integer.parseInt(businessReportCustomComponentConditionInfos.get(0).get("count").toString());
    }
}
service-report/src/main/java/com/java110/report/dao/impl/ReportCustomComponentRelV1ServiceDaoImpl.java
New file
@@ -0,0 +1,112 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
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.IReportCustomComponentRelV1ServiceDao;
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;
/**
 * 类表述:
 * add by 吴学文 at 2021-11-09 13:28:13 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@Service("reportCustomComponentRelV1ServiceDaoImpl")
public class ReportCustomComponentRelV1ServiceDaoImpl extends BaseServiceDao implements IReportCustomComponentRelV1ServiceDao {
    private static Logger logger = LoggerFactory.getLogger(ReportCustomComponentRelV1ServiceDaoImpl.class);
    /**
     * 保存报表组件关系信息 到 instance
     * @param info   bId 信息
     * @throws DAOException DAO异常
     */
    @Override
    public int saveReportCustomComponentRelInfo(Map info) throws DAOException {
        logger.debug("保存 saveReportCustomComponentRelInfo 入参 info : {}",info);
        int saveFlag = sqlSessionTemplate.insert("reportCustomComponentRelV1ServiceDaoImpl.saveReportCustomComponentRelInfo",info);
        return saveFlag;
    }
    /**
     * 查询报表组件关系信息(instance)
     * @param info bId 信息
     * @return List<Map>
     * @throws DAOException DAO异常
     */
    @Override
    public List<Map> getReportCustomComponentRelInfo(Map info) throws DAOException {
        logger.debug("查询 getReportCustomComponentRelInfo 入参 info : {}",info);
        List<Map> businessReportCustomComponentRelInfos = sqlSessionTemplate.selectList("reportCustomComponentRelV1ServiceDaoImpl.getReportCustomComponentRelInfo",info);
        return businessReportCustomComponentRelInfos;
    }
    /**
     * 修改报表组件关系信息
     * @param info 修改信息
     * @throws DAOException DAO异常
     */
    @Override
    public int updateReportCustomComponentRelInfo(Map info) throws DAOException {
        logger.debug("修改 updateReportCustomComponentRelInfo 入参 info : {}",info);
        int saveFlag = sqlSessionTemplate.update("reportCustomComponentRelV1ServiceDaoImpl.updateReportCustomComponentRelInfo",info);
        return saveFlag;
    }
     /**
     * 查询报表组件关系数量
     * @param info 报表组件关系信息
     * @return 报表组件关系数量
     */
    @Override
    public int queryReportCustomComponentRelsCount(Map info) {
        logger.debug("查询 queryReportCustomComponentRelsCount 入参 info : {}",info);
        List<Map> businessReportCustomComponentRelInfos = sqlSessionTemplate.selectList("reportCustomComponentRelV1ServiceDaoImpl.queryReportCustomComponentRelsCount", info);
        if (businessReportCustomComponentRelInfos.size() < 1) {
            return 0;
        }
        return Integer.parseInt(businessReportCustomComponentRelInfos.get(0).get("count").toString());
    }
}
service-report/src/main/java/com/java110/report/dao/impl/ReportCustomGroupV1ServiceDaoImpl.java
New file
@@ -0,0 +1,112 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
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.IReportCustomGroupV1ServiceDao;
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;
/**
 * 类表述:
 * add by 吴学文 at 2021-11-09 13:30:41 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@Service("reportCustomGroupV1ServiceDaoImpl")
public class ReportCustomGroupV1ServiceDaoImpl extends BaseServiceDao implements IReportCustomGroupV1ServiceDao {
    private static Logger logger = LoggerFactory.getLogger(ReportCustomGroupV1ServiceDaoImpl.class);
    /**
     * 保存报表组信息 到 instance
     * @param info   bId 信息
     * @throws DAOException DAO异常
     */
    @Override
    public int saveReportCustomGroupInfo(Map info) throws DAOException {
        logger.debug("保存 saveReportCustomGroupInfo 入参 info : {}",info);
        int saveFlag = sqlSessionTemplate.insert("reportCustomGroupV1ServiceDaoImpl.saveReportCustomGroupInfo",info);
        return saveFlag;
    }
    /**
     * 查询报表组信息(instance)
     * @param info bId 信息
     * @return List<Map>
     * @throws DAOException DAO异常
     */
    @Override
    public List<Map> getReportCustomGroupInfo(Map info) throws DAOException {
        logger.debug("查询 getReportCustomGroupInfo 入参 info : {}",info);
        List<Map> businessReportCustomGroupInfos = sqlSessionTemplate.selectList("reportCustomGroupV1ServiceDaoImpl.getReportCustomGroupInfo",info);
        return businessReportCustomGroupInfos;
    }
    /**
     * 修改报表组信息
     * @param info 修改信息
     * @throws DAOException DAO异常
     */
    @Override
    public int updateReportCustomGroupInfo(Map info) throws DAOException {
        logger.debug("修改 updateReportCustomGroupInfo 入参 info : {}",info);
        int saveFlag = sqlSessionTemplate.update("reportCustomGroupV1ServiceDaoImpl.updateReportCustomGroupInfo",info);
        return saveFlag;
    }
     /**
     * 查询报表组数量
     * @param info 报表组信息
     * @return 报表组数量
     */
    @Override
    public int queryReportCustomGroupsCount(Map info) {
        logger.debug("查询 queryReportCustomGroupsCount 入参 info : {}",info);
        List<Map> businessReportCustomGroupInfos = sqlSessionTemplate.selectList("reportCustomGroupV1ServiceDaoImpl.queryReportCustomGroupsCount", info);
        if (businessReportCustomGroupInfos.size() < 1) {
            return 0;
        }
        return Integer.parseInt(businessReportCustomGroupInfos.get(0).get("count").toString());
    }
}
service-report/src/main/java/com/java110/report/smo/impl/ReportCustomComponentConditionV1InnerServiceSMOImpl.java
New file
@@ -0,0 +1,89 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.report.smo.impl;
import com.java110.report.dao.IReportCustomComponentConditionV1ServiceDao;
import com.java110.intf.report.IReportCustomComponentConditionV1InnerServiceSMO;
import com.java110.dto.reportCustomComponentCondition.ReportCustomComponentConditionDto;
import com.java110.po.reportCustomComponentCondition.ReportCustomComponentConditionPo;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.core.base.smo.BaseServiceSMO;
import com.java110.dto.user.UserDto;
import com.java110.dto.PageDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
/**
 * 类表述: 服务之前调用的接口实现类,不对外提供接口能力 只用于接口建调用
 * add by 吴学文 at 2021-11-09 13:33:12 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@RestController
public class ReportCustomComponentConditionV1InnerServiceSMOImpl extends BaseServiceSMO implements IReportCustomComponentConditionV1InnerServiceSMO {
    @Autowired
    private IReportCustomComponentConditionV1ServiceDao reportCustomComponentConditionV1ServiceDaoImpl;
    @Override
    public int saveReportCustomComponentCondition(@RequestBody  ReportCustomComponentConditionPo reportCustomComponentConditionPo) {
        int saveFlag = reportCustomComponentConditionV1ServiceDaoImpl.saveReportCustomComponentConditionInfo(BeanConvertUtil.beanCovertMap(reportCustomComponentConditionPo));
        return saveFlag;
    }
     @Override
    public int updateReportCustomComponentCondition(@RequestBody  ReportCustomComponentConditionPo reportCustomComponentConditionPo) {
        int saveFlag = reportCustomComponentConditionV1ServiceDaoImpl.updateReportCustomComponentConditionInfo(BeanConvertUtil.beanCovertMap(reportCustomComponentConditionPo));
        return saveFlag;
    }
     @Override
    public int deleteReportCustomComponentCondition(@RequestBody  ReportCustomComponentConditionPo reportCustomComponentConditionPo) {
       reportCustomComponentConditionPo.setStatusCd("1");
       int saveFlag = reportCustomComponentConditionV1ServiceDaoImpl.updateReportCustomComponentConditionInfo(BeanConvertUtil.beanCovertMap(reportCustomComponentConditionPo));
       return saveFlag;
    }
    @Override
    public List<ReportCustomComponentConditionDto> queryReportCustomComponentConditions(@RequestBody  ReportCustomComponentConditionDto reportCustomComponentConditionDto) {
        //校验是否传了 分页信息
        int page = reportCustomComponentConditionDto.getPage();
        if (page != PageDto.DEFAULT_PAGE) {
            reportCustomComponentConditionDto.setPage((page - 1) * reportCustomComponentConditionDto.getRow());
        }
        List<ReportCustomComponentConditionDto> reportCustomComponentConditions = BeanConvertUtil.covertBeanList(reportCustomComponentConditionV1ServiceDaoImpl.getReportCustomComponentConditionInfo(BeanConvertUtil.beanCovertMap(reportCustomComponentConditionDto)), ReportCustomComponentConditionDto.class);
        return reportCustomComponentConditions;
    }
    @Override
    public int queryReportCustomComponentConditionsCount(@RequestBody ReportCustomComponentConditionDto reportCustomComponentConditionDto) {
        return reportCustomComponentConditionV1ServiceDaoImpl.queryReportCustomComponentConditionsCount(BeanConvertUtil.beanCovertMap(reportCustomComponentConditionDto));    }
}
service-report/src/main/java/com/java110/report/smo/impl/ReportCustomComponentRelV1InnerServiceSMOImpl.java
New file
@@ -0,0 +1,89 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.report.smo.impl;
import com.java110.report.dao.IReportCustomComponentRelV1ServiceDao;
import com.java110.intf.report.IReportCustomComponentRelV1InnerServiceSMO;
import com.java110.dto.reportCustomComponentRel.ReportCustomComponentRelDto;
import com.java110.po.reportCustomComponentRel.ReportCustomComponentRelPo;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.core.base.smo.BaseServiceSMO;
import com.java110.dto.user.UserDto;
import com.java110.dto.PageDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
/**
 * 类表述: 服务之前调用的接口实现类,不对外提供接口能力 只用于接口建调用
 * add by 吴学文 at 2021-11-09 13:28:13 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@RestController
public class ReportCustomComponentRelV1InnerServiceSMOImpl extends BaseServiceSMO implements IReportCustomComponentRelV1InnerServiceSMO {
    @Autowired
    private IReportCustomComponentRelV1ServiceDao reportCustomComponentRelV1ServiceDaoImpl;
    @Override
    public int saveReportCustomComponentRel(@RequestBody  ReportCustomComponentRelPo reportCustomComponentRelPo) {
        int saveFlag = reportCustomComponentRelV1ServiceDaoImpl.saveReportCustomComponentRelInfo(BeanConvertUtil.beanCovertMap(reportCustomComponentRelPo));
        return saveFlag;
    }
     @Override
    public int updateReportCustomComponentRel(@RequestBody  ReportCustomComponentRelPo reportCustomComponentRelPo) {
        int saveFlag = reportCustomComponentRelV1ServiceDaoImpl.updateReportCustomComponentRelInfo(BeanConvertUtil.beanCovertMap(reportCustomComponentRelPo));
        return saveFlag;
    }
     @Override
    public int deleteReportCustomComponentRel(@RequestBody  ReportCustomComponentRelPo reportCustomComponentRelPo) {
       reportCustomComponentRelPo.setStatusCd("1");
       int saveFlag = reportCustomComponentRelV1ServiceDaoImpl.updateReportCustomComponentRelInfo(BeanConvertUtil.beanCovertMap(reportCustomComponentRelPo));
       return saveFlag;
    }
    @Override
    public List<ReportCustomComponentRelDto> queryReportCustomComponentRels(@RequestBody  ReportCustomComponentRelDto reportCustomComponentRelDto) {
        //校验是否传了 分页信息
        int page = reportCustomComponentRelDto.getPage();
        if (page != PageDto.DEFAULT_PAGE) {
            reportCustomComponentRelDto.setPage((page - 1) * reportCustomComponentRelDto.getRow());
        }
        List<ReportCustomComponentRelDto> reportCustomComponentRels = BeanConvertUtil.covertBeanList(reportCustomComponentRelV1ServiceDaoImpl.getReportCustomComponentRelInfo(BeanConvertUtil.beanCovertMap(reportCustomComponentRelDto)), ReportCustomComponentRelDto.class);
        return reportCustomComponentRels;
    }
    @Override
    public int queryReportCustomComponentRelsCount(@RequestBody ReportCustomComponentRelDto reportCustomComponentRelDto) {
        return reportCustomComponentRelV1ServiceDaoImpl.queryReportCustomComponentRelsCount(BeanConvertUtil.beanCovertMap(reportCustomComponentRelDto));    }
}
service-report/src/main/java/com/java110/report/smo/impl/ReportCustomGroupV1InnerServiceSMOImpl.java
New file
@@ -0,0 +1,89 @@
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.report.smo.impl;
import com.java110.report.dao.IReportCustomGroupV1ServiceDao;
import com.java110.intf.report.IReportCustomGroupV1InnerServiceSMO;
import com.java110.dto.reportCustomGroup.ReportCustomGroupDto;
import com.java110.po.reportCustomGroup.ReportCustomGroupPo;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.core.base.smo.BaseServiceSMO;
import com.java110.dto.user.UserDto;
import com.java110.dto.PageDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
/**
 * 类表述: 服务之前调用的接口实现类,不对外提供接口能力 只用于接口建调用
 * add by 吴学文 at 2021-11-09 13:30:41 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
 * 官网:http://www.homecommunity.cn
 * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
 * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
 */
@RestController
public class ReportCustomGroupV1InnerServiceSMOImpl extends BaseServiceSMO implements IReportCustomGroupV1InnerServiceSMO {
    @Autowired
    private IReportCustomGroupV1ServiceDao reportCustomGroupV1ServiceDaoImpl;
    @Override
    public int saveReportCustomGroup(@RequestBody  ReportCustomGroupPo reportCustomGroupPo) {
        int saveFlag = reportCustomGroupV1ServiceDaoImpl.saveReportCustomGroupInfo(BeanConvertUtil.beanCovertMap(reportCustomGroupPo));
        return saveFlag;
    }
     @Override
    public int updateReportCustomGroup(@RequestBody  ReportCustomGroupPo reportCustomGroupPo) {
        int saveFlag = reportCustomGroupV1ServiceDaoImpl.updateReportCustomGroupInfo(BeanConvertUtil.beanCovertMap(reportCustomGroupPo));
        return saveFlag;
    }
     @Override
    public int deleteReportCustomGroup(@RequestBody  ReportCustomGroupPo reportCustomGroupPo) {
       reportCustomGroupPo.setStatusCd("1");
       int saveFlag = reportCustomGroupV1ServiceDaoImpl.updateReportCustomGroupInfo(BeanConvertUtil.beanCovertMap(reportCustomGroupPo));
       return saveFlag;
    }
    @Override
    public List<ReportCustomGroupDto> queryReportCustomGroups(@RequestBody  ReportCustomGroupDto reportCustomGroupDto) {
        //校验是否传了 分页信息
        int page = reportCustomGroupDto.getPage();
        if (page != PageDto.DEFAULT_PAGE) {
            reportCustomGroupDto.setPage((page - 1) * reportCustomGroupDto.getRow());
        }
        List<ReportCustomGroupDto> reportCustomGroups = BeanConvertUtil.covertBeanList(reportCustomGroupV1ServiceDaoImpl.getReportCustomGroupInfo(BeanConvertUtil.beanCovertMap(reportCustomGroupDto)), ReportCustomGroupDto.class);
        return reportCustomGroups;
    }
    @Override
    public int queryReportCustomGroupsCount(@RequestBody ReportCustomGroupDto reportCustomGroupDto) {
        return reportCustomGroupV1ServiceDaoImpl.queryReportCustomGroupsCount(BeanConvertUtil.beanCovertMap(reportCustomGroupDto));    }
}