张延森 пре 5 година
родитељ
комит
5a65267012

+ 1
- 0
foyo-service/src/main/java/com/huiju/foyo/service/impl/TaLikeLogServiceImpl.java Прегледај датотеку

@@ -32,6 +32,7 @@ public class TaLikeLogServiceImpl extends ServiceImpl<TaLikeLogMapper, TaLikeLog
32 32
             return null != taCase.getLikeNum() ? taCase.getLikeNum() : 0;
33 33
         }
34 34
 
35
+        taLikeLogMapper.insert(taLikeLog);
35 36
         taCaseMapper.increase(taCase.getId(), 1);
36 37
         taCase = taCaseMapper.selectById(taCase.getId());
37 38
         return taCase.getLikeNum();

+ 3
- 0
foyo-service/src/main/resources/application.yml Прегледај датотеку

@@ -1,3 +1,4 @@
1
+
1 2
 spring:
2 3
   datasource:
3 4
     driver-class-name: com.mysql.jdbc.Driver
@@ -12,3 +13,5 @@ mybatis-plus:
12 13
   configuration:
13 14
     log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
14 15
   mapper-locations: classpath:mapper/*.xml
16
+server:
17
+  port: 8080

+ 1
- 0
foyo-service/src/main/resources/mapper/TaCaseMapper.xml Прегледај датотеку

@@ -15,6 +15,7 @@
15 15
               END
16 16
             FROM
17 17
             ta_case
18
+			WHERE type = 'case'
18 19
             GROUP BY SIGN(id - #{id})
19 20
             ORDER BY SIGN(id - #{id})
20 21
          )