Przeglądaj źródła

mybatis plus task

xiaoyuzhang 3 lat temu
rodzic
commit
b483b67b44

+ 14 - 0
src/main/java/com/example/springbootdemo/service/impl/FootScanGroupImpl.java

@@ -0,0 +1,14 @@
1
+package com.example.springbootdemo.service.impl;
2
+
3
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4
+import com.example.springbootdemo.entity.FootScanGroup;
5
+import com.example.springbootdemo.mapper.FootScanGroupMapper;
6
+import com.example.springbootdemo.service.FootScanGroupService;
7
+import org.springframework.stereotype.Service;
8
+
9
+@Service
10
+public class FootScanGroupImpl extends ServiceImpl<FootScanGroupMapper,FootScanGroup> implements FootScanGroupService {
11
+
12
+
13
+
14
+}

+ 23 - 0
src/main/java/com/example/springbootdemo/service/impl/FootScanServiceImpl.java

@@ -0,0 +1,23 @@
1
+package com.example.springbootdemo.service.impl;
2
+
3
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4
+import com.example.springbootdemo.entity.FootScanEntity;
5
+import com.example.springbootdemo.mapper.FootScanMapper;
6
+import com.example.springbootdemo.service.FootScanService;
7
+import org.springframework.stereotype.Service;
8
+
9
+import java.util.List;
10
+
11
+@Service
12
+public class FootScanServiceImpl extends ServiceImpl<FootScanMapper,FootScanEntity> implements FootScanService {
13
+    @Override
14
+    public FootScanEntity getFootScanById(Long foot_scan_id) {
15
+        return  baseMapper.queryFootScanInfo(foot_scan_id);
16
+    }
17
+//    @Autowired
18
+//    FootScanMapper footScanMapper;
19
+//    public List<FootScanEntity> getFootScanById(Long foot_scan_id) {
20
+//        return footScanMapper.queryFootScanInfo(foot_scan_id);
21
+//    }
22
+
23
+}