wangyunpeng преди 1 ден
родител
ревизия
385dec8e1c

+ 4 - 2
api-module/src/main/java/com/tzld/piaoquan/api/job/wecom/thirdpart/WeComSendMsgJob.java

@@ -322,6 +322,7 @@ public class WeComSendMsgJob {
         msg.setVideoId(videoId);
         msg.setUuid(request.getUuid());
         msg.setSendUserid(request.getSend_userid());
+        msg.setSendType(ConfigTaskContentTypeEnum.MINI_PROGRAM.getVal());
         msg.setIsroom(request.getIsRoom());
         msg.setAppid(request.getAppid());
         msg.setUsername(request.getUsername());
@@ -348,14 +349,15 @@ public class WeComSendMsgJob {
         msg.setStaffId(staffId);
         msg.setUuid(request.getUuid());
         msg.setSendUserid(request.getSend_userid());
+        msg.setSendType(ConfigTaskContentTypeEnum.TEXT.getVal());
+        msg.setContent(content);
         msg.setIsroom(request.getIsRoom());
         if (response.getErrcode() == 0) {
             msg.setStatus(MsgSendStatusEnum.NORMAL.getVal());
         } else {
             msg.setStatus(MsgSendStatusEnum.FAIL.getVal());
         }
-        // todo save text msg
-        //msgMapper.insertSelective(msg);
+        msgMapper.insertSelective(msg);
     }
 
     @XxlJob("autoOpenSendStatusJob")

+ 22 - 0
api-module/src/main/java/com/tzld/piaoquan/api/model/po/wecom/thirdpart/ThirdPartWeComMsg.java

@@ -9,6 +9,10 @@ public class ThirdPartWeComMsg {
 
     private Long sendUserid;
 
+    private Integer sendType;
+
+    private String content;
+
     private Long staffId;
 
     private Long videoId;
@@ -67,6 +71,22 @@ public class ThirdPartWeComMsg {
         this.sendUserid = sendUserid;
     }
 
+    public Integer getSendType() {
+        return sendType;
+    }
+
+    public void setSendType(Integer sendType) {
+        this.sendType = sendType;
+    }
+
+    public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+
     public Long getStaffId() {
         return staffId;
     }
@@ -212,6 +232,8 @@ public class ThirdPartWeComMsg {
         sb.append(", id=").append(id);
         sb.append(", uuid=").append(uuid);
         sb.append(", sendUserid=").append(sendUserid);
+        sb.append(", sendType=").append(sendType);
+        sb.append(", content=").append(content);
         sb.append(", staffId=").append(staffId);
         sb.append(", videoId=").append(videoId);
         sb.append(", appname=").append(appname);

+ 130 - 0
api-module/src/main/java/com/tzld/piaoquan/api/model/po/wecom/thirdpart/ThirdPartWeComMsgExample.java

@@ -306,6 +306,136 @@ public class ThirdPartWeComMsgExample {
             return (Criteria) this;
         }
 
+        public Criteria andSendTypeIsNull() {
+            addCriterion("send_type is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSendTypeIsNotNull() {
+            addCriterion("send_type is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSendTypeEqualTo(Integer value) {
+            addCriterion("send_type =", value, "sendType");
+            return (Criteria) this;
+        }
+
+        public Criteria andSendTypeNotEqualTo(Integer value) {
+            addCriterion("send_type <>", value, "sendType");
+            return (Criteria) this;
+        }
+
+        public Criteria andSendTypeGreaterThan(Integer value) {
+            addCriterion("send_type >", value, "sendType");
+            return (Criteria) this;
+        }
+
+        public Criteria andSendTypeGreaterThanOrEqualTo(Integer value) {
+            addCriterion("send_type >=", value, "sendType");
+            return (Criteria) this;
+        }
+
+        public Criteria andSendTypeLessThan(Integer value) {
+            addCriterion("send_type <", value, "sendType");
+            return (Criteria) this;
+        }
+
+        public Criteria andSendTypeLessThanOrEqualTo(Integer value) {
+            addCriterion("send_type <=", value, "sendType");
+            return (Criteria) this;
+        }
+
+        public Criteria andSendTypeIn(List<Integer> values) {
+            addCriterion("send_type in", values, "sendType");
+            return (Criteria) this;
+        }
+
+        public Criteria andSendTypeNotIn(List<Integer> values) {
+            addCriterion("send_type not in", values, "sendType");
+            return (Criteria) this;
+        }
+
+        public Criteria andSendTypeBetween(Integer value1, Integer value2) {
+            addCriterion("send_type between", value1, value2, "sendType");
+            return (Criteria) this;
+        }
+
+        public Criteria andSendTypeNotBetween(Integer value1, Integer value2) {
+            addCriterion("send_type not between", value1, value2, "sendType");
+            return (Criteria) this;
+        }
+
+        public Criteria andContentIsNull() {
+            addCriterion("content is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andContentIsNotNull() {
+            addCriterion("content is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andContentEqualTo(String value) {
+            addCriterion("content =", value, "content");
+            return (Criteria) this;
+        }
+
+        public Criteria andContentNotEqualTo(String value) {
+            addCriterion("content <>", value, "content");
+            return (Criteria) this;
+        }
+
+        public Criteria andContentGreaterThan(String value) {
+            addCriterion("content >", value, "content");
+            return (Criteria) this;
+        }
+
+        public Criteria andContentGreaterThanOrEqualTo(String value) {
+            addCriterion("content >=", value, "content");
+            return (Criteria) this;
+        }
+
+        public Criteria andContentLessThan(String value) {
+            addCriterion("content <", value, "content");
+            return (Criteria) this;
+        }
+
+        public Criteria andContentLessThanOrEqualTo(String value) {
+            addCriterion("content <=", value, "content");
+            return (Criteria) this;
+        }
+
+        public Criteria andContentLike(String value) {
+            addCriterion("content like", value, "content");
+            return (Criteria) this;
+        }
+
+        public Criteria andContentNotLike(String value) {
+            addCriterion("content not like", value, "content");
+            return (Criteria) this;
+        }
+
+        public Criteria andContentIn(List<String> values) {
+            addCriterion("content in", values, "content");
+            return (Criteria) this;
+        }
+
+        public Criteria andContentNotIn(List<String> values) {
+            addCriterion("content not in", values, "content");
+            return (Criteria) this;
+        }
+
+        public Criteria andContentBetween(String value1, String value2) {
+            addCriterion("content between", value1, value2, "content");
+            return (Criteria) this;
+        }
+
+        public Criteria andContentNotBetween(String value1, String value2) {
+            addCriterion("content not between", value1, value2, "content");
+            return (Criteria) this;
+        }
+
         public Criteria andStaffIdIsNull() {
             addCriterion("staff_id is null");
             return (Criteria) this;

+ 51 - 15
api-module/src/main/resources/mapper/wecom/thirdpart/ThirdPartWeComMsgMapper.xml

@@ -5,6 +5,8 @@
     <id column="id" jdbcType="BIGINT" property="id" />
     <result column="uuid" jdbcType="VARCHAR" property="uuid" />
     <result column="send_userid" jdbcType="BIGINT" property="sendUserid" />
+    <result column="send_type" jdbcType="INTEGER" property="sendType" />
+    <result column="content" jdbcType="VARCHAR" property="content" />
     <result column="staff_id" jdbcType="BIGINT" property="staffId" />
     <result column="video_id" jdbcType="BIGINT" property="videoId" />
     <result column="appName" jdbcType="VARCHAR" property="appname" />
@@ -84,9 +86,9 @@
     </where>
   </sql>
   <sql id="Base_Column_List">
-    id, uuid, send_userid, staff_id, video_id, appName, title, weappIconUrl, pagepath, 
-    root_source_id, username, appid, cdnkey, md5, aeskey, fileSize, isRoom, `status`, 
-    create_time
+    id, uuid, send_userid, send_type, content, staff_id, video_id, appName, title, weappIconUrl, 
+    pagepath, root_source_id, username, appid, cdnkey, md5, aeskey, fileSize, isRoom, 
+    `status`, create_time
   </sql>
   <sql id="Blob_Column_List">
     `desc`
@@ -147,19 +149,21 @@
   </delete>
   <insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.wecom.thirdpart.ThirdPartWeComMsg">
     insert into third_part_we_com_msg (id, uuid, send_userid, 
-      staff_id, video_id, appName, 
-      title, weappIconUrl, pagepath, 
-      root_source_id, username, appid, 
-      cdnkey, md5, aeskey, 
-      fileSize, isRoom, `status`, 
-      create_time, `desc`)
+      send_type, content, staff_id, 
+      video_id, appName, title, 
+      weappIconUrl, pagepath, root_source_id, 
+      username, appid, cdnkey, 
+      md5, aeskey, fileSize, 
+      isRoom, `status`, create_time, 
+      `desc`)
     values (#{id,jdbcType=BIGINT}, #{uuid,jdbcType=VARCHAR}, #{sendUserid,jdbcType=BIGINT}, 
-      #{staffId,jdbcType=BIGINT}, #{videoId,jdbcType=BIGINT}, #{appname,jdbcType=VARCHAR}, 
-      #{title,jdbcType=VARCHAR}, #{weappiconurl,jdbcType=VARCHAR}, #{pagepath,jdbcType=VARCHAR}, 
-      #{rootSourceId,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{appid,jdbcType=VARCHAR}, 
-      #{cdnkey,jdbcType=VARCHAR}, #{md5,jdbcType=VARCHAR}, #{aeskey,jdbcType=VARCHAR}, 
-      #{filesize,jdbcType=INTEGER}, #{isroom,jdbcType=BIT}, #{status,jdbcType=INTEGER}, 
-      #{createTime,jdbcType=TIMESTAMP}, #{desc,jdbcType=LONGVARCHAR})
+      #{sendType,jdbcType=INTEGER}, #{content,jdbcType=VARCHAR}, #{staffId,jdbcType=BIGINT}, 
+      #{videoId,jdbcType=BIGINT}, #{appname,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, 
+      #{weappiconurl,jdbcType=VARCHAR}, #{pagepath,jdbcType=VARCHAR}, #{rootSourceId,jdbcType=VARCHAR}, 
+      #{username,jdbcType=VARCHAR}, #{appid,jdbcType=VARCHAR}, #{cdnkey,jdbcType=VARCHAR}, 
+      #{md5,jdbcType=VARCHAR}, #{aeskey,jdbcType=VARCHAR}, #{filesize,jdbcType=INTEGER}, 
+      #{isroom,jdbcType=BIT}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, 
+      #{desc,jdbcType=LONGVARCHAR})
   </insert>
   <insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.wecom.thirdpart.ThirdPartWeComMsg">
     insert into third_part_we_com_msg
@@ -173,6 +177,12 @@
       <if test="sendUserid != null">
         send_userid,
       </if>
+      <if test="sendType != null">
+        send_type,
+      </if>
+      <if test="content != null">
+        content,
+      </if>
       <if test="staffId != null">
         staff_id,
       </if>
@@ -235,6 +245,12 @@
       <if test="sendUserid != null">
         #{sendUserid,jdbcType=BIGINT},
       </if>
+      <if test="sendType != null">
+        #{sendType,jdbcType=INTEGER},
+      </if>
+      <if test="content != null">
+        #{content,jdbcType=VARCHAR},
+      </if>
       <if test="staffId != null">
         #{staffId,jdbcType=BIGINT},
       </if>
@@ -306,6 +322,12 @@
       <if test="record.sendUserid != null">
         send_userid = #{record.sendUserid,jdbcType=BIGINT},
       </if>
+      <if test="record.sendType != null">
+        send_type = #{record.sendType,jdbcType=INTEGER},
+      </if>
+      <if test="record.content != null">
+        content = #{record.content,jdbcType=VARCHAR},
+      </if>
       <if test="record.staffId != null">
         staff_id = #{record.staffId,jdbcType=BIGINT},
       </if>
@@ -367,6 +389,8 @@
     set id = #{record.id,jdbcType=BIGINT},
       uuid = #{record.uuid,jdbcType=VARCHAR},
       send_userid = #{record.sendUserid,jdbcType=BIGINT},
+      send_type = #{record.sendType,jdbcType=INTEGER},
+      content = #{record.content,jdbcType=VARCHAR},
       staff_id = #{record.staffId,jdbcType=BIGINT},
       video_id = #{record.videoId,jdbcType=BIGINT},
       appName = #{record.appname,jdbcType=VARCHAR},
@@ -393,6 +417,8 @@
     set id = #{record.id,jdbcType=BIGINT},
       uuid = #{record.uuid,jdbcType=VARCHAR},
       send_userid = #{record.sendUserid,jdbcType=BIGINT},
+      send_type = #{record.sendType,jdbcType=INTEGER},
+      content = #{record.content,jdbcType=VARCHAR},
       staff_id = #{record.staffId,jdbcType=BIGINT},
       video_id = #{record.videoId,jdbcType=BIGINT},
       appName = #{record.appname,jdbcType=VARCHAR},
@@ -422,6 +448,12 @@
       <if test="sendUserid != null">
         send_userid = #{sendUserid,jdbcType=BIGINT},
       </if>
+      <if test="sendType != null">
+        send_type = #{sendType,jdbcType=INTEGER},
+      </if>
+      <if test="content != null">
+        content = #{content,jdbcType=VARCHAR},
+      </if>
       <if test="staffId != null">
         staff_id = #{staffId,jdbcType=BIGINT},
       </if>
@@ -480,6 +512,8 @@
     update third_part_we_com_msg
     set uuid = #{uuid,jdbcType=VARCHAR},
       send_userid = #{sendUserid,jdbcType=BIGINT},
+      send_type = #{sendType,jdbcType=INTEGER},
+      content = #{content,jdbcType=VARCHAR},
       staff_id = #{staffId,jdbcType=BIGINT},
       video_id = #{videoId,jdbcType=BIGINT},
       appName = #{appname,jdbcType=VARCHAR},
@@ -503,6 +537,8 @@
     update third_part_we_com_msg
     set uuid = #{uuid,jdbcType=VARCHAR},
       send_userid = #{sendUserid,jdbcType=BIGINT},
+      send_type = #{sendType,jdbcType=INTEGER},
+      content = #{content,jdbcType=VARCHAR},
       staff_id = #{staffId,jdbcType=BIGINT},
       video_id = #{videoId,jdbcType=BIGINT},
       appName = #{appname,jdbcType=VARCHAR},

+ 2 - 2
api-module/src/main/resources/mybatis-api-wecomThirdpart-generator-config.xml

@@ -53,7 +53,7 @@
 <!--        <table tableName="third_part_we_com_corp" domainObjectName="ThirdPartWeComCorp" alias=""/>-->
 <!--        <table tableName="third_part_we_com_room" domainObjectName="ThirdPartWeComRoom" alias=""/>-->
 <!--        <table tableName="third_part_we_com_room_user" domainObjectName="ThirdPartWeComRoomUser" alias=""/>-->
-        <table tableName="third_part_we_com_room_config" domainObjectName="ThirdPartWeComRoomConfig" alias=""/>
+<!--        <table tableName="third_part_we_com_room_config" domainObjectName="ThirdPartWeComRoomConfig" alias=""/>-->
 <!--        <table tableName="third_part_we_com_room_config_task" domainObjectName="ThirdPartWeComRoomConfigTask" alias=""/>-->
 <!--        <table tableName="third_part_we_com_room_config_task_content" domainObjectName="ThirdPartWeComRoomConfigTaskContent" alias=""/>-->
 <!--        <table tableName="third_part_we_com_staff" domainObjectName="ThirdPartWeComStaff" alias=""/>-->
@@ -61,7 +61,7 @@
 <!--        <table tableName="third_part_we_com_staff_config" domainObjectName="ThirdPartWeComStaffConfig" alias=""/>-->
 <!--        <table tableName="third_part_we_com_staff_config_task" domainObjectName="ThirdPartWeComStaffConfigTask" alias=""/>-->
 <!--        <table tableName="third_part_we_com_staff_config_task_content" domainObjectName="ThirdPartWeComStaffConfigTaskContent" alias=""/>-->
-<!--        <table tableName="third_part_we_com_msg" domainObjectName="ThirdPartWeComMsg" alias=""/>-->
+        <table tableName="third_part_we_com_msg" domainObjectName="ThirdPartWeComMsg" alias=""/>
     </context>
 
 </generatorConfiguration>