Browse Source

加入收据模板

java110 5 years ago
parent
commit
c871693f5e
16 changed files with 919 additions and 322 deletions
  1. 62 0
      java110-bean/src/main/java/com/java110/dto/feePrintPageTemplate/FeePrintPageTemplateDto.java
  2. 61 0
      java110-bean/src/main/java/com/java110/po/feePrintPageTemplate/FeePrintPageTemplatePo.java
  3. 81 0
      java110-db/src/main/resources/mapper/fee/FeePrintPageTemplateV1ServiceDaoImplMapper.xml
  4. 4 6
      java110-generator/src/main/java/com/java110/code/TableToJson.java
  5. 7 23
      java110-generator/src/main/java/com/java110/code/TableToJsonWeb.java
  6. 14 24
      java110-generator/src/main/resources/newBack/template_1.json
  7. 36 269
      java110-generator/src/main/resources/web/template_1.json
  8. 68 0
      java110-interface/src/main/java/com/java110/intf/fee/IFeePrintPageTemplateV1InnerServiceSMO.java
  9. 4 0
      service-fee/src/main/java/com/java110/fee/FeeServiceApplicationStart.java
  10. 70 0
      service-fee/src/main/java/com/java110/fee/cmd/feePrintPageTemplate/DeleteFeePrintPageTemplateCmd.java
  11. 84 0
      service-fee/src/main/java/com/java110/fee/cmd/feePrintPageTemplate/ListFeePrintPageTemplateCmd.java
  12. 76 0
      service-fee/src/main/java/com/java110/fee/cmd/feePrintPageTemplate/SaveFeePrintPageTemplateCmd.java
  13. 74 0
      service-fee/src/main/java/com/java110/fee/cmd/feePrintPageTemplate/UpdateFeePrintPageTemplateCmd.java
  14. 77 0
      service-fee/src/main/java/com/java110/fee/dao/IFeePrintPageTemplateV1ServiceDao.java
  15. 112 0
      service-fee/src/main/java/com/java110/fee/dao/impl/FeePrintPageTemplateV1ServiceDaoImpl.java
  16. 89 0
      service-fee/src/main/java/com/java110/fee/smo/impl/FeePrintPageTemplateV1InnerServiceSMOImpl.java

+ 62 - 0
java110-bean/src/main/java/com/java110/dto/feePrintPageTemplate/FeePrintPageTemplateDto.java

@@ -0,0 +1,62 @@
+package com.java110.dto.feePrintPageTemplate;
+
+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 FeePrintPageTemplateDto extends PageDto implements Serializable {
+
+    private String name;
+private String templateId;
+private String url;
+
+
+    private Date createTime;
+
+    private String statusCd = "0";
+
+
+    public String getName() {
+        return name;
+    }
+public void setName(String name) {
+        this.name = name;
+    }
+public String getTemplateId() {
+        return templateId;
+    }
+public void setTemplateId(String templateId) {
+        this.templateId = templateId;
+    }
+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;
+    }
+}

+ 61 - 0
java110-bean/src/main/java/com/java110/po/feePrintPageTemplate/FeePrintPageTemplatePo.java

@@ -0,0 +1,61 @@
+/*
+ * 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.feePrintPageTemplate;
+
+import java.io.Serializable;
+import java.util.Date;
+/**
+ * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体
+ * add by 吴学文 at 2021-09-16 23:10:01 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 FeePrintPageTemplatePo implements Serializable {
+
+    private String name;
+private String statusCd = "0";
+private String templateId;
+private String url;
+public String getName() {
+        return name;
+    }
+public void setName(String name) {
+        this.name = name;
+    }
+public String getStatusCd() {
+        return statusCd;
+    }
+public void setStatusCd(String statusCd) {
+        this.statusCd = statusCd;
+    }
+public String getTemplateId() {
+        return templateId;
+    }
+public void setTemplateId(String templateId) {
+        this.templateId = templateId;
+    }
+public String getUrl() {
+        return url;
+    }
+public void setUrl(String url) {
+        this.url = url;
+    }
+
+
+
+}

+ 81 - 0
java110-db/src/main/resources/mapper/fee/FeePrintPageTemplateV1ServiceDaoImplMapper.xml

@@ -0,0 +1,81 @@
+<?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="feePrintPageTemplateV1ServiceDaoImpl">
+    <!-- 保存收据模板信息 add by wuxw 2018-07-03 -->
+    <insert id="saveFeePrintPageTemplateInfo" parameterType="Map">
+        insert into fee_print_page_template(
+        name,template_id,url
+        ) values (
+        #{name},#{templateId},#{url}
+        )
+    </insert>
+
+
+    <!-- 查询收据模板信息 add by wuxw 2018-07-03 -->
+    <select id="getFeePrintPageTemplateInfo" parameterType="Map" resultType="Map">
+        select t.name,t.status_cd,t.status_cd statusCd,t.template_id,t.template_id templateId,t.url
+        from fee_print_page_template t
+        where 1 =1
+        <if test="name !=null and name != ''">
+            and t.name= #{name}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="templateId !=null and templateId != ''">
+            and t.template_id= #{templateId}
+        </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="updateFeePrintPageTemplateInfo" parameterType="Map">
+        update fee_print_page_template 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="url !=null and url != ''">
+            , t.url= #{url}
+        </if>
+        where 1=1
+        <if test="templateId !=null and templateId != ''">
+            and t.template_id= #{templateId}
+        </if>
+
+    </update>
+
+    <!-- 查询收据模板数量 add by wuxw 2018-07-03 -->
+    <select id="queryFeePrintPageTemplatesCount" parameterType="Map" resultType="Map">
+        select count(1) count
+        from fee_print_page_template t
+        where 1 =1
+        <if test="name !=null and name != ''">
+            and t.name= #{name}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="templateId !=null and templateId != ''">
+            and t.template_id= #{templateId}
+        </if>
+        <if test="url !=null and url != ''">
+            and t.url= #{url}
+        </if>
+
+
+    </select>
+
+</mapper>

+ 4 - 6
java110-generator/src/main/java/com/java110/code/TableToJson.java

@@ -7,12 +7,10 @@ import com.java110.utils.util.StringUtil;
 public class TableToJson {
 
     //show create table c_orders  用这个语句获取
-    public static final String createTableSql = "CREATE TABLE `fee_print_page` (\n" +
-            "  `page_id` varchar(30) NOT NULL COMMENT '页面ID',\n" +
-            "  `page_name` varchar(128) NOT NULL COMMENT '名称',\n" +
-            "  `community_id` varchar(30) NOT NULL COMMENT '小区ID',\n" +
-            "  `page_url` varchar(512) NOT NULL COMMENT '收据页面',\n" +
-            "   state varchar(12) not null default 'F' comment '状态 T 有效 F为无效',\n" +
+    public static final String createTableSql = "CREATE TABLE `fee_print_page_template` (\n" +
+            "  `template_id` varchar(30) NOT NULL COMMENT '页面ID',\n" +
+            "  `name` varchar(128) NOT NULL COMMENT '名称',\n" +
+            "  `url` varchar(512) NOT NULL COMMENT '收据页面',\n" +
             "  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',\n" +
             "  `status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态 1表示 失效 0 有效'\n" +
             ")";

+ 7 - 23
java110-generator/src/main/java/com/java110/code/TableToJsonWeb.java

@@ -7,30 +7,14 @@ import com.java110.utils.util.StringUtil;
 public class TableToJsonWeb {
 
     //show create table c_orders  用这个语句获取
-    public static final String createTableSql = "CREATE TABLE `building_room` (\n" +
-            "  `room_id` varchar(30) NOT NULL COMMENT '房屋ID',\n" +
-            "  `b_id` varchar(30) NOT NULL COMMENT '业务Id',\n" +
-            "  `room_num` varchar(12) NOT NULL COMMENT '房屋编号',\n" +
-            "  `unit_id` varchar(30) NOT NULL COMMENT '单元ID',\n" +
-            "  `layer` int(11) NOT NULL COMMENT '层数',\n" +
-            "  `section` int(11) DEFAULT NULL COMMENT '室',\n" +
-            "  `apartment` varchar(20) NOT NULL COMMENT '户型',\n" +
-            "  `built_up_area` decimal(6,2) NOT NULL COMMENT '建筑面积',\n" +
-            "  `fee_coefficient` decimal(12,2) NOT NULL DEFAULT '1.00' COMMENT '算费系数',\n" +
-            "  `user_id` varchar(30) NOT NULL COMMENT '用户ID',\n" +
-            "  `remark` varchar(200) DEFAULT NULL COMMENT '备注',\n" +
+    public static final String createTableSql = "CREATE TABLE `fee_print_page` (\n" +
+            "  `page_id` varchar(30) NOT NULL COMMENT '页面ID',\n" +
+            "  `page_name` varchar(128) NOT NULL COMMENT '名称',\n" +
+            "  `community_id` varchar(30) NOT NULL COMMENT '小区ID',\n" +
+            "  `page_url` varchar(512) NOT NULL COMMENT '收据页面',\n" +
+            "  `state` varchar(12) NOT NULL DEFAULT 'F' COMMENT '状态 T 有效 F为无效',\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" +
-            "  `state` varchar(4) NOT NULL COMMENT '房屋状态,如房屋出售等,请查看state 表',\n" +
-            "  `community_id` varchar(30) DEFAULT NULL COMMENT '小区ID',\n" +
-            "  `room_type` varchar(12) NOT NULL DEFAULT '1010301' COMMENT '房屋类型',\n" +
-            "  `room_sub_type` varchar(12) NOT NULL DEFAULT '110' COMMENT '房屋类型 110 住宅房屋,119 办公室 120 宿舍',\n" +
-            "  `room_area` decimal(6,2) NOT NULL COMMENT '室内面积',\n" +
-            "  `room_rent` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '租金',\n" +
-            "  UNIQUE KEY `room_id` (`room_id`) USING BTREE,\n" +
-            "  UNIQUE KEY `idx_room_id` (`room_id`) USING BTREE,\n" +
-            "  KEY `idx_room_b_id` (`b_id`) USING BTREE,\n" +
-            "  KEY `i_br_unit_id` (`unit_id`)\n" +
+            "  `status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态 1表示 失效 0 有效'\n" +
             ")";
 
     public static void main(String[] args) {

+ 14 - 24
java110-generator/src/main/resources/newBack/template_1.json

@@ -1,36 +1,26 @@
 {
+  "name": "feePrintPageTemplate",
+  "shareColumn": "template_id",
+  "id": "templateId",
+  "shareName": "fee",
+  "autoMove": true,
+  "desc": "收据模板",
+  "shareParam": "templateId",
+  "tableName": "fee_print_page_template",
   "param": {
-    "pageUrl": "page_url",
+    "name": "name",
     "statusCd": "status_cd",
-    "state": "state",
-    "pageId": "page_id",
-    "communityId": "community_id",
-    "pageName": "page_name"
+    "templateId": "template_id",
+    "url": "url"
   },
-  "name": "feePrintPage",
-  "shareColumn": "community_id",
-  "id": "pageId",
-  "shareName": "fee",
-  "autoMove": true,
   "required": [
     {
       "msg": "名称不能为空",
-      "code": "pageName"
-    },
-    {
-      "msg": "小区ID不能为空",
-      "code": "communityId"
+      "code": "name"
     },
     {
       "msg": "收据页面不能为空",
-      "code": "pageUrl"
-    },
-    {
-      "msg": "state不能为空",
-      "code": "state"
+      "code": "url"
     }
-  ],
-  "desc": "收据模板",
-  "shareParam": "communityId",
-  "tableName": "fee_print_page"
+  ]
 }

+ 36 - 269
java110-generator/src/main/resources/web/template_1.json

@@ -1,150 +1,43 @@
 {
-  "templateKeyName": "",
-  "templateName": "",
-  "columns": [
-    {
-      "hasDefaultValue": false,
-      "limitParam": "30",
-      "code": "roomId",
-      "limitErrInfo": "房屋ID不能超过30",
-      "cnCode": "房屋ID",
-      "limit": "maxLength",
-      "show": true,
-      "inputType": "input",
-      "required": true,
-      "desc": "必填,房屋ID"
-    },
-    {
-      "hasDefaultValue": false,
-      "limitParam": "12",
-      "code": "roomNum",
-      "limitErrInfo": "房屋编号不能超过12",
-      "cnCode": "房屋编号",
-      "limit": "maxLength",
-      "show": true,
-      "inputType": "input",
-      "required": true,
-      "desc": "必填,房屋编号"
-    },
-    {
-      "hasDefaultValue": false,
-      "limitParam": "30",
-      "code": "unitId",
-      "limitErrInfo": "单元ID不能超过30",
-      "cnCode": "单元ID",
-      "limit": "maxLength",
-      "show": true,
-      "inputType": "input",
-      "required": true,
-      "desc": "必填,单元ID"
-    },
-    {
-      "hasDefaultValue": false,
-      "limitParam": "11",
-      "code": "layer",
-      "limitErrInfo": "层数不能超过11",
-      "cnCode": "层数",
-      "limit": "maxLength",
-      "show": true,
-      "inputType": "input",
-      "required": true,
-      "desc": "必填,层数"
-    },
-    {
-      "hasDefaultValue": false,
-      "limitParam": "11",
-      "code": "section",
-      "limitErrInfo": "室不能超过11",
-      "cnCode": "室",
-      "limit": "maxLength",
-      "show": true,
-      "inputType": "input",
-      "required": true,
-      "desc": "室"
-    },
-    {
-      "hasDefaultValue": false,
-      "limitParam": "20",
-      "code": "apartment",
-      "limitErrInfo": "户型不能超过20",
-      "cnCode": "户型",
-      "limit": "maxLength",
-      "show": true,
-      "inputType": "input",
-      "required": true,
-      "desc": "必填,户型"
-    },
-    {
-      "hasDefaultValue": false,
-      "limitParam": "6",
-      "code": "builtUpArea",
-      "limitErrInfo": "建筑面积不能超过6",
-      "cnCode": "建筑面积",
-      "limit": "maxLength",
-      "show": true,
-      "inputType": "input",
-      "required": true,
-      "desc": "必填,建筑面积"
-    },
-    {
-      "hasDefaultValue": false,
-      "limitParam": "12",
-      "code": "feeCoefficient",
-      "limitErrInfo": "算费系数不能超过12",
-      "cnCode": "算费系数",
-      "limit": "maxLength",
-      "show": true,
-      "inputType": "input",
-      "required": true,
-      "desc": "必填,算费系数"
-    },
+  "templateName":"收据模板",
+  "directories": "property",
+  "templateCode":"feePrintPage",
+  "templateKey":"pageId",
+  "templateKeyName":"收据ID",
+  "searchCode": "pageId",
+  "searchName": "收据ID",
+  "conditions": [
     {
-      "hasDefaultValue": false,
-      "limitParam": "30",
-      "code": "userId",
-      "limitErrInfo": "用户ID不能超过30",
-      "cnCode": "用户ID",
-      "limit": "maxLength",
-      "show": true,
-      "inputType": "input",
-      "required": true,
-      "desc": "必填,用户ID"
+      "whereCondition": "equal",
+      "code": "pageId",
+      "name": "页面ID",
+      "inputType": "input"
     },
     {
-      "hasDefaultValue": false,
-      "limitParam": "200",
-      "code": "remark",
-      "limitErrInfo": "备注不能超过200",
-      "cnCode": "备注",
-      "limit": "maxLength",
-      "show": true,
-      "inputType": "input",
-      "required": true,
-      "desc": "备注"
+      "whereCondition": "equal",
+      "code": "pageName",
+      "name": "名称",
+      "inputType": "input"
     },
     {
-      "hasDefaultValue": false,
-      "limitParam": "2",
-      "code": "statusCd",
-      "limitErrInfo": "数据状态不能超过2",
-      "cnCode": "数据状态",
-      "limit": "maxLength",
-      "show": true,
-      "inputType": "input",
-      "required": true,
-      "desc": "必填,数据状态"
-    },
+      "whereCondition": "equal",
+      "code": "state",
+      "name": "状态",
+      "inputType": "input"
+    }
+  ],
+  "columns": [
     {
       "hasDefaultValue": false,
-      "limitParam": "4",
-      "code": "state",
-      "limitErrInfo": "房屋状态不能超过4",
-      "cnCode": "房屋状态",
+      "limitParam": "128",
+      "code": "pageName",
+      "limitErrInfo": "名称不能超过128",
+      "cnCode": "名称",
       "limit": "maxLength",
       "show": true,
       "inputType": "input",
       "required": true,
-      "desc": "必填,房屋状态"
+      "desc": "必填,名称"
     },
     {
       "hasDefaultValue": false,
@@ -156,146 +49,20 @@
       "show": true,
       "inputType": "input",
       "required": true,
-      "desc": "小区ID"
-    },
-    {
-      "hasDefaultValue": false,
-      "limitParam": "12",
-      "code": "roomType",
-      "limitErrInfo": "房屋类型不能超过12",
-      "cnCode": "房屋类型",
-      "limit": "maxLength",
-      "show": true,
-      "inputType": "input",
-      "required": true,
-      "desc": "必填,房屋类型"
-    },
-    {
-      "hasDefaultValue": false,
-      "limitParam": "12",
-      "code": "roomSubType",
-      "limitErrInfo": "房屋类型不能超过12",
-      "cnCode": "房屋类型",
-      "limit": "maxLength",
-      "show": true,
-      "inputType": "input",
-      "required": true,
-      "desc": "必填,房屋类型"
-    },
-    {
-      "hasDefaultValue": false,
-      "limitParam": "6",
-      "code": "roomArea",
-      "limitErrInfo": "室内面积不能超过6",
-      "cnCode": "室内面积",
-      "limit": "maxLength",
-      "show": true,
-      "inputType": "input",
-      "required": true,
-      "desc": "必填,室内面积"
+      "desc": "必填,小区ID"
     },
     {
       "hasDefaultValue": false,
-      "limitParam": "10",
-      "code": "roomRent",
-      "limitErrInfo": "租金不能超过10",
-      "cnCode": "租金",
+      "limitParam": "512",
+      "code": "pageUrl",
+      "limitErrInfo": "收据页面不能超过512",
+      "cnCode": "收据页面",
       "limit": "maxLength",
       "show": true,
       "inputType": "input",
       "required": true,
-      "desc": "必填,租金"
-    }
-  ],
-  "searchName": "",
-  "directories": "",
-  "searchCode": "",
-  "templateCode": "",
-  "conditions": [
-    {
-      "whereCondition": "equal",
-      "code": "roomId",
-      "name": "房屋ID",
-      "inputType": "input"
-    },
-    {
-      "whereCondition": "equal",
-      "code": "roomNum",
-      "name": "房屋编号",
-      "inputType": "input"
-    },
-    {
-      "whereCondition": "equal",
-      "code": "unitId",
-      "name": "单元ID",
-      "inputType": "input"
-    },
-    {
-      "whereCondition": "equal",
-      "code": "layer",
-      "name": "层数",
-      "inputType": "input"
-    },
-    {
-      "whereCondition": "equal",
-      "code": "apartment",
-      "name": "户型",
-      "inputType": "input"
-    },
-    {
-      "whereCondition": "equal",
-      "code": "builtUpArea",
-      "name": "建筑面积",
-      "inputType": "input"
-    },
-    {
-      "whereCondition": "equal",
-      "code": "feeCoefficient",
-      "name": "算费系数",
-      "inputType": "input"
-    },
-    {
-      "whereCondition": "equal",
-      "code": "userId",
-      "name": "用户ID",
-      "inputType": "input"
-    },
-    {
-      "whereCondition": "equal",
-      "code": "statusCd",
-      "name": "数据状态",
-      "inputType": "input"
-    },
-    {
-      "whereCondition": "equal",
-      "code": "state",
-      "name": "房屋状态",
-      "inputType": "input"
-    },
-    {
-      "whereCondition": "equal",
-      "code": "roomType",
-      "name": "房屋类型",
-      "inputType": "input"
-    },
-    {
-      "whereCondition": "equal",
-      "code": "roomSubType",
-      "name": "房屋类型",
-      "inputType": "input"
-    },
-    {
-      "whereCondition": "equal",
-      "code": "roomArea",
-      "name": "室内面积",
-      "inputType": "input"
-    },
-    {
-      "whereCondition": "equal",
-      "code": "roomRent",
-      "name": "租金",
-      "inputType": "input"
+      "desc": "必填,收据页面"
     }
-  ],
-  "templateKey": ""
+  ]
+
 }

+ 68 - 0
java110-interface/src/main/java/com/java110/intf/fee/IFeePrintPageTemplateV1InnerServiceSMO.java

@@ -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.fee;
+
+import com.java110.config.feign.FeignConfiguration;
+import com.java110.dto.feePrintPageTemplate.FeePrintPageTemplateDto;
+import com.java110.po.feePrintPageTemplate.FeePrintPageTemplatePo;
+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-09-16 23:10:01 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 = "fee-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/feePrintPageTemplateV1Api")
+public interface IFeePrintPageTemplateV1InnerServiceSMO {
+
+
+    @RequestMapping(value = "/saveFeePrintPageTemplate", method = RequestMethod.POST)
+    public int saveFeePrintPageTemplate(@RequestBody  FeePrintPageTemplatePo feePrintPageTemplatePo);
+
+    @RequestMapping(value = "/updateFeePrintPageTemplate", method = RequestMethod.POST)
+    public int updateFeePrintPageTemplate(@RequestBody  FeePrintPageTemplatePo feePrintPageTemplatePo);
+
+    @RequestMapping(value = "/deleteFeePrintPageTemplate", method = RequestMethod.POST)
+    public int deleteFeePrintPageTemplate(@RequestBody  FeePrintPageTemplatePo feePrintPageTemplatePo);
+
+    /**
+     * <p>查询小区楼信息</p>
+     *
+     *
+     * @param feePrintPageTemplateDto 数据对象分享
+     * @return FeePrintPageTemplateDto 对象数据
+     */
+    @RequestMapping(value = "/queryFeePrintPageTemplates", method = RequestMethod.POST)
+    List<FeePrintPageTemplateDto> queryFeePrintPageTemplates(@RequestBody FeePrintPageTemplateDto feePrintPageTemplateDto);
+
+    /**
+     * 查询<p>小区楼</p>总记录数
+     *
+     * @param feePrintPageTemplateDto 数据对象分享
+     * @return 小区下的小区楼记录数
+     */
+    @RequestMapping(value = "/queryFeePrintPageTemplatesCount", method = RequestMethod.POST)
+    int queryFeePrintPageTemplatesCount(@RequestBody FeePrintPageTemplateDto feePrintPageTemplateDto);
+}

+ 4 - 0
service-fee/src/main/java/com/java110/fee/FeeServiceApplicationStart.java

@@ -1,7 +1,9 @@
 package com.java110.fee;
 
+import com.java110.core.annotation.Java110CmdDiscovery;
 import com.java110.core.annotation.Java110ListenerDiscovery;
 import com.java110.core.client.RestTemplate;
+import com.java110.core.event.cmd.ServiceCmdEventPublishing;
 import com.java110.core.event.service.BusinessServiceDataFlowEventPublishing;
 import com.java110.service.init.ServiceStartInit;
 import org.slf4j.Logger;
@@ -33,6 +35,8 @@ import java.nio.charset.Charset;
 @EnableDiscoveryClient
 @Java110ListenerDiscovery(listenerPublishClass = BusinessServiceDataFlowEventPublishing.class,
         basePackages = {"com.java110.fee.listener"})
+@Java110CmdDiscovery(cmdPublishClass = ServiceCmdEventPublishing.class,
+        basePackages = {"com.java110.fee.cmd"})
 @EnableFeignClients(basePackages = {"com.java110.intf.user",
         "com.java110.intf.order",
         "com.java110.intf.community",

+ 70 - 0
service-fee/src/main/java/com/java110/fee/cmd/feePrintPageTemplate/DeleteFeePrintPageTemplateCmd.java

@@ -0,0 +1,70 @@
+/*
+ * 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.fee.cmd.feePrintPageTemplate;
+
+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.fee.IFeePrintPageTemplateV1InnerServiceSMO;
+import com.java110.po.feePrintPageTemplate.FeePrintPageTemplatePo;
+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;
+
+/**
+ * 类表述:删除
+ * 服务编码:feePrintPageTemplate.deleteFeePrintPageTemplate
+ * 请求路劲:/app/feePrintPageTemplate.DeleteFeePrintPageTemplate
+ * add by 吴学文 at 2021-09-16 23:10:01 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 = "feePrintPageTemplate.deleteFeePrintPageTemplate")
+public class DeleteFeePrintPageTemplateCmd extends AbstractServiceCmdListener {
+    private static Logger logger = LoggerFactory.getLogger(DeleteFeePrintPageTemplateCmd.class);
+
+    @Autowired
+    private IFeePrintPageTemplateV1InnerServiceSMO feePrintPageTemplateV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "templateId", "templateId不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+        FeePrintPageTemplatePo feePrintPageTemplatePo = BeanConvertUtil.covertBean(reqJson, FeePrintPageTemplatePo.class);
+        int flag = feePrintPageTemplateV1InnerServiceSMOImpl.deleteFeePrintPageTemplate(feePrintPageTemplatePo);
+
+        if (flag < 1) {
+            throw new CmdException("删除数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 84 - 0
service-fee/src/main/java/com/java110/fee/cmd/feePrintPageTemplate/ListFeePrintPageTemplateCmd.java

@@ -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.fee.cmd.feePrintPageTemplate;
+
+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.fee.IFeePrintPageTemplateV1InnerServiceSMO;
+import com.java110.po.feePrintPageTemplate.FeePrintPageTemplatePo;
+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.feePrintPageTemplate.FeePrintPageTemplateDto;
+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;
+
+
+/**
+ * 类表述:查询
+ * 服务编码:feePrintPageTemplate.listFeePrintPageTemplate
+ * 请求路劲:/app/feePrintPageTemplate.ListFeePrintPageTemplate
+ * add by 吴学文 at 2021-09-16 23:10:01 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 = "feePrintPageTemplate.listFeePrintPageTemplate")
+public class ListFeePrintPageTemplateCmd extends AbstractServiceCmdListener {
+
+  private static Logger logger = LoggerFactory.getLogger(ListFeePrintPageTemplateCmd.class);
+    @Autowired
+    private IFeePrintPageTemplateV1InnerServiceSMO feePrintPageTemplateV1InnerServiceSMOImpl;
+
+    @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 {
+
+           FeePrintPageTemplateDto feePrintPageTemplateDto = BeanConvertUtil.covertBean(reqJson, FeePrintPageTemplateDto.class);
+
+           int count = feePrintPageTemplateV1InnerServiceSMOImpl.queryFeePrintPageTemplatesCount(feePrintPageTemplateDto);
+
+           List<FeePrintPageTemplateDto> feePrintPageTemplateDtos = null;
+
+           if (count > 0) {
+               feePrintPageTemplateDtos = feePrintPageTemplateV1InnerServiceSMOImpl.queryFeePrintPageTemplates(feePrintPageTemplateDto);
+           } else {
+               feePrintPageTemplateDtos = new ArrayList<>();
+           }
+
+           ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, feePrintPageTemplateDtos);
+
+           ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
+
+           cmdDataFlowContext.setResponseEntity(responseEntity);
+    }
+}

+ 76 - 0
service-fee/src/main/java/com/java110/fee/cmd/feePrintPageTemplate/SaveFeePrintPageTemplateCmd.java

@@ -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.fee.cmd.feePrintPageTemplate;
+
+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.fee.IFeePrintPageTemplateV1InnerServiceSMO;
+import com.java110.po.feePrintPageTemplate.FeePrintPageTemplatePo;
+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;
+
+/**
+ * 类表述:保存
+ * 服务编码:feePrintPageTemplate.saveFeePrintPageTemplate
+ * 请求路劲:/app/feePrintPageTemplate.SaveFeePrintPageTemplate
+ * add by 吴学文 at 2021-09-16 23:10:01 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 = "feePrintPageTemplate.saveFeePrintPageTemplate")
+public class SaveFeePrintPageTemplateCmd extends AbstractServiceCmdListener {
+
+    private static Logger logger = LoggerFactory.getLogger(SaveFeePrintPageTemplateCmd.class);
+
+    public static final String CODE_PREFIX_ID = "10";
+
+    @Autowired
+    private IFeePrintPageTemplateV1InnerServiceSMO feePrintPageTemplateV1InnerServiceSMOImpl;
+
+    @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 {
+
+        FeePrintPageTemplatePo feePrintPageTemplatePo = BeanConvertUtil.covertBean(reqJson, FeePrintPageTemplatePo.class);
+        feePrintPageTemplatePo.setTemplateId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID));
+        int flag = feePrintPageTemplateV1InnerServiceSMOImpl.saveFeePrintPageTemplate(feePrintPageTemplatePo);
+
+        if (flag < 1) {
+            throw new CmdException("保存数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 74 - 0
service-fee/src/main/java/com/java110/fee/cmd/feePrintPageTemplate/UpdateFeePrintPageTemplateCmd.java

@@ -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.fee.cmd.feePrintPageTemplate;
+
+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.fee.IFeePrintPageTemplateV1InnerServiceSMO;
+import com.java110.po.feePrintPageTemplate.FeePrintPageTemplatePo;
+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;
+
+
+/**
+ * 类表述:更新
+ * 服务编码:feePrintPageTemplate.updateFeePrintPageTemplate
+ * 请求路劲:/app/feePrintPageTemplate.UpdateFeePrintPageTemplate
+ * add by 吴学文 at 2021-09-16 23:10:01 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 = "feePrintPageTemplate.updateFeePrintPageTemplate")
+public class UpdateFeePrintPageTemplateCmd extends AbstractServiceCmdListener {
+
+    private static Logger logger = LoggerFactory.getLogger(UpdateFeePrintPageTemplateCmd.class);
+
+
+    @Autowired
+    private IFeePrintPageTemplateV1InnerServiceSMO feePrintPageTemplateV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "templateId", "templateId不能为空");
+        Assert.hasKeyAndValue(reqJson, "templateId", "templateId不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+        FeePrintPageTemplatePo feePrintPageTemplatePo = BeanConvertUtil.covertBean(reqJson, FeePrintPageTemplatePo.class);
+        int flag = feePrintPageTemplateV1InnerServiceSMOImpl.updateFeePrintPageTemplate(feePrintPageTemplatePo);
+
+        if (flag < 1) {
+            throw new CmdException("更新数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 77 - 0
service-fee/src/main/java/com/java110/fee/dao/IFeePrintPageTemplateV1ServiceDao.java

@@ -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.fee.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-09-16 23:10:01 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 IFeePrintPageTemplateV1ServiceDao {
+
+
+    /**
+     * 保存 收据模板信息
+     * @param info
+     * @throws DAOException DAO异常
+     */
+    int saveFeePrintPageTemplateInfo(Map info) throws DAOException;
+
+
+
+
+    /**
+     * 查询收据模板信息(instance过程)
+     * 根据bId 查询收据模板信息
+     * @param info bId 信息
+     * @return 收据模板信息
+     * @throws DAOException DAO异常
+     */
+    List<Map> getFeePrintPageTemplateInfo(Map info) throws DAOException;
+
+
+
+    /**
+     * 修改收据模板信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    int updateFeePrintPageTemplateInfo(Map info) throws DAOException;
+
+
+    /**
+     * 查询收据模板总数
+     *
+     * @param info 收据模板信息
+     * @return 收据模板数量
+     */
+    int queryFeePrintPageTemplatesCount(Map info);
+
+}

+ 112 - 0
service-fee/src/main/java/com/java110/fee/dao/impl/FeePrintPageTemplateV1ServiceDaoImpl.java

@@ -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.fee.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.fee.dao.IFeePrintPageTemplateV1ServiceDao;
+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-09-16 23:10:01 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("feePrintPageTemplateV1ServiceDaoImpl")
+public class FeePrintPageTemplateV1ServiceDaoImpl extends BaseServiceDao implements IFeePrintPageTemplateV1ServiceDao {
+
+    private static Logger logger = LoggerFactory.getLogger(FeePrintPageTemplateV1ServiceDaoImpl.class);
+
+
+
+
+
+    /**
+     * 保存收据模板信息 到 instance
+     * @param info   bId 信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int saveFeePrintPageTemplateInfo(Map info) throws DAOException {
+        logger.debug("保存 saveFeePrintPageTemplateInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("feePrintPageTemplateV1ServiceDaoImpl.saveFeePrintPageTemplateInfo",info);
+
+        return saveFlag;
+    }
+
+
+    /**
+     * 查询收据模板信息(instance)
+     * @param info bId 信息
+     * @return List<Map>
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public List<Map> getFeePrintPageTemplateInfo(Map info) throws DAOException {
+        logger.debug("查询 getFeePrintPageTemplateInfo 入参 info : {}",info);
+
+        List<Map> businessFeePrintPageTemplateInfos = sqlSessionTemplate.selectList("feePrintPageTemplateV1ServiceDaoImpl.getFeePrintPageTemplateInfo",info);
+
+        return businessFeePrintPageTemplateInfos;
+    }
+
+
+    /**
+     * 修改收据模板信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int updateFeePrintPageTemplateInfo(Map info) throws DAOException {
+        logger.debug("修改 updateFeePrintPageTemplateInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.update("feePrintPageTemplateV1ServiceDaoImpl.updateFeePrintPageTemplateInfo",info);
+
+        return saveFlag;
+    }
+
+     /**
+     * 查询收据模板数量
+     * @param info 收据模板信息
+     * @return 收据模板数量
+     */
+    @Override
+    public int queryFeePrintPageTemplatesCount(Map info) {
+        logger.debug("查询 queryFeePrintPageTemplatesCount 入参 info : {}",info);
+
+        List<Map> businessFeePrintPageTemplateInfos = sqlSessionTemplate.selectList("feePrintPageTemplateV1ServiceDaoImpl.queryFeePrintPageTemplatesCount", info);
+        if (businessFeePrintPageTemplateInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessFeePrintPageTemplateInfos.get(0).get("count").toString());
+    }
+
+
+}

+ 89 - 0
service-fee/src/main/java/com/java110/fee/smo/impl/FeePrintPageTemplateV1InnerServiceSMOImpl.java

@@ -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.fee.smo.impl;
+
+
+import com.java110.fee.dao.IFeePrintPageTemplateV1ServiceDao;
+import com.java110.intf.fee.IFeePrintPageTemplateV1InnerServiceSMO;
+import com.java110.dto.feePrintPageTemplate.FeePrintPageTemplateDto;
+import com.java110.po.feePrintPageTemplate.FeePrintPageTemplatePo;
+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-09-16 23:10:01 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 FeePrintPageTemplateV1InnerServiceSMOImpl extends BaseServiceSMO implements IFeePrintPageTemplateV1InnerServiceSMO {
+
+    @Autowired
+    private IFeePrintPageTemplateV1ServiceDao feePrintPageTemplateV1ServiceDaoImpl;
+
+
+    @Override
+    public int saveFeePrintPageTemplate(@RequestBody  FeePrintPageTemplatePo feePrintPageTemplatePo) {
+        int saveFlag = feePrintPageTemplateV1ServiceDaoImpl.saveFeePrintPageTemplateInfo(BeanConvertUtil.beanCovertMap(feePrintPageTemplatePo));
+        return saveFlag;
+    }
+
+     @Override
+    public int updateFeePrintPageTemplate(@RequestBody  FeePrintPageTemplatePo feePrintPageTemplatePo) {
+        int saveFlag = feePrintPageTemplateV1ServiceDaoImpl.updateFeePrintPageTemplateInfo(BeanConvertUtil.beanCovertMap(feePrintPageTemplatePo));
+        return saveFlag;
+    }
+
+     @Override
+    public int deleteFeePrintPageTemplate(@RequestBody  FeePrintPageTemplatePo feePrintPageTemplatePo) {
+       feePrintPageTemplatePo.setStatusCd("1");
+       int saveFlag = feePrintPageTemplateV1ServiceDaoImpl.updateFeePrintPageTemplateInfo(BeanConvertUtil.beanCovertMap(feePrintPageTemplatePo));
+       return saveFlag;
+    }
+
+    @Override
+    public List<FeePrintPageTemplateDto> queryFeePrintPageTemplates(@RequestBody  FeePrintPageTemplateDto feePrintPageTemplateDto) {
+
+        //校验是否传了 分页信息
+
+        int page = feePrintPageTemplateDto.getPage();
+
+        if (page != PageDto.DEFAULT_PAGE) {
+            feePrintPageTemplateDto.setPage((page - 1) * feePrintPageTemplateDto.getRow());
+        }
+
+        List<FeePrintPageTemplateDto> feePrintPageTemplates = BeanConvertUtil.covertBeanList(feePrintPageTemplateV1ServiceDaoImpl.getFeePrintPageTemplateInfo(BeanConvertUtil.beanCovertMap(feePrintPageTemplateDto)), FeePrintPageTemplateDto.class);
+
+        return feePrintPageTemplates;
+    }
+
+
+    @Override
+    public int queryFeePrintPageTemplatesCount(@RequestBody FeePrintPageTemplateDto feePrintPageTemplateDto) {
+        return feePrintPageTemplateV1ServiceDaoImpl.queryFeePrintPageTemplatesCount(BeanConvertUtil.beanCovertMap(feePrintPageTemplateDto));    }
+
+}