瀏覽代碼

删除 业主时作废话题

魏熙美 6 年之前
父節點
當前提交
8496f5e316

+ 8
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpTransactionMapper.java 查看文件

7
 import com.community.huiju.model.TpTransaction;
7
 import com.community.huiju.model.TpTransaction;
8
 import com.community.huiju.model.TransactionReport;
8
 import com.community.huiju.model.TransactionReport;
9
 import org.apache.ibatis.annotations.Param;
9
 import org.apache.ibatis.annotations.Param;
10
+import org.apache.ibatis.annotations.Update;
10
 
11
 
11
 import java.util.List;
12
 import java.util.List;
12
 
13
 
23
 	List<TpTransaction> selectListByParams(Page page, @Param("transactionTitle") String transactionTitle,@Param("userName") String userName, @Param("id")Integer id, @Param("status")String status,@Param("communityId") Integer communityId);
24
 	List<TpTransaction> selectListByParams(Page page, @Param("transactionTitle") String transactionTitle,@Param("userName") String userName, @Param("id")Integer id, @Param("status")String status,@Param("communityId") Integer communityId);
24
 
25
 
25
 
26
 
27
+    /**
28
+     * 作废话题
29
+     * @param uuid
30
+     * @param uuidType
31
+     */
32
+    @Update("update tp_transaction set status = 0 where uuid = #{uuid} and uuid_type = #{uuidType}")
33
+    void invalidByUuidAndUuidType(@Param("uuid") Integer uuid, @Param("uuidType") String uuidType);
26
 }
34
 }

+ 7
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java 查看文件

107
     @Autowired
107
     @Autowired
108
     @Qualifier("phoneCodeImpl")
108
     @Qualifier("phoneCodeImpl")
109
     private ICode iCode;
109
     private ICode iCode;
110
+
111
+    @Autowired
112
+    private TpTransactionMapper tpTransactionMapper;
110
     
113
     
111
     public static final Logger logger = LoggerFactory.getLogger(BuildingOwnerInfoServiceImpl.class);
114
     public static final Logger logger = LoggerFactory.getLogger(BuildingOwnerInfoServiceImpl.class);
112
     
115
     
874
                 tpBuildingOwnerInfoMapper.deleteById(tpBuildingOwnerInfo.getId());
877
                 tpBuildingOwnerInfoMapper.deleteById(tpBuildingOwnerInfo.getId());
875
             }
878
             }
876
             taUserVerifyMapper.deleteById(e);
879
             taUserVerifyMapper.deleteById(e);
880
+
881
+            // 作废话题
882
+            tpTransactionMapper.invalidByUuidAndUuidType(e, "app");
883
+
877
         });
884
         });
878
 
885
 
879
         responseBean.addSuccess("操作成功!");
886
         responseBean.addSuccess("操作成功!");