Ver código fonte

通知新增businessType字段

zhangchen 4 dias atrás
pai
commit
10bb9332d0

+ 4 - 0
alien-entity/src/main/java/shop/alien/entity/store/LifeNotice.java

@@ -63,4 +63,8 @@ public class LifeNotice {
     @ApiModelProperty(value = "修改人ID")
     @TableField("updated_user_id")
     private Integer updatedUserId;
+
+    @ApiModelProperty(value = "业务类型0-其他,1-律师模块通知")
+    @TableField("business_type")
+    private Integer businessType;
 }

+ 3 - 0
alien-lawyer/src/main/java/shop/alien/lawyer/service/impl/CommentAppealServiceImpl.java

@@ -215,6 +215,7 @@ public class CommentAppealServiceImpl extends ServiceImpl<CommentAppealMapper, C
             lifeNotice.setIsRead(0);
             lifeNotice.setNoticeType(1);
             lifeNotice.setDeleteFlag(0);
+            lifeNotice.setBusinessType(1);
 
             com.alibaba.fastjson2.JSONObject jsonObject = new com.alibaba.fastjson2.JSONObject();
             jsonObject.put("message", message);
@@ -281,6 +282,7 @@ public class CommentAppealServiceImpl extends ServiceImpl<CommentAppealMapper, C
             lifeNotice.setIsRead(0);
             lifeNotice.setNoticeType(1);
             lifeNotice.setDeleteFlag(0);
+            lifeNotice.setBusinessType(1);
 
             com.alibaba.fastjson2.JSONObject jsonObject = new com.alibaba.fastjson2.JSONObject();
             jsonObject.put("message", message);
@@ -326,6 +328,7 @@ public class CommentAppealServiceImpl extends ServiceImpl<CommentAppealMapper, C
             lifeNotice.setIsRead(0);
             lifeNotice.setNoticeType(1);
             lifeNotice.setDeleteFlag(0);
+            lifeNotice.setBusinessType(1);
 
             com.alibaba.fastjson2.JSONObject jsonObject = new com.alibaba.fastjson2.JSONObject();
             jsonObject.put("message", message);

+ 2 - 0
alien-lawyer/src/main/java/shop/alien/lawyer/service/impl/LawyerClientConsultationOrderServiceImpl.java

@@ -1450,6 +1450,7 @@ public class LawyerClientConsultationOrderServiceImpl extends ServiceImpl<Lawyer
         JSONObject jsonObject = new JSONObject();
         jsonObject.put("message", message);
         lifeNotice.setContext(jsonObject.toJSONString());
+        lifeNotice.setBusinessType(1);
 
         return lifeNotice;
     }
@@ -1600,6 +1601,7 @@ public class LawyerClientConsultationOrderServiceImpl extends ServiceImpl<Lawyer
         JSONObject jsonObject = new JSONObject();
         jsonObject.put("message", message);
         lifeNotice.setContext(jsonObject.toJSONString());
+        lifeNotice.setBusinessType(1);
 
         return lifeNotice;
     }

+ 1 - 0
alien-lawyer/src/main/java/shop/alien/lawyer/service/impl/LawyerConsultationOrderServiceImpl.java

@@ -1839,6 +1839,7 @@ public class LawyerConsultationOrderServiceImpl extends ServiceImpl<LawyerConsul
             jsonObject.put("message", message);
             lifeNotice.setContext(jsonObject.toJSONString());
             lifeNotice.setNoticeType(1);
+            lifeNotice.setBusinessType(1);
 
             return lifeNotice;
 

+ 3 - 0
alien-lawyer/src/main/java/shop/alien/lawyer/service/impl/LawyerUserViolationServiceImpl.java

@@ -399,6 +399,7 @@ public class LawyerUserViolationServiceImpl extends ServiceImpl<LawyerUserViolat
             jsonObject.put("message", message);
             lifeNotice.setContext(jsonObject.toJSONString());
             lifeNotice.setNoticeType(1);
+            lifeNotice.setBusinessType(1);
 
             return lifeNotice;
 
@@ -605,6 +606,7 @@ public class LawyerUserViolationServiceImpl extends ServiceImpl<LawyerUserViolat
             jsonObject.put("message", message);
             lifeNotice.setContext(jsonObject.toJSONString());
             lifeNotice.setNoticeType(1);
+            lifeNotice.setBusinessType(1);
 
             return lifeNotice;
 
@@ -1313,6 +1315,7 @@ public class LawyerUserViolationServiceImpl extends ServiceImpl<LawyerUserViolat
         JSONObject jsonObject = new JSONObject();
         jsonObject.put("message", message);
         lifeNotice.setContext(jsonObject.toJSONString());
+        lifeNotice.setBusinessType(1);
 
         return lifeNotice;
     }

+ 2 - 0
alien-lawyer/src/main/java/shop/alien/lawyer/service/impl/OrderExpirationServiceImpl.java

@@ -506,6 +506,7 @@ public class OrderExpirationServiceImpl implements OrderExpirationService, Comma
         jsonObject.put("message", message);
         lifeNotice.setContext(jsonObject.toJSONString());
         lifeNotice.setNoticeType(1);
+        lifeNotice.setBusinessType(1);
 
         return lifeNotice;
     }
@@ -521,6 +522,7 @@ public class OrderExpirationServiceImpl implements OrderExpirationService, Comma
         jsonObject.put("message", message);
         lifeNotice.setContext(jsonObject.toJSONString());
         lifeNotice.setNoticeType(1);
+        lifeNotice.setBusinessType(1);
 
         return lifeNotice;
     }

+ 2 - 0
alien-lawyer/src/main/java/shop/alien/lawyer/service/impl/StoreCommentServiceImpl.java

@@ -692,6 +692,7 @@ public class StoreCommentServiceImpl extends ServiceImpl<StoreCommentMapper, Sto
                 lifeMessage.setSenderId("system");
                 lifeMessage.setIsRead(0);
                 lifeMessage.setNoticeType(1);
+                lifeMessage.setBusinessType(1);
                 lifeNoticeMapper.insert(lifeMessage);
 
                 WebSocketVo websocketVo = new WebSocketVo();
@@ -839,6 +840,7 @@ public class StoreCommentServiceImpl extends ServiceImpl<StoreCommentMapper, Sto
                 lifeMessage.setSenderId("system");
                 lifeMessage.setIsRead(0);
                 lifeMessage.setNoticeType(1);
+                lifeMessage.setBusinessType(1);
                 lifeNoticeMapper.insert(lifeMessage);
 
                 WebSocketVo websocketVo = new WebSocketVo();