Pārlūkot izejas kodu

合并本地分支

weiximei 6 gadus atpakaļ
vecāks
revīzija
852bb8fbb0

+ 1
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java Parādīt failu

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

+ 1
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionMapper.xml Parādīt failu

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