Explorar o código

优化 代码

java110 %!s(int64=3) %!d(string=hai) anos
pai
achega
9a5353d5f1
Modificáronse 22 ficheiros con 1987 adicións e 0 borrados
  1. 125 0
      java110-bean/src/main/java/com/java110/dto/notepad/NotepadDto.java
  2. 76 0
      java110-bean/src/main/java/com/java110/dto/notepadDetail/NotepadDetailDto.java
  3. 124 0
      java110-bean/src/main/java/com/java110/po/notepad/NotepadPo.java
  4. 75 0
      java110-bean/src/main/java/com/java110/po/notepadDetail/NotepadDetailPo.java
  5. 106 0
      java110-db/src/main/resources/mapper/user/NotepadDetailV1ServiceDaoImplMapper.xml
  6. 169 0
      java110-db/src/main/resources/mapper/user/NotepadV1ServiceDaoImplMapper.xml
  7. 68 0
      java110-interface/src/main/java/com/java110/intf/user/INotepadDetailV1InnerServiceSMO.java
  8. 68 0
      java110-interface/src/main/java/com/java110/intf/user/INotepadV1InnerServiceSMO.java
  9. 71 0
      service-user/src/main/java/com/java110/user/cmd/notepad/DeleteNotepadCmd.java
  10. 84 0
      service-user/src/main/java/com/java110/user/cmd/notepad/ListNotepadCmd.java
  11. 82 0
      service-user/src/main/java/com/java110/user/cmd/notepad/SaveNotepadCmd.java
  12. 75 0
      service-user/src/main/java/com/java110/user/cmd/notepad/UpdateNotepadCmd.java
  13. 71 0
      service-user/src/main/java/com/java110/user/cmd/notepadDetail/DeleteNotepadDetailCmd.java
  14. 84 0
      service-user/src/main/java/com/java110/user/cmd/notepadDetail/ListNotepadDetailCmd.java
  15. 78 0
      service-user/src/main/java/com/java110/user/cmd/notepadDetail/SaveNotepadDetailCmd.java
  16. 75 0
      service-user/src/main/java/com/java110/user/cmd/notepadDetail/UpdateNotepadDetailCmd.java
  17. 77 0
      service-user/src/main/java/com/java110/user/dao/INotepadDetailV1ServiceDao.java
  18. 77 0
      service-user/src/main/java/com/java110/user/dao/INotepadV1ServiceDao.java
  19. 112 0
      service-user/src/main/java/com/java110/user/dao/impl/NotepadDetailV1ServiceDaoImpl.java
  20. 112 0
      service-user/src/main/java/com/java110/user/dao/impl/NotepadV1ServiceDaoImpl.java
  21. 89 0
      service-user/src/main/java/com/java110/user/smo/impl/NotepadDetailV1InnerServiceSMOImpl.java
  22. 89 0
      service-user/src/main/java/com/java110/user/smo/impl/NotepadV1InnerServiceSMOImpl.java

+ 125 - 0
java110-bean/src/main/java/com/java110/dto/notepad/NotepadDto.java

@@ -0,0 +1,125 @@
+package com.java110.dto.notepad;
+
+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 NotepadDto extends PageDto implements Serializable {
+
+    private String createUserId;
+private String noteId;
+private String createUserName;
+private String objName;
+private String title;
+private String roomId;
+private String roomName;
+private String noteType;
+private String thridId;
+private String objId;
+private String state;
+private String objType;
+
+
+    private Date createTime;
+
+    private String statusCd = "0";
+
+
+    public String getCreateUserId() {
+        return createUserId;
+    }
+public void setCreateUserId(String createUserId) {
+        this.createUserId = createUserId;
+    }
+public String getNoteId() {
+        return noteId;
+    }
+public void setNoteId(String noteId) {
+        this.noteId = noteId;
+    }
+public String getCreateUserName() {
+        return createUserName;
+    }
+public void setCreateUserName(String createUserName) {
+        this.createUserName = createUserName;
+    }
+public String getObjName() {
+        return objName;
+    }
+public void setObjName(String objName) {
+        this.objName = objName;
+    }
+public String getTitle() {
+        return title;
+    }
+public void setTitle(String title) {
+        this.title = title;
+    }
+public String getRoomId() {
+        return roomId;
+    }
+public void setRoomId(String roomId) {
+        this.roomId = roomId;
+    }
+public String getRoomName() {
+        return roomName;
+    }
+public void setRoomName(String roomName) {
+        this.roomName = roomName;
+    }
+public String getNoteType() {
+        return noteType;
+    }
+public void setNoteType(String noteType) {
+        this.noteType = noteType;
+    }
+public String getThridId() {
+        return thridId;
+    }
+public void setThridId(String thridId) {
+        this.thridId = thridId;
+    }
+public String getObjId() {
+        return objId;
+    }
+public void setObjId(String objId) {
+        this.objId = objId;
+    }
+public String getState() {
+        return state;
+    }
+public void setState(String state) {
+        this.state = state;
+    }
+public String getObjType() {
+        return objType;
+    }
+public void setObjType(String objType) {
+        this.objType = objType;
+    }
+
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public String getStatusCd() {
+        return statusCd;
+    }
+
+    public void setStatusCd(String statusCd) {
+        this.statusCd = statusCd;
+    }
+}

+ 76 - 0
java110-bean/src/main/java/com/java110/dto/notepadDetail/NotepadDetailDto.java

@@ -0,0 +1,76 @@
+package com.java110.dto.notepadDetail;
+
+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 NotepadDetailDto extends PageDto implements Serializable {
+
+    private String createUserId;
+private String detailId;
+private String noteId;
+private String createUserName;
+private String content;
+
+
+    private Date createTime;
+
+    private String statusCd = "0";
+
+
+    public String getCreateUserId() {
+        return createUserId;
+    }
+public void setCreateUserId(String createUserId) {
+        this.createUserId = createUserId;
+    }
+public String getDetailId() {
+        return detailId;
+    }
+public void setDetailId(String detailId) {
+        this.detailId = detailId;
+    }
+public String getNoteId() {
+        return noteId;
+    }
+public void setNoteId(String noteId) {
+        this.noteId = noteId;
+    }
+public String getCreateUserName() {
+        return createUserName;
+    }
+public void setCreateUserName(String createUserName) {
+        this.createUserName = createUserName;
+    }
+public String getContent() {
+        return content;
+    }
+public void setContent(String content) {
+        this.content = content;
+    }
+
+
+    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;
+    }
+}

+ 124 - 0
java110-bean/src/main/java/com/java110/po/notepad/NotepadPo.java

@@ -0,0 +1,124 @@
+/*
+ * 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.notepad;
+
+import java.io.Serializable;
+import java.util.Date;
+/**
+ * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体
+ * add by 吴学文 at 2022-08-16 00:02:21 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 NotepadPo implements Serializable {
+
+    private String createUserId;
+private String noteId;
+private String createUserName;
+private String statusCd = "0";
+private String objName;
+private String title;
+private String roomId;
+private String roomName;
+private String noteType;
+private String thridId;
+private String objId;
+private String state;
+private String objType;
+public String getCreateUserId() {
+        return createUserId;
+    }
+public void setCreateUserId(String createUserId) {
+        this.createUserId = createUserId;
+    }
+public String getNoteId() {
+        return noteId;
+    }
+public void setNoteId(String noteId) {
+        this.noteId = noteId;
+    }
+public String getCreateUserName() {
+        return createUserName;
+    }
+public void setCreateUserName(String createUserName) {
+        this.createUserName = createUserName;
+    }
+public String getStatusCd() {
+        return statusCd;
+    }
+public void setStatusCd(String statusCd) {
+        this.statusCd = statusCd;
+    }
+public String getObjName() {
+        return objName;
+    }
+public void setObjName(String objName) {
+        this.objName = objName;
+    }
+public String getTitle() {
+        return title;
+    }
+public void setTitle(String title) {
+        this.title = title;
+    }
+public String getRoomId() {
+        return roomId;
+    }
+public void setRoomId(String roomId) {
+        this.roomId = roomId;
+    }
+public String getRoomName() {
+        return roomName;
+    }
+public void setRoomName(String roomName) {
+        this.roomName = roomName;
+    }
+public String getNoteType() {
+        return noteType;
+    }
+public void setNoteType(String noteType) {
+        this.noteType = noteType;
+    }
+public String getThridId() {
+        return thridId;
+    }
+public void setThridId(String thridId) {
+        this.thridId = thridId;
+    }
+public String getObjId() {
+        return objId;
+    }
+public void setObjId(String objId) {
+        this.objId = objId;
+    }
+public String getState() {
+        return state;
+    }
+public void setState(String state) {
+        this.state = state;
+    }
+public String getObjType() {
+        return objType;
+    }
+public void setObjType(String objType) {
+        this.objType = objType;
+    }
+
+
+
+}

+ 75 - 0
java110-bean/src/main/java/com/java110/po/notepadDetail/NotepadDetailPo.java

@@ -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.po.notepadDetail;
+
+import java.io.Serializable;
+import java.util.Date;
+/**
+ * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体
+ * add by 吴学文 at 2022-08-16 00:08:00 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 NotepadDetailPo implements Serializable {
+
+    private String createUserId;
+private String detailId;
+private String noteId;
+private String createUserName;
+private String statusCd = "0";
+private String content;
+public String getCreateUserId() {
+        return createUserId;
+    }
+public void setCreateUserId(String createUserId) {
+        this.createUserId = createUserId;
+    }
+public String getDetailId() {
+        return detailId;
+    }
+public void setDetailId(String detailId) {
+        this.detailId = detailId;
+    }
+public String getNoteId() {
+        return noteId;
+    }
+public void setNoteId(String noteId) {
+        this.noteId = noteId;
+    }
+public String getCreateUserName() {
+        return createUserName;
+    }
+public void setCreateUserName(String createUserName) {
+        this.createUserName = createUserName;
+    }
+public String getStatusCd() {
+        return statusCd;
+    }
+public void setStatusCd(String statusCd) {
+        this.statusCd = statusCd;
+    }
+public String getContent() {
+        return content;
+    }
+public void setContent(String content) {
+        this.content = content;
+    }
+
+
+
+}

+ 106 - 0
java110-db/src/main/resources/mapper/user/NotepadDetailV1ServiceDaoImplMapper.xml

@@ -0,0 +1,106 @@
+<?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="notepadDetailV1ServiceDaoImpl">
+
+
+
+
+
+    <!-- 保存跟踪记录信息 add by wuxw 2018-07-03 -->
+    <insert id="saveNotepadDetailInfo" parameterType="Map">
+        insert into notepad_detail(
+create_user_id,detail_id,note_id,create_user_name,content
+) values (
+#{createUserId},#{detailId},#{noteId},#{createUserName},#{content}
+)
+    </insert>
+
+
+
+    <!-- 查询跟踪记录信息 add by wuxw 2018-07-03 -->
+    <select id="getNotepadDetailInfo" parameterType="Map" resultType="Map">
+        select  t.create_user_id,t.create_user_id createUserId,t.detail_id,t.detail_id detailId,t.note_id,t.note_id noteId,t.create_user_name,t.create_user_name createUserName,t.status_cd,t.status_cd statusCd,t.content 
+from notepad_detail t 
+where 1 =1 
+<if test="createUserId !=null and createUserId != ''">
+   and t.create_user_id= #{createUserId}
+</if> 
+<if test="detailId !=null and detailId != ''">
+   and t.detail_id= #{detailId}
+</if> 
+<if test="noteId !=null and noteId != ''">
+   and t.note_id= #{noteId}
+</if> 
+<if test="createUserName !=null and createUserName != ''">
+   and t.create_user_name= #{createUserName}
+</if> 
+<if test="statusCd !=null and statusCd != ''">
+   and t.status_cd= #{statusCd}
+</if> 
+<if test="content !=null and content != ''">
+   and t.content= #{content}
+</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="updateNotepadDetailInfo" parameterType="Map">
+        update  notepad_detail t set t.status_cd = #{statusCd}
+<if test="newBId != null and newBId != ''">
+,t.b_id = #{newBId}
+</if> 
+<if test="createUserId !=null and createUserId != ''">
+, t.create_user_id= #{createUserId}
+</if> 
+<if test="noteId !=null and noteId != ''">
+, t.note_id= #{noteId}
+</if> 
+<if test="createUserName !=null and createUserName != ''">
+, t.create_user_name= #{createUserName}
+</if> 
+<if test="content !=null and content != ''">
+, t.content= #{content}
+</if> 
+ where 1=1 <if test="detailId !=null and detailId != ''">
+and t.detail_id= #{detailId}
+</if> 
+
+    </update>
+
+    <!-- 查询跟踪记录数量 add by wuxw 2018-07-03 -->
+     <select id="queryNotepadDetailsCount" parameterType="Map" resultType="Map">
+        select  count(1) count 
+from notepad_detail t 
+where 1 =1 
+<if test="createUserId !=null and createUserId != ''">
+   and t.create_user_id= #{createUserId}
+</if> 
+<if test="detailId !=null and detailId != ''">
+   and t.detail_id= #{detailId}
+</if> 
+<if test="noteId !=null and noteId != ''">
+   and t.note_id= #{noteId}
+</if> 
+<if test="createUserName !=null and createUserName != ''">
+   and t.create_user_name= #{createUserName}
+</if> 
+<if test="statusCd !=null and statusCd != ''">
+   and t.status_cd= #{statusCd}
+</if> 
+<if test="content !=null and content != ''">
+   and t.content= #{content}
+</if> 
+
+
+     </select>
+
+</mapper>

+ 169 - 0
java110-db/src/main/resources/mapper/user/NotepadV1ServiceDaoImplMapper.xml

@@ -0,0 +1,169 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="notepadV1ServiceDaoImpl">
+
+
+
+
+
+    <!-- 保存备忘录信息 add by wuxw 2018-07-03 -->
+    <insert id="saveNotepadInfo" parameterType="Map">
+        insert into notepad(
+create_user_id,note_id,create_user_name,obj_name,title,room_id,room_name,note_type,thrid_id,obj_id,state,obj_type
+) values (
+#{createUserId},#{noteId},#{createUserName},#{objName},#{title},#{roomId},#{roomName},#{noteType},#{thridId},#{objId},#{state},#{objType}
+)
+    </insert>
+
+
+
+    <!-- 查询备忘录信息 add by wuxw 2018-07-03 -->
+    <select id="getNotepadInfo" parameterType="Map" resultType="Map">
+        select  t.create_user_id,t.create_user_id createUserId,t.note_id,t.note_id noteId,t.create_user_name,t.create_user_name createUserName,t.status_cd,t.status_cd statusCd,t.obj_name,t.obj_name objName,t.title,t.room_id,t.room_id roomId,t.room_name,t.room_name roomName,t.note_type,t.note_type noteType,t.thrid_id,t.thrid_id thridId,t.obj_id,t.obj_id objId,t.state,t.obj_type,t.obj_type objType 
+from notepad t 
+where 1 =1 
+<if test="createUserId !=null and createUserId != ''">
+   and t.create_user_id= #{createUserId}
+</if> 
+<if test="noteId !=null and noteId != ''">
+   and t.note_id= #{noteId}
+</if> 
+<if test="createUserName !=null and createUserName != ''">
+   and t.create_user_name= #{createUserName}
+</if> 
+<if test="statusCd !=null and statusCd != ''">
+   and t.status_cd= #{statusCd}
+</if> 
+<if test="objName !=null and objName != ''">
+   and t.obj_name= #{objName}
+</if> 
+<if test="title !=null and title != ''">
+   and t.title= #{title}
+</if> 
+<if test="roomId !=null and roomId != ''">
+   and t.room_id= #{roomId}
+</if> 
+<if test="roomName !=null and roomName != ''">
+   and t.room_name= #{roomName}
+</if> 
+<if test="noteType !=null and noteType != ''">
+   and t.note_type= #{noteType}
+</if> 
+<if test="thridId !=null and thridId != ''">
+   and t.thrid_id= #{thridId}
+</if> 
+<if test="objId !=null and objId != ''">
+   and t.obj_id= #{objId}
+</if> 
+<if test="state !=null and state != ''">
+   and t.state= #{state}
+</if> 
+<if test="objType !=null and objType != ''">
+   and t.obj_type= #{objType}
+</if> 
+order by t.create_time desc
+<if test="page != -1 and page != null ">
+   limit #{page}, #{row}
+</if> 
+
+    </select>
+
+
+
+
+    <!-- 修改备忘录信息 add by wuxw 2018-07-03 -->
+    <update id="updateNotepadInfo" parameterType="Map">
+        update  notepad t set t.status_cd = #{statusCd}
+<if test="newBId != null and newBId != ''">
+,t.b_id = #{newBId}
+</if> 
+<if test="createUserId !=null and createUserId != ''">
+, t.create_user_id= #{createUserId}
+</if> 
+<if test="createUserName !=null and createUserName != ''">
+, t.create_user_name= #{createUserName}
+</if> 
+<if test="objName !=null and objName != ''">
+, t.obj_name= #{objName}
+</if> 
+<if test="title !=null and title != ''">
+, t.title= #{title}
+</if> 
+<if test="roomId !=null and roomId != ''">
+, t.room_id= #{roomId}
+</if> 
+<if test="roomName !=null and roomName != ''">
+, t.room_name= #{roomName}
+</if> 
+<if test="noteType !=null and noteType != ''">
+, t.note_type= #{noteType}
+</if> 
+<if test="thridId !=null and thridId != ''">
+, t.thrid_id= #{thridId}
+</if> 
+<if test="objId !=null and objId != ''">
+, t.obj_id= #{objId}
+</if> 
+<if test="state !=null and state != ''">
+, t.state= #{state}
+</if> 
+<if test="objType !=null and objType != ''">
+, t.obj_type= #{objType}
+</if> 
+ where 1=1 <if test="noteId !=null and noteId != ''">
+and t.note_id= #{noteId}
+</if> 
+
+    </update>
+
+    <!-- 查询备忘录数量 add by wuxw 2018-07-03 -->
+     <select id="queryNotepadsCount" parameterType="Map" resultType="Map">
+        select  count(1) count 
+from notepad t 
+where 1 =1 
+<if test="createUserId !=null and createUserId != ''">
+   and t.create_user_id= #{createUserId}
+</if> 
+<if test="noteId !=null and noteId != ''">
+   and t.note_id= #{noteId}
+</if> 
+<if test="createUserName !=null and createUserName != ''">
+   and t.create_user_name= #{createUserName}
+</if> 
+<if test="statusCd !=null and statusCd != ''">
+   and t.status_cd= #{statusCd}
+</if> 
+<if test="objName !=null and objName != ''">
+   and t.obj_name= #{objName}
+</if> 
+<if test="title !=null and title != ''">
+   and t.title= #{title}
+</if> 
+<if test="roomId !=null and roomId != ''">
+   and t.room_id= #{roomId}
+</if> 
+<if test="roomName !=null and roomName != ''">
+   and t.room_name= #{roomName}
+</if> 
+<if test="noteType !=null and noteType != ''">
+   and t.note_type= #{noteType}
+</if> 
+<if test="thridId !=null and thridId != ''">
+   and t.thrid_id= #{thridId}
+</if> 
+<if test="objId !=null and objId != ''">
+   and t.obj_id= #{objId}
+</if> 
+<if test="state !=null and state != ''">
+   and t.state= #{state}
+</if> 
+<if test="objType !=null and objType != ''">
+   and t.obj_type= #{objType}
+</if> 
+
+
+     </select>
+
+</mapper>

+ 68 - 0
java110-interface/src/main/java/com/java110/intf/user/INotepadDetailV1InnerServiceSMO.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.user;
+
+import com.java110.config.feign.FeignConfiguration;
+import com.java110.dto.notepadDetail.NotepadDetailDto;
+import com.java110.po.notepadDetail.NotepadDetailPo;
+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 2022-08-16 00:08:00 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 = "user-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/notepadDetailV1Api")
+public interface INotepadDetailV1InnerServiceSMO {
+
+
+    @RequestMapping(value = "/saveNotepadDetail", method = RequestMethod.POST)
+    public int saveNotepadDetail(@RequestBody  NotepadDetailPo notepadDetailPo);
+
+    @RequestMapping(value = "/updateNotepadDetail", method = RequestMethod.POST)
+    public int updateNotepadDetail(@RequestBody  NotepadDetailPo notepadDetailPo);
+
+    @RequestMapping(value = "/deleteNotepadDetail", method = RequestMethod.POST)
+    public int deleteNotepadDetail(@RequestBody  NotepadDetailPo notepadDetailPo);
+
+    /**
+     * <p>查询小区楼信息</p>
+     *
+     *
+     * @param notepadDetailDto 数据对象分享
+     * @return NotepadDetailDto 对象数据
+     */
+    @RequestMapping(value = "/queryNotepadDetails", method = RequestMethod.POST)
+    List<NotepadDetailDto> queryNotepadDetails(@RequestBody NotepadDetailDto notepadDetailDto);
+
+    /**
+     * 查询<p>小区楼</p>总记录数
+     *
+     * @param notepadDetailDto 数据对象分享
+     * @return 小区下的小区楼记录数
+     */
+    @RequestMapping(value = "/queryNotepadDetailsCount", method = RequestMethod.POST)
+    int queryNotepadDetailsCount(@RequestBody NotepadDetailDto notepadDetailDto);
+}

+ 68 - 0
java110-interface/src/main/java/com/java110/intf/user/INotepadV1InnerServiceSMO.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.user;
+
+import com.java110.config.feign.FeignConfiguration;
+import com.java110.dto.notepad.NotepadDto;
+import com.java110.po.notepad.NotepadPo;
+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 2022-08-16 00:02:21 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 = "user-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/notepadV1Api")
+public interface INotepadV1InnerServiceSMO {
+
+
+    @RequestMapping(value = "/saveNotepad", method = RequestMethod.POST)
+    public int saveNotepad(@RequestBody  NotepadPo notepadPo);
+
+    @RequestMapping(value = "/updateNotepad", method = RequestMethod.POST)
+    public int updateNotepad(@RequestBody  NotepadPo notepadPo);
+
+    @RequestMapping(value = "/deleteNotepad", method = RequestMethod.POST)
+    public int deleteNotepad(@RequestBody  NotepadPo notepadPo);
+
+    /**
+     * <p>查询小区楼信息</p>
+     *
+     *
+     * @param notepadDto 数据对象分享
+     * @return NotepadDto 对象数据
+     */
+    @RequestMapping(value = "/queryNotepads", method = RequestMethod.POST)
+    List<NotepadDto> queryNotepads(@RequestBody NotepadDto notepadDto);
+
+    /**
+     * 查询<p>小区楼</p>总记录数
+     *
+     * @param notepadDto 数据对象分享
+     * @return 小区下的小区楼记录数
+     */
+    @RequestMapping(value = "/queryNotepadsCount", method = RequestMethod.POST)
+    int queryNotepadsCount(@RequestBody NotepadDto notepadDto);
+}

+ 71 - 0
service-user/src/main/java/com/java110/user/cmd/notepad/DeleteNotepadCmd.java

@@ -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.user.cmd.notepad;
+
+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.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.intf.user.INotepadV1InnerServiceSMO;
+import com.java110.po.notepad.NotepadPo;
+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;
+/**
+ * 类表述:删除
+ * 服务编码:notepad.deleteNotepad
+ * 请求路劲:/app/notepad.DeleteNotepad
+ * add by 吴学文 at 2022-08-16 00:02:21 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 = "notepad.deleteNotepad")
+public class DeleteNotepadCmd extends Cmd {
+  private static Logger logger = LoggerFactory.getLogger(DeleteNotepadCmd.class);
+
+    @Autowired
+    private INotepadV1InnerServiceSMO notepadV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "noteId", "noteId不能为空");
+Assert.hasKeyAndValue(reqJson, "objId", "objId不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+       NotepadPo notepadPo = BeanConvertUtil.covertBean(reqJson, NotepadPo.class);
+        int flag = notepadV1InnerServiceSMOImpl.deleteNotepad(notepadPo);
+
+        if (flag < 1) {
+            throw new CmdException("删除数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 84 - 0
service-user/src/main/java/com/java110/user/cmd/notepad/ListNotepadCmd.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.user.cmd.notepad;
+
+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.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.intf.user.INotepadV1InnerServiceSMO;
+import com.java110.po.notepad.NotepadPo;
+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.notepad.NotepadDto;
+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;
+
+
+/**
+ * 类表述:查询
+ * 服务编码:notepad.listNotepad
+ * 请求路劲:/app/notepad.ListNotepad
+ * add by 吴学文 at 2022-08-16 00:02:21 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 = "notepad.listNotepad")
+public class ListNotepadCmd extends Cmd {
+
+  private static Logger logger = LoggerFactory.getLogger(ListNotepadCmd.class);
+    @Autowired
+    private INotepadV1InnerServiceSMO notepadV1InnerServiceSMOImpl;
+
+    @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 {
+
+           NotepadDto notepadDto = BeanConvertUtil.covertBean(reqJson, NotepadDto.class);
+
+           int count = notepadV1InnerServiceSMOImpl.queryNotepadsCount(notepadDto);
+
+           List<NotepadDto> notepadDtos = null;
+
+           if (count > 0) {
+               notepadDtos = notepadV1InnerServiceSMOImpl.queryNotepads(notepadDto);
+           } else {
+               notepadDtos = new ArrayList<>();
+           }
+
+           ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, notepadDtos);
+
+           ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
+
+           cmdDataFlowContext.setResponseEntity(responseEntity);
+    }
+}

+ 82 - 0
service-user/src/main/java/com/java110/user/cmd/notepad/SaveNotepadCmd.java

@@ -0,0 +1,82 @@
+/*
+ * 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.user.cmd.notepad;
+
+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.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.intf.user.INotepadV1InnerServiceSMO;
+import com.java110.po.notepad.NotepadPo;
+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;
+
+/**
+ * 类表述:保存
+ * 服务编码:notepad.saveNotepad
+ * 请求路劲:/app/notepad.SaveNotepad
+ * add by 吴学文 at 2022-08-16 00:02:21 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 = "notepad.saveNotepad")
+public class SaveNotepadCmd extends Cmd {
+
+    private static Logger logger = LoggerFactory.getLogger(SaveNotepadCmd.class);
+
+    public static final String CODE_PREFIX_ID = "10";
+
+    @Autowired
+    private INotepadV1InnerServiceSMO notepadV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "noteType", "请求报文中未包含noteType");
+Assert.hasKeyAndValue(reqJson, "title", "请求报文中未包含title");
+Assert.hasKeyAndValue(reqJson, "objType", "请求报文中未包含objType");
+Assert.hasKeyAndValue(reqJson, "objId", "请求报文中未包含objId");
+Assert.hasKeyAndValue(reqJson, "objName", "请求报文中未包含objName");
+Assert.hasKeyAndValue(reqJson, "createUserId", "请求报文中未包含createUserId");
+Assert.hasKeyAndValue(reqJson, "createUserName", "请求报文中未包含createUserName");
+Assert.hasKeyAndValue(reqJson, "state", "请求报文中未包含state");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+       NotepadPo notepadPo = BeanConvertUtil.covertBean(reqJson, NotepadPo.class);
+        notepadPo.setNoteId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID));
+        int flag = notepadV1InnerServiceSMOImpl.saveNotepad(notepadPo);
+
+        if (flag < 1) {
+            throw new CmdException("保存数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 75 - 0
service-user/src/main/java/com/java110/user/cmd/notepad/UpdateNotepadCmd.java

@@ -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.user.cmd.notepad;
+
+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.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.intf.user.INotepadV1InnerServiceSMO;
+import com.java110.po.notepad.NotepadPo;
+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;
+
+
+/**
+ * 类表述:更新
+ * 服务编码:notepad.updateNotepad
+ * 请求路劲:/app/notepad.UpdateNotepad
+ * add by 吴学文 at 2022-08-16 00:02:21 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 = "notepad.updateNotepad")
+public class UpdateNotepadCmd extends Cmd {
+
+  private static Logger logger = LoggerFactory.getLogger(UpdateNotepadCmd.class);
+
+
+    @Autowired
+    private INotepadV1InnerServiceSMO notepadV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "noteId", "noteId不能为空");
+Assert.hasKeyAndValue(reqJson, "objId", "objId不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+       NotepadPo notepadPo = BeanConvertUtil.covertBean(reqJson, NotepadPo.class);
+        int flag = notepadV1InnerServiceSMOImpl.updateNotepad(notepadPo);
+
+        if (flag < 1) {
+            throw new CmdException("更新数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 71 - 0
service-user/src/main/java/com/java110/user/cmd/notepadDetail/DeleteNotepadDetailCmd.java

@@ -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.user.cmd.notepadDetail;
+
+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.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.intf.user.INotepadDetailV1InnerServiceSMO;
+import com.java110.po.notepadDetail.NotepadDetailPo;
+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;
+/**
+ * 类表述:删除
+ * 服务编码:notepadDetail.deleteNotepadDetail
+ * 请求路劲:/app/notepadDetail.DeleteNotepadDetail
+ * add by 吴学文 at 2022-08-16 00:08:00 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 = "notepadDetail.deleteNotepadDetail")
+public class DeleteNotepadDetailCmd extends Cmd {
+  private static Logger logger = LoggerFactory.getLogger(DeleteNotepadDetailCmd.class);
+
+    @Autowired
+    private INotepadDetailV1InnerServiceSMO notepadDetailV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "detailId", "detailId不能为空");
+Assert.hasKeyAndValue(reqJson, "objId", "objId不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+       NotepadDetailPo notepadDetailPo = BeanConvertUtil.covertBean(reqJson, NotepadDetailPo.class);
+        int flag = notepadDetailV1InnerServiceSMOImpl.deleteNotepadDetail(notepadDetailPo);
+
+        if (flag < 1) {
+            throw new CmdException("删除数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 84 - 0
service-user/src/main/java/com/java110/user/cmd/notepadDetail/ListNotepadDetailCmd.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.user.cmd.notepadDetail;
+
+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.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.intf.user.INotepadDetailV1InnerServiceSMO;
+import com.java110.po.notepadDetail.NotepadDetailPo;
+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.notepadDetail.NotepadDetailDto;
+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;
+
+
+/**
+ * 类表述:查询
+ * 服务编码:notepadDetail.listNotepadDetail
+ * 请求路劲:/app/notepadDetail.ListNotepadDetail
+ * add by 吴学文 at 2022-08-16 00:08:00 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 = "notepadDetail.listNotepadDetail")
+public class ListNotepadDetailCmd extends Cmd {
+
+  private static Logger logger = LoggerFactory.getLogger(ListNotepadDetailCmd.class);
+    @Autowired
+    private INotepadDetailV1InnerServiceSMO notepadDetailV1InnerServiceSMOImpl;
+
+    @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 {
+
+           NotepadDetailDto notepadDetailDto = BeanConvertUtil.covertBean(reqJson, NotepadDetailDto.class);
+
+           int count = notepadDetailV1InnerServiceSMOImpl.queryNotepadDetailsCount(notepadDetailDto);
+
+           List<NotepadDetailDto> notepadDetailDtos = null;
+
+           if (count > 0) {
+               notepadDetailDtos = notepadDetailV1InnerServiceSMOImpl.queryNotepadDetails(notepadDetailDto);
+           } else {
+               notepadDetailDtos = new ArrayList<>();
+           }
+
+           ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, notepadDetailDtos);
+
+           ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
+
+           cmdDataFlowContext.setResponseEntity(responseEntity);
+    }
+}

+ 78 - 0
service-user/src/main/java/com/java110/user/cmd/notepadDetail/SaveNotepadDetailCmd.java

@@ -0,0 +1,78 @@
+/*
+ * 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.user.cmd.notepadDetail;
+
+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.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.intf.user.INotepadDetailV1InnerServiceSMO;
+import com.java110.po.notepadDetail.NotepadDetailPo;
+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;
+
+/**
+ * 类表述:保存
+ * 服务编码:notepadDetail.saveNotepadDetail
+ * 请求路劲:/app/notepadDetail.SaveNotepadDetail
+ * add by 吴学文 at 2022-08-16 00:08:00 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 = "notepadDetail.saveNotepadDetail")
+public class SaveNotepadDetailCmd extends Cmd {
+
+    private static Logger logger = LoggerFactory.getLogger(SaveNotepadDetailCmd.class);
+
+    public static final String CODE_PREFIX_ID = "10";
+
+    @Autowired
+    private INotepadDetailV1InnerServiceSMO notepadDetailV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "noteId", "请求报文中未包含noteId");
+Assert.hasKeyAndValue(reqJson, "content", "请求报文中未包含content");
+Assert.hasKeyAndValue(reqJson, "createUserId", "请求报文中未包含createUserId");
+Assert.hasKeyAndValue(reqJson, "createUserName", "请求报文中未包含createUserName");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+       NotepadDetailPo notepadDetailPo = BeanConvertUtil.covertBean(reqJson, NotepadDetailPo.class);
+        notepadDetailPo.setDetailId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID));
+        int flag = notepadDetailV1InnerServiceSMOImpl.saveNotepadDetail(notepadDetailPo);
+
+        if (flag < 1) {
+            throw new CmdException("保存数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 75 - 0
service-user/src/main/java/com/java110/user/cmd/notepadDetail/UpdateNotepadDetailCmd.java

@@ -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.user.cmd.notepadDetail;
+
+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.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.intf.user.INotepadDetailV1InnerServiceSMO;
+import com.java110.po.notepadDetail.NotepadDetailPo;
+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;
+
+
+/**
+ * 类表述:更新
+ * 服务编码:notepadDetail.updateNotepadDetail
+ * 请求路劲:/app/notepadDetail.UpdateNotepadDetail
+ * add by 吴学文 at 2022-08-16 00:08:00 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 = "notepadDetail.updateNotepadDetail")
+public class UpdateNotepadDetailCmd extends Cmd {
+
+  private static Logger logger = LoggerFactory.getLogger(UpdateNotepadDetailCmd.class);
+
+
+    @Autowired
+    private INotepadDetailV1InnerServiceSMO notepadDetailV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "detailId", "detailId不能为空");
+Assert.hasKeyAndValue(reqJson, "objId", "objId不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+       NotepadDetailPo notepadDetailPo = BeanConvertUtil.covertBean(reqJson, NotepadDetailPo.class);
+        int flag = notepadDetailV1InnerServiceSMOImpl.updateNotepadDetail(notepadDetailPo);
+
+        if (flag < 1) {
+            throw new CmdException("更新数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 77 - 0
service-user/src/main/java/com/java110/user/dao/INotepadDetailV1ServiceDao.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.user.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 2022-08-16 00:08:00 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 INotepadDetailV1ServiceDao {
+
+
+    /**
+     * 保存 跟踪记录信息
+     * @param info
+     * @throws DAOException DAO异常
+     */
+    int saveNotepadDetailInfo(Map info) throws DAOException;
+
+
+
+
+    /**
+     * 查询跟踪记录信息(instance过程)
+     * 根据bId 查询跟踪记录信息
+     * @param info bId 信息
+     * @return 跟踪记录信息
+     * @throws DAOException DAO异常
+     */
+    List<Map> getNotepadDetailInfo(Map info) throws DAOException;
+
+
+
+    /**
+     * 修改跟踪记录信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    int updateNotepadDetailInfo(Map info) throws DAOException;
+
+
+    /**
+     * 查询跟踪记录总数
+     *
+     * @param info 跟踪记录信息
+     * @return 跟踪记录数量
+     */
+    int queryNotepadDetailsCount(Map info);
+
+}

+ 77 - 0
service-user/src/main/java/com/java110/user/dao/INotepadV1ServiceDao.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.user.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 2022-08-16 00:02:21 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 INotepadV1ServiceDao {
+
+
+    /**
+     * 保存 备忘录信息
+     * @param info
+     * @throws DAOException DAO异常
+     */
+    int saveNotepadInfo(Map info) throws DAOException;
+
+
+
+
+    /**
+     * 查询备忘录信息(instance过程)
+     * 根据bId 查询备忘录信息
+     * @param info bId 信息
+     * @return 备忘录信息
+     * @throws DAOException DAO异常
+     */
+    List<Map> getNotepadInfo(Map info) throws DAOException;
+
+
+
+    /**
+     * 修改备忘录信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    int updateNotepadInfo(Map info) throws DAOException;
+
+
+    /**
+     * 查询备忘录总数
+     *
+     * @param info 备忘录信息
+     * @return 备忘录数量
+     */
+    int queryNotepadsCount(Map info);
+
+}

+ 112 - 0
service-user/src/main/java/com/java110/user/dao/impl/NotepadDetailV1ServiceDaoImpl.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.user.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.user.dao.INotepadDetailV1ServiceDao;
+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 2022-08-16 00:08:00 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("notepadDetailV1ServiceDaoImpl")
+public class NotepadDetailV1ServiceDaoImpl extends BaseServiceDao implements INotepadDetailV1ServiceDao {
+
+    private static Logger logger = LoggerFactory.getLogger(NotepadDetailV1ServiceDaoImpl.class);
+
+
+
+
+
+    /**
+     * 保存跟踪记录信息 到 instance
+     * @param info   bId 信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int saveNotepadDetailInfo(Map info) throws DAOException {
+        logger.debug("保存 saveNotepadDetailInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("notepadDetailV1ServiceDaoImpl.saveNotepadDetailInfo",info);
+
+        return saveFlag;
+    }
+
+
+    /**
+     * 查询跟踪记录信息(instance)
+     * @param info bId 信息
+     * @return List<Map>
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public List<Map> getNotepadDetailInfo(Map info) throws DAOException {
+        logger.debug("查询 getNotepadDetailInfo 入参 info : {}",info);
+
+        List<Map> businessNotepadDetailInfos = sqlSessionTemplate.selectList("notepadDetailV1ServiceDaoImpl.getNotepadDetailInfo",info);
+
+        return businessNotepadDetailInfos;
+    }
+
+
+    /**
+     * 修改跟踪记录信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int updateNotepadDetailInfo(Map info) throws DAOException {
+        logger.debug("修改 updateNotepadDetailInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.update("notepadDetailV1ServiceDaoImpl.updateNotepadDetailInfo",info);
+
+        return saveFlag;
+    }
+
+     /**
+     * 查询跟踪记录数量
+     * @param info 跟踪记录信息
+     * @return 跟踪记录数量
+     */
+    @Override
+    public int queryNotepadDetailsCount(Map info) {
+        logger.debug("查询 queryNotepadDetailsCount 入参 info : {}",info);
+
+        List<Map> businessNotepadDetailInfos = sqlSessionTemplate.selectList("notepadDetailV1ServiceDaoImpl.queryNotepadDetailsCount", info);
+        if (businessNotepadDetailInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessNotepadDetailInfos.get(0).get("count").toString());
+    }
+
+
+}

+ 112 - 0
service-user/src/main/java/com/java110/user/dao/impl/NotepadV1ServiceDaoImpl.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.user.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.user.dao.INotepadV1ServiceDao;
+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 2022-08-16 00:02:21 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("notepadV1ServiceDaoImpl")
+public class NotepadV1ServiceDaoImpl extends BaseServiceDao implements INotepadV1ServiceDao {
+
+    private static Logger logger = LoggerFactory.getLogger(NotepadV1ServiceDaoImpl.class);
+
+
+
+
+
+    /**
+     * 保存备忘录信息 到 instance
+     * @param info   bId 信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int saveNotepadInfo(Map info) throws DAOException {
+        logger.debug("保存 saveNotepadInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("notepadV1ServiceDaoImpl.saveNotepadInfo",info);
+
+        return saveFlag;
+    }
+
+
+    /**
+     * 查询备忘录信息(instance)
+     * @param info bId 信息
+     * @return List<Map>
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public List<Map> getNotepadInfo(Map info) throws DAOException {
+        logger.debug("查询 getNotepadInfo 入参 info : {}",info);
+
+        List<Map> businessNotepadInfos = sqlSessionTemplate.selectList("notepadV1ServiceDaoImpl.getNotepadInfo",info);
+
+        return businessNotepadInfos;
+    }
+
+
+    /**
+     * 修改备忘录信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int updateNotepadInfo(Map info) throws DAOException {
+        logger.debug("修改 updateNotepadInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.update("notepadV1ServiceDaoImpl.updateNotepadInfo",info);
+
+        return saveFlag;
+    }
+
+     /**
+     * 查询备忘录数量
+     * @param info 备忘录信息
+     * @return 备忘录数量
+     */
+    @Override
+    public int queryNotepadsCount(Map info) {
+        logger.debug("查询 queryNotepadsCount 入参 info : {}",info);
+
+        List<Map> businessNotepadInfos = sqlSessionTemplate.selectList("notepadV1ServiceDaoImpl.queryNotepadsCount", info);
+        if (businessNotepadInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessNotepadInfos.get(0).get("count").toString());
+    }
+
+
+}

+ 89 - 0
service-user/src/main/java/com/java110/user/smo/impl/NotepadDetailV1InnerServiceSMOImpl.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.user.smo.impl;
+
+
+import com.java110.user.dao.INotepadDetailV1ServiceDao;
+import com.java110.intf.user.INotepadDetailV1InnerServiceSMO;
+import com.java110.dto.notepadDetail.NotepadDetailDto;
+import com.java110.po.notepadDetail.NotepadDetailPo;
+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 2022-08-16 00:08:00 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 NotepadDetailV1InnerServiceSMOImpl extends BaseServiceSMO implements INotepadDetailV1InnerServiceSMO {
+
+    @Autowired
+    private INotepadDetailV1ServiceDao notepadDetailV1ServiceDaoImpl;
+
+
+    @Override
+    public int saveNotepadDetail(@RequestBody  NotepadDetailPo notepadDetailPo) {
+        int saveFlag = notepadDetailV1ServiceDaoImpl.saveNotepadDetailInfo(BeanConvertUtil.beanCovertMap(notepadDetailPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int updateNotepadDetail(@RequestBody  NotepadDetailPo notepadDetailPo) {
+        int saveFlag = notepadDetailV1ServiceDaoImpl.updateNotepadDetailInfo(BeanConvertUtil.beanCovertMap(notepadDetailPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int deleteNotepadDetail(@RequestBody  NotepadDetailPo notepadDetailPo) {
+       notepadDetailPo.setStatusCd("1");
+       int saveFlag = notepadDetailV1ServiceDaoImpl.updateNotepadDetailInfo(BeanConvertUtil.beanCovertMap(notepadDetailPo));
+       return saveFlag;
+    }
+
+    @Override
+    public List<NotepadDetailDto> queryNotepadDetails(@RequestBody  NotepadDetailDto notepadDetailDto) {
+
+        //校验是否传了 分页信息
+
+        int page = notepadDetailDto.getPage();
+
+        if (page != PageDto.DEFAULT_PAGE) {
+            notepadDetailDto.setPage((page - 1) * notepadDetailDto.getRow());
+        }
+
+        List<NotepadDetailDto> notepadDetails = BeanConvertUtil.covertBeanList(notepadDetailV1ServiceDaoImpl.getNotepadDetailInfo(BeanConvertUtil.beanCovertMap(notepadDetailDto)), NotepadDetailDto.class);
+
+        return notepadDetails;
+    }
+
+
+    @Override
+    public int queryNotepadDetailsCount(@RequestBody NotepadDetailDto notepadDetailDto) {
+        return notepadDetailV1ServiceDaoImpl.queryNotepadDetailsCount(BeanConvertUtil.beanCovertMap(notepadDetailDto));    }
+
+}

+ 89 - 0
service-user/src/main/java/com/java110/user/smo/impl/NotepadV1InnerServiceSMOImpl.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.user.smo.impl;
+
+
+import com.java110.user.dao.INotepadV1ServiceDao;
+import com.java110.intf.user.INotepadV1InnerServiceSMO;
+import com.java110.dto.notepad.NotepadDto;
+import com.java110.po.notepad.NotepadPo;
+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 2022-08-16 00:02:21 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 NotepadV1InnerServiceSMOImpl extends BaseServiceSMO implements INotepadV1InnerServiceSMO {
+
+    @Autowired
+    private INotepadV1ServiceDao notepadV1ServiceDaoImpl;
+
+
+    @Override
+    public int saveNotepad(@RequestBody  NotepadPo notepadPo) {
+        int saveFlag = notepadV1ServiceDaoImpl.saveNotepadInfo(BeanConvertUtil.beanCovertMap(notepadPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int updateNotepad(@RequestBody  NotepadPo notepadPo) {
+        int saveFlag = notepadV1ServiceDaoImpl.updateNotepadInfo(BeanConvertUtil.beanCovertMap(notepadPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int deleteNotepad(@RequestBody  NotepadPo notepadPo) {
+       notepadPo.setStatusCd("1");
+       int saveFlag = notepadV1ServiceDaoImpl.updateNotepadInfo(BeanConvertUtil.beanCovertMap(notepadPo));
+       return saveFlag;
+    }
+
+    @Override
+    public List<NotepadDto> queryNotepads(@RequestBody  NotepadDto notepadDto) {
+
+        //校验是否传了 分页信息
+
+        int page = notepadDto.getPage();
+
+        if (page != PageDto.DEFAULT_PAGE) {
+            notepadDto.setPage((page - 1) * notepadDto.getRow());
+        }
+
+        List<NotepadDto> notepads = BeanConvertUtil.covertBeanList(notepadV1ServiceDaoImpl.getNotepadInfo(BeanConvertUtil.beanCovertMap(notepadDto)), NotepadDto.class);
+
+        return notepads;
+    }
+
+
+    @Override
+    public int queryNotepadsCount(@RequestBody NotepadDto notepadDto) {
+        return notepadV1ServiceDaoImpl.queryNotepadsCount(BeanConvertUtil.beanCovertMap(notepadDto));    }
+
+}