Переглянути джерело

Merge branch 'dev-xym-source' of Server/we-com-manage into master

xueyiming 5 місяців тому
батько
коміт
0d7532d084

+ 3 - 0
we-com-server/src/main/java/com/tzld/piaoquan/wecom/common/constant/RedisConstant.java

@@ -9,4 +9,7 @@ public interface RedisConstant {
 
     //小程序保底视频key
     String GUARANTEED_MINI_PROGRAM_KEY = "guaranteed_mini_program_%s";
+
+    //小程序保底视频列表key
+    String GUARANTEED_MINI_PROGRAM_SET_KEY = "guaranteed_mini_program_set_%s";
 }

+ 19 - 0
we-com-server/src/main/java/com/tzld/piaoquan/wecom/common/enums/SourceEnum.java

@@ -0,0 +1,19 @@
+package com.tzld.piaoquan.wecom.common.enums;
+
+import lombok.Getter;
+
+@Getter
+public enum SourceEnum {
+
+    MANUAL("manual", "保底记录"),
+    HISTORICAL_TOP("historical_top", "优质记录");
+
+    final String name;
+    final String desc;
+
+    SourceEnum(String name, String desc) {
+        this.name = name;
+        this.desc = desc;
+    }
+
+}

+ 56 - 6
we-com-server/src/main/java/com/tzld/piaoquan/wecom/job/WeComHistoryDataJob.java

@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
 import com.google.common.collect.Lists;
 import com.tzld.piaoquan.wecom.common.constant.TimeConstant;
 import com.tzld.piaoquan.wecom.common.enums.MessageAttachmentTypeEnum;
+import com.tzld.piaoquan.wecom.common.enums.SourceEnum;
 import com.tzld.piaoquan.wecom.component.HttpPoolClient;
 import com.tzld.piaoquan.wecom.dao.mapper.HistoryMessageMapper;
 import com.tzld.piaoquan.wecom.dao.mapper.StaffMapper;
@@ -15,10 +16,12 @@ import com.tzld.piaoquan.wecom.model.bo.MiniprogramRecord;
 import com.tzld.piaoquan.wecom.model.bo.SendDetail;
 import com.tzld.piaoquan.wecom.model.bo.XxlJobParam;
 import com.tzld.piaoquan.wecom.model.po.*;
+import com.tzld.piaoquan.wecom.model.vo.GuaranteedParam;
 import com.tzld.piaoquan.wecom.service.AccessTokenService;
 import com.tzld.piaoquan.wecom.service.HistoryMessageService;
 import com.tzld.piaoquan.wecom.service.MessageAttachmentService;
 import com.tzld.piaoquan.wecom.service.UserService;
+import com.tzld.piaoquan.wecom.utils.DateUtil;
 import com.tzld.piaoquan.wecom.utils.LarkRobotUtil;
 import com.tzld.piaoquan.wecom.utils.MessageUtil;
 import com.tzld.piaoquan.wecom.utils.page.Page;
@@ -27,18 +30,20 @@ import com.xxl.job.core.handler.annotation.XxlJob;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.data.redis.core.RedisTemplate;
 import org.springframework.stereotype.Component;
 import org.springframework.util.CollectionUtils;
 
 import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-import java.util.Objects;
+import java.util.*;
 import java.util.stream.Collectors;
 
 import static com.tzld.piaoquan.wecom.common.constant.MessageConstant.MAX_VIDEO_NUM;
+import static com.tzld.piaoquan.wecom.common.constant.RedisConstant.GUARANTEED_MINI_PROGRAM_KEY;
+import static com.tzld.piaoquan.wecom.common.constant.RedisConstant.GUARANTEED_MINI_PROGRAM_SET_KEY;
 import static com.tzld.piaoquan.wecom.common.constant.WeComConstant.*;
+import static com.tzld.piaoquan.wecom.common.enums.SourceEnum.HISTORICAL_TOP;
+import static com.tzld.piaoquan.wecom.common.enums.SourceEnum.MANUAL;
 
 @Slf4j
 @Component
@@ -71,6 +76,9 @@ public class WeComHistoryDataJob {
     @Autowired
     private CorpMapper corpMapper;
 
+    @Autowired
+    private RedisTemplate<String, Object> redisTemplate;
+
 
     @XxlJob("saveHistoryMessageJob")
     public ReturnT<String> selectHistoryMessageByDay(String param) {
@@ -111,6 +119,8 @@ public class WeComHistoryDataJob {
         for (Corp corp : corps) {
             selectAlertHistoryMessage(xxlJobParam.getStartTime(), xxlJobParam.getEndTime(), corp.getId(), corp.getName());
         }
+        String key = String.format(GUARANTEED_MINI_PROGRAM_SET_KEY, DateUtil.getThatDayDateString());
+        redisTemplate.delete(key);
         return ReturnT.SUCCESS;
     }
 
@@ -339,6 +349,12 @@ public class WeComHistoryDataJob {
         if (CollectionUtils.isEmpty(externalUsers) || CollectionUtils.isEmpty(miniprogramRecordList)) {
             return;
         }
+        String key = String.format(GUARANTEED_MINI_PROGRAM_SET_KEY, DateUtil.getThatDayDateString());
+        Set<Long> guaranteedSet = (Set<Long>) redisTemplate.opsForValue().get(key);
+        if (CollectionUtils.isEmpty(guaranteedSet)) {
+            LarkRobotUtil.sendMessage("获取保底set失败");
+            return;
+        }
         Long sendTime = externalUsers.stream().map(ExternalUser::getSendTime).filter(Objects::nonNull).findFirst().orElse(null);
         List<HistoryMessage> historyMessageList = new ArrayList<>();
         for (ExternalUser externalUser : externalUsers) {
@@ -358,12 +374,18 @@ public class WeComHistoryDataJob {
                         historyMessage.setSendTime(new Date(createTime));
                     }
                 }
+                Long videoId = miniprogramRecord.getVideoId();
                 historyMessage.setAttachmentIdx(miniprogramRecord.getAttachmentIdx());
-                historyMessage.setVideoId(miniprogramRecord.getVideoId());
+                historyMessage.setVideoId(videoId);
                 historyMessage.setUserId(userId);
                 historyMessage.setStaffId(staff.getId());
                 historyMessage.setStatus(status);
                 historyMessage.setCorpId(corpId);
+                if (guaranteedSet.contains(videoId)) {
+                    historyMessage.setSource(MANUAL.getName());
+                } else {
+                    historyMessage.setSource(HISTORICAL_TOP.getName());
+                }
                 historyMessageList.add(historyMessage);
                 if (status == 2) {
                     userService.delStaffWithUser(userId, staff.getId(), sendTime);
@@ -388,7 +410,35 @@ public class WeComHistoryDataJob {
         return httpPoolClient.post(url, param.toJSONString());
     }
 
-
+    @XxlJob("insetHistoryMessageSourceJob")
+    public ReturnT<String> insetHistoryMessageSource(String param) {
+        if (StringUtils.isEmpty(param)) {
+            return ReturnT.FAIL;
+        }
+        JSONArray jsonArray = JSONArray.parseArray(param);
+        for (int i = 0; i < jsonArray.size(); i++) {
+            JSONObject jsonObject = jsonArray.getJSONObject(i);
+            Long startTime = jsonObject.getLong("startTime");
+            Long endTime = jsonObject.getLong("endTime");
+
+            JSONArray videos = jsonObject.getJSONArray("videos");
+            List<Long> videoList = videos.stream().map(String::valueOf).map(Long::parseLong).collect(Collectors.toList());
+            HistoryMessageExample example = new HistoryMessageExample();
+            example.createCriteria().andSendTimeBetween(new Date(startTime), new Date(endTime))
+                    .andVideoIdIn(videoList);
+            HistoryMessage historyMessage = new HistoryMessage();
+            historyMessage.setSource(MANUAL.getName());
+            historyMessageMapper.updateByExampleSelective(historyMessage, example);
+
+            HistoryMessageExample example1 = new HistoryMessageExample();
+            example1.createCriteria().andSendTimeBetween(new Date(startTime), new Date(endTime))
+                    .andVideoIdNotIn(videoList);
+            HistoryMessage historyMessage1 = new HistoryMessage();
+            historyMessage1.setSource(HISTORICAL_TOP.getName());
+            historyMessageMapper.updateByExampleSelective(historyMessage1, example1);
+        }
+        return ReturnT.SUCCESS;
+    }
 }
 
 

+ 11 - 11
we-com-server/src/main/java/com/tzld/piaoquan/wecom/model/po/HistoryMessage.java

@@ -15,14 +15,14 @@ public class HistoryMessage {
 
     private Integer attachmentIdx;
 
-    private Long messageId;
-
     private Integer status;
 
     private Date sendTime;
 
     private Integer isDelete;
 
+    private String source;
+
     private Date createTime;
 
     public Long getId() {
@@ -73,14 +73,6 @@ public class HistoryMessage {
         this.attachmentIdx = attachmentIdx;
     }
 
-    public Long getMessageId() {
-        return messageId;
-    }
-
-    public void setMessageId(Long messageId) {
-        this.messageId = messageId;
-    }
-
     public Integer getStatus() {
         return status;
     }
@@ -105,6 +97,14 @@ public class HistoryMessage {
         this.isDelete = isDelete;
     }
 
+    public String getSource() {
+        return source;
+    }
+
+    public void setSource(String source) {
+        this.source = source;
+    }
+
     public Date getCreateTime() {
         return createTime;
     }
@@ -125,10 +125,10 @@ public class HistoryMessage {
         sb.append(", staffId=").append(staffId);
         sb.append(", videoId=").append(videoId);
         sb.append(", attachmentIdx=").append(attachmentIdx);
-        sb.append(", messageId=").append(messageId);
         sb.append(", status=").append(status);
         sb.append(", sendTime=").append(sendTime);
         sb.append(", isDelete=").append(isDelete);
+        sb.append(", source=").append(source);
         sb.append(", createTime=").append(createTime);
         sb.append("]");
         return sb.toString();

+ 70 - 60
we-com-server/src/main/java/com/tzld/piaoquan/wecom/model/po/HistoryMessageExample.java

@@ -476,66 +476,6 @@ public class HistoryMessageExample {
             return (Criteria) this;
         }
 
-        public Criteria andMessageIdIsNull() {
-            addCriterion("message_id is null");
-            return (Criteria) this;
-        }
-
-        public Criteria andMessageIdIsNotNull() {
-            addCriterion("message_id is not null");
-            return (Criteria) this;
-        }
-
-        public Criteria andMessageIdEqualTo(Long value) {
-            addCriterion("message_id =", value, "messageId");
-            return (Criteria) this;
-        }
-
-        public Criteria andMessageIdNotEqualTo(Long value) {
-            addCriterion("message_id <>", value, "messageId");
-            return (Criteria) this;
-        }
-
-        public Criteria andMessageIdGreaterThan(Long value) {
-            addCriterion("message_id >", value, "messageId");
-            return (Criteria) this;
-        }
-
-        public Criteria andMessageIdGreaterThanOrEqualTo(Long value) {
-            addCriterion("message_id >=", value, "messageId");
-            return (Criteria) this;
-        }
-
-        public Criteria andMessageIdLessThan(Long value) {
-            addCriterion("message_id <", value, "messageId");
-            return (Criteria) this;
-        }
-
-        public Criteria andMessageIdLessThanOrEqualTo(Long value) {
-            addCriterion("message_id <=", value, "messageId");
-            return (Criteria) this;
-        }
-
-        public Criteria andMessageIdIn(List<Long> values) {
-            addCriterion("message_id in", values, "messageId");
-            return (Criteria) this;
-        }
-
-        public Criteria andMessageIdNotIn(List<Long> values) {
-            addCriterion("message_id not in", values, "messageId");
-            return (Criteria) this;
-        }
-
-        public Criteria andMessageIdBetween(Long value1, Long value2) {
-            addCriterion("message_id between", value1, value2, "messageId");
-            return (Criteria) this;
-        }
-
-        public Criteria andMessageIdNotBetween(Long value1, Long value2) {
-            addCriterion("message_id not between", value1, value2, "messageId");
-            return (Criteria) this;
-        }
-
         public Criteria andStatusIsNull() {
             addCriterion("`status` is null");
             return (Criteria) this;
@@ -716,6 +656,76 @@ public class HistoryMessageExample {
             return (Criteria) this;
         }
 
+        public Criteria andSourceIsNull() {
+            addCriterion("`source` is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceIsNotNull() {
+            addCriterion("`source` is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceEqualTo(String value) {
+            addCriterion("`source` =", value, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceNotEqualTo(String value) {
+            addCriterion("`source` <>", value, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceGreaterThan(String value) {
+            addCriterion("`source` >", value, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceGreaterThanOrEqualTo(String value) {
+            addCriterion("`source` >=", value, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceLessThan(String value) {
+            addCriterion("`source` <", value, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceLessThanOrEqualTo(String value) {
+            addCriterion("`source` <=", value, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceLike(String value) {
+            addCriterion("`source` like", value, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceNotLike(String value) {
+            addCriterion("`source` not like", value, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceIn(List<String> values) {
+            addCriterion("`source` in", values, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceNotIn(List<String> values) {
+            addCriterion("`source` not in", values, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceBetween(String value1, String value2) {
+            addCriterion("`source` between", value1, value2, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceNotBetween(String value1, String value2) {
+            addCriterion("`source` not between", value1, value2, "source");
+            return (Criteria) this;
+        }
+
         public Criteria andCreateTimeIsNull() {
             addCriterion("create_time is null");
             return (Criteria) this;

+ 4 - 2
we-com-server/src/main/java/com/tzld/piaoquan/wecom/service/Impl/MessageAttachmentServiceImpl.java

@@ -40,6 +40,7 @@ import static com.tzld.piaoquan.wecom.common.constant.MessageConstant.appid;
 import static com.tzld.piaoquan.wecom.common.constant.OtherServerURL.POST_ADD_TENCENT;
 import static com.tzld.piaoquan.wecom.common.constant.OtherServerURL.POST_VIDEO_DETAIL_URL;
 import static com.tzld.piaoquan.wecom.common.constant.RedisConstant.GUARANTEED_MINI_PROGRAM_KEY;
+import static com.tzld.piaoquan.wecom.common.constant.RedisConstant.GUARANTEED_MINI_PROGRAM_SET_KEY;
 import static com.tzld.piaoquan.wecom.common.constant.WeComConstant.POST_WE_COM_MEDIA_UPLOAD;
 
 
@@ -83,7 +84,7 @@ public class MessageAttachmentServiceImpl implements MessageAttachmentService {
                 || CollectionUtils.isEmpty(guaranteedParam.getVideoParamList())) {
             return CommonResponse.create(500, "参数错误");
         }
-        List<Long> videoIds = new ArrayList<>();
+        Set<Long> videoIds = new HashSet<>();
         for (VideoParam videoParam : guaranteedParam.getVideoParamList()) {
             if (CollectionUtils.isEmpty(videoParam.getVideoIds()) || videoParam.getVideoIds().size() < MAX_VIDEO_NUM) {
                 LarkRobotUtil.sendMessage("保底视频数量异常,请查看" + guaranteedParam.getDate());
@@ -110,10 +111,11 @@ public class MessageAttachmentServiceImpl implements MessageAttachmentService {
         String date = guaranteedParam.getDate();
         String key = String.format(GUARANTEED_MINI_PROGRAM_KEY, date);
         redisTemplate.opsForValue().set(key, guaranteedParam);
+        redisTemplate.opsForValue().set(String.format(GUARANTEED_MINI_PROGRAM_SET_KEY, date), videoIds);
         return CommonResponse.success();
     }
 
-    public Map<Long, VideoDetail> getVideoDetail(List<Long> videoIdList) {
+    public Map<Long, VideoDetail> getVideoDetail(Set<Long> videoIdList) {
         try {
             Map<Long, VideoDetail> map = new HashMap<>();
             JSONObject params = new JSONObject();

+ 24 - 23
we-com-server/src/main/resources/mapper/HistoryMessageMapper.xml

@@ -8,10 +8,10 @@
     <result column="staff_id" jdbcType="BIGINT" property="staffId" />
     <result column="video_id" jdbcType="BIGINT" property="videoId" />
     <result column="attachment_idx" jdbcType="INTEGER" property="attachmentIdx" />
-    <result column="message_id" jdbcType="BIGINT" property="messageId" />
     <result column="status" jdbcType="INTEGER" property="status" />
     <result column="send_time" jdbcType="TIMESTAMP" property="sendTime" />
     <result column="is_delete" jdbcType="INTEGER" property="isDelete" />
+    <result column="source" jdbcType="VARCHAR" property="source" />
     <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
   </resultMap>
   <sql id="Example_Where_Clause">
@@ -73,8 +73,8 @@
     </where>
   </sql>
   <sql id="Base_Column_List">
-    id, corp_id, user_id, staff_id, video_id, attachment_idx, message_id, `status`, send_time, 
-    is_delete, create_time
+    id, corp_id, user_id, staff_id, video_id, attachment_idx, `status`, send_time, is_delete,
+    `source`, create_time
   </sql>
   <select id="selectByExample" parameterType="com.tzld.piaoquan.wecom.model.po.HistoryMessageExample" resultMap="BaseResultMap">
     select
@@ -112,12 +112,12 @@
   <insert id="insert" parameterType="com.tzld.piaoquan.wecom.model.po.HistoryMessage">
     insert into we_com_history_message (id, corp_id, user_id, 
       staff_id, video_id, attachment_idx, 
-      message_id, `status`, send_time, 
-      is_delete, create_time)
+      `status`, send_time,
+      `source`, create_time)
     values (#{id,jdbcType=BIGINT}, #{corpId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, 
       #{staffId,jdbcType=BIGINT}, #{videoId,jdbcType=BIGINT}, #{attachmentIdx,jdbcType=INTEGER}, 
-      #{messageId,jdbcType=BIGINT}, #{status,jdbcType=INTEGER}, #{sendTime,jdbcType=TIMESTAMP}, 
-      #{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP})
+      #{status,jdbcType=INTEGER}, #{sendTime,jdbcType=TIMESTAMP},
+      #{source,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
   </insert>
   <insert id="insertSelective" parameterType="com.tzld.piaoquan.wecom.model.po.HistoryMessage">
     insert into we_com_history_message
@@ -140,9 +140,6 @@
       <if test="attachmentIdx != null">
         attachment_idx,
       </if>
-      <if test="messageId != null">
-        message_id,
-      </if>
       <if test="status != null">
         `status`,
       </if>
@@ -152,6 +149,9 @@
       <if test="isDelete != null">
         is_delete,
       </if>
+      <if test="source != null">
+        `source`,
+      </if>
       <if test="createTime != null">
         create_time,
       </if>
@@ -175,9 +175,6 @@
       <if test="attachmentIdx != null">
         #{attachmentIdx,jdbcType=INTEGER},
       </if>
-      <if test="messageId != null">
-        #{messageId,jdbcType=BIGINT},
-      </if>
       <if test="status != null">
         #{status,jdbcType=INTEGER},
       </if>
@@ -187,6 +184,9 @@
       <if test="isDelete != null">
         #{isDelete,jdbcType=INTEGER},
       </if>
+      <if test="source != null">
+        #{source,jdbcType=VARCHAR},
+      </if>
       <if test="createTime != null">
         #{createTime,jdbcType=TIMESTAMP},
       </if>
@@ -219,9 +219,6 @@
       <if test="record.attachmentIdx != null">
         attachment_idx = #{record.attachmentIdx,jdbcType=INTEGER},
       </if>
-      <if test="record.messageId != null">
-        message_id = #{record.messageId,jdbcType=BIGINT},
-      </if>
       <if test="record.status != null">
         `status` = #{record.status,jdbcType=INTEGER},
       </if>
@@ -231,6 +228,9 @@
       <if test="record.isDelete != null">
         is_delete = #{record.isDelete,jdbcType=INTEGER},
       </if>
+      <if test="record.source != null">
+        `source` = #{record.source,jdbcType=VARCHAR},
+      </if>
       <if test="record.createTime != null">
         create_time = #{record.createTime,jdbcType=TIMESTAMP},
       </if>
@@ -247,10 +247,10 @@
       staff_id = #{record.staffId,jdbcType=BIGINT},
       video_id = #{record.videoId,jdbcType=BIGINT},
       attachment_idx = #{record.attachmentIdx,jdbcType=INTEGER},
-      message_id = #{record.messageId,jdbcType=BIGINT},
       `status` = #{record.status,jdbcType=INTEGER},
       send_time = #{record.sendTime,jdbcType=TIMESTAMP},
       is_delete = #{record.isDelete,jdbcType=INTEGER},
+      `source` = #{record.source,jdbcType=VARCHAR},
       create_time = #{record.createTime,jdbcType=TIMESTAMP}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
@@ -274,9 +274,6 @@
       <if test="attachmentIdx != null">
         attachment_idx = #{attachmentIdx,jdbcType=INTEGER},
       </if>
-      <if test="messageId != null">
-        message_id = #{messageId,jdbcType=BIGINT},
-      </if>
       <if test="status != null">
         `status` = #{status,jdbcType=INTEGER},
       </if>
@@ -286,6 +283,9 @@
       <if test="isDelete != null">
         is_delete = #{isDelete,jdbcType=INTEGER},
       </if>
+      <if test="source != null">
+        `source` = #{source,jdbcType=VARCHAR},
+      </if>
       <if test="createTime != null">
         create_time = #{createTime,jdbcType=TIMESTAMP},
       </if>
@@ -299,13 +299,14 @@
       staff_id = #{staffId,jdbcType=BIGINT},
       video_id = #{videoId,jdbcType=BIGINT},
       attachment_idx = #{attachmentIdx,jdbcType=INTEGER},
-      message_id = #{messageId,jdbcType=BIGINT},
       `status` = #{status,jdbcType=INTEGER},
       send_time = #{sendTime,jdbcType=TIMESTAMP},
       is_delete = #{isDelete,jdbcType=INTEGER},
+      `source` = #{source,jdbcType=VARCHAR},
       create_time = #{createTime,jdbcType=TIMESTAMP}
     where id = #{id,jdbcType=BIGINT}
   </update>
+
   <insert id="insertList" parameterType="java.util.List">
     insert into we_com_history_message
     (
@@ -314,9 +315,9 @@
     staff_id,
     video_id,
     attachment_idx,
-    message_id,
     `status`,
     send_time,
+    `source`,
     create_time
     )
     values
@@ -327,9 +328,9 @@
       #{item.staffId,jdbcType=BIGINT},
       #{item.videoId,jdbcType=BIGINT},
       #{item.attachmentIdx,jdbcType=INTEGER},
-      #{item.messageId,jdbcType=BIGINT},
       #{item.status,jdbcType=INTEGER},
       #{item.sendTime,jdbcType=TIMESTAMP},
+      #{item.source,jdbcType=VARCHAR},
       #{item.createTime,jdbcType=TIMESTAMP}
       )
     </foreach>

+ 4 - 4
we-com-server/src/main/resources/mybatis-generator-config.xml

@@ -53,11 +53,11 @@
 <!--        <table tableName="we_com_alert_message" domainObjectName="AlertMessage" alias=""/>-->
         <table tableName="we_com_history_message" domainObjectName="HistoryMessage" alias=""/>
 <!--        <table tableName="we_com_message_attachment" domainObjectName="MessageAttachment" alias=""/>-->
-        <table tableName="we_com_staff" domainObjectName="Staff" alias=""/>
+<!--        <table tableName="we_com_staff" domainObjectName="Staff" alias=""/>-->
 <!--        <table tableName="we_com_staff_with_user" domainObjectName="StaffWithUser" alias=""/>-->
-        <table tableName="we_com_send_message" domainObjectName="SendMessage" alias=""/>
-        <table tableName="we_com_user" domainObjectName="User" alias=""/>
-        <table tableName="we_com_corp" domainObjectName="Corp" alias=""/>
+<!--        <table tableName="we_com_send_message" domainObjectName="SendMessage" alias=""/>-->
+<!--        <table tableName="we_com_user" domainObjectName="User" alias=""/>-->
+<!--        <table tableName="we_com_corp" domainObjectName="Corp" alias=""/>-->
 
     </context>