dingxin vor 6 Jahren
Ursprung
Commit
8ffc11324e

+ 1
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java Datei anzeigen

@@ -414,6 +414,7 @@ public class SocialServiceImpl implements SocialServiceI {
414 414
         TpTransaction tpTransaction=tpTransactionMapper.getById(Integer.valueOf(id));
415 415
         if(null!= tpTransaction && userId.equals(tpTransaction.getTaUserId())) {
416 416
             tpTransaction.setStatus("0");
417
+            tpTransaction.setUpdateDate(new Date());
417 418
             tpTransactionMapper.updateByPrimaryKeySelective(tpTransaction);
418 419
             responseBean.addSuccess("删除成功");
419 420
         }else {

+ 1
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionMapper.xml Datei anzeigen

@@ -234,6 +234,6 @@ LEFT JOIN ta_sys_role sr ON sr.id = tsur.role_id
234 234
     select
235 235
     <include refid="Base_Column_List" />
236 236
     from tp_transaction
237
-    where id = #{id,jdbcType=INTEGER}
237
+    where id = #{id,jdbcType=INTEGER} and status = 1
238 238
   </select>
239 239
 </mapper>