张延森 3 anni fa
parent
commit
c74b952253
100 ha cambiato i file con 5142 aggiunte e 16 eliminazioni
  1. 32
    0
      src/main/java/com/yunzhi/nanyang/common/BaseController.java
  2. 2
    0
      src/main/java/com/yunzhi/nanyang/common/Constants.java
  3. 9
    0
      src/main/java/com/yunzhi/nanyang/common/ResponseBean.java
  4. 11
    7
      src/main/java/com/yunzhi/nanyang/controller/LoginController.java
  5. 2
    4
      src/main/java/com/yunzhi/nanyang/controller/SysMenuController.java
  6. 83
    0
      src/main/java/com/yunzhi/nanyang/controller/SysSettingController.java
  7. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaAccountController.java
  8. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaAccountLogController.java
  9. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaAddressController.java
  10. 117
    0
      src/main/java/com/yunzhi/nanyang/controller/TaBannerController.java
  11. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaDispatchController.java
  12. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaEvaluationController.java
  13. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaExtendContentController.java
  14. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaFeedbackController.java
  15. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaImagesController.java
  16. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaMachineryController.java
  17. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaMachineryGpsController.java
  18. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaMessageController.java
  19. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaNewsController.java
  20. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaNewsTypeController.java
  21. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaOrderController.java
  22. 158
    0
      src/main/java/com/yunzhi/nanyang/controller/TaOrgController.java
  23. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaPersonController.java
  24. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaRegionController.java
  25. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaUserMachineryController.java
  26. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaWithdrawalController.java
  27. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaWorkJobController.java
  28. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TaWorkJobTypeController.java
  29. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TdDeviceController.java
  30. 119
    0
      src/main/java/com/yunzhi/nanyang/controller/TdMachineryTypeController.java
  31. 1
    1
      src/main/java/com/yunzhi/nanyang/entity/SysMenu.java
  32. 48
    0
      src/main/java/com/yunzhi/nanyang/entity/SysSetting.java
  33. 3
    0
      src/main/java/com/yunzhi/nanyang/entity/SysUser.java
  34. 39
    0
      src/main/java/com/yunzhi/nanyang/entity/SysUserDataScope.java
  35. 52
    0
      src/main/java/com/yunzhi/nanyang/entity/TaAccount.java
  36. 55
    0
      src/main/java/com/yunzhi/nanyang/entity/TaAccountLog.java
  37. 54
    0
      src/main/java/com/yunzhi/nanyang/entity/TaAddress.java
  38. 52
    0
      src/main/java/com/yunzhi/nanyang/entity/TaBanner.java
  39. 55
    0
      src/main/java/com/yunzhi/nanyang/entity/TaDispatch.java
  40. 49
    0
      src/main/java/com/yunzhi/nanyang/entity/TaEvaluation.java
  41. 52
    0
      src/main/java/com/yunzhi/nanyang/entity/TaExtendContent.java
  42. 52
    0
      src/main/java/com/yunzhi/nanyang/entity/TaFeedback.java
  43. 49
    0
      src/main/java/com/yunzhi/nanyang/entity/TaImages.java
  44. 88
    0
      src/main/java/com/yunzhi/nanyang/entity/TaMachinery.java
  45. 46
    0
      src/main/java/com/yunzhi/nanyang/entity/TaMachineryGps.java
  46. 64
    0
      src/main/java/com/yunzhi/nanyang/entity/TaMessage.java
  47. 55
    0
      src/main/java/com/yunzhi/nanyang/entity/TaNews.java
  48. 46
    0
      src/main/java/com/yunzhi/nanyang/entity/TaNewsType.java
  49. 79
    0
      src/main/java/com/yunzhi/nanyang/entity/TaOrder.java
  50. 79
    0
      src/main/java/com/yunzhi/nanyang/entity/TaOrg.java
  51. 32
    0
      src/main/java/com/yunzhi/nanyang/entity/TaPay.java
  52. 58
    0
      src/main/java/com/yunzhi/nanyang/entity/TaPerson.java
  53. 43
    0
      src/main/java/com/yunzhi/nanyang/entity/TaRegion.java
  54. 39
    0
      src/main/java/com/yunzhi/nanyang/entity/TaUserMachinery.java
  55. 76
    0
      src/main/java/com/yunzhi/nanyang/entity/TaWithdrawal.java
  56. 73
    0
      src/main/java/com/yunzhi/nanyang/entity/TaWorkJob.java
  57. 39
    0
      src/main/java/com/yunzhi/nanyang/entity/TaWorkJobType.java
  58. 55
    0
      src/main/java/com/yunzhi/nanyang/entity/TdDevice.java
  59. 43
    0
      src/main/java/com/yunzhi/nanyang/entity/TdMachineryType.java
  60. 6
    1
      src/main/java/com/yunzhi/nanyang/mapper/SysMenuMapper.java
  61. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/SysSettingMapper.java
  62. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/SysUserDataScopeMapper.java
  63. 2
    0
      src/main/java/com/yunzhi/nanyang/mapper/SysUserMapper.java
  64. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaAccountLogMapper.java
  65. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaAccountMapper.java
  66. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaAddressMapper.java
  67. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaBannerMapper.java
  68. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaDispatchMapper.java
  69. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaEvaluationMapper.java
  70. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaExtendContentMapper.java
  71. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaFeedbackMapper.java
  72. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaImagesMapper.java
  73. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaMachineryGpsMapper.java
  74. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaMachineryMapper.java
  75. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaMessageMapper.java
  76. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaNewsMapper.java
  77. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaNewsTypeMapper.java
  78. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaOrderMapper.java
  79. 21
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaOrgMapper.java
  80. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaPersonMapper.java
  81. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaRegionMapper.java
  82. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaUserMachineryMapper.java
  83. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaWithdrawalMapper.java
  84. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaWorkJobMapper.java
  85. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TaWorkJobTypeMapper.java
  86. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TdDeviceMapper.java
  87. 18
    0
      src/main/java/com/yunzhi/nanyang/mapper/TdMachineryTypeMapper.java
  88. 4
    0
      src/main/java/com/yunzhi/nanyang/service/IBaseService.java
  89. 1
    1
      src/main/java/com/yunzhi/nanyang/service/ISysMenuService.java
  90. 16
    0
      src/main/java/com/yunzhi/nanyang/service/ISysSettingService.java
  91. 16
    0
      src/main/java/com/yunzhi/nanyang/service/ISysUserDataScopeService.java
  92. 6
    2
      src/main/java/com/yunzhi/nanyang/service/ISysUserService.java
  93. 16
    0
      src/main/java/com/yunzhi/nanyang/service/ITaAccountLogService.java
  94. 16
    0
      src/main/java/com/yunzhi/nanyang/service/ITaAccountService.java
  95. 16
    0
      src/main/java/com/yunzhi/nanyang/service/ITaAddressService.java
  96. 16
    0
      src/main/java/com/yunzhi/nanyang/service/ITaBannerService.java
  97. 16
    0
      src/main/java/com/yunzhi/nanyang/service/ITaDispatchService.java
  98. 16
    0
      src/main/java/com/yunzhi/nanyang/service/ITaEvaluationService.java
  99. 16
    0
      src/main/java/com/yunzhi/nanyang/service/ITaExtendContentService.java
  100. 0
    0
      src/main/java/com/yunzhi/nanyang/service/ITaFeedbackService.java

+ 32
- 0
src/main/java/com/yunzhi/nanyang/common/BaseController.java Vedi File

@@ -1,4 +1,36 @@
1 1
 package com.yunzhi.nanyang.common;
2 2
 
3
+import com.yunzhi.nanyang.entity.SysUser;
4
+import com.yunzhi.nanyang.service.ISysUserService;
5
+import com.yunzhi.nanyang.shiro.utils.JWTUtil;
6
+import org.apache.shiro.SecurityUtils;
7
+import org.apache.shiro.subject.Subject;
8
+import org.springframework.beans.factory.annotation.Autowired;
9
+import org.springframework.stereotype.Component;
10
+
11
+@Component
3 12
 public class BaseController {
13
+
14
+    @Autowired
15
+    ISysUserService iSysUserService;
16
+
17
+    public String currentLoginId() {
18
+        Subject subject = SecurityUtils.getSubject();
19
+        String token = subject.getPrincipal().toString();
20
+        return JWTUtil.getLoginId(token);
21
+    }
22
+
23
+    public SysUser currentUser() throws Exception {
24
+        String loginId = currentLoginId();
25
+        if (StringUtils.isEmpty(loginId)) {
26
+            throw new Exception("请先登录");
27
+        }
28
+
29
+        SysUser user = iSysUserService.getByLoginId(loginId);
30
+        if (user == null || user.getStatus() == Constants.STATUS_DELETE) {
31
+            throw new Exception("人员不存在");
32
+        }
33
+
34
+        return user;
35
+    }
4 36
 }

+ 2
- 0
src/main/java/com/yunzhi/nanyang/common/Constants.java Vedi File

@@ -1,6 +1,8 @@
1 1
 package com.yunzhi.nanyang.common;
2 2
 
3 3
 public class Constants {
4
+    public final static String ADMIN_ID = "1";
5
+
4 6
     public final static int STATUS_DELETE = -1;
5 7
     public final static int STATUS_READY = 0;
6 8
     public final static int STATUS_NORMAL = 1;

+ 9
- 0
src/main/java/com/yunzhi/nanyang/common/ResponseBean.java Vedi File

@@ -36,6 +36,15 @@ public class ResponseBean<T> implements Serializable {
36 36
         return responseBean;
37 37
     }
38 38
 
39
+
40
+    public static <T> ResponseBean error(String msg) {
41
+        ResponseBean responseBean = new ResponseBean();
42
+        responseBean.code = ERROR_ILLEGAL_PARAMS;
43
+        responseBean.message = msg;
44
+
45
+        return responseBean;
46
+    }
47
+
39 48
     public static <T> ResponseBean error(String msg, int code, T ...datas) {
40 49
         ResponseBean responseBean = new ResponseBean();
41 50
         responseBean.code = code;

+ 11
- 7
src/main/java/com/yunzhi/nanyang/controller/LoginController.java Vedi File

@@ -62,17 +62,21 @@ public class LoginController extends BaseController {
62 62
             return ResponseBean.error("账户或密码不正确", ResponseBean.ERROR_ILLEGAL_PARAMS);
63 63
         }
64 64
 
65
-        if (Constants.STATUS_NORMAL != sysUser.getStatus()) {
66
-            return ResponseBean.error("用户状态不正确, 请联系管理人员", ResponseBean.ERROR_UNAVAILABLE);
67
-        }
65
+        Map<String, Object> res = iSysUserService.getUerProfile(sysUser.getUserId(), sysUser);
68 66
 
69 67
         // 生成 token
70 68
         String token = JWTUtil.sign(sysLogin.getLoginId().toString(), sysLogin.getPassword());
69
+        res.put("token", token);
70
+
71
+        return ResponseBean.success(res);
72
+    }
73
+
74
+    @GetMapping("/admin/currentUser")
75
+    @ApiOperation(value="当前用户", notes = "当前用户", httpMethod = "GET", response = ResponseBean.class)
76
+    public ResponseBean getCurrentUser() throws Exception {
77
+        SysUser sysUser = currentUser();
78
+        Map<String, Object> res = iSysUserService.getUerProfile(sysUser.getUserId(), sysUser);
71 79
 
72
-        Map<String, Object> res = new HashMap<String, Object>() {{
73
-            put("user", sysUser);
74
-            put("token", token);
75
-        }};
76 80
         return ResponseBean.success(res);
77 81
     }
78 82
 

+ 2
- 4
src/main/java/com/yunzhi/nanyang/controller/SysMenuController.java Vedi File

@@ -8,7 +8,6 @@ import com.yunzhi.nanyang.common.ResponseBean;
8 8
 import io.swagger.annotations.Api;
9 9
 import io.swagger.annotations.ApiOperation;
10 10
 import io.swagger.annotations.ApiParam;
11
-import org.apache.shiro.authz.annotation.RequiresPermissions;
12 11
 import org.slf4j.Logger;
13 12
 import org.slf4j.LoggerFactory;
14 13
 import org.springframework.beans.factory.annotation.Autowired;
@@ -27,7 +26,7 @@ import org.springframework.web.bind.annotation.RestController;
27 26
     * </p>
28 27
  *
29 28
  * @author yansen
30
- * @since 2022-03-07
29
+ * @since 2022-03-08
31 30
  */
32 31
 
33 32
 @Api(tags = "菜单表")
@@ -47,9 +46,8 @@ public class SysMenuController extends BaseController {
47 46
      * @param pageSize
48 47
      * @return
49 48
      */
50
-    @RequestMapping(value="/admin/menu",method= RequestMethod.GET)
49
+    @RequestMapping(value="/sysMenu",method= RequestMethod.GET)
51 50
     @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
52
-    @RequiresPermissions("menu")
53 51
     public ResponseBean sysMenuList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
54 52
 									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
55 53
 

+ 83
- 0
src/main/java/com/yunzhi/nanyang/controller/SysSettingController.java Vedi File

@@ -0,0 +1,83 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.apache.shiro.authz.annotation.RequiresPermissions;
12
+import org.slf4j.Logger;
13
+import org.slf4j.LoggerFactory;
14
+import org.springframework.beans.factory.annotation.Autowired;
15
+import org.springframework.web.bind.annotation.PathVariable;
16
+import org.springframework.web.bind.annotation.RequestBody;
17
+import org.springframework.web.bind.annotation.RequestMapping;
18
+import org.springframework.web.bind.annotation.RequestMethod;
19
+import org.springframework.web.bind.annotation.RequestParam;
20
+import com.yunzhi.nanyang.service.ISysSettingService;
21
+import com.yunzhi.nanyang.entity.SysSetting;
22
+import org.springframework.web.bind.annotation.RestController;
23
+
24
+/**
25
+ * <p>
26
+    * 系统设置 前端控制器
27
+    * </p>
28
+ *
29
+ * @author yansen
30
+ * @since 2022-03-08
31
+ */
32
+
33
+@Api(tags = "系统设置")
34
+@RestController
35
+@RequestMapping("/")
36
+public class SysSettingController extends BaseController {
37
+
38
+    private final Logger logger = LoggerFactory.getLogger(SysSettingController.class);
39
+
40
+    @Autowired
41
+    public ISysSettingService iSysSettingService;
42
+
43
+
44
+    /**
45
+     * 分页查询列表
46
+     * @param pageNum
47
+     * @param pageSize
48
+     * @return
49
+     */
50
+    @RequestMapping(value="/admin/setting",method= RequestMethod.GET)
51
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
52
+    @RequiresPermissions("setting")
53
+    public ResponseBean sysSettingList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
54
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
55
+
56
+        IPage<SysSetting> pg = new Page<>(pageNum, pageSize);
57
+        QueryWrapper<SysSetting> queryWrapper = new QueryWrapper<>();
58
+        queryWrapper.orderByDesc("create_date");
59
+
60
+        IPage<SysSetting> result = iSysSettingService.page(pg, queryWrapper);
61
+        return ResponseBean.success(result);
62
+    }
63
+
64
+    /**
65
+     * 修改对象
66
+     * @param id  实体ID
67
+     * @param sysSetting 实体对象
68
+     * @return
69
+     */
70
+    @RequestMapping(value="/admin/setting/{id}",method= RequestMethod.PUT)
71
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
72
+    @RequiresPermissions("setting")
73
+    public ResponseBean sysSettingUpdate(@ApiParam("对象ID") @PathVariable String id,
74
+                                        @ApiParam("更新内容") @RequestBody SysSetting sysSetting) throws Exception{
75
+
76
+        if (iSysSettingService.updateById(sysSetting)){
77
+            return ResponseBean.success(iSysSettingService.getById(id));
78
+        }else {
79
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
80
+        }
81
+    }
82
+
83
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaAccountController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaAccountService;
20
+import com.yunzhi.nanyang.entity.TaAccount;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 账户表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "账户表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaAccountController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaAccountController.class);
38
+
39
+    @Autowired
40
+    public ITaAccountService iTaAccountService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taAccount",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taAccountList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaAccount> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaAccount> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaAccount> result = iTaAccountService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taAccount 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taAccount",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taAccountAdd(@ApiParam("保存内容") @RequestBody TaAccount taAccount) throws Exception{
70
+
71
+        if (iTaAccountService.save(taAccount)){
72
+            return ResponseBean.success(taAccount);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taAccount/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taAccountDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaAccountService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taAccount 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taAccount/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taAccountUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaAccount taAccount) throws Exception{
102
+
103
+        if (iTaAccountService.updateById(taAccount)){
104
+            return ResponseBean.success(iTaAccountService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taAccount/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taAccountGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaAccountService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaAccountLogController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaAccountLogService;
20
+import com.yunzhi.nanyang.entity.TaAccountLog;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 流水表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "流水表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaAccountLogController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaAccountLogController.class);
38
+
39
+    @Autowired
40
+    public ITaAccountLogService iTaAccountLogService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taAccountLog",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taAccountLogList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaAccountLog> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaAccountLog> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaAccountLog> result = iTaAccountLogService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taAccountLog 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taAccountLog",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taAccountLogAdd(@ApiParam("保存内容") @RequestBody TaAccountLog taAccountLog) throws Exception{
70
+
71
+        if (iTaAccountLogService.save(taAccountLog)){
72
+            return ResponseBean.success(taAccountLog);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taAccountLog/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taAccountLogDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaAccountLogService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taAccountLog 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taAccountLog/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taAccountLogUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaAccountLog taAccountLog) throws Exception{
102
+
103
+        if (iTaAccountLogService.updateById(taAccountLog)){
104
+            return ResponseBean.success(iTaAccountLogService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taAccountLog/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taAccountLogGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaAccountLogService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaAddressController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaAddressService;
20
+import com.yunzhi.nanyang.entity.TaAddress;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 地址 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "地址")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaAddressController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaAddressController.class);
38
+
39
+    @Autowired
40
+    public ITaAddressService iTaAddressService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taAddress",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taAddressList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaAddress> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaAddress> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaAddress> result = iTaAddressService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taAddress 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taAddress",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taAddressAdd(@ApiParam("保存内容") @RequestBody TaAddress taAddress) throws Exception{
70
+
71
+        if (iTaAddressService.save(taAddress)){
72
+            return ResponseBean.success(taAddress);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taAddress/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taAddressDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaAddressService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taAddress 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taAddress/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taAddressUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaAddress taAddress) throws Exception{
102
+
103
+        if (iTaAddressService.updateById(taAddress)){
104
+            return ResponseBean.success(iTaAddressService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taAddress/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taAddressGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaAddressService.getById(id));
118
+    }
119
+}

+ 117
- 0
src/main/java/com/yunzhi/nanyang/controller/TaBannerController.java Vedi File

@@ -0,0 +1,117 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.Constants;
8
+import com.yunzhi.nanyang.common.ResponseBean;
9
+import io.swagger.annotations.Api;
10
+import io.swagger.annotations.ApiOperation;
11
+import io.swagger.annotations.ApiParam;
12
+import org.apache.shiro.authz.annotation.RequiresPermissions;
13
+import org.slf4j.Logger;
14
+import org.slf4j.LoggerFactory;
15
+import org.springframework.beans.factory.annotation.Autowired;
16
+import org.springframework.web.bind.annotation.PathVariable;
17
+import org.springframework.web.bind.annotation.RequestBody;
18
+import org.springframework.web.bind.annotation.RequestMapping;
19
+import org.springframework.web.bind.annotation.RequestMethod;
20
+import org.springframework.web.bind.annotation.RequestParam;
21
+import com.yunzhi.nanyang.service.ITaBannerService;
22
+import com.yunzhi.nanyang.entity.TaBanner;
23
+import org.springframework.web.bind.annotation.RestController;
24
+
25
+/**
26
+ * <p>
27
+    * 轮播图表 前端控制器
28
+    * </p>
29
+ *
30
+ * @author yansen
31
+ * @since 2022-03-08
32
+ */
33
+
34
+@Api(tags = "轮播图表")
35
+@RestController
36
+@RequestMapping("/")
37
+public class TaBannerController extends BaseController {
38
+
39
+    private final Logger logger = LoggerFactory.getLogger(TaBannerController.class);
40
+
41
+    @Autowired
42
+    public ITaBannerService iTaBannerService;
43
+
44
+
45
+    /**
46
+     * 分页查询列表
47
+     * @param pageNum
48
+     * @param pageSize
49
+     * @return
50
+     */
51
+    @RequestMapping(value="/admin/banner",method= RequestMethod.GET)
52
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
53
+    @RequiresPermissions("banner")
54
+    public ResponseBean taBannerList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
55
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
56
+
57
+        IPage<TaBanner> pg = new Page<>(pageNum, pageSize);
58
+        QueryWrapper<TaBanner> queryWrapper = new QueryWrapper<>();
59
+        queryWrapper.gt("status", Constants.STATUS_NORMAL);
60
+        queryWrapper.orderByDesc("create_date");
61
+
62
+        IPage<TaBanner> result = iTaBannerService.page(pg, queryWrapper);
63
+        return ResponseBean.success(result);
64
+    }
65
+
66
+    /**
67
+     * 保存对象
68
+     * @param taBanner 实体对象
69
+     * @return
70
+     */
71
+    @RequestMapping(value="/taBanner",method= RequestMethod.POST)
72
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
73
+    @RequiresPermissions("banner")
74
+    public ResponseBean taBannerAdd(@ApiParam("保存内容") @RequestBody TaBanner taBanner) throws Exception{
75
+
76
+        if (iTaBannerService.save(taBanner)){
77
+            return ResponseBean.success(taBanner);
78
+        }else {
79
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
80
+        }
81
+    }
82
+
83
+    /**
84
+     * 根据id删除对象
85
+     * @param id  实体ID
86
+     */
87
+    @RequestMapping(value="/taBanner/{id}", method= RequestMethod.DELETE)
88
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
89
+    @RequiresPermissions("banner")
90
+    public ResponseBean taBannerDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
91
+        if(iTaBannerService.removeById(id)){
92
+            return ResponseBean.success("success");
93
+        }else {
94
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
95
+        }
96
+    }
97
+
98
+    /**
99
+     * 修改对象
100
+     * @param id  实体ID
101
+     * @param taBanner 实体对象
102
+     * @return
103
+     */
104
+    @RequestMapping(value="/taBanner/{id}",method= RequestMethod.PUT)
105
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
106
+    @RequiresPermissions("banner")
107
+    public ResponseBean taBannerUpdate(@ApiParam("对象ID") @PathVariable Integer id,
108
+                                        @ApiParam("更新内容") @RequestBody TaBanner taBanner) throws Exception{
109
+
110
+        if (iTaBannerService.updateById(taBanner)){
111
+            return ResponseBean.success(iTaBannerService.getById(id));
112
+        }else {
113
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
114
+        }
115
+    }
116
+
117
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaDispatchController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaDispatchService;
20
+import com.yunzhi.nanyang.entity.TaDispatch;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 调度表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "调度表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaDispatchController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaDispatchController.class);
38
+
39
+    @Autowired
40
+    public ITaDispatchService iTaDispatchService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taDispatch",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taDispatchList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaDispatch> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaDispatch> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaDispatch> result = iTaDispatchService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taDispatch 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taDispatch",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taDispatchAdd(@ApiParam("保存内容") @RequestBody TaDispatch taDispatch) throws Exception{
70
+
71
+        if (iTaDispatchService.save(taDispatch)){
72
+            return ResponseBean.success(taDispatch);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taDispatch/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taDispatchDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaDispatchService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taDispatch 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taDispatch/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taDispatchUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaDispatch taDispatch) throws Exception{
102
+
103
+        if (iTaDispatchService.updateById(taDispatch)){
104
+            return ResponseBean.success(iTaDispatchService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taDispatch/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taDispatchGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaDispatchService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaEvaluationController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaEvaluationService;
20
+import com.yunzhi.nanyang.entity.TaEvaluation;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 评价表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "评价表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaEvaluationController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaEvaluationController.class);
38
+
39
+    @Autowired
40
+    public ITaEvaluationService iTaEvaluationService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taEvaluation",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taEvaluationList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaEvaluation> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaEvaluation> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaEvaluation> result = iTaEvaluationService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taEvaluation 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taEvaluation",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taEvaluationAdd(@ApiParam("保存内容") @RequestBody TaEvaluation taEvaluation) throws Exception{
70
+
71
+        if (iTaEvaluationService.save(taEvaluation)){
72
+            return ResponseBean.success(taEvaluation);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taEvaluation/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taEvaluationDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaEvaluationService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taEvaluation 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taEvaluation/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taEvaluationUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaEvaluation taEvaluation) throws Exception{
102
+
103
+        if (iTaEvaluationService.updateById(taEvaluation)){
104
+            return ResponseBean.success(iTaEvaluationService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taEvaluation/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taEvaluationGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaEvaluationService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaExtendContentController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaExtendContentService;
20
+import com.yunzhi.nanyang.entity.TaExtendContent;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 拓展内容表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "拓展内容表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaExtendContentController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaExtendContentController.class);
38
+
39
+    @Autowired
40
+    public ITaExtendContentService iTaExtendContentService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taExtendContent",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taExtendContentList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaExtendContent> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaExtendContent> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaExtendContent> result = iTaExtendContentService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taExtendContent 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taExtendContent",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taExtendContentAdd(@ApiParam("保存内容") @RequestBody TaExtendContent taExtendContent) throws Exception{
70
+
71
+        if (iTaExtendContentService.save(taExtendContent)){
72
+            return ResponseBean.success(taExtendContent);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taExtendContent/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taExtendContentDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaExtendContentService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taExtendContent 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taExtendContent/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taExtendContentUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaExtendContent taExtendContent) throws Exception{
102
+
103
+        if (iTaExtendContentService.updateById(taExtendContent)){
104
+            return ResponseBean.success(iTaExtendContentService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taExtendContent/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taExtendContentGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaExtendContentService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaFeedbackController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaFeedbackService;
20
+import com.yunzhi.nanyang.entity.TaFeedback;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 意见反馈 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "意见反馈")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaFeedbackController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaFeedbackController.class);
38
+
39
+    @Autowired
40
+    public ITaFeedbackService iTaFeedbackService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taFeedback",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taFeedbackList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaFeedback> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaFeedback> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaFeedback> result = iTaFeedbackService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taFeedback 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taFeedback",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taFeedbackAdd(@ApiParam("保存内容") @RequestBody TaFeedback taFeedback) throws Exception{
70
+
71
+        if (iTaFeedbackService.save(taFeedback)){
72
+            return ResponseBean.success(taFeedback);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taFeedback/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taFeedbackDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaFeedbackService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taFeedback 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taFeedback/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taFeedbackUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaFeedback taFeedback) throws Exception{
102
+
103
+        if (iTaFeedbackService.updateById(taFeedback)){
104
+            return ResponseBean.success(iTaFeedbackService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taFeedback/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taFeedbackGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaFeedbackService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaImagesController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaImagesService;
20
+import com.yunzhi.nanyang.entity.TaImages;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 图片 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "图片")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaImagesController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaImagesController.class);
38
+
39
+    @Autowired
40
+    public ITaImagesService iTaImagesService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taImages",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taImagesList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaImages> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaImages> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaImages> result = iTaImagesService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taImages 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taImages",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taImagesAdd(@ApiParam("保存内容") @RequestBody TaImages taImages) throws Exception{
70
+
71
+        if (iTaImagesService.save(taImages)){
72
+            return ResponseBean.success(taImages);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taImages/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taImagesDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaImagesService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taImages 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taImages/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taImagesUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaImages taImages) throws Exception{
102
+
103
+        if (iTaImagesService.updateById(taImages)){
104
+            return ResponseBean.success(iTaImagesService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taImages/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taImagesGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaImagesService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaMachineryController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaMachineryService;
20
+import com.yunzhi.nanyang.entity.TaMachinery;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 农机表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "农机表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaMachineryController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaMachineryController.class);
38
+
39
+    @Autowired
40
+    public ITaMachineryService iTaMachineryService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taMachinery",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taMachineryList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaMachinery> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaMachinery> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaMachinery> result = iTaMachineryService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taMachinery 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taMachinery",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taMachineryAdd(@ApiParam("保存内容") @RequestBody TaMachinery taMachinery) throws Exception{
70
+
71
+        if (iTaMachineryService.save(taMachinery)){
72
+            return ResponseBean.success(taMachinery);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taMachinery/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taMachineryDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaMachineryService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taMachinery 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taMachinery/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taMachineryUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaMachinery taMachinery) throws Exception{
102
+
103
+        if (iTaMachineryService.updateById(taMachinery)){
104
+            return ResponseBean.success(iTaMachineryService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taMachinery/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taMachineryGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaMachineryService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaMachineryGpsController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaMachineryGpsService;
20
+import com.yunzhi.nanyang.entity.TaMachineryGps;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 农机定位信息 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "农机定位信息")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaMachineryGpsController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaMachineryGpsController.class);
38
+
39
+    @Autowired
40
+    public ITaMachineryGpsService iTaMachineryGpsService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taMachineryGps",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taMachineryGpsList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaMachineryGps> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaMachineryGps> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaMachineryGps> result = iTaMachineryGpsService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taMachineryGps 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taMachineryGps",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taMachineryGpsAdd(@ApiParam("保存内容") @RequestBody TaMachineryGps taMachineryGps) throws Exception{
70
+
71
+        if (iTaMachineryGpsService.save(taMachineryGps)){
72
+            return ResponseBean.success(taMachineryGps);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taMachineryGps/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taMachineryGpsDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaMachineryGpsService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taMachineryGps 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taMachineryGps/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taMachineryGpsUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaMachineryGps taMachineryGps) throws Exception{
102
+
103
+        if (iTaMachineryGpsService.updateById(taMachineryGps)){
104
+            return ResponseBean.success(iTaMachineryGpsService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taMachineryGps/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taMachineryGpsGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaMachineryGpsService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaMessageController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaMessageService;
20
+import com.yunzhi.nanyang.entity.TaMessage;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 消息表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "消息表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaMessageController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaMessageController.class);
38
+
39
+    @Autowired
40
+    public ITaMessageService iTaMessageService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taMessage",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taMessageList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaMessage> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaMessage> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaMessage> result = iTaMessageService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taMessage 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taMessage",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taMessageAdd(@ApiParam("保存内容") @RequestBody TaMessage taMessage) throws Exception{
70
+
71
+        if (iTaMessageService.save(taMessage)){
72
+            return ResponseBean.success(taMessage);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taMessage/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taMessageDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaMessageService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taMessage 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taMessage/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taMessageUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaMessage taMessage) throws Exception{
102
+
103
+        if (iTaMessageService.updateById(taMessage)){
104
+            return ResponseBean.success(iTaMessageService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taMessage/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taMessageGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaMessageService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaNewsController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaNewsService;
20
+import com.yunzhi.nanyang.entity.TaNews;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 资讯表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "资讯表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaNewsController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaNewsController.class);
38
+
39
+    @Autowired
40
+    public ITaNewsService iTaNewsService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taNews",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taNewsList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaNews> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaNews> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaNews> result = iTaNewsService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taNews 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taNews",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taNewsAdd(@ApiParam("保存内容") @RequestBody TaNews taNews) throws Exception{
70
+
71
+        if (iTaNewsService.save(taNews)){
72
+            return ResponseBean.success(taNews);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taNews/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taNewsDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaNewsService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taNews 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taNews/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taNewsUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaNews taNews) throws Exception{
102
+
103
+        if (iTaNewsService.updateById(taNews)){
104
+            return ResponseBean.success(iTaNewsService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taNews/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taNewsGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaNewsService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaNewsTypeController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaNewsTypeService;
20
+import com.yunzhi.nanyang.entity.TaNewsType;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 资讯分类表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "资讯分类表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaNewsTypeController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaNewsTypeController.class);
38
+
39
+    @Autowired
40
+    public ITaNewsTypeService iTaNewsTypeService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taNewsType",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taNewsTypeList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaNewsType> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaNewsType> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaNewsType> result = iTaNewsTypeService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taNewsType 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taNewsType",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taNewsTypeAdd(@ApiParam("保存内容") @RequestBody TaNewsType taNewsType) throws Exception{
70
+
71
+        if (iTaNewsTypeService.save(taNewsType)){
72
+            return ResponseBean.success(taNewsType);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taNewsType/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taNewsTypeDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaNewsTypeService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taNewsType 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taNewsType/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taNewsTypeUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaNewsType taNewsType) throws Exception{
102
+
103
+        if (iTaNewsTypeService.updateById(taNewsType)){
104
+            return ResponseBean.success(iTaNewsTypeService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taNewsType/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taNewsTypeGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaNewsTypeService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaOrderController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaOrderService;
20
+import com.yunzhi.nanyang.entity.TaOrder;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 订单表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "订单表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaOrderController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaOrderController.class);
38
+
39
+    @Autowired
40
+    public ITaOrderService iTaOrderService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taOrder",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taOrderList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaOrder> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaOrder> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaOrder> result = iTaOrderService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taOrder 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taOrder",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taOrderAdd(@ApiParam("保存内容") @RequestBody TaOrder taOrder) throws Exception{
70
+
71
+        if (iTaOrderService.save(taOrder)){
72
+            return ResponseBean.success(taOrder);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taOrder/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taOrderDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaOrderService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taOrder 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taOrder/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taOrderUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaOrder taOrder) throws Exception{
102
+
103
+        if (iTaOrderService.updateById(taOrder)){
104
+            return ResponseBean.success(iTaOrderService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taOrder/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taOrderGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaOrderService.getById(id));
118
+    }
119
+}

+ 158
- 0
src/main/java/com/yunzhi/nanyang/controller/TaOrgController.java Vedi File

@@ -0,0 +1,158 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.Constants;
8
+import com.yunzhi.nanyang.common.ResponseBean;
9
+import com.yunzhi.nanyang.entity.SysUser;
10
+import com.yunzhi.nanyang.service.ISysUserService;
11
+import io.swagger.annotations.Api;
12
+import io.swagger.annotations.ApiOperation;
13
+import io.swagger.annotations.ApiParam;
14
+import org.apache.shiro.authz.annotation.RequiresPermissions;
15
+import org.slf4j.Logger;
16
+import org.slf4j.LoggerFactory;
17
+import org.springframework.beans.factory.annotation.Autowired;
18
+import org.springframework.web.bind.annotation.PathVariable;
19
+import org.springframework.web.bind.annotation.RequestBody;
20
+import org.springframework.web.bind.annotation.RequestMapping;
21
+import org.springframework.web.bind.annotation.RequestMethod;
22
+import org.springframework.web.bind.annotation.RequestParam;
23
+import com.yunzhi.nanyang.service.ITaOrgService;
24
+import com.yunzhi.nanyang.entity.TaOrg;
25
+import org.springframework.web.bind.annotation.RestController;
26
+
27
+import java.time.LocalDateTime;
28
+
29
+/**
30
+ * <p>
31
+    * 机构管理 前端控制器
32
+    * </p>
33
+ *
34
+ * @author yansen
35
+ * @since 2022-03-08
36
+ */
37
+
38
+@Api(tags = "机构管理")
39
+@RestController
40
+@RequestMapping("/")
41
+public class TaOrgController extends BaseController {
42
+
43
+    private final Logger logger = LoggerFactory.getLogger(TaOrgController.class);
44
+
45
+    @Autowired
46
+    public ITaOrgService iTaOrgService;
47
+
48
+    @Autowired
49
+    public ISysUserService iSysUserService;
50
+
51
+
52
+    /**
53
+     * 分页查询列表
54
+     * @param pageNum
55
+     * @param pageSize
56
+     * @return
57
+     */
58
+    @RequestMapping(value="/admin/org",method= RequestMethod.GET)
59
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
60
+    @RequiresPermissions("org")
61
+    public ResponseBean taOrgList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
62
+                                  @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
63
+
64
+        IPage<TaOrg> pg = new Page<>(pageNum, pageSize);
65
+        SysUser sysUser = currentUser();
66
+
67
+        IPage<TaOrg> result = iTaOrgService.getPageBy(pg, sysUser);
68
+        return ResponseBean.success(result);
69
+    }
70
+
71
+    /**
72
+     * 保存对象
73
+     * @param taOrg 实体对象
74
+     * @return
75
+     */
76
+    @RequestMapping(value="/admin/org",method= RequestMethod.POST)
77
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
78
+    @RequiresPermissions("org")
79
+    public ResponseBean taOrgAdd(@ApiParam("保存内容") @RequestBody TaOrg taOrg) throws Exception{
80
+
81
+        SysUser sysUser = currentUser();
82
+
83
+        taOrg.setOrgId(null);
84
+        taOrg.setCreateUser(sysUser.getUserId());
85
+
86
+        if (iTaOrgService.saveWithDataScope(taOrg)){
87
+            return ResponseBean.success(taOrg);
88
+        }else {
89
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
90
+        }
91
+    }
92
+
93
+    /**
94
+     * 根据id删除对象
95
+     * @param id  实体ID
96
+     */
97
+    @RequestMapping(value="/admin/org/{id}", method= RequestMethod.DELETE)
98
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
99
+    @RequiresPermissions("org")
100
+    public ResponseBean taOrgDelete(@ApiParam("对象ID") @PathVariable String id) throws Exception{
101
+
102
+        int cnt = iSysUserService.countBy("org_id", id, true);
103
+        if (cnt > 0) {
104
+            return ResponseBean.error("请先清空机构人员信息");
105
+        }
106
+
107
+        if(iTaOrgService.remvoeWithDataScope(id, currentUser().getUserId())){
108
+            return ResponseBean.success("success");
109
+        } else {
110
+            return ResponseBean.error("无权限或者ID不正确", ResponseBean.ERROR_UNAVAILABLE);
111
+        }
112
+    }
113
+
114
+    /**
115
+     * 修改对象
116
+     * @param id  实体ID
117
+     * @param taOrg 实体对象
118
+     * @return
119
+     */
120
+    @RequestMapping(value="/admin/org/{id}",method= RequestMethod.PUT)
121
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
122
+    @RequiresPermissions("org")
123
+    public ResponseBean taOrgUpdate(@ApiParam("对象ID") @PathVariable String id,
124
+                                        @ApiParam("更新内容") @RequestBody TaOrg taOrg) throws Exception{
125
+
126
+        if (!iTaOrgService.canAccessData(id, currentUser().getUserId())) {
127
+            return ResponseBean.error("无权限或者ID不正确");
128
+        }
129
+
130
+        if (taOrg.getStatus().equals(Constants.STATUS_DELETE)) {
131
+            return ResponseBean.error("未找到数据");
132
+        }
133
+
134
+        // 不支持修改如下字段
135
+        taOrg.setCreateUser(null);
136
+        taOrg.setCreateDate(null);
137
+
138
+        if (iTaOrgService.updateById(taOrg)){
139
+            return ResponseBean.success(iTaOrgService.getById(id));
140
+        }else {
141
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
142
+        }
143
+    }
144
+
145
+    /**
146
+     * 根据id查询对象
147
+     * @param id  实体ID
148
+     */
149
+    @RequestMapping(value="/admin/org/{id}",method= RequestMethod.GET)
150
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
151
+    public ResponseBean taOrgGet(@ApiParam("对象ID") @PathVariable String id) throws Exception{
152
+        if (!iTaOrgService.canAccessData(id, currentUser().getUserId())) {
153
+            return ResponseBean.error("无权限或者ID不正确");
154
+        }
155
+
156
+        return ResponseBean.success(iTaOrgService.getById(id));
157
+    }
158
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaPersonController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaPersonService;
20
+import com.yunzhi.nanyang.entity.TaPerson;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 人员表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "人员表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaPersonController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaPersonController.class);
38
+
39
+    @Autowired
40
+    public ITaPersonService iTaPersonService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taPerson",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taPersonList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaPerson> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaPerson> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaPerson> result = iTaPersonService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taPerson 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taPerson",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taPersonAdd(@ApiParam("保存内容") @RequestBody TaPerson taPerson) throws Exception{
70
+
71
+        if (iTaPersonService.save(taPerson)){
72
+            return ResponseBean.success(taPerson);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taPerson/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taPersonDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaPersonService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taPerson 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taPerson/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taPersonUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaPerson taPerson) throws Exception{
102
+
103
+        if (iTaPersonService.updateById(taPerson)){
104
+            return ResponseBean.success(iTaPersonService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taPerson/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taPersonGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaPersonService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaRegionController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaRegionService;
20
+import com.yunzhi.nanyang.entity.TaRegion;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 归属区域表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "归属区域表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaRegionController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaRegionController.class);
38
+
39
+    @Autowired
40
+    public ITaRegionService iTaRegionService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taRegion",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taRegionList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaRegion> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaRegion> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaRegion> result = iTaRegionService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taRegion 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taRegion",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taRegionAdd(@ApiParam("保存内容") @RequestBody TaRegion taRegion) throws Exception{
70
+
71
+        if (iTaRegionService.save(taRegion)){
72
+            return ResponseBean.success(taRegion);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taRegion/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taRegionDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaRegionService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taRegion 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taRegion/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taRegionUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaRegion taRegion) throws Exception{
102
+
103
+        if (iTaRegionService.updateById(taRegion)){
104
+            return ResponseBean.success(iTaRegionService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taRegion/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taRegionGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaRegionService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaUserMachineryController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaUserMachineryService;
20
+import com.yunzhi.nanyang.entity.TaUserMachinery;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 农机绑定 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "农机绑定")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaUserMachineryController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaUserMachineryController.class);
38
+
39
+    @Autowired
40
+    public ITaUserMachineryService iTaUserMachineryService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taUserMachinery",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taUserMachineryList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaUserMachinery> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaUserMachinery> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaUserMachinery> result = iTaUserMachineryService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taUserMachinery 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taUserMachinery",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taUserMachineryAdd(@ApiParam("保存内容") @RequestBody TaUserMachinery taUserMachinery) throws Exception{
70
+
71
+        if (iTaUserMachineryService.save(taUserMachinery)){
72
+            return ResponseBean.success(taUserMachinery);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taUserMachinery/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taUserMachineryDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaUserMachineryService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taUserMachinery 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taUserMachinery/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taUserMachineryUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaUserMachinery taUserMachinery) throws Exception{
102
+
103
+        if (iTaUserMachineryService.updateById(taUserMachinery)){
104
+            return ResponseBean.success(iTaUserMachineryService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taUserMachinery/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taUserMachineryGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaUserMachineryService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaWithdrawalController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaWithdrawalService;
20
+import com.yunzhi.nanyang.entity.TaWithdrawal;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 提现表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "提现表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaWithdrawalController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaWithdrawalController.class);
38
+
39
+    @Autowired
40
+    public ITaWithdrawalService iTaWithdrawalService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taWithdrawal",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taWithdrawalList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaWithdrawal> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaWithdrawal> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaWithdrawal> result = iTaWithdrawalService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taWithdrawal 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taWithdrawal",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taWithdrawalAdd(@ApiParam("保存内容") @RequestBody TaWithdrawal taWithdrawal) throws Exception{
70
+
71
+        if (iTaWithdrawalService.save(taWithdrawal)){
72
+            return ResponseBean.success(taWithdrawal);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taWithdrawal/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taWithdrawalDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaWithdrawalService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taWithdrawal 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taWithdrawal/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taWithdrawalUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaWithdrawal taWithdrawal) throws Exception{
102
+
103
+        if (iTaWithdrawalService.updateById(taWithdrawal)){
104
+            return ResponseBean.success(iTaWithdrawalService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taWithdrawal/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taWithdrawalGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaWithdrawalService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaWorkJobController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaWorkJobService;
20
+import com.yunzhi.nanyang.entity.TaWorkJob;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 作业表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "作业表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaWorkJobController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaWorkJobController.class);
38
+
39
+    @Autowired
40
+    public ITaWorkJobService iTaWorkJobService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taWorkJob",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taWorkJobList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaWorkJob> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaWorkJob> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaWorkJob> result = iTaWorkJobService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taWorkJob 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taWorkJob",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taWorkJobAdd(@ApiParam("保存内容") @RequestBody TaWorkJob taWorkJob) throws Exception{
70
+
71
+        if (iTaWorkJobService.save(taWorkJob)){
72
+            return ResponseBean.success(taWorkJob);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taWorkJob/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taWorkJobDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaWorkJobService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taWorkJob 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taWorkJob/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taWorkJobUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaWorkJob taWorkJob) throws Exception{
102
+
103
+        if (iTaWorkJobService.updateById(taWorkJob)){
104
+            return ResponseBean.success(iTaWorkJobService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taWorkJob/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taWorkJobGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaWorkJobService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TaWorkJobTypeController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITaWorkJobTypeService;
20
+import com.yunzhi.nanyang.entity.TaWorkJobType;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 作业类型 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "作业类型")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaWorkJobTypeController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaWorkJobTypeController.class);
38
+
39
+    @Autowired
40
+    public ITaWorkJobTypeService iTaWorkJobTypeService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taWorkJobType",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taWorkJobTypeList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaWorkJobType> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaWorkJobType> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaWorkJobType> result = iTaWorkJobTypeService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taWorkJobType 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taWorkJobType",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taWorkJobTypeAdd(@ApiParam("保存内容") @RequestBody TaWorkJobType taWorkJobType) throws Exception{
70
+
71
+        if (iTaWorkJobTypeService.save(taWorkJobType)){
72
+            return ResponseBean.success(taWorkJobType);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taWorkJobType/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taWorkJobTypeDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaWorkJobTypeService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taWorkJobType 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taWorkJobType/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taWorkJobTypeUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaWorkJobType taWorkJobType) throws Exception{
102
+
103
+        if (iTaWorkJobTypeService.updateById(taWorkJobType)){
104
+            return ResponseBean.success(iTaWorkJobTypeService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taWorkJobType/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taWorkJobTypeGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaWorkJobTypeService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TdDeviceController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITdDeviceService;
20
+import com.yunzhi.nanyang.entity.TdDevice;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 设备表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "设备表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TdDeviceController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TdDeviceController.class);
38
+
39
+    @Autowired
40
+    public ITdDeviceService iTdDeviceService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/tdDevice",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean tdDeviceList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TdDevice> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TdDevice> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TdDevice> result = iTdDeviceService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param tdDevice 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/tdDevice",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean tdDeviceAdd(@ApiParam("保存内容") @RequestBody TdDevice tdDevice) throws Exception{
70
+
71
+        if (iTdDeviceService.save(tdDevice)){
72
+            return ResponseBean.success(tdDevice);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/tdDevice/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean tdDeviceDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTdDeviceService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param tdDevice 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/tdDevice/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean tdDeviceUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TdDevice tdDevice) throws Exception{
102
+
103
+        if (iTdDeviceService.updateById(tdDevice)){
104
+            return ResponseBean.success(iTdDeviceService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/tdDevice/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean tdDeviceGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTdDeviceService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/nanyang/controller/TdMachineryTypeController.java Vedi File

@@ -0,0 +1,119 @@
1
+package com.yunzhi.nanyang.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.nanyang.common.BaseController;
7
+import com.yunzhi.nanyang.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.nanyang.service.ITdMachineryTypeService;
20
+import com.yunzhi.nanyang.entity.TdMachineryType;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 农机类型表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2022-03-08
30
+ */
31
+
32
+@Api(tags = "农机类型表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TdMachineryTypeController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TdMachineryTypeController.class);
38
+
39
+    @Autowired
40
+    public ITdMachineryTypeService iTdMachineryTypeService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/tdMachineryType",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean tdMachineryTypeList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TdMachineryType> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TdMachineryType> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TdMachineryType> result = iTdMachineryTypeService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param tdMachineryType 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/tdMachineryType",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean tdMachineryTypeAdd(@ApiParam("保存内容") @RequestBody TdMachineryType tdMachineryType) throws Exception{
70
+
71
+        if (iTdMachineryTypeService.save(tdMachineryType)){
72
+            return ResponseBean.success(tdMachineryType);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/tdMachineryType/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean tdMachineryTypeDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTdMachineryTypeService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param tdMachineryType 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/tdMachineryType/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean tdMachineryTypeUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TdMachineryType tdMachineryType) throws Exception{
102
+
103
+        if (iTdMachineryTypeService.updateById(tdMachineryType)){
104
+            return ResponseBean.success(iTdMachineryTypeService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/tdMachineryType/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean tdMachineryTypeGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTdMachineryTypeService.getById(id));
118
+    }
119
+}

+ 1
- 1
src/main/java/com/yunzhi/nanyang/entity/SysMenu.java Vedi File

@@ -15,7 +15,7 @@ import lombok.experimental.Accessors;
15 15
  * </p>
16 16
  *
17 17
  * @author yansen
18
- * @since 2022-03-07
18
+ * @since 2022-03-08
19 19
  */
20 20
 @Data
21 21
 @EqualsAndHashCode(callSuper = false)

+ 48
- 0
src/main/java/com/yunzhi/nanyang/entity/SysSetting.java Vedi File

@@ -0,0 +1,48 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.io.Serializable;
6
+import io.swagger.annotations.ApiModel;
7
+import io.swagger.annotations.ApiModelProperty;
8
+import lombok.Data;
9
+import lombok.EqualsAndHashCode;
10
+import lombok.experimental.Accessors;
11
+
12
+/**
13
+ * <p>
14
+ * 系统设置
15
+ * </p>
16
+ *
17
+ * @author yansen
18
+ * @since 2022-03-08
19
+ */
20
+@Data
21
+@EqualsAndHashCode(callSuper = false)
22
+@Accessors(chain = true)
23
+@ApiModel(value="SysSetting对象", description="系统设置")
24
+public class SysSetting implements Serializable {
25
+
26
+    private static final long serialVersionUID = 1L;
27
+
28
+    @ApiModelProperty(value = "ID")
29
+    @TableId(value = "setting_id", type = IdType.INPUT)
30
+    private String settingId;
31
+
32
+    @ApiModelProperty(value = "设置描述")
33
+    private String settingDesc;
34
+
35
+    @ApiModelProperty(value = "值")
36
+    private String settingValue;
37
+
38
+    @ApiModelProperty(value = "是否隐藏")
39
+    private Integer isHidden;
40
+
41
+    @ApiModelProperty(value = "序号")
42
+    private Integer sortNo;
43
+
44
+    @ApiModelProperty(value = "状态")
45
+    private Integer status;
46
+
47
+
48
+}

+ 3
- 0
src/main/java/com/yunzhi/nanyang/entity/SysUser.java Vedi File

@@ -36,6 +36,9 @@ public class SysUser implements Serializable {
36 36
     @ApiModelProperty(value = "手机号")
37 37
     private String phone;
38 38
 
39
+    @ApiModelProperty(value = "性别")
40
+    private Integer sex;
41
+
39 42
     @ApiModelProperty(value = "头像")
40 43
     private String avatar;
41 44
 

+ 39
- 0
src/main/java/com/yunzhi/nanyang/entity/SysUserDataScope.java Vedi File

@@ -0,0 +1,39 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.io.Serializable;
6
+import io.swagger.annotations.ApiModel;
7
+import io.swagger.annotations.ApiModelProperty;
8
+import lombok.Data;
9
+import lombok.EqualsAndHashCode;
10
+import lombok.experimental.Accessors;
11
+
12
+/**
13
+ * <p>
14
+ * 用户数据权限
15
+ * </p>
16
+ *
17
+ * @author yansen
18
+ * @since 2022-03-08
19
+ */
20
+@Data
21
+@EqualsAndHashCode(callSuper = false)
22
+@Accessors(chain = true)
23
+@ApiModel(value="SysUserDataScope对象", description="用户数据权限")
24
+public class SysUserDataScope implements Serializable {
25
+
26
+    private static final long serialVersionUID = 1L;
27
+
28
+    @ApiModelProperty(value = "序号")
29
+    @TableId(value = "serial_no", type = IdType.AUTO)
30
+    private Integer serialNo;
31
+
32
+    @ApiModelProperty(value = "用户ID")
33
+    private String userId;
34
+
35
+    @ApiModelProperty(value = "机构ID")
36
+    private String orgId;
37
+
38
+
39
+}

+ 52
- 0
src/main/java/com/yunzhi/nanyang/entity/TaAccount.java Vedi File

@@ -0,0 +1,52 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 账户表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaAccount对象", description="账户表")
25
+public class TaAccount implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "账户id")
30
+    @TableId(value = "account_id", type = IdType.INPUT)
31
+    private String accountId;
32
+
33
+    @ApiModelProperty(value = "人员ID;1银行卡号2微信账户3支付宝账户")
34
+    private String userId;
35
+
36
+    @ApiModelProperty(value = "余额")
37
+    private Integer amounts;
38
+
39
+    @ApiModelProperty(value = "累计支出")
40
+    private Integer paidFee;
41
+
42
+    @ApiModelProperty(value = "充值金额")
43
+    private Integer depositFee;
44
+
45
+    @ApiModelProperty(value = "状态")
46
+    private Integer state;
47
+
48
+    @ApiModelProperty(value = "创建时间")
49
+    private LocalDateTime createDate;
50
+
51
+
52
+}

+ 55
- 0
src/main/java/com/yunzhi/nanyang/entity/TaAccountLog.java Vedi File

@@ -0,0 +1,55 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.time.LocalDateTime;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 流水表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaAccountLog对象", description="流水表")
25
+public class TaAccountLog implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "流水id")
30
+    @TableId(value = "log_id", type = IdType.AUTO)
31
+    private Integer logId;
32
+
33
+    @ApiModelProperty(value = "账户Id")
34
+    private String accountId;
35
+
36
+    @ApiModelProperty(value = "收支类型;1收入, -1支出")
37
+    private Integer feeType;
38
+
39
+    @ApiModelProperty(value = "消费类型;押金,人工费等")
40
+    private String chargeType;
41
+
42
+    @ApiModelProperty(value = "流水金额")
43
+    private Integer money;
44
+
45
+    @ApiModelProperty(value = "订单Id")
46
+    private String orderId;
47
+
48
+    @ApiModelProperty(value = "备注")
49
+    private String remarks;
50
+
51
+    @ApiModelProperty(value = "发生时间")
52
+    private LocalDateTime createDate;
53
+
54
+
55
+}

+ 54
- 0
src/main/java/com/yunzhi/nanyang/entity/TaAddress.java Vedi File

@@ -0,0 +1,54 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.io.Serializable;
6
+import io.swagger.annotations.ApiModel;
7
+import io.swagger.annotations.ApiModelProperty;
8
+import lombok.Data;
9
+import lombok.EqualsAndHashCode;
10
+import lombok.experimental.Accessors;
11
+
12
+/**
13
+ * <p>
14
+ * 地址
15
+ * </p>
16
+ *
17
+ * @author yansen
18
+ * @since 2022-03-08
19
+ */
20
+@Data
21
+@EqualsAndHashCode(callSuper = false)
22
+@Accessors(chain = true)
23
+@ApiModel(value="TaAddress对象", description="地址")
24
+public class TaAddress implements Serializable {
25
+
26
+    private static final long serialVersionUID = 1L;
27
+
28
+    @ApiModelProperty(value = "地址ID")
29
+    @TableId(value = "address_id", type = IdType.INPUT)
30
+    private String addressId;
31
+
32
+    @ApiModelProperty(value = "地址")
33
+    private Integer address;
34
+
35
+    @ApiModelProperty(value = "所属人类型")
36
+    private String ownerType;
37
+
38
+    @ApiModelProperty(value = "所属人ID")
39
+    private String ownerId;
40
+
41
+    @ApiModelProperty(value = "是否默认")
42
+    private Integer isDefault;
43
+
44
+    @ApiModelProperty(value = "排序")
45
+    private Integer sortNo;
46
+
47
+    @ApiModelProperty(value = "机构ID")
48
+    private String orgId;
49
+
50
+    @ApiModelProperty(value = "状态")
51
+    private Integer status;
52
+
53
+
54
+}

+ 52
- 0
src/main/java/com/yunzhi/nanyang/entity/TaBanner.java Vedi File

@@ -0,0 +1,52 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 轮播图表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaBanner对象", description="轮播图表")
25
+public class TaBanner implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "轮播图Id")
30
+    @TableId(value = "banner_id", type = IdType.INPUT)
31
+    private String bannerId;
32
+
33
+    @ApiModelProperty(value = "名称")
34
+    private String title;
35
+
36
+    @ApiModelProperty(value = "图片")
37
+    private String thumb;
38
+
39
+    @ApiModelProperty(value = "位置")
40
+    private String position;
41
+
42
+    @ApiModelProperty(value = "排序")
43
+    private Integer sortNo;
44
+
45
+    @ApiModelProperty(value = "状态")
46
+    private Integer status;
47
+
48
+    @ApiModelProperty(value = "创建时间")
49
+    private LocalDateTime createDate;
50
+
51
+
52
+}

+ 55
- 0
src/main/java/com/yunzhi/nanyang/entity/TaDispatch.java Vedi File

@@ -0,0 +1,55 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 调度表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaDispatch对象", description="调度表")
25
+public class TaDispatch implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "调度ID")
30
+    @TableId(value = "dispatch_id", type = IdType.INPUT)
31
+    private String dispatchId;
32
+
33
+    @ApiModelProperty(value = "订单ID")
34
+    private String orderId;
35
+
36
+    @ApiModelProperty(value = "机构ID")
37
+    private String orgId;
38
+
39
+    @ApiModelProperty(value = "农机手")
40
+    private String workerId;
41
+
42
+    @ApiModelProperty(value = "农机ID")
43
+    private String machineryId;
44
+
45
+    @ApiModelProperty(value = "状态")
46
+    private Integer status;
47
+
48
+    @ApiModelProperty(value = "创建人")
49
+    private String createUser;
50
+
51
+    @ApiModelProperty(value = "创建时间")
52
+    private LocalDateTime createDate;
53
+
54
+
55
+}

+ 49
- 0
src/main/java/com/yunzhi/nanyang/entity/TaEvaluation.java Vedi File

@@ -0,0 +1,49 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 评价表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaEvaluation对象", description="评价表")
25
+public class TaEvaluation implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "评价id")
30
+    @TableId(value = "evaluate_id", type = IdType.INPUT)
31
+    private String evaluateId;
32
+
33
+    @ApiModelProperty(value = "订单Id")
34
+    private String orderId;
35
+
36
+    @ApiModelProperty(value = "评分")
37
+    private Integer score;
38
+
39
+    @ApiModelProperty(value = "评价内容")
40
+    private String content;
41
+
42
+    @ApiModelProperty(value = "评价人")
43
+    private String personId;
44
+
45
+    @ApiModelProperty(value = "评价时间")
46
+    private LocalDateTime createDate;
47
+
48
+
49
+}

+ 52
- 0
src/main/java/com/yunzhi/nanyang/entity/TaExtendContent.java Vedi File

@@ -0,0 +1,52 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 拓展内容表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaExtendContent对象", description="拓展内容表")
25
+public class TaExtendContent implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "租户号")
30
+    @TableId(value = "ext_id", type = IdType.INPUT)
31
+    private String extId;
32
+
33
+    @ApiModelProperty(value = "扩展对象类型;message消息表 bannar轮播图 info资讯")
34
+    private String targetType;
35
+
36
+    @ApiModelProperty(value = "拓展对象Id")
37
+    private String targetId;
38
+
39
+    @ApiModelProperty(value = "内容类型;text文本 image图片")
40
+    private String contentType;
41
+
42
+    @ApiModelProperty(value = "内容")
43
+    private String content;
44
+
45
+    @ApiModelProperty(value = "排序")
46
+    private Integer sort;
47
+
48
+    @ApiModelProperty(value = "创建时间")
49
+    private LocalDateTime createDate;
50
+
51
+
52
+}

+ 52
- 0
src/main/java/com/yunzhi/nanyang/entity/TaFeedback.java Vedi File

@@ -0,0 +1,52 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 意见反馈
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaFeedback对象", description="意见反馈")
25
+public class TaFeedback implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "反馈ID")
30
+    @TableId(value = "feedback_id", type = IdType.INPUT)
31
+    private String feedbackId;
32
+
33
+    @ApiModelProperty(value = "反馈端口")
34
+    private String fromPort;
35
+
36
+    @ApiModelProperty(value = "反馈人ID")
37
+    private String fromPerson;
38
+
39
+    @ApiModelProperty(value = "反馈内容")
40
+    private String content;
41
+
42
+    @ApiModelProperty(value = "处理结果")
43
+    private String result;
44
+
45
+    @ApiModelProperty(value = "状态")
46
+    private Integer status;
47
+
48
+    @ApiModelProperty(value = "创建时间")
49
+    private LocalDateTime createDate;
50
+
51
+
52
+}

+ 49
- 0
src/main/java/com/yunzhi/nanyang/entity/TaImages.java Vedi File

@@ -0,0 +1,49 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 图片
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaImages对象", description="图片")
25
+public class TaImages implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "图片ID")
30
+    @TableId(value = "image_id", type = IdType.INPUT)
31
+    private String imageId;
32
+
33
+    @ApiModelProperty(value = "图片地址")
34
+    private String url;
35
+
36
+    @ApiModelProperty(value = "所属对象")
37
+    private String targetType;
38
+
39
+    @ApiModelProperty(value = "对象ID")
40
+    private String targetId;
41
+
42
+    @ApiModelProperty(value = "状态")
43
+    private Integer status;
44
+
45
+    @ApiModelProperty(value = "创建时间")
46
+    private LocalDateTime createDate;
47
+
48
+
49
+}

+ 88
- 0
src/main/java/com/yunzhi/nanyang/entity/TaMachinery.java Vedi File

@@ -0,0 +1,88 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 农机表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaMachinery对象", description="农机表")
25
+public class TaMachinery implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "农机Id")
30
+    @TableId(value = "machinery_id", type = IdType.INPUT)
31
+    private String machineryId;
32
+
33
+    @ApiModelProperty(value = "名称")
34
+    private String name;
35
+
36
+    @ApiModelProperty(value = "农机类型")
37
+    private String typeId;
38
+
39
+    @ApiModelProperty(value = "类型名称")
40
+    private String typeName;
41
+
42
+    @ApiModelProperty(value = "农机价格")
43
+    private Integer price;
44
+
45
+    @ApiModelProperty(value = "购买时间")
46
+    private LocalDateTime buyDate;
47
+
48
+    @ApiModelProperty(value = "押金")
49
+    private Integer deposit;
50
+
51
+    @ApiModelProperty(value = "人工费")
52
+    private Integer laborCost;
53
+
54
+    @ApiModelProperty(value = "主图")
55
+    private String thumb;
56
+
57
+    @ApiModelProperty(value = "归属区域")
58
+    private String regionId;
59
+
60
+    @ApiModelProperty(value = "归属区域")
61
+    private String regionName;
62
+
63
+    @ApiModelProperty(value = "APP 注册状态")
64
+    private String appStatus;
65
+
66
+    @ApiModelProperty(value = "机构ID")
67
+    private String orgId;
68
+
69
+    @ApiModelProperty(value = "工作状态")
70
+    private String jobStatus;
71
+
72
+    @ApiModelProperty(value = "状态")
73
+    private Integer status;
74
+
75
+    @ApiModelProperty(value = "创建用户")
76
+    private String createUser;
77
+
78
+    @ApiModelProperty(value = "创建时间")
79
+    private LocalDateTime createDate;
80
+
81
+    @ApiModelProperty(value = "更新用户")
82
+    private String updateUser;
83
+
84
+    @ApiModelProperty(value = "更新时间")
85
+    private LocalDateTime updateDate;
86
+
87
+
88
+}

+ 46
- 0
src/main/java/com/yunzhi/nanyang/entity/TaMachineryGps.java Vedi File

@@ -0,0 +1,46 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.time.LocalDateTime;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 农机定位信息
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaMachineryGps对象", description="农机定位信息")
25
+public class TaMachineryGps implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "序号")
30
+    @TableId(value = "serial_no", type = IdType.AUTO)
31
+    private Integer serialNo;
32
+
33
+    @ApiModelProperty(value = "农机ID")
34
+    private String machineryId;
35
+
36
+    @ApiModelProperty(value = "经度")
37
+    private String lng;
38
+
39
+    @ApiModelProperty(value = "维度")
40
+    private String lat;
41
+
42
+    @ApiModelProperty(value = "创建时间")
43
+    private LocalDateTime createDate;
44
+
45
+
46
+}

+ 64
- 0
src/main/java/com/yunzhi/nanyang/entity/TaMessage.java Vedi File

@@ -0,0 +1,64 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 消息表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaMessage对象", description="消息表")
25
+public class TaMessage implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "消息id")
30
+    @TableId(value = "message_id", type = IdType.INPUT)
31
+    private String messageId;
32
+
33
+    @ApiModelProperty(value = "消息标题")
34
+    private String title;
35
+
36
+    @ApiModelProperty(value = "消息内容")
37
+    private String content;
38
+
39
+    @ApiModelProperty(value = "接收人类型")
40
+    private String receiverTarget;
41
+
42
+    @ApiModelProperty(value = "接收人ID")
43
+    private String receiverId;
44
+
45
+    @ApiModelProperty(value = "接收端")
46
+    private String receiverPort;
47
+
48
+    @ApiModelProperty(value = "推送方式")
49
+    private String pushMode;
50
+
51
+    @ApiModelProperty(value = "推送时间")
52
+    private LocalDateTime pushTime;
53
+
54
+    @ApiModelProperty(value = "推送结果")
55
+    private String pushResult;
56
+
57
+    @ApiModelProperty(value = "状态")
58
+    private Integer status;
59
+
60
+    @ApiModelProperty(value = "创建时间")
61
+    private LocalDateTime createDate;
62
+
63
+
64
+}

+ 55
- 0
src/main/java/com/yunzhi/nanyang/entity/TaNews.java Vedi File

@@ -0,0 +1,55 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 资讯表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaNews对象", description="资讯表")
25
+public class TaNews implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "资讯Id")
30
+    @TableId(value = "news_id", type = IdType.INPUT)
31
+    private String newsId;
32
+
33
+    @ApiModelProperty(value = "资讯标题")
34
+    private String title;
35
+
36
+    @ApiModelProperty(value = "资讯分类")
37
+    private String typeId;
38
+
39
+    @ApiModelProperty(value = "分类名称")
40
+    private String typeName;
41
+
42
+    @ApiModelProperty(value = "封面")
43
+    private String thumb;
44
+
45
+    @ApiModelProperty(value = "权重")
46
+    private Integer weight;
47
+
48
+    @ApiModelProperty(value = "发布状态")
49
+    private Integer status;
50
+
51
+    @ApiModelProperty(value = "创建时间")
52
+    private LocalDateTime createDate;
53
+
54
+
55
+}

+ 46
- 0
src/main/java/com/yunzhi/nanyang/entity/TaNewsType.java Vedi File

@@ -0,0 +1,46 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 资讯分类表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaNewsType对象", description="资讯分类表")
25
+public class TaNewsType implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "分类Id")
30
+    @TableId(value = "type_id", type = IdType.INPUT)
31
+    private String typeId;
32
+
33
+    @ApiModelProperty(value = "分类名")
34
+    private String name;
35
+
36
+    @ApiModelProperty(value = "排序")
37
+    private Integer sortNo;
38
+
39
+    @ApiModelProperty(value = "状态")
40
+    private Integer status;
41
+
42
+    @ApiModelProperty(value = "创建时间")
43
+    private LocalDateTime createDate;
44
+
45
+
46
+}

+ 79
- 0
src/main/java/com/yunzhi/nanyang/entity/TaOrder.java Vedi File

@@ -0,0 +1,79 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 订单表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaOrder对象", description="订单表")
25
+public class TaOrder implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "订单Id")
30
+    @TableId(value = "order_id", type = IdType.INPUT)
31
+    private String orderId;
32
+
33
+    @ApiModelProperty(value = "订单编号")
34
+    private String orderNo;
35
+
36
+    @ApiModelProperty(value = "下单人Id")
37
+    private String personId;
38
+
39
+    @ApiModelProperty(value = "费用")
40
+    private Integer charges;
41
+
42
+    @ApiModelProperty(value = "农机类型")
43
+    private String machineryType;
44
+
45
+    @ApiModelProperty(value = "类型名称")
46
+    private String typeName;
47
+
48
+    @ApiModelProperty(value = "作业地址")
49
+    private String address;
50
+
51
+    @ApiModelProperty(value = "预约时间")
52
+    private LocalDateTime appointmentDate;
53
+
54
+    @ApiModelProperty(value = "付款状态")
55
+    private Integer payStatus;
56
+
57
+    @ApiModelProperty(value = "调度状态")
58
+    private Integer dispatchStatus;
59
+
60
+    @ApiModelProperty(value = "工作状态")
61
+    private Integer workStatus;
62
+
63
+    @ApiModelProperty(value = "是否评价")
64
+    private Integer isEvaluated;
65
+
66
+    @ApiModelProperty(value = "是否退单")
67
+    private Integer isRefund;
68
+
69
+    @ApiModelProperty(value = "接单机构")
70
+    private String orgId;
71
+
72
+    @ApiModelProperty(value = "状态")
73
+    private Integer status;
74
+
75
+    @ApiModelProperty(value = "下单时间")
76
+    private LocalDateTime createDate;
77
+
78
+
79
+}

+ 79
- 0
src/main/java/com/yunzhi/nanyang/entity/TaOrg.java Vedi File

@@ -0,0 +1,79 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 机构管理
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaOrg对象", description="机构管理")
25
+public class TaOrg implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "机构ID")
30
+    @TableId(value = "org_id", type = IdType.UUID)
31
+    private String orgId;
32
+
33
+    @ApiModelProperty(value = "名称")
34
+    private String name;
35
+
36
+    @ApiModelProperty(value = "信用代码")
37
+    private String creditCode;
38
+
39
+    @ApiModelProperty(value = "经度")
40
+    private String lng;
41
+
42
+    @ApiModelProperty(value = "纬度")
43
+    private String lat;
44
+
45
+    @ApiModelProperty(value = "区域Id")
46
+    private String regionId;
47
+
48
+    @ApiModelProperty(value = "地址")
49
+    private String address;
50
+
51
+    @ApiModelProperty(value = "联系人")
52
+    private String contactPerson;
53
+
54
+    @ApiModelProperty(value = "联系方式")
55
+    private String phone;
56
+
57
+    @ApiModelProperty(value = "农机数量")
58
+    private Integer machineryNum;
59
+
60
+    @ApiModelProperty(value = "员工数量")
61
+    private Integer workerNum;
62
+
63
+    @ApiModelProperty(value = "完成订单数")
64
+    private Integer orderNum;
65
+
66
+    @ApiModelProperty(value = "评分")
67
+    private Integer score;
68
+
69
+    @ApiModelProperty(value = "状态")
70
+    private Integer status;
71
+
72
+    @ApiModelProperty(value = "创建人")
73
+    private String createUser;
74
+
75
+    @ApiModelProperty(value = "创建时间")
76
+    private LocalDateTime createDate;
77
+
78
+
79
+}

+ 32
- 0
src/main/java/com/yunzhi/nanyang/entity/TaPay.java Vedi File

@@ -0,0 +1,32 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.io.Serializable;
6
+import io.swagger.annotations.ApiModel;
7
+import io.swagger.annotations.ApiModelProperty;
8
+import lombok.Data;
9
+import lombok.EqualsAndHashCode;
10
+import lombok.experimental.Accessors;
11
+
12
+/**
13
+ * <p>
14
+ * 支付信息
15
+ * </p>
16
+ *
17
+ * @author yansen
18
+ * @since 2022-03-08
19
+ */
20
+@Data
21
+@EqualsAndHashCode(callSuper = false)
22
+@Accessors(chain = true)
23
+@ApiModel(value="TaPay对象", description="支付信息")
24
+public class TaPay implements Serializable {
25
+
26
+	private static final long serialVersionUID = 1L;
27
+
28
+	@ApiModelProperty(value = "轮播图Id")
29
+	@TableId(value = "id", type = IdType.INPUT)
30
+	private String id;
31
+
32
+}

+ 58
- 0
src/main/java/com/yunzhi/nanyang/entity/TaPerson.java Vedi File

@@ -0,0 +1,58 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 人员表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaPerson对象", description="人员表")
25
+public class TaPerson implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "用户ID")
30
+    @TableId(value = "person_id", type = IdType.INPUT)
31
+    private String personId;
32
+
33
+    @ApiModelProperty(value = "openid")
34
+    private String openid;
35
+
36
+    @ApiModelProperty(value = "名称")
37
+    private String nickName;
38
+
39
+    @ApiModelProperty(value = "头像")
40
+    private String avatar;
41
+
42
+    @ApiModelProperty(value = "性别")
43
+    private Integer sex;
44
+
45
+    @ApiModelProperty(value = "手机号")
46
+    private String phone;
47
+
48
+    @ApiModelProperty(value = "绑定人员")
49
+    private String userId;
50
+
51
+    @ApiModelProperty(value = "状态")
52
+    private Integer state;
53
+
54
+    @ApiModelProperty(value = "创建时间")
55
+    private LocalDateTime createDate;
56
+
57
+
58
+}

+ 43
- 0
src/main/java/com/yunzhi/nanyang/entity/TaRegion.java Vedi File

@@ -0,0 +1,43 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.time.LocalDateTime;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 归属区域表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaRegion对象", description="归属区域表")
25
+public class TaRegion implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "区域Id")
30
+    @TableId(value = "region_Id", type = IdType.INPUT)
31
+    private String regionId;
32
+
33
+    @ApiModelProperty(value = "区域名")
34
+    private String name;
35
+
36
+    @ApiModelProperty(value = "状态")
37
+    private Integer status;
38
+
39
+    @ApiModelProperty(value = "创建时间")
40
+    private LocalDateTime createDate;
41
+
42
+
43
+}

+ 39
- 0
src/main/java/com/yunzhi/nanyang/entity/TaUserMachinery.java Vedi File

@@ -0,0 +1,39 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.io.Serializable;
6
+import io.swagger.annotations.ApiModel;
7
+import io.swagger.annotations.ApiModelProperty;
8
+import lombok.Data;
9
+import lombok.EqualsAndHashCode;
10
+import lombok.experimental.Accessors;
11
+
12
+/**
13
+ * <p>
14
+ * 农机绑定
15
+ * </p>
16
+ *
17
+ * @author yansen
18
+ * @since 2022-03-08
19
+ */
20
+@Data
21
+@EqualsAndHashCode(callSuper = false)
22
+@Accessors(chain = true)
23
+@ApiModel(value="TaUserMachinery对象", description="农机绑定")
24
+public class TaUserMachinery implements Serializable {
25
+
26
+    private static final long serialVersionUID = 1L;
27
+
28
+    @ApiModelProperty(value = "序号")
29
+    @TableId(value = "serial_no", type = IdType.AUTO)
30
+    private Integer serialNo;
31
+
32
+    @ApiModelProperty(value = "用户ID")
33
+    private String userId;
34
+
35
+    @ApiModelProperty(value = "农机ID")
36
+    private String machineryId;
37
+
38
+
39
+}

+ 76
- 0
src/main/java/com/yunzhi/nanyang/entity/TaWithdrawal.java Vedi File

@@ -0,0 +1,76 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 提现表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaWithdrawal对象", description="提现表")
25
+public class TaWithdrawal implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "提现Id")
30
+    @TableId(value = "withdrawal_id", type = IdType.INPUT)
31
+    private String withdrawalId;
32
+
33
+    @ApiModelProperty(value = "申请人")
34
+    private String userId;
35
+
36
+    @ApiModelProperty(value = "申请人姓名")
37
+    private String userName;
38
+
39
+    @ApiModelProperty(value = "提现金额")
40
+    private Integer money;
41
+
42
+    @ApiModelProperty(value = "审批人")
43
+    private String auditUser;
44
+
45
+    @ApiModelProperty(value = "审批人姓名")
46
+    private String auditUserName;
47
+
48
+    @ApiModelProperty(value = "审核状态;未审批,不同意,同意")
49
+    private Integer auditStatus;
50
+
51
+    @ApiModelProperty(value = "审核结果")
52
+    private String auditRemark;
53
+
54
+    @ApiModelProperty(value = "备注")
55
+    private String remarks;
56
+
57
+    @ApiModelProperty(value = "打款方式")
58
+    private String accountCardType;
59
+
60
+    @ApiModelProperty(value = "打款账号")
61
+    private String accountCardNo;
62
+
63
+    @ApiModelProperty(value = "打款时间")
64
+    private LocalDateTime postedDate;
65
+
66
+    @ApiModelProperty(value = "申请时间")
67
+    private LocalDateTime createDate;
68
+
69
+    @ApiModelProperty(value = "机构ID")
70
+    private String orgId;
71
+
72
+    @ApiModelProperty(value = "状态")
73
+    private Integer status;
74
+
75
+
76
+}

+ 73
- 0
src/main/java/com/yunzhi/nanyang/entity/TaWorkJob.java Vedi File

@@ -0,0 +1,73 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 作业表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaWorkJob对象", description="作业表")
25
+public class TaWorkJob implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "作业ID")
30
+    @TableId(value = "job_id", type = IdType.INPUT)
31
+    private String jobId;
32
+
33
+    @ApiModelProperty(value = "调度ID")
34
+    private String dispatchId;
35
+
36
+    @ApiModelProperty(value = "订单ID")
37
+    private String orderId;
38
+
39
+    @ApiModelProperty(value = "农机手ID")
40
+    private String workerId;
41
+
42
+    @ApiModelProperty(value = "农机ID")
43
+    private String machineryId;
44
+
45
+    @ApiModelProperty(value = "开始时间")
46
+    private LocalDateTime startDate;
47
+
48
+    @ApiModelProperty(value = "结束时间")
49
+    private LocalDateTime endDate;
50
+
51
+    @ApiModelProperty(value = "区域ID")
52
+    private String regionId;
53
+
54
+    @ApiModelProperty(value = "作业类型")
55
+    private String typeId;
56
+
57
+    @ApiModelProperty(value = "作业面积")
58
+    private String area;
59
+
60
+    @ApiModelProperty(value = "机构ID")
61
+    private String orgId;
62
+
63
+    @ApiModelProperty(value = "状态")
64
+    private Integer status;
65
+
66
+    @ApiModelProperty(value = "创建人")
67
+    private String createUser;
68
+
69
+    @ApiModelProperty(value = "创建时间")
70
+    private LocalDateTime createDate;
71
+
72
+
73
+}

+ 39
- 0
src/main/java/com/yunzhi/nanyang/entity/TaWorkJobType.java Vedi File

@@ -0,0 +1,39 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.io.Serializable;
6
+import io.swagger.annotations.ApiModel;
7
+import io.swagger.annotations.ApiModelProperty;
8
+import lombok.Data;
9
+import lombok.EqualsAndHashCode;
10
+import lombok.experimental.Accessors;
11
+
12
+/**
13
+ * <p>
14
+ * 作业类型
15
+ * </p>
16
+ *
17
+ * @author yansen
18
+ * @since 2022-03-08
19
+ */
20
+@Data
21
+@EqualsAndHashCode(callSuper = false)
22
+@Accessors(chain = true)
23
+@ApiModel(value="TaWorkJobType对象", description="作业类型")
24
+public class TaWorkJobType implements Serializable {
25
+
26
+    private static final long serialVersionUID = 1L;
27
+
28
+    @ApiModelProperty(value = "类型ID")
29
+    @TableId(value = "type_id", type = IdType.INPUT)
30
+    private String typeId;
31
+
32
+    @ApiModelProperty(value = "名称")
33
+    private String name;
34
+
35
+    @ApiModelProperty(value = "状态")
36
+    private Integer status;
37
+
38
+
39
+}

+ 55
- 0
src/main/java/com/yunzhi/nanyang/entity/TdDevice.java Vedi File

@@ -0,0 +1,55 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 设备表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TdDevice对象", description="设备表")
25
+public class TdDevice implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "设备ID")
30
+    @TableId(value = "device_id", type = IdType.INPUT)
31
+    private String deviceId;
32
+
33
+    @ApiModelProperty(value = "设备号")
34
+    private String deviceNo;
35
+
36
+    @ApiModelProperty(value = "设备类型")
37
+    private String deviceType;
38
+
39
+    @ApiModelProperty(value = "农机ID")
40
+    private String machineryId;
41
+
42
+    @ApiModelProperty(value = "接口配置")
43
+    private String apiConfig;
44
+
45
+    @ApiModelProperty(value = "状态")
46
+    private Integer status;
47
+
48
+    @ApiModelProperty(value = "创建人")
49
+    private String createUser;
50
+
51
+    @ApiModelProperty(value = "创建时间")
52
+    private LocalDateTime createDate;
53
+
54
+
55
+}

+ 43
- 0
src/main/java/com/yunzhi/nanyang/entity/TdMachineryType.java Vedi File

@@ -0,0 +1,43 @@
1
+package com.yunzhi.nanyang.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 农机类型表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2022-03-08
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TdMachineryType对象", description="农机类型表")
25
+public class TdMachineryType implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "农机类型Id")
30
+    @TableId(value = "type_id", type = IdType.INPUT)
31
+    private String typeId;
32
+
33
+    @ApiModelProperty(value = "类型名")
34
+    private String name;
35
+
36
+    @ApiModelProperty(value = "状态")
37
+    private Integer state;
38
+
39
+    @ApiModelProperty(value = "创建时间")
40
+    private LocalDateTime createDate;
41
+
42
+
43
+}

+ 6
- 1
src/main/java/com/yunzhi/nanyang/mapper/SysMenuMapper.java Vedi File

@@ -2,7 +2,11 @@ package com.yunzhi.nanyang.mapper;
2 2
 
3 3
 import com.yunzhi.nanyang.entity.SysMenu;
4 4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import com.yunzhi.nanyang.vo.AccessInfo;
5 6
 import org.apache.ibatis.annotations.Mapper;
7
+import org.apache.ibatis.annotations.Param;
8
+
9
+import java.util.List;
6 10
 
7 11
 /**
8 12
  * <p>
@@ -10,9 +14,10 @@ import org.apache.ibatis.annotations.Mapper;
10 14
  * </p>
11 15
  *
12 16
  * @author yansen
13
- * @since 2022-03-07
17
+ * @since 2022-03-08
14 18
  */
15 19
 @Mapper
16 20
 public interface SysMenuMapper extends BaseMapper<SysMenu> {
17 21
 
22
+    List<AccessInfo> getAccessList(@Param("userId") String userId, @Param("adminId") String adminId);
18 23
 }

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/SysSettingMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.SysSetting;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 系统设置 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface SysSettingMapper extends BaseMapper<SysSetting> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/SysUserDataScopeMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.SysUserDataScope;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 用户数据权限 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface SysUserDataScopeMapper extends BaseMapper<SysUserDataScope> {
17
+
18
+}

+ 2
- 0
src/main/java/com/yunzhi/nanyang/mapper/SysUserMapper.java Vedi File

@@ -3,6 +3,7 @@ package com.yunzhi.nanyang.mapper;
3 3
 import com.yunzhi.nanyang.entity.SysUser;
4 4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5 5
 import org.apache.ibatis.annotations.Mapper;
6
+import org.apache.ibatis.annotations.Param;
6 7
 
7 8
 /**
8 9
  * <p>
@@ -15,4 +16,5 @@ import org.apache.ibatis.annotations.Mapper;
15 16
 @Mapper
16 17
 public interface SysUserMapper extends BaseMapper<SysUser> {
17 18
 
19
+    SysUser getByLoginId(@Param("loginId") String loginId);
18 20
 }

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaAccountLogMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaAccountLog;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 流水表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaAccountLogMapper extends BaseMapper<TaAccountLog> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaAccountMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaAccount;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 账户表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaAccountMapper extends BaseMapper<TaAccount> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaAddressMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaAddress;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 地址 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaAddressMapper extends BaseMapper<TaAddress> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaBannerMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaBanner;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 轮播图表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaBannerMapper extends BaseMapper<TaBanner> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaDispatchMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaDispatch;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 调度表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaDispatchMapper extends BaseMapper<TaDispatch> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaEvaluationMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaEvaluation;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 评价表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaEvaluationMapper extends BaseMapper<TaEvaluation> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaExtendContentMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaExtendContent;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 拓展内容表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaExtendContentMapper extends BaseMapper<TaExtendContent> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaFeedbackMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaFeedback;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 意见反馈 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaFeedbackMapper extends BaseMapper<TaFeedback> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaImagesMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaImages;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 图片 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaImagesMapper extends BaseMapper<TaImages> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaMachineryGpsMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaMachineryGps;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 农机定位信息 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaMachineryGpsMapper extends BaseMapper<TaMachineryGps> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaMachineryMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaMachinery;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 农机表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaMachineryMapper extends BaseMapper<TaMachinery> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaMessageMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaMessage;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 消息表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaMessageMapper extends BaseMapper<TaMessage> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaNewsMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaNews;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 资讯表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaNewsMapper extends BaseMapper<TaNews> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaNewsTypeMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaNewsType;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 资讯分类表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaNewsTypeMapper extends BaseMapper<TaNewsType> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaOrderMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaOrder;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 订单表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaOrderMapper extends BaseMapper<TaOrder> {
17
+
18
+}

+ 21
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaOrgMapper.java Vedi File

@@ -0,0 +1,21 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.metadata.IPage;
4
+import com.yunzhi.nanyang.entity.TaOrg;
5
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
6
+import org.apache.ibatis.annotations.Mapper;
7
+import org.apache.ibatis.annotations.Param;
8
+
9
+/**
10
+ * <p>
11
+ * 机构管理 Mapper 接口
12
+ * </p>
13
+ *
14
+ * @author yansen
15
+ * @since 2022-03-08
16
+ */
17
+@Mapper
18
+public interface TaOrgMapper extends BaseMapper<TaOrg> {
19
+
20
+    IPage<TaOrg> getPageBy(IPage<TaOrg> pg, @Param("userId") String userId);
21
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaPersonMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaPerson;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 人员表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaPersonMapper extends BaseMapper<TaPerson> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaRegionMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaRegion;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 归属区域表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaRegionMapper extends BaseMapper<TaRegion> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaUserMachineryMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaUserMachinery;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 农机绑定 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaUserMachineryMapper extends BaseMapper<TaUserMachinery> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaWithdrawalMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaWithdrawal;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 提现表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaWithdrawalMapper extends BaseMapper<TaWithdrawal> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaWorkJobMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaWorkJob;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 作业表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaWorkJobMapper extends BaseMapper<TaWorkJob> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TaWorkJobTypeMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TaWorkJobType;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 作业类型 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TaWorkJobTypeMapper extends BaseMapper<TaWorkJobType> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TdDeviceMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TdDevice;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 设备表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TdDeviceMapper extends BaseMapper<TdDevice> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/nanyang/mapper/TdMachineryTypeMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.yunzhi.nanyang.mapper;
2
+
3
+import com.yunzhi.nanyang.entity.TdMachineryType;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 农机类型表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author yansen
13
+ * @since 2022-03-08
14
+ */
15
+@Mapper
16
+public interface TdMachineryTypeMapper extends BaseMapper<TdMachineryType> {
17
+
18
+}

+ 4
- 0
src/main/java/com/yunzhi/nanyang/service/IBaseService.java Vedi File

@@ -12,6 +12,10 @@ public interface IBaseService<T> extends IService<T> {
12 12
      */
13 13
     boolean removeLogicById(Serializable id);
14 14
 
15
+    boolean canAccessData(Serializable id, String userId);
16
+
17
+    boolean remvoeWithDataScope(Serializable id, String userId);
18
+
15 19
     int countBy(String column, Object value, boolean notDelete);
16 20
 
17 21
     T getByButNot(String column, Object value, String col, Object val, boolean notDelete);

+ 1
- 1
src/main/java/com/yunzhi/nanyang/service/ISysMenuService.java Vedi File

@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
9 9
  * </p>
10 10
  *
11 11
  * @author yansen
12
- * @since 2022-03-07
12
+ * @since 2022-03-08
13 13
  */
14 14
 public interface ISysMenuService extends IService<SysMenu> {
15 15
 

+ 16
- 0
src/main/java/com/yunzhi/nanyang/service/ISysSettingService.java Vedi File

@@ -0,0 +1,16 @@
1
+package com.yunzhi.nanyang.service;
2
+
3
+import com.yunzhi.nanyang.entity.SysSetting;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+
6
+/**
7
+ * <p>
8
+ * 系统设置 服务类
9
+ * </p>
10
+ *
11
+ * @author yansen
12
+ * @since 2022-03-08
13
+ */
14
+public interface ISysSettingService extends IService<SysSetting> {
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/nanyang/service/ISysUserDataScopeService.java Vedi File

@@ -0,0 +1,16 @@
1
+package com.yunzhi.nanyang.service;
2
+
3
+import com.yunzhi.nanyang.entity.SysUserDataScope;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+
6
+/**
7
+ * <p>
8
+ * 用户数据权限 服务类
9
+ * </p>
10
+ *
11
+ * @author yansen
12
+ * @since 2022-03-08
13
+ */
14
+public interface ISysUserDataScopeService extends IService<SysUserDataScope> {
15
+
16
+}

+ 6
- 2
src/main/java/com/yunzhi/nanyang/service/ISysUserService.java Vedi File

@@ -1,7 +1,8 @@
1 1
 package com.yunzhi.nanyang.service;
2 2
 
3 3
 import com.yunzhi.nanyang.entity.SysUser;
4
-import com.baomidou.mybatisplus.extension.service.IService;
4
+
5
+import java.util.Map;
5 6
 
6 7
 /**
7 8
  * <p>
@@ -11,6 +12,9 @@ import com.baomidou.mybatisplus.extension.service.IService;
11 12
  * @author yansen
12 13
  * @since 2022-03-07
13 14
  */
14
-public interface ISysUserService extends IService<SysUser> {
15
+public interface ISysUserService extends IBaseService<SysUser> {
16
+
17
+    Map<String, Object> getUerProfile(String userId, SysUser sysUser) throws Exception;
15 18
 
19
+    SysUser getByLoginId(String loginId);
16 20
 }

+ 16
- 0
src/main/java/com/yunzhi/nanyang/service/ITaAccountLogService.java Vedi File

@@ -0,0 +1,16 @@
1
+package com.yunzhi.nanyang.service;
2
+
3
+import com.yunzhi.nanyang.entity.TaAccountLog;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+
6
+/**
7
+ * <p>
8
+ * 流水表 服务类
9
+ * </p>
10
+ *
11
+ * @author yansen
12
+ * @since 2022-03-08
13
+ */
14
+public interface ITaAccountLogService extends IService<TaAccountLog> {
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/nanyang/service/ITaAccountService.java Vedi File

@@ -0,0 +1,16 @@
1
+package com.yunzhi.nanyang.service;
2
+
3
+import com.yunzhi.nanyang.entity.TaAccount;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+
6
+/**
7
+ * <p>
8
+ * 账户表 服务类
9
+ * </p>
10
+ *
11
+ * @author yansen
12
+ * @since 2022-03-08
13
+ */
14
+public interface ITaAccountService extends IService<TaAccount> {
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/nanyang/service/ITaAddressService.java Vedi File

@@ -0,0 +1,16 @@
1
+package com.yunzhi.nanyang.service;
2
+
3
+import com.yunzhi.nanyang.entity.TaAddress;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+
6
+/**
7
+ * <p>
8
+ * 地址 服务类
9
+ * </p>
10
+ *
11
+ * @author yansen
12
+ * @since 2022-03-08
13
+ */
14
+public interface ITaAddressService extends IService<TaAddress> {
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/nanyang/service/ITaBannerService.java Vedi File

@@ -0,0 +1,16 @@
1
+package com.yunzhi.nanyang.service;
2
+
3
+import com.yunzhi.nanyang.entity.TaBanner;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+
6
+/**
7
+ * <p>
8
+ * 轮播图表 服务类
9
+ * </p>
10
+ *
11
+ * @author yansen
12
+ * @since 2022-03-08
13
+ */
14
+public interface ITaBannerService extends IService<TaBanner> {
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/nanyang/service/ITaDispatchService.java Vedi File

@@ -0,0 +1,16 @@
1
+package com.yunzhi.nanyang.service;
2
+
3
+import com.yunzhi.nanyang.entity.TaDispatch;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+
6
+/**
7
+ * <p>
8
+ * 调度表 服务类
9
+ * </p>
10
+ *
11
+ * @author yansen
12
+ * @since 2022-03-08
13
+ */
14
+public interface ITaDispatchService extends IService<TaDispatch> {
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/nanyang/service/ITaEvaluationService.java Vedi File

@@ -0,0 +1,16 @@
1
+package com.yunzhi.nanyang.service;
2
+
3
+import com.yunzhi.nanyang.entity.TaEvaluation;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+
6
+/**
7
+ * <p>
8
+ * 评价表 服务类
9
+ * </p>
10
+ *
11
+ * @author yansen
12
+ * @since 2022-03-08
13
+ */
14
+public interface ITaEvaluationService extends IService<TaEvaluation> {
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/nanyang/service/ITaExtendContentService.java Vedi File

@@ -0,0 +1,16 @@
1
+package com.yunzhi.nanyang.service;
2
+
3
+import com.yunzhi.nanyang.entity.TaExtendContent;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+
6
+/**
7
+ * <p>
8
+ * 拓展内容表 服务类
9
+ * </p>
10
+ *
11
+ * @author yansen
12
+ * @since 2022-03-08
13
+ */
14
+public interface ITaExtendContentService extends IService<TaExtendContent> {
15
+
16
+}

+ 0
- 0
src/main/java/com/yunzhi/nanyang/service/ITaFeedbackService.java Vedi File


Some files were not shown because too many files changed in this diff