Yansen vor 2 Jahren
Ursprung
Commit
33dbeb312e
65 geänderte Dateien mit 1946 neuen und 1 gelöschten Zeilen
  1. BIN
      db/ybai.db
  2. 8
    0
      pom.xml
  3. 8
    0
      src/main/java/com/yunzhi/inte/common/BaseController.java
  4. 28
    0
      src/main/java/com/yunzhi/inte/config/CorsConfig.java
  5. 21
    0
      src/main/java/com/yunzhi/inte/config/LoggingFilterConfig.java
  6. 24
    0
      src/main/java/com/yunzhi/inte/config/SwaggerConfig.java
  7. 100
    0
      src/main/java/com/yunzhi/inte/controller/DishesController.java
  8. 100
    0
      src/main/java/com/yunzhi/inte/controller/FoodIngredientsController.java
  9. 100
    0
      src/main/java/com/yunzhi/inte/controller/GuaranteeDetailController.java
  10. 100
    0
      src/main/java/com/yunzhi/inte/controller/GuaranteeTaskController.java
  11. 100
    0
      src/main/java/com/yunzhi/inte/controller/PackageController.java
  12. 100
    0
      src/main/java/com/yunzhi/inte/controller/PackageDetailController.java
  13. 100
    0
      src/main/java/com/yunzhi/inte/controller/StoreController.java
  14. 100
    0
      src/main/java/com/yunzhi/inte/controller/StoreLogController.java
  15. 100
    0
      src/main/java/com/yunzhi/inte/controller/StoreTypeController.java
  16. 42
    0
      src/main/java/com/yunzhi/inte/entity/Dishes.java
  17. 28
    0
      src/main/java/com/yunzhi/inte/entity/FoodIngredients.java
  18. 45
    0
      src/main/java/com/yunzhi/inte/entity/GuaranteeDetail.java
  19. 105
    0
      src/main/java/com/yunzhi/inte/entity/GuaranteeTask.java
  20. 42
    0
      src/main/java/com/yunzhi/inte/entity/Package.java
  21. 36
    0
      src/main/java/com/yunzhi/inte/entity/PackageDetail.java
  22. 45
    0
      src/main/java/com/yunzhi/inte/entity/Store.java
  23. 45
    0
      src/main/java/com/yunzhi/inte/entity/StoreLog.java
  24. 42
    0
      src/main/java/com/yunzhi/inte/entity/StoreType.java
  25. 14
    0
      src/main/java/com/yunzhi/inte/mapper/DishesMapper.java
  26. 16
    0
      src/main/java/com/yunzhi/inte/mapper/FoodIngredientsMapper.java
  27. 16
    0
      src/main/java/com/yunzhi/inte/mapper/GuaranteeDetailMapper.java
  28. 16
    0
      src/main/java/com/yunzhi/inte/mapper/GuaranteeTaskMapper.java
  29. 16
    0
      src/main/java/com/yunzhi/inte/mapper/PackageDetailMapper.java
  30. 16
    0
      src/main/java/com/yunzhi/inte/mapper/PackageMapper.java
  31. 16
    0
      src/main/java/com/yunzhi/inte/mapper/StoreLogMapper.java
  32. 16
    0
      src/main/java/com/yunzhi/inte/mapper/StoreMapper.java
  33. 16
    0
      src/main/java/com/yunzhi/inte/mapper/StoreTypeMapper.java
  34. 6
    0
      src/main/java/com/yunzhi/inte/service/DishesService.java
  35. 13
    0
      src/main/java/com/yunzhi/inte/service/FoodIngredientsService.java
  36. 13
    0
      src/main/java/com/yunzhi/inte/service/GuaranteeDetailService.java
  37. 13
    0
      src/main/java/com/yunzhi/inte/service/GuaranteeTaskService.java
  38. 20
    0
      src/main/java/com/yunzhi/inte/service/IBaseService.java
  39. 13
    0
      src/main/java/com/yunzhi/inte/service/PackageDetailService.java
  40. 13
    0
      src/main/java/com/yunzhi/inte/service/PackageService.java
  41. 13
    0
      src/main/java/com/yunzhi/inte/service/StoreLogService.java
  42. 13
    0
      src/main/java/com/yunzhi/inte/service/StoreService.java
  43. 13
    0
      src/main/java/com/yunzhi/inte/service/StoreTypeService.java
  44. BIN
      src/main/java/com/yunzhi/inte/service/db/ybai.db
  45. 54
    0
      src/main/java/com/yunzhi/inte/service/impl/BaseServiceImpl.java
  46. 10
    0
      src/main/java/com/yunzhi/inte/service/impl/DishesServiceImpl.java
  47. 16
    0
      src/main/java/com/yunzhi/inte/service/impl/FoodIngredientsServiceImpl.java
  48. 16
    0
      src/main/java/com/yunzhi/inte/service/impl/GuaranteeDetailServiceImpl.java
  49. 16
    0
      src/main/java/com/yunzhi/inte/service/impl/GuaranteeTaskServiceImpl.java
  50. 16
    0
      src/main/java/com/yunzhi/inte/service/impl/PackageDetailServiceImpl.java
  51. 16
    0
      src/main/java/com/yunzhi/inte/service/impl/PackageServiceImpl.java
  52. 16
    0
      src/main/java/com/yunzhi/inte/service/impl/StoreLogServiceImpl.java
  53. 16
    0
      src/main/java/com/yunzhi/inte/service/impl/StoreServiceImpl.java
  54. 16
    0
      src/main/java/com/yunzhi/inte/service/impl/StoreTypeServiceImpl.java
  55. 6
    1
      src/main/resources/application.yml
  56. 5
    0
      src/main/resources/mapper/DishesMapper.xml
  57. 6
    0
      src/main/resources/mapper/FoodIngredientsMapper.xml
  58. 6
    0
      src/main/resources/mapper/GuaranteeDetailMapper.xml
  59. 6
    0
      src/main/resources/mapper/GuaranteeTaskMapper.xml
  60. 4
    0
      src/main/resources/mapper/MonitorMapper.xml
  61. 6
    0
      src/main/resources/mapper/PackageDetailMapper.xml
  62. 6
    0
      src/main/resources/mapper/PackageMapper.xml
  63. 6
    0
      src/main/resources/mapper/StoreLogMapper.xml
  64. 6
    0
      src/main/resources/mapper/StoreMapper.xml
  65. 6
    0
      src/main/resources/mapper/StoreTypeMapper.xml

BIN
db/ybai.db Datei anzeigen


+ 8
- 0
pom.xml Datei anzeigen

@@ -74,6 +74,14 @@
74 74
 			<artifactId>spring-boot-starter-test</artifactId>
75 75
 			<scope>test</scope>
76 76
 		</dependency>
77
+
78
+		<!--swagger start-->
79
+		<dependency>
80
+			<groupId>io.springfox</groupId>
81
+			<artifactId>springfox-boot-starter</artifactId>
82
+			<version>3.0.0</version>
83
+		</dependency>
84
+		<!--swagger end-->
77 85
 	</dependencies>
78 86
 
79 87
 	<build>

+ 8
- 0
src/main/java/com/yunzhi/inte/common/BaseController.java Datei anzeigen

@@ -0,0 +1,8 @@
1
+package com.yunzhi.inte.common;
2
+
3
+import org.springframework.stereotype.Component;
4
+
5
+@Component
6
+public class BaseController {
7
+
8
+}

+ 28
- 0
src/main/java/com/yunzhi/inte/config/CorsConfig.java Datei anzeigen

@@ -0,0 +1,28 @@
1
+package com.yunzhi.inte.config;
2
+
3
+import org.springframework.context.annotation.Bean;
4
+import org.springframework.context.annotation.Configuration;
5
+import org.springframework.web.cors.CorsConfiguration;
6
+import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
7
+import org.springframework.web.filter.CorsFilter;
8
+
9
+/**
10
+ * 解决跨域问题
11
+ */
12
+@Configuration
13
+public class CorsConfig {
14
+    private CorsConfiguration buildConfig() {
15
+        CorsConfiguration corsConfiguration = new CorsConfiguration();
16
+        corsConfiguration.addAllowedOrigin("*"); // 1 允许任何域名使用
17
+        corsConfiguration.addAllowedHeader("*"); // 2 允许任何头
18
+        corsConfiguration.addAllowedMethod("*"); // 3 允许任何方法(post、get等)
19
+        return corsConfiguration;
20
+    }
21
+
22
+    @Bean
23
+    public CorsFilter corsFilter() {
24
+        UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
25
+        source.registerCorsConfiguration("/**", buildConfig()); // 4
26
+        return new CorsFilter(source);
27
+    }
28
+}

+ 21
- 0
src/main/java/com/yunzhi/inte/config/LoggingFilterConfig.java Datei anzeigen

@@ -0,0 +1,21 @@
1
+package com.yunzhi.inte.config;
2
+
3
+import lombok.extern.slf4j.Slf4j;
4
+import org.springframework.context.annotation.Configuration;
5
+
6
+import javax.servlet.*;
7
+import javax.servlet.http.HttpServletRequest;
8
+import java.io.IOException;
9
+
10
+@Slf4j
11
+@Configuration
12
+public class LoggingFilterConfig implements Filter {
13
+    @Override
14
+    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
15
+        HttpServletRequest req = (HttpServletRequest) request;
16
+        log.info("Request URI: [{}] {}", req.getMethod() , req.getRequestURI());
17
+
18
+        // 继续执行
19
+        chain.doFilter(request, response);
20
+    }
21
+}

+ 24
- 0
src/main/java/com/yunzhi/inte/config/SwaggerConfig.java Datei anzeigen

@@ -0,0 +1,24 @@
1
+package com.yunzhi.inte.config;
2
+
3
+import io.swagger.annotations.Api;
4
+import org.springframework.context.annotation.Bean;
5
+import org.springframework.context.annotation.Configuration;
6
+import springfox.documentation.builders.PathSelectors;
7
+import springfox.documentation.builders.RequestHandlerSelectors;
8
+import springfox.documentation.spi.DocumentationType;
9
+import springfox.documentation.spring.web.plugins.Docket;
10
+import springfox.documentation.swagger2.annotations.EnableSwagger2;
11
+
12
+@Configuration
13
+@EnableSwagger2
14
+public class SwaggerConfig {
15
+    @Bean
16
+    public Docket docket() {
17
+        return new Docket(DocumentationType.SWAGGER_2)
18
+                .select()
19
+                .apis(RequestHandlerSelectors.withClassAnnotation(Api.class))
20
+                .paths(PathSelectors.any())
21
+                .build();
22
+
23
+    }
24
+}

+ 100
- 0
src/main/java/com/yunzhi/inte/controller/DishesController.java Datei anzeigen

@@ -0,0 +1,100 @@
1
+package com.yunzhi.inte.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.inte.common.BaseController;
7
+import com.yunzhi.inte.common.ResponseBean;
8
+import java.util.List;
9
+import io.swagger.annotations.Api;
10
+import io.swagger.annotations.ApiOperation;
11
+import io.swagger.annotations.ApiParam;
12
+import org.springframework.beans.factory.annotation.Autowired;
13
+import org.springframework.web.bind.annotation.*;
14
+import com.yunzhi.inte.entity.Dishes;
15
+import com.yunzhi.inte.service.DishesService;
16
+
17
+/**
18
+ * 菜肴表;(dishes)表控制层
19
+ * @author : http://njyunzhi.com
20
+ * @date : 2022-9-17
21
+ */
22
+@Api(tags = "菜肴表对象功能接口")
23
+@RestController
24
+@RequestMapping("/")
25
+public class DishesController extends BaseController {
26
+
27
+    @Autowired
28
+    private DishesService dishesService;
29
+
30
+    /**
31
+     * 通过ID查询单条数据
32
+     *
33
+     * @param id 主键
34
+     * @return 实例对象
35
+     */
36
+    @ApiOperation("通过ID查询单条数据")
37
+    @GetMapping("/dishes/{id}")
38
+    public ResponseBean queryById(@ApiParam("对象ID") @PathVariable Integer id) throws Exception {
39
+        return ResponseBean.success(dishesService.getById(id));
40
+    }
41
+
42
+    /**
43
+     * 分页查询
44
+     *
45
+     * @param pageNum 当前页码
46
+     * @param pageSize 每页条数
47
+     * @return 查询结果
48
+     */
49
+    @ApiOperation("分页查询")
50
+    @GetMapping("/dishes")
51
+    public ResponseBean list(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+                             @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception {
53
+
54
+        IPage<Dishes> pg = new Page<>(pageNum, pageSize);
55
+        // QueryWrapper<Dishes> queryWrapper = new QueryWrapper<>();
56
+        // queryWrapper.orderByDesc("create_date");
57
+        IPage<Dishes> result = dishesService.page(pg);
58
+
59
+        return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 新增数据
64
+     *
65
+     * @param dishes 实例对象
66
+     * @return 实例对象
67
+     */
68
+    @ApiOperation("新增数据")
69
+    @PostMapping("/dishes")
70
+    public ResponseBean add(Dishes dishes) throws Exception {
71
+        dishesService.save(dishes);
72
+        return ResponseBean.success(dishes);
73
+    }
74
+
75
+    /**
76
+     * 更新数据
77
+     *
78
+     * @param dishes 实例对象
79
+     * @return 实例对象
80
+     */
81
+    @ApiOperation("更新数据")
82
+    @PutMapping("/dishes/{id}")
83
+    public ResponseBean edit(Dishes dishes) throws Exception {
84
+        dishesService.updateById(dishes);
85
+        return ResponseBean.success(dishes);
86
+    }
87
+
88
+    /**
89
+     * 通过主键删除数据
90
+     *
91
+     * @param id 主键
92
+     * @return 是否成功
93
+     */
94
+    @ApiOperation("通过主键删除数据")
95
+    @DeleteMapping("/dishes/{id}")
96
+    public ResponseBean deleteById(@ApiParam("对象ID") @PathVariable Integer id){
97
+        dishesService.removeLogicById(id);
98
+        return ResponseBean.success("success");
99
+    }
100
+}

+ 100
- 0
src/main/java/com/yunzhi/inte/controller/FoodIngredientsController.java Datei anzeigen

@@ -0,0 +1,100 @@
1
+package com.yunzhi.inte.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.inte.common.BaseController;
7
+import com.yunzhi.inte.common.ResponseBean;
8
+import java.util.List;
9
+import io.swagger.annotations.Api;
10
+import io.swagger.annotations.ApiOperation;
11
+import io.swagger.annotations.ApiParam;
12
+import org.springframework.beans.factory.annotation.Autowired;
13
+import org.springframework.web.bind.annotation.*;
14
+import com.yunzhi.inte.entity.FoodIngredients;
15
+import com.yunzhi.inte.service.FoodIngredientsService;
16
+
17
+/**
18
+ * 菜肴食材;(food_ingredients)表控制层
19
+ * @author : http://njyunzhi.com
20
+ * @date : 2022-9-17
21
+ */
22
+@Api(tags = "菜肴食材对象功能接口")
23
+@RestController
24
+@RequestMapping("/")
25
+public class FoodIngredientsController extends BaseController {
26
+
27
+    @Autowired
28
+    private FoodIngredientsService foodIngredientsService;
29
+
30
+    /**
31
+     * 通过ID查询单条数据
32
+     *
33
+     * @param id 主键
34
+     * @return 实例对象
35
+     */
36
+    @ApiOperation("通过ID查询单条数据")
37
+    @GetMapping("/foodIngredients/{id}")
38
+    public ResponseBean queryById(@ApiParam("对象ID") @PathVariable Integer id) throws Exception {
39
+        return ResponseBean.success(foodIngredientsService.getById(id));
40
+    }
41
+
42
+    /**
43
+     * 分页查询
44
+     *
45
+     * @param pageNum 当前页码
46
+     * @param pageSize 每页条数
47
+     * @return 查询结果
48
+     */
49
+    @ApiOperation("分页查询")
50
+    @GetMapping("/foodIngredients")
51
+    public ResponseBean list(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+                             @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception {
53
+
54
+        IPage<FoodIngredients> pg = new Page<>(pageNum, pageSize);
55
+        // QueryWrapper<FoodIngredients> queryWrapper = new QueryWrapper<>();
56
+        // queryWrapper.orderByDesc("create_date");
57
+        IPage<FoodIngredients> result = foodIngredientsService.page(pg);
58
+
59
+        return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 新增数据
64
+     *
65
+     * @param foodIngredients 实例对象
66
+     * @return 实例对象
67
+     */
68
+    @ApiOperation("新增数据")
69
+    @PostMapping("/foodIngredients")
70
+    public ResponseBean add(FoodIngredients foodIngredients) throws Exception {
71
+        foodIngredientsService.save(foodIngredients);
72
+        return ResponseBean.success(foodIngredients);
73
+    }
74
+
75
+    /**
76
+     * 更新数据
77
+     *
78
+     * @param foodIngredients 实例对象
79
+     * @return 实例对象
80
+     */
81
+    @ApiOperation("更新数据")
82
+    @PutMapping("/foodIngredients/{id}")
83
+    public ResponseBean edit(FoodIngredients foodIngredients) throws Exception {
84
+        foodIngredientsService.updateById(foodIngredients);
85
+        return ResponseBean.success(foodIngredients);
86
+    }
87
+
88
+    /**
89
+     * 通过主键删除数据
90
+     *
91
+     * @param id 主键
92
+     * @return 是否成功
93
+     */
94
+    @ApiOperation("通过主键删除数据")
95
+    @DeleteMapping("/foodIngredients/{id}")
96
+    public ResponseBean deleteById(@ApiParam("对象ID") @PathVariable Integer id){
97
+        foodIngredientsService.removeLogicById(id);
98
+        return ResponseBean.success("success");
99
+    }
100
+}

+ 100
- 0
src/main/java/com/yunzhi/inte/controller/GuaranteeDetailController.java Datei anzeigen

@@ -0,0 +1,100 @@
1
+package com.yunzhi.inte.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.inte.common.BaseController;
7
+import com.yunzhi.inte.common.ResponseBean;
8
+import java.util.List;
9
+import io.swagger.annotations.Api;
10
+import io.swagger.annotations.ApiOperation;
11
+import io.swagger.annotations.ApiParam;
12
+import org.springframework.beans.factory.annotation.Autowired;
13
+import org.springframework.web.bind.annotation.*;
14
+import com.yunzhi.inte.entity.GuaranteeDetail;
15
+import com.yunzhi.inte.service.GuaranteeDetailService;
16
+
17
+/**
18
+ * 保障详情;(guarantee_detail)表控制层
19
+ * @author : http://njyunzhi.com
20
+ * @date : 2022-9-17
21
+ */
22
+@Api(tags = "保障详情对象功能接口")
23
+@RestController
24
+@RequestMapping("/")
25
+public class GuaranteeDetailController extends BaseController {
26
+
27
+    @Autowired
28
+    private GuaranteeDetailService guaranteeDetailService;
29
+
30
+    /**
31
+     * 通过ID查询单条数据
32
+     *
33
+     * @param id 主键
34
+     * @return 实例对象
35
+     */
36
+    @ApiOperation("通过ID查询单条数据")
37
+    @GetMapping("/guaranteeDetail/{id}")
38
+    public ResponseBean queryById(@ApiParam("对象ID") @PathVariable Integer id) throws Exception {
39
+        return ResponseBean.success(guaranteeDetailService.getById(id));
40
+    }
41
+
42
+    /**
43
+     * 分页查询
44
+     *
45
+     * @param pageNum 当前页码
46
+     * @param pageSize 每页条数
47
+     * @return 查询结果
48
+     */
49
+    @ApiOperation("分页查询")
50
+    @GetMapping("/guaranteeDetail")
51
+    public ResponseBean list(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+                             @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception {
53
+
54
+        IPage<GuaranteeDetail> pg = new Page<>(pageNum, pageSize);
55
+        // QueryWrapper<GuaranteeDetail> queryWrapper = new QueryWrapper<>();
56
+        // queryWrapper.orderByDesc("create_date");
57
+        IPage<GuaranteeDetail> result = guaranteeDetailService.page(pg);
58
+
59
+        return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 新增数据
64
+     *
65
+     * @param guaranteeDetail 实例对象
66
+     * @return 实例对象
67
+     */
68
+    @ApiOperation("新增数据")
69
+    @PostMapping("/guaranteeDetail")
70
+    public ResponseBean add(GuaranteeDetail guaranteeDetail) throws Exception {
71
+        guaranteeDetailService.save(guaranteeDetail);
72
+        return ResponseBean.success(guaranteeDetail);
73
+    }
74
+
75
+    /**
76
+     * 更新数据
77
+     *
78
+     * @param guaranteeDetail 实例对象
79
+     * @return 实例对象
80
+     */
81
+    @ApiOperation("更新数据")
82
+    @PutMapping("/guaranteeDetail/{id}")
83
+    public ResponseBean edit(GuaranteeDetail guaranteeDetail) throws Exception {
84
+        guaranteeDetailService.updateById(guaranteeDetail);
85
+        return ResponseBean.success(guaranteeDetail);
86
+    }
87
+
88
+    /**
89
+     * 通过主键删除数据
90
+     *
91
+     * @param id 主键
92
+     * @return 是否成功
93
+     */
94
+    @ApiOperation("通过主键删除数据")
95
+    @DeleteMapping("/guaranteeDetail/{id}")
96
+    public ResponseBean deleteById(@ApiParam("对象ID") @PathVariable Integer id){
97
+        guaranteeDetailService.removeLogicById(id);
98
+        return ResponseBean.success("success");
99
+    }
100
+}

+ 100
- 0
src/main/java/com/yunzhi/inte/controller/GuaranteeTaskController.java Datei anzeigen

@@ -0,0 +1,100 @@
1
+package com.yunzhi.inte.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.inte.common.BaseController;
7
+import com.yunzhi.inte.common.ResponseBean;
8
+import java.util.List;
9
+import io.swagger.annotations.Api;
10
+import io.swagger.annotations.ApiOperation;
11
+import io.swagger.annotations.ApiParam;
12
+import org.springframework.beans.factory.annotation.Autowired;
13
+import org.springframework.web.bind.annotation.*;
14
+import com.yunzhi.inte.entity.GuaranteeTask;
15
+import com.yunzhi.inte.service.GuaranteeTaskService;
16
+
17
+/**
18
+ * 供给保障;(guarantee_task)表控制层
19
+ * @author : http://njyunzhi.com
20
+ * @date : 2022-9-17
21
+ */
22
+@Api(tags = "供给保障对象功能接口")
23
+@RestController
24
+@RequestMapping("/")
25
+public class GuaranteeTaskController extends BaseController {
26
+
27
+    @Autowired
28
+    private GuaranteeTaskService guaranteeTaskService;
29
+
30
+    /**
31
+     * 通过ID查询单条数据
32
+     *
33
+     * @param id 主键
34
+     * @return 实例对象
35
+     */
36
+    @ApiOperation("通过ID查询单条数据")
37
+    @GetMapping("/guaranteeTask/{id}")
38
+    public ResponseBean queryById(@ApiParam("对象ID") @PathVariable Integer id) throws Exception {
39
+        return ResponseBean.success(guaranteeTaskService.getById(id));
40
+    }
41
+
42
+    /**
43
+     * 分页查询
44
+     *
45
+     * @param pageNum 当前页码
46
+     * @param pageSize 每页条数
47
+     * @return 查询结果
48
+     */
49
+    @ApiOperation("分页查询")
50
+    @GetMapping("/guaranteeTask")
51
+    public ResponseBean list(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+                             @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception {
53
+
54
+        IPage<GuaranteeTask> pg = new Page<>(pageNum, pageSize);
55
+        // QueryWrapper<GuaranteeTask> queryWrapper = new QueryWrapper<>();
56
+        // queryWrapper.orderByDesc("create_date");
57
+        IPage<GuaranteeTask> result = guaranteeTaskService.page(pg);
58
+
59
+        return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 新增数据
64
+     *
65
+     * @param guaranteeTask 实例对象
66
+     * @return 实例对象
67
+     */
68
+    @ApiOperation("新增数据")
69
+    @PostMapping("/guaranteeTask")
70
+    public ResponseBean add(GuaranteeTask guaranteeTask) throws Exception {
71
+        guaranteeTaskService.save(guaranteeTask);
72
+        return ResponseBean.success(guaranteeTask);
73
+    }
74
+
75
+    /**
76
+     * 更新数据
77
+     *
78
+     * @param guaranteeTask 实例对象
79
+     * @return 实例对象
80
+     */
81
+    @ApiOperation("更新数据")
82
+    @PutMapping("/guaranteeTask/{id}")
83
+    public ResponseBean edit(GuaranteeTask guaranteeTask) throws Exception {
84
+        guaranteeTaskService.updateById(guaranteeTask);
85
+        return ResponseBean.success(guaranteeTask);
86
+    }
87
+
88
+    /**
89
+     * 通过主键删除数据
90
+     *
91
+     * @param id 主键
92
+     * @return 是否成功
93
+     */
94
+    @ApiOperation("通过主键删除数据")
95
+    @DeleteMapping("/guaranteeTask/{id}")
96
+    public ResponseBean deleteById(@ApiParam("对象ID") @PathVariable Integer id){
97
+        guaranteeTaskService.removeLogicById(id);
98
+        return ResponseBean.success("success");
99
+    }
100
+}

+ 100
- 0
src/main/java/com/yunzhi/inte/controller/PackageController.java Datei anzeigen

@@ -0,0 +1,100 @@
1
+package com.yunzhi.inte.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.inte.common.BaseController;
7
+import com.yunzhi.inte.common.ResponseBean;
8
+import java.util.List;
9
+import io.swagger.annotations.Api;
10
+import io.swagger.annotations.ApiOperation;
11
+import io.swagger.annotations.ApiParam;
12
+import org.springframework.beans.factory.annotation.Autowired;
13
+import org.springframework.web.bind.annotation.*;
14
+import com.yunzhi.inte.entity.Package;
15
+import com.yunzhi.inte.service.PackageService;
16
+
17
+/**
18
+ * 套餐;(package)表控制层
19
+ * @author : http://njyunzhi.com
20
+ * @date : 2022-9-17
21
+ */
22
+@Api(tags = "套餐对象功能接口")
23
+@RestController
24
+@RequestMapping("/")
25
+public class PackageController extends BaseController {
26
+
27
+    @Autowired
28
+    private PackageService packageService;
29
+
30
+    /**
31
+     * 通过ID查询单条数据
32
+     *
33
+     * @param id 主键
34
+     * @return 实例对象
35
+     */
36
+    @ApiOperation("通过ID查询单条数据")
37
+    @GetMapping("/package/{id}")
38
+    public ResponseBean queryById(@ApiParam("对象ID") @PathVariable Integer id) throws Exception {
39
+        return ResponseBean.success(packageService.getById(id));
40
+    }
41
+
42
+    /**
43
+     * 分页查询
44
+     *
45
+     * @param pageNum 当前页码
46
+     * @param pageSize 每页条数
47
+     * @return 查询结果
48
+     */
49
+    @ApiOperation("分页查询")
50
+    @GetMapping("/package")
51
+    public ResponseBean list(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+                             @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception {
53
+
54
+        IPage<Package> pg = new Page<>(pageNum, pageSize);
55
+        // QueryWrapper<Package> queryWrapper = new QueryWrapper<>();
56
+        // queryWrapper.orderByDesc("create_date");
57
+        IPage<Package> result = packageService.page(pg);
58
+
59
+        return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 新增数据
64
+     *
65
+     * @param pkg 实例对象
66
+     * @return 实例对象
67
+     */
68
+    @ApiOperation("新增数据")
69
+    @PostMapping("/package")
70
+    public ResponseBean add(Package pkg) throws Exception {
71
+        packageService.save(pkg);
72
+        return ResponseBean.success(pkg);
73
+    }
74
+
75
+    /**
76
+     * 更新数据
77
+     *
78
+     * @param pkg 实例对象
79
+     * @return 实例对象
80
+     */
81
+    @ApiOperation("更新数据")
82
+    @PutMapping("/package/{id}")
83
+    public ResponseBean edit(Package pkg) throws Exception {
84
+        packageService.updateById(pkg);
85
+        return ResponseBean.success(pkg);
86
+    }
87
+
88
+    /**
89
+     * 通过主键删除数据
90
+     *
91
+     * @param id 主键
92
+     * @return 是否成功
93
+     */
94
+    @ApiOperation("通过主键删除数据")
95
+    @DeleteMapping("/package/{id}")
96
+    public ResponseBean deleteById(@ApiParam("对象ID") @PathVariable Integer id){
97
+        packageService.removeLogicById(id);
98
+        return ResponseBean.success("success");
99
+    }
100
+}

+ 100
- 0
src/main/java/com/yunzhi/inte/controller/PackageDetailController.java Datei anzeigen

@@ -0,0 +1,100 @@
1
+package com.yunzhi.inte.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.inte.common.BaseController;
7
+import com.yunzhi.inte.common.ResponseBean;
8
+import java.util.List;
9
+import io.swagger.annotations.Api;
10
+import io.swagger.annotations.ApiOperation;
11
+import io.swagger.annotations.ApiParam;
12
+import org.springframework.beans.factory.annotation.Autowired;
13
+import org.springframework.web.bind.annotation.*;
14
+import com.yunzhi.inte.entity.PackageDetail;
15
+import com.yunzhi.inte.service.PackageDetailService;
16
+
17
+/**
18
+ * 套餐详情;(package_detail)表控制层
19
+ * @author : http://njyunzhi.com
20
+ * @date : 2022-9-17
21
+ */
22
+@Api(tags = "套餐详情对象功能接口")
23
+@RestController
24
+@RequestMapping("/")
25
+public class PackageDetailController extends BaseController {
26
+
27
+    @Autowired
28
+    private PackageDetailService packageDetailService;
29
+
30
+    /**
31
+     * 通过ID查询单条数据
32
+     *
33
+     * @param id 主键
34
+     * @return 实例对象
35
+     */
36
+    @ApiOperation("通过ID查询单条数据")
37
+    @GetMapping("/packageDetail/{id}")
38
+    public ResponseBean queryById(@ApiParam("对象ID") @PathVariable Integer id) throws Exception {
39
+        return ResponseBean.success(packageDetailService.getById(id));
40
+    }
41
+
42
+    /**
43
+     * 分页查询
44
+     *
45
+     * @param pageNum 当前页码
46
+     * @param pageSize 每页条数
47
+     * @return 查询结果
48
+     */
49
+    @ApiOperation("分页查询")
50
+    @GetMapping("/packageDetail")
51
+    public ResponseBean list(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+                             @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception {
53
+
54
+        IPage<PackageDetail> pg = new Page<>(pageNum, pageSize);
55
+        // QueryWrapper<PackageDetail> queryWrapper = new QueryWrapper<>();
56
+        // queryWrapper.orderByDesc("create_date");
57
+        IPage<PackageDetail> result = packageDetailService.page(pg);
58
+
59
+        return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 新增数据
64
+     *
65
+     * @param packageDetail 实例对象
66
+     * @return 实例对象
67
+     */
68
+    @ApiOperation("新增数据")
69
+    @PostMapping("/packageDetail")
70
+    public ResponseBean add(PackageDetail packageDetail) throws Exception {
71
+        packageDetailService.save(packageDetail);
72
+        return ResponseBean.success(packageDetail);
73
+    }
74
+
75
+    /**
76
+     * 更新数据
77
+     *
78
+     * @param packageDetail 实例对象
79
+     * @return 实例对象
80
+     */
81
+    @ApiOperation("更新数据")
82
+    @PutMapping("/packageDetail/{id}")
83
+    public ResponseBean edit(PackageDetail packageDetail) throws Exception {
84
+        packageDetailService.updateById(packageDetail);
85
+        return ResponseBean.success(packageDetail);
86
+    }
87
+
88
+    /**
89
+     * 通过主键删除数据
90
+     *
91
+     * @param id 主键
92
+     * @return 是否成功
93
+     */
94
+    @ApiOperation("通过主键删除数据")
95
+    @DeleteMapping("/packageDetail/{id}")
96
+    public ResponseBean deleteById(@ApiParam("对象ID") @PathVariable Integer id){
97
+        packageDetailService.removeLogicById(id);
98
+        return ResponseBean.success("success");
99
+    }
100
+}

+ 100
- 0
src/main/java/com/yunzhi/inte/controller/StoreController.java Datei anzeigen

@@ -0,0 +1,100 @@
1
+package com.yunzhi.inte.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.inte.common.BaseController;
7
+import com.yunzhi.inte.common.ResponseBean;
8
+import java.util.List;
9
+import io.swagger.annotations.Api;
10
+import io.swagger.annotations.ApiOperation;
11
+import io.swagger.annotations.ApiParam;
12
+import org.springframework.beans.factory.annotation.Autowired;
13
+import org.springframework.web.bind.annotation.*;
14
+import com.yunzhi.inte.entity.Store;
15
+import com.yunzhi.inte.service.StoreService;
16
+
17
+/**
18
+ * 库存表;(store)表控制层
19
+ * @author : http://njyunzhi.com
20
+ * @date : 2022-9-17
21
+ */
22
+@Api(tags = "库存表对象功能接口")
23
+@RestController
24
+@RequestMapping("/")
25
+public class StoreController extends BaseController {
26
+
27
+    @Autowired
28
+    private StoreService storeService;
29
+
30
+    /**
31
+     * 通过ID查询单条数据
32
+     *
33
+     * @param id 主键
34
+     * @return 实例对象
35
+     */
36
+    @ApiOperation("通过ID查询单条数据")
37
+    @GetMapping("/store/{id}")
38
+    public ResponseBean queryById(@ApiParam("对象ID") @PathVariable Integer id) throws Exception {
39
+        return ResponseBean.success(storeService.getById(id));
40
+    }
41
+
42
+    /**
43
+     * 分页查询
44
+     *
45
+     * @param pageNum 当前页码
46
+     * @param pageSize 每页条数
47
+     * @return 查询结果
48
+     */
49
+    @ApiOperation("分页查询")
50
+    @GetMapping("/store")
51
+    public ResponseBean list(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+                             @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception {
53
+
54
+        IPage<Store> pg = new Page<>(pageNum, pageSize);
55
+        // QueryWrapper<Store> queryWrapper = new QueryWrapper<>();
56
+        // queryWrapper.orderByDesc("create_date");
57
+        IPage<Store> result = storeService.page(pg);
58
+
59
+        return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 新增数据
64
+     *
65
+     * @param store 实例对象
66
+     * @return 实例对象
67
+     */
68
+    @ApiOperation("新增数据")
69
+    @PostMapping("/store")
70
+    public ResponseBean add(Store store) throws Exception {
71
+        storeService.save(store);
72
+        return ResponseBean.success(store);
73
+    }
74
+
75
+    /**
76
+     * 更新数据
77
+     *
78
+     * @param store 实例对象
79
+     * @return 实例对象
80
+     */
81
+    @ApiOperation("更新数据")
82
+    @PutMapping("/store/{id}")
83
+    public ResponseBean edit(Store store) throws Exception {
84
+        storeService.updateById(store);
85
+        return ResponseBean.success(store);
86
+    }
87
+
88
+    /**
89
+     * 通过主键删除数据
90
+     *
91
+     * @param id 主键
92
+     * @return 是否成功
93
+     */
94
+    @ApiOperation("通过主键删除数据")
95
+    @DeleteMapping("/store/{id}")
96
+    public ResponseBean deleteById(@ApiParam("对象ID") @PathVariable Integer id){
97
+        storeService.removeLogicById(id);
98
+        return ResponseBean.success("success");
99
+    }
100
+}

+ 100
- 0
src/main/java/com/yunzhi/inte/controller/StoreLogController.java Datei anzeigen

@@ -0,0 +1,100 @@
1
+package com.yunzhi.inte.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.inte.common.BaseController;
7
+import com.yunzhi.inte.common.ResponseBean;
8
+import java.util.List;
9
+import io.swagger.annotations.Api;
10
+import io.swagger.annotations.ApiOperation;
11
+import io.swagger.annotations.ApiParam;
12
+import org.springframework.beans.factory.annotation.Autowired;
13
+import org.springframework.web.bind.annotation.*;
14
+import com.yunzhi.inte.entity.StoreLog;
15
+import com.yunzhi.inte.service.StoreLogService;
16
+
17
+/**
18
+ * 库存日志;(store_log)表控制层
19
+ * @author : http://njyunzhi.com
20
+ * @date : 2022-9-17
21
+ */
22
+@Api(tags = "库存日志对象功能接口")
23
+@RestController
24
+@RequestMapping("/")
25
+public class StoreLogController extends BaseController {
26
+
27
+    @Autowired
28
+    private StoreLogService storeLogService;
29
+
30
+    /**
31
+     * 通过ID查询单条数据
32
+     *
33
+     * @param id 主键
34
+     * @return 实例对象
35
+     */
36
+    @ApiOperation("通过ID查询单条数据")
37
+    @GetMapping("/storeLog/{id}")
38
+    public ResponseBean queryById(@ApiParam("对象ID") @PathVariable Integer id) throws Exception {
39
+        return ResponseBean.success(storeLogService.getById(id));
40
+    }
41
+
42
+    /**
43
+     * 分页查询
44
+     *
45
+     * @param pageNum 当前页码
46
+     * @param pageSize 每页条数
47
+     * @return 查询结果
48
+     */
49
+    @ApiOperation("分页查询")
50
+    @GetMapping("/storeLog")
51
+    public ResponseBean list(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+                             @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception {
53
+
54
+        IPage<StoreLog> pg = new Page<>(pageNum, pageSize);
55
+        // QueryWrapper<StoreLog> queryWrapper = new QueryWrapper<>();
56
+        // queryWrapper.orderByDesc("create_date");
57
+        IPage<StoreLog> result = storeLogService.page(pg);
58
+
59
+        return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 新增数据
64
+     *
65
+     * @param storeLog 实例对象
66
+     * @return 实例对象
67
+     */
68
+    @ApiOperation("新增数据")
69
+    @PostMapping("/storeLog")
70
+    public ResponseBean add(StoreLog storeLog) throws Exception {
71
+        storeLogService.save(storeLog);
72
+        return ResponseBean.success(storeLog);
73
+    }
74
+
75
+    /**
76
+     * 更新数据
77
+     *
78
+     * @param storeLog 实例对象
79
+     * @return 实例对象
80
+     */
81
+    @ApiOperation("更新数据")
82
+    @PutMapping("/storeLog/{id}")
83
+    public ResponseBean edit(StoreLog storeLog) throws Exception {
84
+        storeLogService.updateById(storeLog);
85
+        return ResponseBean.success(storeLog);
86
+    }
87
+
88
+    /**
89
+     * 通过主键删除数据
90
+     *
91
+     * @param id 主键
92
+     * @return 是否成功
93
+     */
94
+    @ApiOperation("通过主键删除数据")
95
+    @DeleteMapping("/storeLog/{id}")
96
+    public ResponseBean deleteById(@ApiParam("对象ID") @PathVariable Integer id){
97
+        storeLogService.removeLogicById(id);
98
+        return ResponseBean.success("success");
99
+    }
100
+}

+ 100
- 0
src/main/java/com/yunzhi/inte/controller/StoreTypeController.java Datei anzeigen

@@ -0,0 +1,100 @@
1
+package com.yunzhi.inte.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.inte.common.BaseController;
7
+import com.yunzhi.inte.common.ResponseBean;
8
+import java.util.List;
9
+import io.swagger.annotations.Api;
10
+import io.swagger.annotations.ApiOperation;
11
+import io.swagger.annotations.ApiParam;
12
+import org.springframework.beans.factory.annotation.Autowired;
13
+import org.springframework.web.bind.annotation.*;
14
+import com.yunzhi.inte.entity.StoreType;
15
+import com.yunzhi.inte.service.StoreTypeService;
16
+
17
+/**
18
+ * 库存分类;(store_type)表控制层
19
+ * @author : http://njyunzhi.com
20
+ * @date : 2022-9-17
21
+ */
22
+@Api(tags = "库存分类对象功能接口")
23
+@RestController
24
+@RequestMapping("/")
25
+public class StoreTypeController extends BaseController {
26
+
27
+    @Autowired
28
+    private StoreTypeService storeTypeService;
29
+
30
+    /**
31
+     * 通过ID查询单条数据
32
+     *
33
+     * @param id 主键
34
+     * @return 实例对象
35
+     */
36
+    @ApiOperation("通过ID查询单条数据")
37
+    @GetMapping("/storeType/{id}")
38
+    public ResponseBean queryById(@ApiParam("对象ID") @PathVariable Integer id) throws Exception {
39
+        return ResponseBean.success(storeTypeService.getById(id));
40
+    }
41
+
42
+    /**
43
+     * 分页查询
44
+     *
45
+     * @param pageNum 当前页码
46
+     * @param pageSize 每页条数
47
+     * @return 查询结果
48
+     */
49
+    @ApiOperation("分页查询")
50
+    @GetMapping("/storeType")
51
+    public ResponseBean list(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+                             @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception {
53
+
54
+        IPage<StoreType> pg = new Page<>(pageNum, pageSize);
55
+        // QueryWrapper<StoreType> queryWrapper = new QueryWrapper<>();
56
+        // queryWrapper.orderByDesc("create_date");
57
+        IPage<StoreType> result = storeTypeService.page(pg);
58
+
59
+        return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 新增数据
64
+     *
65
+     * @param storeType 实例对象
66
+     * @return 实例对象
67
+     */
68
+    @ApiOperation("新增数据")
69
+    @PostMapping("/storeType")
70
+    public ResponseBean add(StoreType storeType) throws Exception {
71
+        storeTypeService.save(storeType);
72
+        return ResponseBean.success(storeType);
73
+    }
74
+
75
+    /**
76
+     * 更新数据
77
+     *
78
+     * @param storeType 实例对象
79
+     * @return 实例对象
80
+     */
81
+    @ApiOperation("更新数据")
82
+    @PutMapping("/storeType/{id}")
83
+    public ResponseBean edit(StoreType storeType) throws Exception {
84
+        storeTypeService.updateById(storeType);
85
+        return ResponseBean.success(storeType);
86
+    }
87
+
88
+    /**
89
+     * 通过主键删除数据
90
+     *
91
+     * @param id 主键
92
+     * @return 是否成功
93
+     */
94
+    @ApiOperation("通过主键删除数据")
95
+    @DeleteMapping("/storeType/{id}")
96
+    public ResponseBean deleteById(@ApiParam("对象ID") @PathVariable Integer id){
97
+        storeTypeService.removeLogicById(id);
98
+        return ResponseBean.success("success");
99
+    }
100
+}

+ 42
- 0
src/main/java/com/yunzhi/inte/entity/Dishes.java Datei anzeigen

@@ -0,0 +1,42 @@
1
+package com.yunzhi.inte.entity;
2
+
3
+import io.swagger.annotations.ApiModel;
4
+import io.swagger.annotations.ApiModelProperty;
5
+import com.baomidou.mybatisplus.annotation.IdType;
6
+import com.baomidou.mybatisplus.annotation.TableName;
7
+import com.baomidou.mybatisplus.annotation.TableId;
8
+import java.io.Serializable;
9
+import java.util.Date;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * 菜肴表;
16
+ * @author : http://www.chiner.pro
17
+ * @date : 2022-9-17
18
+ */
19
+@Data
20
+@EqualsAndHashCode(callSuper = false)
21
+@Accessors(chain = true)
22
+@ApiModel(value = "菜肴表",description = "")
23
+@TableName("dishes")
24
+public class Dishes implements Serializable,Cloneable{
25
+    /** 菜肴ID */
26
+    @ApiModelProperty(name = "菜肴ID",notes = "")
27
+    @TableId(value = "id", type = IdType.INPUT)
28
+    private Integer id ;
29
+    /** 菜肴名称 */
30
+    @ApiModelProperty(name = "菜肴名称",notes = "")
31
+    private String name ;
32
+    /** 菜肴单位 */
33
+    @ApiModelProperty(name = "菜肴单位",notes = "")
34
+    private String unit ;
35
+    /** 状态 */
36
+    @ApiModelProperty(name = "状态",notes = "")
37
+    private Integer status ;
38
+    /** 创建时间 */
39
+    @ApiModelProperty(name = "创建时间",notes = "")
40
+    private Date createDate ;
41
+
42
+}

+ 28
- 0
src/main/java/com/yunzhi/inte/entity/FoodIngredients.java Datei anzeigen

@@ -0,0 +1,28 @@
1
+package com.yunzhi.inte.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import lombok.Data;
6
+import lombok.EqualsAndHashCode;
7
+import lombok.experimental.Accessors;
8
+
9
+import java.io.Serializable;
10
+
11
+/**
12
+ * 菜肴食材;
13
+ * @author : http://www.chiner.pro
14
+ * @date : 2022-9-17
15
+ */
16
+@Data
17
+@EqualsAndHashCode(callSuper = false)
18
+@Accessors(chain = true)
19
+public class FoodIngredients implements Serializable,Cloneable{
20
+    /** 序号 */
21
+    @TableId(value = "id", type = IdType.AUTO)
22
+    private Integer id ;
23
+    /** 菜肴ID */
24
+    private Integer dishId ;
25
+    /** 食材ID */
26
+    private Integer itemId ;
27
+
28
+}

+ 45
- 0
src/main/java/com/yunzhi/inte/entity/GuaranteeDetail.java Datei anzeigen

@@ -0,0 +1,45 @@
1
+package com.yunzhi.inte.entity;
2
+
3
+import io.swagger.annotations.ApiModel;
4
+import io.swagger.annotations.ApiModelProperty;
5
+import com.baomidou.mybatisplus.annotation.IdType;
6
+import com.baomidou.mybatisplus.annotation.TableName;
7
+import com.baomidou.mybatisplus.annotation.TableId;
8
+import java.io.Serializable;
9
+import java.util.Date;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * 保障详情;
16
+ * @author : http://www.chiner.pro
17
+ * @date : 2022-9-17
18
+ */
19
+@Data
20
+@EqualsAndHashCode(callSuper = false)
21
+@Accessors(chain = true)
22
+@ApiModel(value = "保障详情",description = "")
23
+@TableName("guarantee_detail")
24
+public class GuaranteeDetail implements Serializable,Cloneable{
25
+    /** 序号 */
26
+    @ApiModelProperty(name = "序号",notes = "")
27
+    @TableId(value = "id", type = IdType.INPUT)
28
+    private Integer id ;
29
+    /** 保障ID */
30
+    @ApiModelProperty(name = "保障ID",notes = "")
31
+    private Integer guaranteeId ;
32
+    /** 菜肴ID */
33
+    @ApiModelProperty(name = "菜肴ID",notes = "")
34
+    private Integer dishId ;
35
+    /** 菜肴名称 */
36
+    @ApiModelProperty(name = "菜肴名称",notes = "")
37
+    private String dishName ;
38
+    /** 菜肴单位 */
39
+    @ApiModelProperty(name = "菜肴单位",notes = "")
40
+    private String dishUnit ;
41
+    /** 菜肴数量 */
42
+    @ApiModelProperty(name = "菜肴数量",notes = "")
43
+    private Integer dishAmount ;
44
+
45
+}

+ 105
- 0
src/main/java/com/yunzhi/inte/entity/GuaranteeTask.java Datei anzeigen

@@ -0,0 +1,105 @@
1
+package com.yunzhi.inte.entity;
2
+
3
+import io.swagger.annotations.ApiModel;
4
+import io.swagger.annotations.ApiModelProperty;
5
+import com.baomidou.mybatisplus.annotation.IdType;
6
+import com.baomidou.mybatisplus.annotation.TableName;
7
+import com.baomidou.mybatisplus.annotation.TableId;
8
+import java.io.Serializable;
9
+import java.util.Date;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * 供给保障;
16
+ * @author : http://www.chiner.pro
17
+ * @date : 2022-9-17
18
+ */
19
+@Data
20
+@EqualsAndHashCode(callSuper = false)
21
+@Accessors(chain = true)
22
+@ApiModel(value = "供给保障",description = "")
23
+@TableName("guarantee_task")
24
+public class GuaranteeTask implements Serializable,Cloneable{
25
+    /** id */
26
+    @ApiModelProperty(name = "id",notes = "")
27
+    @TableId(value = "id", type = IdType.INPUT)
28
+    private Integer id ;
29
+    /** 受领人 */
30
+    @ApiModelProperty(name = "受领人",notes = "")
31
+    private String receiver ;
32
+    /** 受领人电话 */
33
+    @ApiModelProperty(name = "受领人电话",notes = "")
34
+    private String receiverPhone ;
35
+    /** 联系人 */
36
+    @ApiModelProperty(name = "联系人",notes = "")
37
+    private String concatPerson ;
38
+    /** 联系电话 */
39
+    @ApiModelProperty(name = "联系电话",notes = "")
40
+    private String concatPhone ;
41
+    /** 制餐人 */
42
+    @ApiModelProperty(name = "制餐人",notes = "")
43
+    private String chef ;
44
+    /** 制餐人手机 */
45
+    @ApiModelProperty(name = "制餐人手机",notes = "")
46
+    private String chefPhone ;
47
+    /** 送餐人 */
48
+    @ApiModelProperty(name = "送餐人",notes = "")
49
+    private String deliveryMan ;
50
+    /** 送餐人电话 */
51
+    @ApiModelProperty(name = "送餐人电话",notes = "")
52
+    private String deliveryPhone ;
53
+    /** 军代表 */
54
+    @ApiModelProperty(name = "军代表",notes = "")
55
+    private String deputyMan ;
56
+    /** 军代表电话 */
57
+    @ApiModelProperty(name = "军代表电话",notes = "")
58
+    private String deputyPhone ;
59
+    /** 通报时间 */
60
+    @ApiModelProperty(name = "通报时间",notes = "")
61
+    private Date gotDate ;
62
+    /** 保障序号 */
63
+    @ApiModelProperty(name = "保障序号",notes = "")
64
+    private String guaranteeNo ;
65
+    /** 军运号 */
66
+    @ApiModelProperty(name = "军运号",notes = "")
67
+    private String transportNo ;
68
+    /** 车次 */
69
+    @ApiModelProperty(name = "车次",notes = "")
70
+    private String tripsNo ;
71
+    /** 开始日期 */
72
+    @ApiModelProperty(name = "开始日期",notes = "")
73
+    private Date startDate ;
74
+    /** 结束日期 */
75
+    @ApiModelProperty(name = "结束日期",notes = "")
76
+    private Date endDate ;
77
+    /** 保障时间 */
78
+    @ApiModelProperty(name = "保障时间",notes = "")
79
+    private String timeRange ;
80
+    /** 保障人数 */
81
+    @ApiModelProperty(name = "保障人数",notes = "")
82
+    private Integer totalPersonNum ;
83
+    /** 回民人数 */
84
+    @ApiModelProperty(name = "回民人数",notes = "")
85
+    private Integer huiPersonNum ;
86
+    /** 病号人数 */
87
+    @ApiModelProperty(name = "病号人数",notes = "")
88
+    private Integer patientNum ;
89
+    /** 保障地点 */
90
+    @ApiModelProperty(name = "保障地点",notes = "")
91
+    private String address ;
92
+    /** 保障标准 */
93
+    @ApiModelProperty(name = "保障标准",notes = "")
94
+    private String standard ;
95
+    /** 备注 */
96
+    @ApiModelProperty(name = "备注",notes = "")
97
+    private String remark ;
98
+    /** 状态 */
99
+    @ApiModelProperty(name = "状态",notes = "")
100
+    private Integer status ;
101
+    /** 创建日期 */
102
+    @ApiModelProperty(name = "创建日期",notes = "")
103
+    private Date createDate ;
104
+
105
+}

+ 42
- 0
src/main/java/com/yunzhi/inte/entity/Package.java Datei anzeigen

@@ -0,0 +1,42 @@
1
+package com.yunzhi.inte.entity;
2
+
3
+import io.swagger.annotations.ApiModel;
4
+import io.swagger.annotations.ApiModelProperty;
5
+import com.baomidou.mybatisplus.annotation.IdType;
6
+import com.baomidou.mybatisplus.annotation.TableName;
7
+import com.baomidou.mybatisplus.annotation.TableId;
8
+import java.io.Serializable;
9
+import java.util.Date;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * 套餐;
16
+ * @author : http://www.chiner.pro
17
+ * @date : 2022-9-17
18
+ */
19
+@Data
20
+@EqualsAndHashCode(callSuper = false)
21
+@Accessors(chain = true)
22
+@ApiModel(value = "套餐",description = "")
23
+@TableName("package")
24
+public class Package implements Serializable,Cloneable{
25
+    /** 套餐ID */
26
+    @ApiModelProperty(name = "套餐ID",notes = "")
27
+    @TableId(value = "id", type = IdType.INPUT)
28
+    private Integer id ;
29
+    /** 套餐名称 */
30
+    @ApiModelProperty(name = "套餐名称",notes = "")
31
+    private String name ;
32
+    /** 单位 */
33
+    @ApiModelProperty(name = "单位",notes = "")
34
+    private String unit ;
35
+    /** 状态 */
36
+    @ApiModelProperty(name = "状态",notes = "")
37
+    private Integer status ;
38
+    /** 创建时间 */
39
+    @ApiModelProperty(name = "创建时间",notes = "")
40
+    private Date createDate ;
41
+
42
+}

+ 36
- 0
src/main/java/com/yunzhi/inte/entity/PackageDetail.java Datei anzeigen

@@ -0,0 +1,36 @@
1
+package com.yunzhi.inte.entity;
2
+
3
+import io.swagger.annotations.ApiModel;
4
+import io.swagger.annotations.ApiModelProperty;
5
+import com.baomidou.mybatisplus.annotation.IdType;
6
+import com.baomidou.mybatisplus.annotation.TableName;
7
+import com.baomidou.mybatisplus.annotation.TableId;
8
+import java.io.Serializable;
9
+import java.util.Date;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * 套餐详情;
16
+ * @author : http://www.chiner.pro
17
+ * @date : 2022-9-17
18
+ */
19
+@Data
20
+@EqualsAndHashCode(callSuper = false)
21
+@Accessors(chain = true)
22
+@ApiModel(value = "套餐详情",description = "")
23
+@TableName("package_detail")
24
+public class PackageDetail implements Serializable,Cloneable{
25
+    /** 序号 */
26
+    @ApiModelProperty(name = "序号",notes = "")
27
+    @TableId(value = "id", type = IdType.INPUT)
28
+    private Integer id ;
29
+    /** 套餐ID */
30
+    @ApiModelProperty(name = "套餐ID",notes = "")
31
+    private Integer packageId ;
32
+    /** 菜肴ID */
33
+    @ApiModelProperty(name = "菜肴ID",notes = "")
34
+    private Integer dishId ;
35
+
36
+}

+ 45
- 0
src/main/java/com/yunzhi/inte/entity/Store.java Datei anzeigen

@@ -0,0 +1,45 @@
1
+package com.yunzhi.inte.entity;
2
+
3
+import io.swagger.annotations.ApiModel;
4
+import io.swagger.annotations.ApiModelProperty;
5
+import com.baomidou.mybatisplus.annotation.IdType;
6
+import com.baomidou.mybatisplus.annotation.TableName;
7
+import com.baomidou.mybatisplus.annotation.TableId;
8
+import java.io.Serializable;
9
+import java.util.Date;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * 库存表;
16
+ * @author : http://www.chiner.pro
17
+ * @date : 2022-9-17
18
+ */
19
+@Data
20
+@EqualsAndHashCode(callSuper = false)
21
+@Accessors(chain = true)
22
+@ApiModel(value = "库存表",description = "")
23
+@TableName("store")
24
+public class Store implements Serializable,Cloneable{
25
+    /** ID */
26
+    @ApiModelProperty(name = "ID",notes = "")
27
+    @TableId(value = "id", type = IdType.INPUT)
28
+    private Integer id ;
29
+    /** 物品名称 */
30
+    @ApiModelProperty(name = "物品名称",notes = "")
31
+    private String name ;
32
+    /** 所属分类 */
33
+    @ApiModelProperty(name = "所属分类",notes = "")
34
+    private Integer typeId ;
35
+    /** 库存量 */
36
+    @ApiModelProperty(name = "库存量",notes = "")
37
+    private Integer amount ;
38
+    /** 状态 */
39
+    @ApiModelProperty(name = "状态",notes = "")
40
+    private Integer status ;
41
+    /** 创建时间 */
42
+    @ApiModelProperty(name = "创建时间",notes = "")
43
+    private Date createDate ;
44
+
45
+}

+ 45
- 0
src/main/java/com/yunzhi/inte/entity/StoreLog.java Datei anzeigen

@@ -0,0 +1,45 @@
1
+package com.yunzhi.inte.entity;
2
+
3
+import io.swagger.annotations.ApiModel;
4
+import io.swagger.annotations.ApiModelProperty;
5
+import com.baomidou.mybatisplus.annotation.IdType;
6
+import com.baomidou.mybatisplus.annotation.TableName;
7
+import com.baomidou.mybatisplus.annotation.TableId;
8
+import java.io.Serializable;
9
+import java.util.Date;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * 库存日志;
16
+ * @author : http://www.chiner.pro
17
+ * @date : 2022-9-17
18
+ */
19
+@Data
20
+@EqualsAndHashCode(callSuper = false)
21
+@Accessors(chain = true)
22
+@ApiModel(value = "库存日志",description = "")
23
+@TableName("store_log")
24
+public class StoreLog implements Serializable,Cloneable{
25
+    /** 日志ID */
26
+    @ApiModelProperty(name = "日志ID",notes = "")
27
+    @TableId(value = "id", type = IdType.INPUT)
28
+    private Integer id ;
29
+    /** 操作类型;in入库out出库fix盘点 */
30
+    @ApiModelProperty(name = "操作类型",notes = "in入库out出库fix盘点")
31
+    private String optType ;
32
+    /** 物品ID */
33
+    @ApiModelProperty(name = "物品ID",notes = "")
34
+    private String storeId ;
35
+    /** 数量 */
36
+    @ApiModelProperty(name = "数量",notes = "")
37
+    private Integer amount ;
38
+    /** 操作前数量 */
39
+    @ApiModelProperty(name = "操作前数量",notes = "")
40
+    private Integer preAmount ;
41
+    /** 操作时间 */
42
+    @ApiModelProperty(name = "操作时间",notes = "")
43
+    private Date createDate ;
44
+
45
+}

+ 42
- 0
src/main/java/com/yunzhi/inte/entity/StoreType.java Datei anzeigen

@@ -0,0 +1,42 @@
1
+package com.yunzhi.inte.entity;
2
+
3
+import io.swagger.annotations.ApiModel;
4
+import io.swagger.annotations.ApiModelProperty;
5
+import com.baomidou.mybatisplus.annotation.IdType;
6
+import com.baomidou.mybatisplus.annotation.TableName;
7
+import com.baomidou.mybatisplus.annotation.TableId;
8
+import java.io.Serializable;
9
+import java.util.Date;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * 库存分类;
16
+ * @author : http://www.chiner.pro
17
+ * @date : 2022-9-17
18
+ */
19
+@Data
20
+@EqualsAndHashCode(callSuper = false)
21
+@Accessors(chain = true)
22
+@ApiModel(value = "库存分类",description = "")
23
+@TableName("store_type")
24
+public class StoreType implements Serializable,Cloneable{
25
+    /** 分类ID */
26
+    @ApiModelProperty(name = "分类ID",notes = "")
27
+    @TableId(value = "id", type = IdType.INPUT)
28
+    private Integer id ;
29
+    /** 名称 */
30
+    @ApiModelProperty(name = "名称",notes = "")
31
+    private String name ;
32
+    /** 是否食材;1是0否 */
33
+    @ApiModelProperty(name = "是否食材",notes = "1是0否")
34
+    private Integer isFood ;
35
+    /** 状态 */
36
+    @ApiModelProperty(name = "状态",notes = "")
37
+    private Integer status ;
38
+    /** 创建时间 */
39
+    @ApiModelProperty(name = "创建时间",notes = "")
40
+    private Date createDate ;
41
+
42
+}

+ 14
- 0
src/main/java/com/yunzhi/inte/mapper/DishesMapper.java Datei anzeigen

@@ -0,0 +1,14 @@
1
+package com.yunzhi.inte.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.yunzhi.inte.entity.Dishes;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * 菜肴表;(dishes)表数据库访问层
9
+ * @author : http://www.chiner.pro
10
+ * @date : 2022-9-17
11
+ */
12
+@Mapper
13
+public interface DishesMapper  extends BaseMapper<Dishes>{
14
+}

+ 16
- 0
src/main/java/com/yunzhi/inte/mapper/FoodIngredientsMapper.java Datei anzeigen

@@ -0,0 +1,16 @@
1
+package com.yunzhi.inte.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.Param;
6
+import com.yunzhi.inte.entity.FoodIngredients;
7
+
8
+/**
9
+ * 菜肴食材;(food_ingredients)表数据库访问层
10
+ * @author : http://njyunzhi.com
11
+ * @date : 2022-9-17
12
+ */
13
+@Mapper
14
+public interface FoodIngredientsMapper  extends BaseMapper<FoodIngredients>{
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/inte/mapper/GuaranteeDetailMapper.java Datei anzeigen

@@ -0,0 +1,16 @@
1
+package com.yunzhi.inte.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.Param;
6
+import com.yunzhi.inte.entity.GuaranteeDetail;
7
+
8
+/**
9
+ * 保障详情;(guarantee_detail)表数据库访问层
10
+ * @author : http://njyunzhi.com
11
+ * @date : 2022-9-17
12
+ */
13
+@Mapper
14
+public interface GuaranteeDetailMapper  extends BaseMapper<GuaranteeDetail>{
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/inte/mapper/GuaranteeTaskMapper.java Datei anzeigen

@@ -0,0 +1,16 @@
1
+package com.yunzhi.inte.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.Param;
6
+import com.yunzhi.inte.entity.GuaranteeTask;
7
+
8
+/**
9
+ * 供给保障;(guarantee_task)表数据库访问层
10
+ * @author : http://njyunzhi.com
11
+ * @date : 2022-9-17
12
+ */
13
+@Mapper
14
+public interface GuaranteeTaskMapper  extends BaseMapper<GuaranteeTask>{
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/inte/mapper/PackageDetailMapper.java Datei anzeigen

@@ -0,0 +1,16 @@
1
+package com.yunzhi.inte.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.Param;
6
+import com.yunzhi.inte.entity.PackageDetail;
7
+
8
+/**
9
+ * 套餐详情;(package_detail)表数据库访问层
10
+ * @author : http://njyunzhi.com
11
+ * @date : 2022-9-17
12
+ */
13
+@Mapper
14
+public interface PackageDetailMapper  extends BaseMapper<PackageDetail>{
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/inte/mapper/PackageMapper.java Datei anzeigen

@@ -0,0 +1,16 @@
1
+package com.yunzhi.inte.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.Param;
6
+import com.yunzhi.inte.entity.Package;
7
+
8
+/**
9
+ * 套餐;(package)表数据库访问层
10
+ * @author : http://njyunzhi.com
11
+ * @date : 2022-9-17
12
+ */
13
+@Mapper
14
+public interface PackageMapper  extends BaseMapper<Package>{
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/inte/mapper/StoreLogMapper.java Datei anzeigen

@@ -0,0 +1,16 @@
1
+package com.yunzhi.inte.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.Param;
6
+import com.yunzhi.inte.entity.StoreLog;
7
+
8
+/**
9
+ * 库存日志;(store_log)表数据库访问层
10
+ * @author : http://njyunzhi.com
11
+ * @date : 2022-9-17
12
+ */
13
+@Mapper
14
+public interface StoreLogMapper  extends BaseMapper<StoreLog>{
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/inte/mapper/StoreMapper.java Datei anzeigen

@@ -0,0 +1,16 @@
1
+package com.yunzhi.inte.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.Param;
6
+import com.yunzhi.inte.entity.Store;
7
+
8
+/**
9
+ * 库存表;(store)表数据库访问层
10
+ * @author : http://njyunzhi.com
11
+ * @date : 2022-9-17
12
+ */
13
+@Mapper
14
+public interface StoreMapper  extends BaseMapper<Store>{
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/inte/mapper/StoreTypeMapper.java Datei anzeigen

@@ -0,0 +1,16 @@
1
+package com.yunzhi.inte.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.Param;
6
+import com.yunzhi.inte.entity.StoreType;
7
+
8
+/**
9
+ * 库存分类;(store_type)表数据库访问层
10
+ * @author : http://njyunzhi.com
11
+ * @date : 2022-9-17
12
+ */
13
+@Mapper
14
+public interface StoreTypeMapper  extends BaseMapper<StoreType>{
15
+
16
+}

+ 6
- 0
src/main/java/com/yunzhi/inte/service/DishesService.java Datei anzeigen

@@ -0,0 +1,6 @@
1
+package com.yunzhi.inte.service;
2
+
3
+import com.yunzhi.inte.entity.Dishes;
4
+
5
+public interface DishesService extends IBaseService<Dishes> {
6
+}

+ 13
- 0
src/main/java/com/yunzhi/inte/service/FoodIngredientsService.java Datei anzeigen

@@ -0,0 +1,13 @@
1
+package com.yunzhi.inte.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.yunzhi.inte.entity.FoodIngredients;
5
+
6
+/**
7
+ * 菜肴食材;(food_ingredients)表服务接口
8
+ * @author : http://njyunzhi.com
9
+ * @date : 2022-9-17
10
+ */
11
+public interface FoodIngredientsService extends IBaseService<FoodIngredients> {
12
+
13
+}

+ 13
- 0
src/main/java/com/yunzhi/inte/service/GuaranteeDetailService.java Datei anzeigen

@@ -0,0 +1,13 @@
1
+package com.yunzhi.inte.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.yunzhi.inte.entity.GuaranteeDetail;
5
+
6
+/**
7
+ * 保障详情;(guarantee_detail)表服务接口
8
+ * @author : http://njyunzhi.com
9
+ * @date : 2022-9-17
10
+ */
11
+public interface GuaranteeDetailService extends IBaseService<GuaranteeDetail> {
12
+
13
+}

+ 13
- 0
src/main/java/com/yunzhi/inte/service/GuaranteeTaskService.java Datei anzeigen

@@ -0,0 +1,13 @@
1
+package com.yunzhi.inte.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.yunzhi.inte.entity.GuaranteeTask;
5
+
6
+/**
7
+ * 供给保障;(guarantee_task)表服务接口
8
+ * @author : http://njyunzhi.com
9
+ * @date : 2022-9-17
10
+ */
11
+public interface GuaranteeTaskService extends IBaseService<GuaranteeTask> {
12
+
13
+}

+ 20
- 0
src/main/java/com/yunzhi/inte/service/IBaseService.java Datei anzeigen

@@ -0,0 +1,20 @@
1
+package com.yunzhi.inte.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+
5
+import java.io.Serializable;
6
+
7
+public interface IBaseService<T> extends IService<T> {
8
+    /**
9
+     * 逻辑删除
10
+     * @param id
11
+     * @return
12
+     */
13
+    boolean removeLogicById(Serializable id);
14
+
15
+    int countBy(String column, Object value, boolean notDelete);
16
+
17
+    T getByButNot(String column, Object value, String col, Object val, boolean notDelete);
18
+
19
+    T getExistBy(String column, Object value, boolean normal, boolean notDelete);
20
+}

+ 13
- 0
src/main/java/com/yunzhi/inte/service/PackageDetailService.java Datei anzeigen

@@ -0,0 +1,13 @@
1
+package com.yunzhi.inte.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.yunzhi.inte.entity.PackageDetail;
5
+
6
+/**
7
+ * 套餐详情;(package_detail)表服务接口
8
+ * @author : http://njyunzhi.com
9
+ * @date : 2022-9-17
10
+ */
11
+public interface PackageDetailService extends IBaseService<PackageDetail> {
12
+
13
+}

+ 13
- 0
src/main/java/com/yunzhi/inte/service/PackageService.java Datei anzeigen

@@ -0,0 +1,13 @@
1
+package com.yunzhi.inte.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.yunzhi.inte.entity.Package;
5
+
6
+/**
7
+ * 套餐;(package)表服务接口
8
+ * @author : http://njyunzhi.com
9
+ * @date : 2022-9-17
10
+ */
11
+public interface PackageService extends IBaseService<Package> {
12
+
13
+}

+ 13
- 0
src/main/java/com/yunzhi/inte/service/StoreLogService.java Datei anzeigen

@@ -0,0 +1,13 @@
1
+package com.yunzhi.inte.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.yunzhi.inte.entity.StoreLog;
5
+
6
+/**
7
+ * 库存日志;(store_log)表服务接口
8
+ * @author : http://njyunzhi.com
9
+ * @date : 2022-9-17
10
+ */
11
+public interface StoreLogService extends IBaseService<StoreLog> {
12
+
13
+}

+ 13
- 0
src/main/java/com/yunzhi/inte/service/StoreService.java Datei anzeigen

@@ -0,0 +1,13 @@
1
+package com.yunzhi.inte.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.yunzhi.inte.entity.Store;
5
+
6
+/**
7
+ * 库存表;(store)表服务接口
8
+ * @author : http://njyunzhi.com
9
+ * @date : 2022-9-17
10
+ */
11
+public interface StoreService extends IBaseService<Store> {
12
+
13
+}

+ 13
- 0
src/main/java/com/yunzhi/inte/service/StoreTypeService.java Datei anzeigen

@@ -0,0 +1,13 @@
1
+package com.yunzhi.inte.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.yunzhi.inte.entity.StoreType;
5
+
6
+/**
7
+ * 库存分类;(store_type)表服务接口
8
+ * @author : http://njyunzhi.com
9
+ * @date : 2022-9-17
10
+ */
11
+public interface StoreTypeService extends IBaseService<StoreType> {
12
+
13
+}

BIN
src/main/java/com/yunzhi/inte/service/db/ybai.db Datei anzeigen


+ 54
- 0
src/main/java/com/yunzhi/inte/service/impl/BaseServiceImpl.java Datei anzeigen

@@ -0,0 +1,54 @@
1
+package com.yunzhi.inte.service.impl;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
5
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
6
+import com.baomidou.mybatisplus.core.metadata.TableInfo;
7
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
8
+import com.baomidou.mybatisplus.extension.toolkit.SqlHelper;
9
+import com.yunzhi.inte.service.IBaseService;
10
+
11
+import java.io.Serializable;
12
+
13
+public class BaseServiceImpl<M extends BaseMapper<T>, T> extends ServiceImpl<M, T> implements IBaseService<T> {
14
+    @Override
15
+    public boolean removeLogicById(Serializable id) {
16
+
17
+        TableInfo tableInfo = SqlHelper.table(currentModelClass());
18
+        UpdateWrapper<T> updateWrapper = new UpdateWrapper<>();
19
+        updateWrapper.set("state", -1)
20
+                .eq(tableInfo.getKeyColumn(), id);
21
+
22
+        return update(updateWrapper);
23
+    }
24
+
25
+    @Override
26
+    public int countBy(String column, Object value, boolean notDelete) {
27
+        QueryWrapper<T> queryWrapper = new QueryWrapper<>();
28
+        queryWrapper.eq(column, value);
29
+        queryWrapper.gt(notDelete, "state", -1);
30
+
31
+        return count(queryWrapper);
32
+    }
33
+
34
+    @Override
35
+    public T getByButNot(String column, Object value, String col, Object val, boolean notDelete) {
36
+        QueryWrapper<T> queryWrapper = new QueryWrapper<>();
37
+        queryWrapper.eq(column, value);
38
+        queryWrapper.ne(col, val);
39
+        queryWrapper.gt(notDelete, "state", -1);
40
+        queryWrapper.last("limit 1");
41
+
42
+        return getOne(queryWrapper);
43
+    }
44
+
45
+    @Override
46
+    public T getExistBy(String column, Object value, boolean normal, boolean notDelete) {
47
+        QueryWrapper<T> queryWrapper = new QueryWrapper<>();
48
+        queryWrapper.eq(column, value);
49
+        queryWrapper.eq(normal, "state", 1);
50
+        queryWrapper.gt(notDelete, "state", -1);
51
+        queryWrapper.last("limit 1");
52
+        return getOne(queryWrapper);
53
+    }
54
+}

+ 10
- 0
src/main/java/com/yunzhi/inte/service/impl/DishesServiceImpl.java Datei anzeigen

@@ -0,0 +1,10 @@
1
+package com.yunzhi.inte.service.impl;
2
+
3
+import com.yunzhi.inte.entity.Dishes;
4
+import com.yunzhi.inte.mapper.DishesMapper;
5
+import com.yunzhi.inte.service.DishesService;
6
+import org.springframework.stereotype.Service;
7
+
8
+@Service
9
+public class DishesServiceImpl extends BaseServiceImpl<DishesMapper, Dishes> implements DishesService {
10
+}

+ 16
- 0
src/main/java/com/yunzhi/inte/service/impl/FoodIngredientsServiceImpl.java Datei anzeigen

@@ -0,0 +1,16 @@
1
+package com.yunzhi.inte.service.impl;
2
+
3
+import org.springframework.beans.factory.annotation.Autowired;
4
+import org.springframework.stereotype.Service;
5
+import com.yunzhi.inte.entity.FoodIngredients;
6
+import com.yunzhi.inte.mapper.FoodIngredientsMapper;
7
+import com.yunzhi.inte.service.FoodIngredientsService;
8
+/**
9
+ * 菜肴食材;(food_ingredients)表服务实现类
10
+ * @author : http://www.chiner.pro
11
+ * @date : 2022-9-17
12
+ */
13
+@Service
14
+public class FoodIngredientsServiceImpl extends BaseServiceImpl<FoodIngredientsMapper, FoodIngredients> implements FoodIngredientsService {
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/inte/service/impl/GuaranteeDetailServiceImpl.java Datei anzeigen

@@ -0,0 +1,16 @@
1
+package com.yunzhi.inte.service.impl;
2
+
3
+import org.springframework.beans.factory.annotation.Autowired;
4
+import org.springframework.stereotype.Service;
5
+import com.yunzhi.inte.entity.GuaranteeDetail;
6
+import com.yunzhi.inte.mapper.GuaranteeDetailMapper;
7
+import com.yunzhi.inte.service.GuaranteeDetailService;
8
+/**
9
+ * 保障详情;(guarantee_detail)表服务实现类
10
+ * @author : http://www.chiner.pro
11
+ * @date : 2022-9-17
12
+ */
13
+@Service
14
+public class GuaranteeDetailServiceImpl extends BaseServiceImpl<GuaranteeDetailMapper, GuaranteeDetail> implements GuaranteeDetailService {
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/inte/service/impl/GuaranteeTaskServiceImpl.java Datei anzeigen

@@ -0,0 +1,16 @@
1
+package com.yunzhi.inte.service.impl;
2
+
3
+import org.springframework.beans.factory.annotation.Autowired;
4
+import org.springframework.stereotype.Service;
5
+import com.yunzhi.inte.entity.GuaranteeTask;
6
+import com.yunzhi.inte.mapper.GuaranteeTaskMapper;
7
+import com.yunzhi.inte.service.GuaranteeTaskService;
8
+/**
9
+ * 供给保障;(guarantee_task)表服务实现类
10
+ * @author : http://www.chiner.pro
11
+ * @date : 2022-9-17
12
+ */
13
+@Service
14
+public class GuaranteeTaskServiceImpl extends BaseServiceImpl<GuaranteeTaskMapper, GuaranteeTask> implements GuaranteeTaskService {
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/inte/service/impl/PackageDetailServiceImpl.java Datei anzeigen

@@ -0,0 +1,16 @@
1
+package com.yunzhi.inte.service.impl;
2
+
3
+import org.springframework.beans.factory.annotation.Autowired;
4
+import org.springframework.stereotype.Service;
5
+import com.yunzhi.inte.entity.PackageDetail;
6
+import com.yunzhi.inte.mapper.PackageDetailMapper;
7
+import com.yunzhi.inte.service.PackageDetailService;
8
+/**
9
+ * 套餐详情;(package_detail)表服务实现类
10
+ * @author : http://www.chiner.pro
11
+ * @date : 2022-9-17
12
+ */
13
+@Service
14
+public class PackageDetailServiceImpl extends BaseServiceImpl<PackageDetailMapper, PackageDetail> implements PackageDetailService {
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/inte/service/impl/PackageServiceImpl.java Datei anzeigen

@@ -0,0 +1,16 @@
1
+package com.yunzhi.inte.service.impl;
2
+
3
+import org.springframework.beans.factory.annotation.Autowired;
4
+import org.springframework.stereotype.Service;
5
+import com.yunzhi.inte.entity.Package;
6
+import com.yunzhi.inte.mapper.PackageMapper;
7
+import com.yunzhi.inte.service.PackageService;
8
+/**
9
+ * 套餐;(package)表服务实现类
10
+ * @author : http://www.chiner.pro
11
+ * @date : 2022-9-17
12
+ */
13
+@Service
14
+public class PackageServiceImpl extends BaseServiceImpl<PackageMapper, Package> implements PackageService {
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/inte/service/impl/StoreLogServiceImpl.java Datei anzeigen

@@ -0,0 +1,16 @@
1
+package com.yunzhi.inte.service.impl;
2
+
3
+import org.springframework.beans.factory.annotation.Autowired;
4
+import org.springframework.stereotype.Service;
5
+import com.yunzhi.inte.entity.StoreLog;
6
+import com.yunzhi.inte.mapper.StoreLogMapper;
7
+import com.yunzhi.inte.service.StoreLogService;
8
+/**
9
+ * 库存日志;(store_log)表服务实现类
10
+ * @author : http://www.chiner.pro
11
+ * @date : 2022-9-17
12
+ */
13
+@Service
14
+public class StoreLogServiceImpl extends BaseServiceImpl<StoreLogMapper, StoreLog> implements StoreLogService {
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/inte/service/impl/StoreServiceImpl.java Datei anzeigen

@@ -0,0 +1,16 @@
1
+package com.yunzhi.inte.service.impl;
2
+
3
+import org.springframework.beans.factory.annotation.Autowired;
4
+import org.springframework.stereotype.Service;
5
+import com.yunzhi.inte.entity.Store;
6
+import com.yunzhi.inte.mapper.StoreMapper;
7
+import com.yunzhi.inte.service.StoreService;
8
+/**
9
+ * 库存表;(store)表服务实现类
10
+ * @author : http://www.chiner.pro
11
+ * @date : 2022-9-17
12
+ */
13
+@Service
14
+public class StoreServiceImpl extends BaseServiceImpl<StoreMapper, Store> implements StoreService {
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/inte/service/impl/StoreTypeServiceImpl.java Datei anzeigen

@@ -0,0 +1,16 @@
1
+package com.yunzhi.inte.service.impl;
2
+
3
+import org.springframework.beans.factory.annotation.Autowired;
4
+import org.springframework.stereotype.Service;
5
+import com.yunzhi.inte.entity.StoreType;
6
+import com.yunzhi.inte.mapper.StoreTypeMapper;
7
+import com.yunzhi.inte.service.StoreTypeService;
8
+/**
9
+ * 库存分类;(store_type)表服务实现类
10
+ * @author : http://www.chiner.pro
11
+ * @date : 2022-9-17
12
+ */
13
+@Service
14
+public class StoreTypeServiceImpl extends BaseServiceImpl<StoreTypeMapper, StoreType> implements StoreTypeService {
15
+
16
+}

+ 6
- 1
src/main/resources/application.yml Datei anzeigen

@@ -43,4 +43,9 @@ mybatis-plus:
43 43
   configuration:
44 44
     log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
45 45
     call-setters-on-nulls: true
46
-  mapper-locations: classpath:mapper/**/*.xml
46
+  mapper-locations: classpath:mapper/**/*.xml
47
+
48
+### swagger
49
+springfox:
50
+  documentation:
51
+    auto-startup: true

+ 5
- 0
src/main/resources/mapper/DishesMapper.xml Datei anzeigen

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+
4
+<mapper namespace="com.yunzhi.inte.mapper.DishesMapper">
5
+</mapper>

+ 6
- 0
src/main/resources/mapper/FoodIngredientsMapper.xml Datei anzeigen

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+
4
+<mapper namespace="com.yunzhi.inte.mapper.FoodIngredientsMapper">
5
+
6
+</mapper>

+ 6
- 0
src/main/resources/mapper/GuaranteeDetailMapper.xml Datei anzeigen

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+
4
+<mapper namespace="com.yunzhi.inte.mapper.GuaranteeDetailMapper">
5
+
6
+</mapper>

+ 6
- 0
src/main/resources/mapper/GuaranteeTaskMapper.xml Datei anzeigen

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+
4
+<mapper namespace="com.yunzhi.inte.mapper.GuaranteeTaskMapper">
5
+
6
+</mapper>

+ 4
- 0
src/main/resources/mapper/MonitorMapper.xml Datei anzeigen

@@ -0,0 +1,4 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.yunzhi.inte.mapper.MonitorMapper">
4
+</mapper>

+ 6
- 0
src/main/resources/mapper/PackageDetailMapper.xml Datei anzeigen

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+
4
+<mapper namespace="com.yunzhi.inte.mapper.PackageDetailMapper">
5
+
6
+</mapper>

+ 6
- 0
src/main/resources/mapper/PackageMapper.xml Datei anzeigen

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+
4
+<mapper namespace="com.yunzhi.inte.mapper.PackageMapper">
5
+
6
+</mapper>

+ 6
- 0
src/main/resources/mapper/StoreLogMapper.xml Datei anzeigen

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+
4
+<mapper namespace="com.yunzhi.inte.mapper.StoreLogMapper">
5
+
6
+</mapper>

+ 6
- 0
src/main/resources/mapper/StoreMapper.xml Datei anzeigen

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+
4
+<mapper namespace="com.yunzhi.inte.mapper.StoreMapper">
5
+
6
+</mapper>

+ 6
- 0
src/main/resources/mapper/StoreTypeMapper.xml Datei anzeigen

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+
4
+<mapper namespace="com.yunzhi.inte.mapper.StoreTypeMapper">
5
+
6
+</mapper>