Ver Fonte

修改撤回时,子表信息删除,而非更改状态为D

tjf há 3 anos atrás
pai
commit
efca36d3f0

+ 2 - 2
boman-web-core/src/main/java/com/boman/web/core/service/TableServiceCmdService.java

@@ -212,7 +212,7 @@ public class TableServiceCmdService {
             }
         }
 
-        // 获取发文相关信息
+/*        // 获取发文相关信息
         if ("boman_message".equals(dto.getTable())) {
             WxMsgDto wxMsgDto = new WxMsgDto();
             wxMsgDto.setIds(receiveUserIds);
@@ -245,7 +245,7 @@ public class TableServiceCmdService {
                     e.printStackTrace();
                 }
             }
-        }
+        }*/
         return AjaxResult.success(resultList);
     }
 

+ 4 - 1
boman-web-core/src/main/java/com/boman/web/core/service/bomanMessageReceive/BomanMessageReceiveServiceImpl.java

@@ -36,6 +36,7 @@ public class BomanMessageReceiveServiceImpl implements IBomanMessageReceiveServi
     private static final String NOT_READ = "notRead";
     private static final String READ = "read";
     private static final String VISIBLE = "visible";
+    private static final String IS_DEL = "is_del";
 
     @Autowired
     private IBaseSelectService selectService;
@@ -118,7 +119,9 @@ public class BomanMessageReceiveServiceImpl implements IBomanMessageReceiveServi
         dto.setTableName(BOMAN_MESSAGE_RECEIVE);
 
         JSONObject commitData = new JSONObject();
-        commitData.put(STATUS, DELETED);
+        //设置不可见
+        commitData.put(VISIBLE, 'N');
+        commitData.put(IS_DEL, 'Y');
 
         JSONObject condition = new JSONObject();
         condition.put(MESSAGE_ID, messageId);