浏览代码

删除 业主时作废话题

魏熙美 6 年前
父节点
当前提交
8496f5e316

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

@@ -7,6 +7,7 @@ import com.community.huiju.model.TpTicket;
7 7
 import com.community.huiju.model.TpTransaction;
8 8
 import com.community.huiju.model.TransactionReport;
9 9
 import org.apache.ibatis.annotations.Param;
10
+import org.apache.ibatis.annotations.Update;
10 11
 
11 12
 import java.util.List;
12 13
 
@@ -23,4 +24,11 @@ public interface TpTransactionMapper extends BaseMapper<TpTransaction> {
23 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,6 +107,9 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
107 107
     @Autowired
108 108
     @Qualifier("phoneCodeImpl")
109 109
     private ICode iCode;
110
+
111
+    @Autowired
112
+    private TpTransactionMapper tpTransactionMapper;
110 113
     
111 114
     public static final Logger logger = LoggerFactory.getLogger(BuildingOwnerInfoServiceImpl.class);
112 115
     
@@ -874,6 +877,10 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
874 877
                 tpBuildingOwnerInfoMapper.deleteById(tpBuildingOwnerInfo.getId());
875 878
             }
876 879
             taUserVerifyMapper.deleteById(e);
880
+
881
+            // 作废话题
882
+            tpTransactionMapper.invalidByUuidAndUuidType(e, "app");
883
+
877 884
         });
878 885
 
879 886
         responseBean.addSuccess("操作成功!");