dingxin 6 years ago
parent
commit
8ffc11324e

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

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

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

234
     select
234
     select
235
     <include refid="Base_Column_List" />
235
     <include refid="Base_Column_List" />
236
     from tp_transaction
236
     from tp_transaction
237
-    where id = #{id,jdbcType=INTEGER}
237
+    where id = #{id,jdbcType=INTEGER} and status = 1
238
   </select>
238
   </select>
239
 </mapper>
239
 </mapper>