张涛 1 年之前
父節點
當前提交
f75ee4d68f
共有 41 個檔案被更改,包括 13916 行新增111 行删除
  1. 79
    18
      admin/src/main/java/com/njyunzhi/admin/controller/SysLoginController.java
  2. 120
    0
      admin/src/main/java/com/njyunzhi/admin/controller/TaCompanyBeneficiaryInfoController.java
  3. 133
    0
      admin/src/main/java/com/njyunzhi/admin/controller/TaCompanyInfoController.java
  4. 120
    0
      admin/src/main/java/com/njyunzhi/admin/controller/TaCompanyLegalInfoController.java
  5. 18
    0
      admin/src/main/java/com/njyunzhi/admin/dto/ChangeEmailDTO.java
  6. 19
    0
      admin/src/main/java/com/njyunzhi/admin/dto/ChangePhoneDTO.java
  7. 2
    2
      admin/src/main/java/com/njyunzhi/admin/dto/LoginDTO.java
  8. 32
    0
      admin/src/main/java/com/njyunzhi/admin/dto/RegisterDTO.java
  9. 9
    4
      admin/src/main/java/com/njyunzhi/admin/service/SysLoginService.java
  10. 14
    0
      admin/src/main/java/com/njyunzhi/admin/service/TaCompanyBeneficiaryInfoService.java
  11. 14
    0
      admin/src/main/java/com/njyunzhi/admin/service/TaCompanyInfoService.java
  12. 14
    0
      admin/src/main/java/com/njyunzhi/admin/service/TaCompanyLegalInfoService.java
  13. 19
    19
      admin/src/main/java/com/njyunzhi/admin/service/framework/UserService.java
  14. 133
    12
      admin/src/main/java/com/njyunzhi/admin/service/impl/SysLoginServiceImpl.java
  15. 18
    0
      admin/src/main/java/com/njyunzhi/admin/service/impl/TaCompanyBeneficiaryInfoServiceImpl.java
  16. 18
    0
      admin/src/main/java/com/njyunzhi/admin/service/impl/TaCompanyInfoServiceImpl.java
  17. 18
    0
      admin/src/main/java/com/njyunzhi/admin/service/impl/TaCompanyLegalInfoServiceImpl.java
  18. 2
    2
      admin/src/main/resources/application.yml
  19. 5938
    0
      db/.back_global_funding(支付)/T20240227103818.pdma.json
  20. 5938
    0
      db/.back_global_funding(支付)/T20240227103937.pdma.json
  21. 436
    2
      db/global_funding(支付).pdma.json
  22. 1
    0
      platform/src/main/java/com/njyunzhi/platform/controller/FxTenantController.java
  23. 118
    0
      platform/src/main/java/com/njyunzhi/platform/controller/TaCompanyBeneficiaryInfoController.java
  24. 129
    0
      platform/src/main/java/com/njyunzhi/platform/controller/TaCompanyInfoController.java
  25. 118
    0
      platform/src/main/java/com/njyunzhi/platform/controller/TaCompanyLegalInfoController.java
  26. 14
    0
      platform/src/main/java/com/njyunzhi/platform/service/TaCompanyBeneficiaryInfoService.java
  27. 14
    0
      platform/src/main/java/com/njyunzhi/platform/service/TaCompanyInfoService.java
  28. 14
    0
      platform/src/main/java/com/njyunzhi/platform/service/TaCompanyLegalInfoService.java
  29. 18
    0
      platform/src/main/java/com/njyunzhi/platform/service/impl/TaCompanyBeneficiaryInfoServiceImpl.java
  30. 18
    0
      platform/src/main/java/com/njyunzhi/platform/service/impl/TaCompanyInfoServiceImpl.java
  31. 18
    0
      platform/src/main/java/com/njyunzhi/platform/service/impl/TaCompanyLegalInfoServiceImpl.java
  32. 1
    1
      platform/src/main/resources/application.yml
  33. 1
    0
      repository/src/main/java/com/njyunzhi/repository/BaseController.java
  34. 55
    51
      repository/src/main/java/com/njyunzhi/repository/entity/SysUser.java
  35. 60
    0
      repository/src/main/java/com/njyunzhi/repository/entity/TaCompanyBeneficiaryInfo.java
  36. 116
    0
      repository/src/main/java/com/njyunzhi/repository/entity/TaCompanyInfo.java
  37. 73
    0
      repository/src/main/java/com/njyunzhi/repository/entity/TaCompanyLegalInfo.java
  38. 16
    0
      repository/src/main/java/com/njyunzhi/repository/mapper/TaCompanyBeneficiaryInfoMapper.java
  39. 16
    0
      repository/src/main/java/com/njyunzhi/repository/mapper/TaCompanyInfoMapper.java
  40. 16
    0
      repository/src/main/java/com/njyunzhi/repository/mapper/TaCompanyLegalInfoMapper.java
  41. 6
    0
      repository/src/main/resources/mapper/TaCompanyInfoMapper.xml

+ 79
- 18
admin/src/main/java/com/njyunzhi/admin/controller/SysLoginController.java 查看文件

@@ -2,10 +2,10 @@ package com.njyunzhi.admin.controller;
2 2
 
3 3
 import cn.dev33.satoken.stp.StpUtil;
4 4
 import cn.dev33.satoken.util.SaResult;
5
-import com.njyunzhi.admin.dto.ChangePasswordDTO;
6
-import com.njyunzhi.admin.dto.LoginDTO;
5
+import com.njyunzhi.admin.dto.*;
7 6
 import com.njyunzhi.admin.service.FxTenantService;
8 7
 import com.njyunzhi.admin.service.SysLoginService;
8
+import com.njyunzhi.admin.service.SysUserService;
9 9
 import com.njyunzhi.common.util.StringUtil;
10 10
 import com.njyunzhi.repository.BaseController;
11 11
 import com.njyunzhi.repository.entity.FxTenant;
@@ -34,34 +34,58 @@ public class SysLoginController extends BaseController {
34 34
     private SysLoginService sysLoginService;
35 35
     @Autowired
36 36
     private FxTenantService fxTenantService;
37
-
38
-    @PostMapping("/login")
39
-    @ApiOperation(value = "后台登录", notes = "后台登录", httpMethod = "POST", response = SaResult.class)
40
-    public SaResult login(@ApiParam("登录参数") @RequestBody LoginDTO loginParm) throws Exception {
41
-        FxTenant fxTenant = fxTenantService.getById(loginParm.getTenantId());
42
-        if (fxTenant == null) {
43
-            throw new Exception("沒有此租戶");
37
+    @Autowired
38
+    private SysUserService sysUserService;
39
+
40
+    @PostMapping("/register")
41
+    @ApiOperation(value = "注册", notes = "注册", httpMethod = "POST", response = SaResult.class)
42
+    public SaResult register(@ApiParam("注册参数") @RequestBody RegisterDTO registerDTO) throws Exception {
43
+        long cnt = sysUserService.countBy("user_name", registerDTO.getUserName());
44
+        if (cnt > 0) {
45
+            return SaResult.error("租户名称重复");
44 46
         }
45
-        if (fxTenant.getStatus().equals(0)) {
46
-            throw new Exception("未激活");
47 47
 
48
+         cnt = sysUserService.countBy("phone", registerDTO.getPhone());
49
+        if (cnt > 0) {
50
+            return SaResult.error("手机号码重复");
48 51
         }
49 52
 
50
-        if (fxTenant.getStatus().equals(2)) {
51
-            throw new Exception("停用");
52 53
 
53
-        }
54 54
 
55
+        sysLoginService.registersMerchant(registerDTO);
56
+
57
+        return SaResult.ok("注册成功");
58
+    }
55 59
 
56
-        if (StringUtil.isEmpty(loginParm.getTenantId())) {
57
-            throw new Exception("所属租户不能为空");
58
-        }
60
+
61
+    @PostMapping("/login")
62
+    @ApiOperation(value = "后台登录", notes = "后台登录", httpMethod = "POST", response = SaResult.class)
63
+    public SaResult login(@ApiParam("登录参数") @RequestBody LoginDTO loginParm) throws Exception {
64
+//        String loginName=loginParm.getLoginName();
65
+//        FxTenant fxTenant = fxTenantService.getById(loginParm.getTenantId());
66
+//        if (fxTenant == null) {
67
+//            throw new Exception("沒有此租戶");
68
+//        }
69
+//        if (fxTenant.getStatus().equals(0)) {
70
+//            throw new Exception("未激活");
71
+//
72
+//        }
73
+//
74
+//        if (fxTenant.getStatus().equals(2)) {
75
+//            throw new Exception("停用");
76
+//
77
+//        }
78
+
79
+
80
+//        if (StringUtil.isEmpty(loginParm.getTenantId())) {
81
+//            throw new Exception("所属租户不能为空");
82
+//        }
59 83
 
60 84
         if (StringUtil.isEmpty(loginParm.getLoginName()) || StringUtil.isEmpty(loginParm.getPassword())) {
61 85
             return SaResult.error("登录用户或者密码不能为空");
62 86
         }
63 87
 
64
-        SysUser sysUser = sysLoginService.login(loginParm,fxTenant.getTenantId());
88
+        SysUser sysUser = sysLoginService.login(loginParm);
65 89
 
66 90
         StpUtil.login(sysUser.getUserId());
67 91
         String tokenValue = StpUtil.getTokenValue();
@@ -99,4 +123,41 @@ public class SysLoginController extends BaseController {
99 123
         return SaResult.ok("密码修改成功");
100 124
     }
101 125
 
126
+
127
+    @PutMapping("/change-phone")
128
+    @ApiOperation(value = "修改手机号", notes = "修改手机号", httpMethod = "PUT", response = SaResult.class)
129
+    public SaResult changePhone(@ApiParam("修改手机参数") @RequestBody ChangePhoneDTO param) throws Exception {
130
+        if (StringUtil.isEmpty(param.getOriginPhone()) || StringUtil.isEmpty(param.getNewPhone())) {
131
+            return SaResult.error("原始手机号或新手机号不能为空");
132
+        }
133
+
134
+        SysUser sysUser = (SysUser) currentUser();
135
+
136
+        boolean isOk = sysLoginService.changePhone(sysUser, param);
137
+        if (!isOk) {
138
+            SaResult.error("修改失败, 请重试");
139
+        }
140
+
141
+        return SaResult.ok("手机号修改成功");
142
+    }
143
+
144
+
145
+    @PutMapping("/change-email")
146
+    @ApiOperation(value = "修改邮箱", notes = "修改邮箱", httpMethod = "PUT", response = SaResult.class)
147
+    public SaResult changeEmail(@ApiParam("修改邮箱参数") @RequestBody ChangeEmailDTO param) throws Exception {
148
+        if (StringUtil.isEmpty(param.getOriginEmail()) || StringUtil.isEmpty(param.getNewEmail())) {
149
+            return SaResult.error("原始邮箱或新邮箱不能为空");
150
+        }
151
+
152
+        SysUser sysUser = (SysUser) currentUser();
153
+
154
+        boolean isOk = sysLoginService.changeEmail(sysUser, param);
155
+        if (!isOk) {
156
+            SaResult.error("修改失败, 请重试");
157
+        }
158
+
159
+        return SaResult.ok("邮箱修改成功");
160
+    }
161
+
162
+
102 163
 }

+ 120
- 0
admin/src/main/java/com/njyunzhi/admin/controller/TaCompanyBeneficiaryInfoController.java 查看文件

@@ -0,0 +1,120 @@
1
+package com.njyunzhi.admin.controller;
2
+
3
+import cn.dev33.satoken.util.SaResult;
4
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5
+import com.baomidou.mybatisplus.core.metadata.IPage;
6
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
7
+import com.njyunzhi.admin.service.TaCompanyBeneficiaryInfoService;
8
+import com.njyunzhi.common.util.StringUtil;
9
+import com.njyunzhi.framework.accesslimit.AccessLimit;
10
+import com.njyunzhi.framework.log.OpLog;
11
+import com.njyunzhi.repository.BaseController;
12
+import com.njyunzhi.repository.entity.TaCompanyBeneficiaryInfo;
13
+import io.swagger.annotations.Api;
14
+import io.swagger.annotations.ApiOperation;
15
+import io.swagger.annotations.ApiParam;
16
+import org.springframework.beans.factory.annotation.Autowired;
17
+import org.springframework.validation.annotation.Validated;
18
+import org.springframework.web.bind.annotation.*;
19
+
20
+/**
21
+ * 受益所有人信息;(ta_company_beneficiary_info)表控制层
22
+ *
23
+ * @author : http://njyunzhi.com
24
+ * @date : 2024-2-28
25
+ */
26
+@Api(tags = "受益所有人信息对象功能接口")
27
+@RestController
28
+@RequestMapping("/admin")
29
+public class TaCompanyBeneficiaryInfoController extends BaseController {
30
+
31
+    @Autowired
32
+    private TaCompanyBeneficiaryInfoService taCompanyBeneficiaryInfoService;
33
+
34
+    /**
35
+     * 通过ID查询单条数据
36
+     *
37
+     * @param id 主键
38
+     * @return 实例对象
39
+     */
40
+    @OpLog(module = "受益所有人信息", action = "查询单条数据", desc = "ID:{{#id}}")
41
+    @AccessLimit()
42
+    @ApiOperation("通过ID查询单条数据")
43
+    @GetMapping("/taCompanyBeneficiaryInfo/{id}")
44
+    public SaResult queryById(@ApiParam("对象ID") @PathVariable String id) throws Exception {
45
+        return SaResult.data(taCompanyBeneficiaryInfoService.getById(id));
46
+    }
47
+
48
+    /**
49
+     * 分页查询
50
+     *
51
+     * @param pageNum  当前页码
52
+     * @param pageSize 每页条数
53
+     * @return 查询结果
54
+     */
55
+    @OpLog(module = "受益所有人信息", action = "分页列表查询")
56
+    @AccessLimit()
57
+    @ApiOperation("分页查询")
58
+    @GetMapping("/taCompanyBeneficiaryInfo")
59
+    public SaResult list(@ApiParam("页码") @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
60
+                         @ApiParam("单页数据量") @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
61
+                         @ApiParam("正序排列") @RequestParam(value = "sortAsc", required = false) String sortAsc,
62
+                         @ApiParam("倒序排列") @RequestParam(value = "sortDesc", defaultValue = "created_at") String sortDesc) throws Exception {
63
+
64
+        IPage<TaCompanyBeneficiaryInfo> pg = new Page<>(pageNum, pageSize);
65
+        QueryWrapper<TaCompanyBeneficiaryInfo> queryWrapper = new QueryWrapper<>();
66
+        queryWrapper.orderByAsc(StringUtil.isNotEmpty(sortAsc), StringUtil.humpToLine(sortAsc));
67
+        queryWrapper.orderByDesc(StringUtil.isNotEmpty(sortDesc), StringUtil.humpToLine(sortDesc));
68
+        IPage<TaCompanyBeneficiaryInfo> result = taCompanyBeneficiaryInfoService.page(pg, queryWrapper);
69
+
70
+        return SaResult.data(result);
71
+    }
72
+
73
+    /**
74
+     * 新增数据
75
+     *
76
+     * @param taCompanyBeneficiaryInfo 实例对象
77
+     * @return 实例对象
78
+     */
79
+    @OpLog(module = "受益所有人信息", action = "新增数据")
80
+    @AccessLimit()
81
+    @ApiOperation("新增数据")
82
+    @PostMapping("/taCompanyBeneficiaryInfo")
83
+    public SaResult add(@ApiParam("对象实体") @Validated @RequestBody TaCompanyBeneficiaryInfo taCompanyBeneficiaryInfo) throws Exception {
84
+        String tenantId = getTenantId();
85
+        taCompanyBeneficiaryInfo.setTenantId(tenantId);
86
+        taCompanyBeneficiaryInfoService.save(taCompanyBeneficiaryInfo);
87
+        return SaResult.data(taCompanyBeneficiaryInfo);
88
+    }
89
+
90
+    /**
91
+     * 更新数据
92
+     *
93
+     * @param taCompanyBeneficiaryInfo 实例对象
94
+     * @return 实例对象
95
+     */
96
+    @OpLog(module = "受益所有人信息", action = "更新数据")
97
+    @AccessLimit()
98
+    @ApiOperation("更新数据")
99
+    @PutMapping("/taCompanyBeneficiaryInfo/{id}")
100
+    public SaResult edit(@ApiParam("对象实体") @Validated @RequestBody TaCompanyBeneficiaryInfo taCompanyBeneficiaryInfo,
101
+                         @ApiParam("对象ID") @PathVariable String id) throws Exception {
102
+        taCompanyBeneficiaryInfoService.updateById(taCompanyBeneficiaryInfo);
103
+        return SaResult.data(taCompanyBeneficiaryInfo);
104
+    }
105
+
106
+    /**
107
+     * 通过主键删除数据
108
+     *
109
+     * @param id 主键
110
+     * @return 是否成功
111
+     */
112
+    @OpLog(module = "受益所有人信息", action = "删除数据", desc = "ID:{{#id}}")
113
+    @AccessLimit()
114
+    @ApiOperation("通过主键删除数据")
115
+    @DeleteMapping("/taCompanyBeneficiaryInfo/{id}")
116
+    public SaResult deleteById(@ApiParam("对象ID") @PathVariable String id) {
117
+        taCompanyBeneficiaryInfoService.removeById(id);
118
+        return SaResult.data("success");
119
+    }
120
+}

+ 133
- 0
admin/src/main/java/com/njyunzhi/admin/controller/TaCompanyInfoController.java 查看文件

@@ -0,0 +1,133 @@
1
+package com.njyunzhi.admin.controller;
2
+
3
+import cn.dev33.satoken.util.SaResult;
4
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5
+import com.baomidou.mybatisplus.core.metadata.IPage;
6
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
7
+import com.njyunzhi.admin.service.TaCompanyInfoService;
8
+import com.njyunzhi.common.util.StringUtil;
9
+import com.njyunzhi.framework.accesslimit.AccessLimit;
10
+import com.njyunzhi.framework.log.OpLog;
11
+import com.njyunzhi.repository.BaseController;
12
+import com.njyunzhi.repository.entity.TaCompanyInfo;
13
+import io.swagger.annotations.Api;
14
+import io.swagger.annotations.ApiOperation;
15
+import io.swagger.annotations.ApiParam;
16
+import org.springframework.beans.factory.annotation.Autowired;
17
+import org.springframework.validation.annotation.Validated;
18
+import org.springframework.web.bind.annotation.*;
19
+
20
+/**
21
+ * 公司基本信息;(ta_company_info)表控制层
22
+ *
23
+ * @author : http://njyunzhi.com
24
+ * @date : 2024-2-28
25
+ */
26
+@Api(tags = "公司基本信息对象功能接口")
27
+@RestController
28
+@RequestMapping("/admin")
29
+public class TaCompanyInfoController extends BaseController {
30
+
31
+    @Autowired
32
+    private TaCompanyInfoService taCompanyInfoService;
33
+
34
+    /**
35
+     * 通过ID查询单条数据
36
+     *
37
+     * @param id 主键
38
+     * @return 实例对象
39
+     */
40
+    @OpLog(module = "公司基本信息", action = "查询单条数据", desc = "ID:{{#id}}")
41
+    @AccessLimit()
42
+    @ApiOperation("通过ID查询单条数据")
43
+    @GetMapping("/taCompanyInfo/{id}")
44
+    public SaResult queryById(@ApiParam("对象ID") @PathVariable String id) throws Exception {
45
+        return SaResult.data(taCompanyInfoService.getById(id));
46
+    }
47
+
48
+    /**
49
+     * 分页查询
50
+     *
51
+     * @param pageNum  当前页码
52
+     * @param pageSize 每页条数
53
+     * @return 查询结果
54
+     */
55
+    @OpLog(module = "公司基本信息", action = "分页列表查询")
56
+    @AccessLimit()
57
+    @ApiOperation("分页查询")
58
+    @GetMapping("/taCompanyInfo")
59
+    public SaResult list(@ApiParam("页码") @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
60
+                         @ApiParam("单页数据量") @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
61
+                         @ApiParam("企业注册地") @RequestParam(value = "registrationLocation", required = false) String registrationLocation,
62
+                         @ApiParam("企业中文名") @RequestParam(value = "companyNameCn", required = false) String companyNameCn,
63
+                         @ApiParam("企业英文名") @RequestParam(value = "companyNameEn", required = false) String companyNameEn,
64
+                         @ApiParam("是否为上市企业") @RequestParam(value = "isListedCompany", required = false) String isListedCompany,
65
+                         @ApiParam("企业类型") @RequestParam(value = "companyType", required = false) String companyType,
66
+
67
+                         @ApiParam("正序排列") @RequestParam(value = "sortAsc", required = false) String sortAsc,
68
+                         @ApiParam("倒序排列") @RequestParam(value = "sortDesc", defaultValue = "created_at") String sortDesc) throws Exception {
69
+
70
+        String tenantId = getTenantId();
71
+        IPage<TaCompanyInfo> pg = new Page<>(pageNum, pageSize);
72
+        QueryWrapper<TaCompanyInfo> queryWrapper = new QueryWrapper<>();
73
+        queryWrapper.like(StringUtil.isNotEmpty(registrationLocation), "registration_location", registrationLocation);
74
+        queryWrapper.like(StringUtil.isNotEmpty(companyNameCn), "company_name_cn", companyNameCn);
75
+        queryWrapper.like(StringUtil.isNotEmpty(companyNameEn), "company_name_en", companyNameEn);
76
+        queryWrapper.eq(StringUtil.isNotEmpty(isListedCompany), "is_listed_company", isListedCompany);
77
+        queryWrapper.eq(StringUtil.isNotEmpty(companyType), "company_type", companyType);
78
+        queryWrapper.eq(StringUtil.isNotEmpty(tenantId), "tenant_id", tenantId);
79
+        queryWrapper.orderByAsc(StringUtil.isNotEmpty(sortAsc), StringUtil.humpToLine(sortAsc));
80
+        queryWrapper.orderByDesc(StringUtil.isNotEmpty(sortDesc), StringUtil.humpToLine(sortDesc));
81
+        IPage<TaCompanyInfo> result = taCompanyInfoService.page(pg, queryWrapper);
82
+
83
+        return SaResult.data(result);
84
+    }
85
+
86
+    /**
87
+     * 新增数据
88
+     *
89
+     * @param taCompanyInfo 实例对象
90
+     * @return 实例对象
91
+     */
92
+    @OpLog(module = "公司基本信息", action = "新增数据")
93
+    @AccessLimit()
94
+    @ApiOperation("新增数据")
95
+    @PostMapping("/taCompanyInfo")
96
+    public SaResult add(@ApiParam("对象实体") @Validated @RequestBody TaCompanyInfo taCompanyInfo) throws Exception {
97
+        String tenantId = getTenantId();
98
+        taCompanyInfo.setTenantId(tenantId);
99
+        taCompanyInfoService.save(taCompanyInfo);
100
+        return SaResult.data(taCompanyInfo);
101
+    }
102
+
103
+    /**
104
+     * 更新数据
105
+     *
106
+     * @param taCompanyInfo 实例对象
107
+     * @return 实例对象
108
+     */
109
+    @OpLog(module = "公司基本信息", action = "更新数据")
110
+    @AccessLimit()
111
+    @ApiOperation("更新数据")
112
+    @PutMapping("/taCompanyInfo/{id}")
113
+    public SaResult edit(@ApiParam("对象实体") @Validated @RequestBody TaCompanyInfo taCompanyInfo,
114
+                         @ApiParam("对象ID") @PathVariable String id) throws Exception {
115
+        taCompanyInfoService.updateById(taCompanyInfo);
116
+        return SaResult.data(taCompanyInfo);
117
+    }
118
+
119
+    /**
120
+     * 通过主键删除数据
121
+     *
122
+     * @param id 主键
123
+     * @return 是否成功
124
+     */
125
+    @OpLog(module = "公司基本信息", action = "删除数据", desc = "ID:{{#id}}")
126
+    @AccessLimit()
127
+    @ApiOperation("通过主键删除数据")
128
+    @DeleteMapping("/taCompanyInfo/{id}")
129
+    public SaResult deleteById(@ApiParam("对象ID") @PathVariable String id) {
130
+        taCompanyInfoService.removeById(id);
131
+        return SaResult.data("success");
132
+    }
133
+}

+ 120
- 0
admin/src/main/java/com/njyunzhi/admin/controller/TaCompanyLegalInfoController.java 查看文件

@@ -0,0 +1,120 @@
1
+package com.njyunzhi.admin.controller;
2
+
3
+import cn.dev33.satoken.util.SaResult;
4
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5
+import com.baomidou.mybatisplus.core.metadata.IPage;
6
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
7
+import com.njyunzhi.admin.service.TaCompanyLegalInfoService;
8
+import com.njyunzhi.common.util.StringUtil;
9
+import com.njyunzhi.framework.accesslimit.AccessLimit;
10
+import com.njyunzhi.framework.log.OpLog;
11
+import com.njyunzhi.repository.BaseController;
12
+import com.njyunzhi.repository.entity.TaCompanyLegalInfo;
13
+import io.swagger.annotations.Api;
14
+import io.swagger.annotations.ApiOperation;
15
+import io.swagger.annotations.ApiParam;
16
+import org.springframework.beans.factory.annotation.Autowired;
17
+import org.springframework.validation.annotation.Validated;
18
+import org.springframework.web.bind.annotation.*;
19
+
20
+/**
21
+ * 公司法人代表信息;(ta_company_legal_info)表控制层
22
+ *
23
+ * @author : http://njyunzhi.com
24
+ * @date : 2024-2-28
25
+ */
26
+@Api(tags = "公司法人代表信息对象功能接口")
27
+@RestController
28
+@RequestMapping("/admin")
29
+public class TaCompanyLegalInfoController extends BaseController {
30
+
31
+    @Autowired
32
+    private TaCompanyLegalInfoService taCompanyLegalInfoService;
33
+
34
+    /**
35
+     * 通过ID查询单条数据
36
+     *
37
+     * @param id 主键
38
+     * @return 实例对象
39
+     */
40
+    @OpLog(module = "公司法人代表信息", action = "查询单条数据", desc = "ID:{{#id}}")
41
+    @AccessLimit()
42
+    @ApiOperation("通过ID查询单条数据")
43
+    @GetMapping("/taCompanyLegalInfo/{id}")
44
+    public SaResult queryById(@ApiParam("对象ID") @PathVariable String id) throws Exception {
45
+        return SaResult.data(taCompanyLegalInfoService.getById(id));
46
+    }
47
+
48
+    /**
49
+     * 分页查询
50
+     *
51
+     * @param pageNum  当前页码
52
+     * @param pageSize 每页条数
53
+     * @return 查询结果
54
+     */
55
+    @OpLog(module = "公司法人代表信息", action = "分页列表查询")
56
+    @AccessLimit()
57
+    @ApiOperation("分页查询")
58
+    @GetMapping("/taCompanyLegalInfo")
59
+    public SaResult list(@ApiParam("页码") @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
60
+                         @ApiParam("单页数据量") @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
61
+                         @ApiParam("正序排列") @RequestParam(value = "sortAsc", required = false) String sortAsc,
62
+                         @ApiParam("倒序排列") @RequestParam(value = "sortDesc", defaultValue = "created_at") String sortDesc) throws Exception {
63
+
64
+        IPage<TaCompanyLegalInfo> pg = new Page<>(pageNum, pageSize);
65
+        QueryWrapper<TaCompanyLegalInfo> queryWrapper = new QueryWrapper<>();
66
+        queryWrapper.orderByAsc(StringUtil.isNotEmpty(sortAsc), StringUtil.humpToLine(sortAsc));
67
+        queryWrapper.orderByDesc(StringUtil.isNotEmpty(sortDesc), StringUtil.humpToLine(sortDesc));
68
+        IPage<TaCompanyLegalInfo> result = taCompanyLegalInfoService.page(pg, queryWrapper);
69
+
70
+        return SaResult.data(result);
71
+    }
72
+
73
+    /**
74
+     * 新增数据
75
+     *
76
+     * @param taCompanyLegalInfo 实例对象
77
+     * @return 实例对象
78
+     */
79
+    @OpLog(module = "公司法人代表信息", action = "新增数据")
80
+    @AccessLimit()
81
+    @ApiOperation("新增数据")
82
+    @PostMapping("/taCompanyLegalInfo")
83
+    public SaResult add(@ApiParam("对象实体") @Validated @RequestBody TaCompanyLegalInfo taCompanyLegalInfo) throws Exception {
84
+        String tenantId = getTenantId();
85
+        taCompanyLegalInfo.setTenantId(tenantId);
86
+        taCompanyLegalInfoService.save(taCompanyLegalInfo);
87
+        return SaResult.data(taCompanyLegalInfo);
88
+    }
89
+
90
+    /**
91
+     * 更新数据
92
+     *
93
+     * @param taCompanyLegalInfo 实例对象
94
+     * @return 实例对象
95
+     */
96
+    @OpLog(module = "公司法人代表信息", action = "更新数据")
97
+    @AccessLimit()
98
+    @ApiOperation("更新数据")
99
+    @PutMapping("/taCompanyLegalInfo/{id}")
100
+    public SaResult edit(@ApiParam("对象实体") @Validated @RequestBody TaCompanyLegalInfo taCompanyLegalInfo,
101
+                         @ApiParam("对象ID") @PathVariable String id) throws Exception {
102
+        taCompanyLegalInfoService.updateById(taCompanyLegalInfo);
103
+        return SaResult.data(taCompanyLegalInfo);
104
+    }
105
+
106
+    /**
107
+     * 通过主键删除数据
108
+     *
109
+     * @param id 主键
110
+     * @return 是否成功
111
+     */
112
+    @OpLog(module = "公司法人代表信息", action = "删除数据", desc = "ID:{{#id}}")
113
+    @AccessLimit()
114
+    @ApiOperation("通过主键删除数据")
115
+    @DeleteMapping("/taCompanyLegalInfo/{id}")
116
+    public SaResult deleteById(@ApiParam("对象ID") @PathVariable String id) {
117
+        taCompanyLegalInfoService.removeById(id);
118
+        return SaResult.data("success");
119
+    }
120
+}

+ 18
- 0
admin/src/main/java/com/njyunzhi/admin/dto/ChangeEmailDTO.java 查看文件

@@ -0,0 +1,18 @@
1
+package com.njyunzhi.admin.dto;
2
+
3
+
4
+import io.swagger.annotations.ApiModel;
5
+import io.swagger.annotations.ApiModelProperty;
6
+import lombok.Data;
7
+
8
+@Data
9
+@ApiModel(description="修改邮箱")
10
+public class ChangeEmailDTO {
11
+
12
+
13
+    @ApiModelProperty("原始邮箱")
14
+    String originEmail;
15
+
16
+    @ApiModelProperty("新邮箱")
17
+    String newEmail;
18
+}

+ 19
- 0
admin/src/main/java/com/njyunzhi/admin/dto/ChangePhoneDTO.java 查看文件

@@ -0,0 +1,19 @@
1
+package com.njyunzhi.admin.dto;
2
+
3
+
4
+import io.swagger.annotations.Api;
5
+import io.swagger.annotations.ApiModel;
6
+import io.swagger.annotations.ApiModelProperty;
7
+import lombok.Data;
8
+
9
+@Data
10
+@ApiModel(description="修改手机号")
11
+public class ChangePhoneDTO {
12
+
13
+
14
+    @ApiModelProperty("原始手机号")
15
+    String originPhone;
16
+
17
+    @ApiModelProperty("新手机号")
18
+    String newPhone;
19
+}

+ 2
- 2
admin/src/main/java/com/njyunzhi/admin/dto/LoginDTO.java 查看文件

@@ -17,6 +17,6 @@ public class LoginDTO {
17 17
     @ApiModelProperty("登录密码")
18 18
     String password;
19 19
 
20
-    @ApiModelProperty("租户ID")
21
-    String tenantId;
20
+//    @ApiModelProperty("租户ID")
21
+//    String tenantId;
22 22
 }

+ 32
- 0
admin/src/main/java/com/njyunzhi/admin/dto/RegisterDTO.java 查看文件

@@ -0,0 +1,32 @@
1
+package com.njyunzhi.admin.dto;
2
+
3
+
4
+import io.swagger.annotations.ApiModel;
5
+import io.swagger.annotations.ApiModelProperty;
6
+import lombok.Data;
7
+
8
+@Data
9
+@ApiModel(description = "修改邮箱")
10
+public class RegisterDTO {
11
+
12
+    //    @ApiModelProperty("登录账号")
13
+//    String loginName;
14
+    @ApiModelProperty("商户手机号")
15
+    String phone;
16
+    @ApiModelProperty("登录密码")
17
+    String password;
18
+
19
+    @ApiModelProperty("商户名")
20
+    String userName;
21
+
22
+
23
+//    @ApiModelProperty("机构/部门")
24
+//    String deptId;
25
+
26
+//    @ApiModelProperty("租户号")
27
+//    String tenantId;
28
+
29
+    @ApiModelProperty("登录类型")
30
+    String loginType;
31
+
32
+}

+ 9
- 4
admin/src/main/java/com/njyunzhi/admin/service/SysLoginService.java 查看文件

@@ -1,8 +1,6 @@
1 1
 package com.njyunzhi.admin.service;
2 2
 
3
-import com.njyunzhi.admin.dto.ChangePasswordDTO;
4
-import com.njyunzhi.admin.dto.LoginDTO;
5
-import com.njyunzhi.admin.dto.ResetPasswordDTO;
3
+import com.njyunzhi.admin.dto.*;
6 4
 import com.njyunzhi.repository.IBaseService;
7 5
 import com.njyunzhi.repository.entity.SysLogin;
8 6
 import com.njyunzhi.repository.entity.SysUser;
@@ -14,9 +12,16 @@ import com.njyunzhi.repository.entity.SysUser;
14 12
  */
15 13
 public interface SysLoginService extends IBaseService<SysLogin> {
16 14
 
17
-     SysUser login(LoginDTO loginParm,String tenantId) throws Exception;
15
+     SysUser login(LoginDTO loginParm) throws Exception;
18 16
 
19 17
     boolean changePassword(SysUser sysUser, ChangePasswordDTO param) throws Exception;
20 18
 
21 19
     void resetPassword(SysUser sysUser, ResetPasswordDTO newPassword);
20
+
21
+    boolean changePhone(SysUser sysUser, ChangePhoneDTO param);
22
+
23
+
24
+    boolean changeEmail(SysUser sysUser, ChangeEmailDTO param);
25
+
26
+    void registersMerchant(RegisterDTO registerDTO);
22 27
 }

+ 14
- 0
admin/src/main/java/com/njyunzhi/admin/service/TaCompanyBeneficiaryInfoService.java 查看文件

@@ -0,0 +1,14 @@
1
+package com.njyunzhi.admin.service;
2
+
3
+import com.njyunzhi.repository.IBaseService;
4
+import com.njyunzhi.repository.entity.TaCompanyBeneficiaryInfo;
5
+
6
+/**
7
+ * 受益所有人信息;(ta_company_beneficiary_info)表服务接口
8
+ *
9
+ * @author : http://njyunzhi.com
10
+ * @date : 2024-2-28
11
+ */
12
+public interface TaCompanyBeneficiaryInfoService extends IBaseService<TaCompanyBeneficiaryInfo> {
13
+
14
+}

+ 14
- 0
admin/src/main/java/com/njyunzhi/admin/service/TaCompanyInfoService.java 查看文件

@@ -0,0 +1,14 @@
1
+package com.njyunzhi.admin.service;
2
+
3
+import com.njyunzhi.repository.IBaseService;
4
+import com.njyunzhi.repository.entity.TaCompanyInfo;
5
+
6
+/**
7
+ * 公司基本信息;(ta_company_info)表服务接口
8
+ *
9
+ * @author : http://njyunzhi.com
10
+ * @date : 2024-2-28
11
+ */
12
+public interface TaCompanyInfoService extends IBaseService<TaCompanyInfo> {
13
+
14
+}

+ 14
- 0
admin/src/main/java/com/njyunzhi/admin/service/TaCompanyLegalInfoService.java 查看文件

@@ -0,0 +1,14 @@
1
+package com.njyunzhi.admin.service;
2
+
3
+import com.njyunzhi.repository.IBaseService;
4
+import com.njyunzhi.repository.entity.TaCompanyLegalInfo;
5
+
6
+/**
7
+ * 公司法人代表信息;(ta_company_legal_info)表服务接口
8
+ *
9
+ * @author : http://njyunzhi.com
10
+ * @date : 2024-2-28
11
+ */
12
+public interface TaCompanyLegalInfoService extends IBaseService<TaCompanyLegalInfo> {
13
+
14
+}

+ 19
- 19
admin/src/main/java/com/njyunzhi/admin/service/framework/UserService.java 查看文件

@@ -28,25 +28,25 @@ public class UserService implements IUserService {
28 28
 
29 29
     @Override
30 30
     public Object getUserBy(Object loginId) throws Exception {
31
-        if (null == loginId) return null;
32
-        String clientType = request.getHeader("x-client-type");
33
-        String tenantId = request.getHeader("x-tenant-id");
34
-        System.out.println("---------head--------------");
35
-        System.out.println(clientType);
36
-
37
-        //h5租户端
38
-        if (clientType.equals("h5.admin")) {
39
-            TaPerson taPerson = taPersonService.getById((String) loginId);
40
-            if (taPerson != null && taPerson.getPhone() != null) {
41
-                return sysUserService.getSysuser(taPerson.getPhone(), tenantId);
42
-            } else {
43
-                return null;
44
-            }
45
-        }
46
-        //h5用户端
47
-        if (clientType.equals("h5.member")) {
48
-            return null;
49
-        }
31
+//        if (null == loginId) return null;
32
+//        String clientType = request.getHeader("x-client-type");
33
+//        String tenantId = request.getHeader("x-tenant-id");
34
+//        System.out.println("---------head--------------");
35
+//        System.out.println(clientType);
36
+//
37
+//        //h5租户端
38
+//        if (clientType.equals("h5.admin")) {
39
+//            TaPerson taPerson = taPersonService.getById((String) loginId);
40
+//            if (taPerson != null && taPerson.getPhone() != null) {
41
+//                return sysUserService.getSysuser(taPerson.getPhone(), tenantId);
42
+//            } else {
43
+//                return null;
44
+//            }
45
+//        }
46
+//        //h5用户端
47
+//        if (clientType.equals("h5.member")) {
48
+//            return null;
49
+//        }
50 50
 
51 51
         //PC租户端
52 52
 //  if (clientType.equals("pc.admin")) {

+ 133
- 12
admin/src/main/java/com/njyunzhi/admin/service/impl/SysLoginServiceImpl.java 查看文件

@@ -1,19 +1,17 @@
1 1
 package com.njyunzhi.admin.service.impl;
2 2
 
3 3
 import com.njyunzhi.admin.common.Constants;
4
-import com.njyunzhi.admin.dto.ChangePasswordDTO;
5
-import com.njyunzhi.admin.dto.LoginDTO;
6
-import com.njyunzhi.admin.dto.ResetPasswordDTO;
4
+import com.njyunzhi.admin.dto.*;
7 5
 import com.njyunzhi.admin.service.SysLoginService;
8 6
 import com.njyunzhi.common.util.EncryptUtil;
9 7
 import com.njyunzhi.common.util.StringUtil;
10 8
 import com.njyunzhi.repository.BaseServiceImpl;
11
-import com.njyunzhi.repository.entity.SysLogin;
12
-import com.njyunzhi.repository.entity.SysUser;
13
-import com.njyunzhi.repository.mapper.SysLoginMapper;
14
-import com.njyunzhi.repository.mapper.SysUserMapper;
9
+import com.njyunzhi.repository.entity.*;
10
+import com.njyunzhi.repository.mapper.*;
11
+import lombok.SneakyThrows;
15 12
 import org.springframework.beans.factory.annotation.Autowired;
16 13
 import org.springframework.stereotype.Service;
14
+import org.springframework.transaction.annotation.Transactional;
17 15
 
18 16
 /**
19 17
  * 登录信息表;(sys_login)表服务实现类
@@ -27,13 +25,28 @@ public class SysLoginServiceImpl extends BaseServiceImpl<SysLoginMapper, SysLogi
27 25
     @Autowired
28 26
     SysUserMapper sysUserMapper;
29 27
 
28
+    @Autowired
29
+    FxTenantMapper fxTenantMapper;
30
+    @Autowired
31
+    SysDeptMapper sysDeptMapper;
32
+    @Autowired
33
+    SysLoginMapper sysLoginMapper;
34
+
35
+
36
+    @Autowired
37
+    TaCompanyInfoMapper taCompanyInfoMapper;
38
+    @Autowired
39
+    TaCompanyBeneficiaryInfoMapper taCompanyBeneficiaryInfoMapper;
40
+    @Autowired
41
+    TaCompanyLegalInfoMapper taCompanyLegalInfoMapper;
42
+
30 43
     private boolean checkPassword(String src, String targ, String salt) {
31 44
         String newPass = EncryptUtil.md5(src, salt);
32 45
         return targ.equals(newPass);
33 46
     }
34 47
 
35 48
     @Override
36
-    public SysUser login(LoginDTO loginParm, String tenantId) throws Exception {
49
+    public SysUser login(LoginDTO loginParm) throws Exception {
37 50
 
38 51
         SysLogin sysLogin = baseMapper.getInfoBy(loginParm.getLoginType(), loginParm.getLoginName());
39 52
         if (null == sysLogin) {
@@ -62,10 +75,10 @@ public class SysLoginServiceImpl extends BaseServiceImpl<SysLoginMapper, SysLogi
62 75
         if (user.getTenantId() == null) {
63 76
             throw new Exception("该账户的租户信息异常");
64 77
         }
65
-        if (!user.getTenantId().equals(tenantId)) {
66
-            throw new Exception("该账户的租户信息错误");
67
-
68
-        }
78
+//        if (!user.getTenantId().equals(tenantId)) {
79
+//            throw new Exception("该账户的租户信息错误");
80
+//
81
+//        }
69 82
 
70 83
         return user;
71 84
     }
@@ -88,4 +101,112 @@ public class SysLoginServiceImpl extends BaseServiceImpl<SysLoginMapper, SysLogi
88 101
         String newPasswordStr = EncryptUtil.md5(newPassword.getPassword(), sysUser.getUserId());
89 102
         baseMapper.updateUserPassword(sysUser.getUserId(), newPasswordStr);
90 103
     }
104
+
105
+    @SneakyThrows
106
+    @Override
107
+    public boolean changePhone(SysUser sysUser, ChangePhoneDTO param) {
108
+        if (sysUser.getPhone().equals(param.getOriginPhone())
109
+        ) {
110
+            sysUser.setPhone(param.getNewPhone());
111
+            sysUserMapper.updateById(sysUser);
112
+            return true;
113
+        } else {
114
+            throw new Exception("原始密码不正确");
115
+        }
116
+
117
+    }
118
+
119
+    @SneakyThrows
120
+    @Override
121
+    public boolean changeEmail(SysUser sysUser, ChangeEmailDTO param) {
122
+        if (sysUser.getEmail().equals(param.getOriginEmail())
123
+        ) {
124
+            sysUser.setEmail(param.getNewEmail());
125
+            sysUserMapper.updateById(sysUser);
126
+            return true;
127
+        } else {
128
+            throw new Exception("原始邮箱不正确");
129
+        }
130
+    }
131
+
132
+
133
+    @Transactional(rollbackFor = Exception.class)
134
+    @Override
135
+    public void registersMerchant(RegisterDTO registerDTO) {
136
+        String tenantId = StringUtil.UUID();
137
+        String deptId = StringUtil.UUID();
138
+        String userId = StringUtil.UUID();
139
+        String loginId = StringUtil.UUID();
140
+        String companyId = StringUtil.UUID();
141
+        String companyLegalId = StringUtil.UUID();
142
+
143
+//        创建租户
144
+        FxTenant fxTenant = new FxTenant();
145
+        fxTenant.setTenantId(tenantId);
146
+        fxTenant.setLoginId(loginId);
147
+        fxTenant.setStatus(Constants.STATUS_NORMAL);
148
+        fxTenant.setTenantName(registerDTO.getUserName());
149
+        fxTenant.setPhone(registerDTO.getPhone());
150
+        fxTenantMapper.insert(fxTenant);
151
+//
152
+////        创建公司 三个表  基本信息表  法人代表表 受益人表
153
+////        TaCompanyInfo taCompanyInfo
154
+//        TaCompanyInfo taCompanyInfo = new TaCompanyInfo();
155
+//        taCompanyInfo.setCompanyId(companyId);
156
+//        taCompanyInfo.setTenantId(tenantId);
157
+////        taCompanyInfo.setCompanyNameCn(registerDTO.getUserName());
158
+//        taCompanyInfoMapper.insert(taCompanyInfo);
159
+//
160
+//        TaCompanyLegalInfo taCompanyLegalInfo = new TaCompanyLegalInfo();
161
+//        taCompanyLegalInfo.setCompanyId(companyId);
162
+//        taCompanyLegalInfo.setTenantId(tenantId);
163
+//        taCompanyLegalInfo.setCompanyLegalId(companyLegalId);
164
+//        taCompanyLegalInfoMapper.insert(taCompanyLegalInfo);
165
+//
166
+//        TaCompanyBeneficiaryInfo taCompanyBeneficiaryInfo = new TaCompanyBeneficiaryInfo();
167
+//        taCompanyBeneficiaryInfo.setCompanyId(companyId);
168
+//        taCompanyBeneficiaryInfo.setTenantId(tenantId);
169
+//        taCompanyBeneficiaryInfo.setCompanyLegalId(companyLegalId);
170
+//        taCompanyBeneficiaryInfoMapper.insert(taCompanyBeneficiaryInfo);
171
+
172
+        // 创建租户机构
173
+        SysDept sysDept = new SysDept();
174
+        sysDept.setDeptId(deptId);
175
+        sysDept.setDeptCode("100");
176
+        sysDept.setDeptName(registerDTO.getUserName());
177
+        sysDept.setParentId(Constants.ROOT_TREE);
178
+        sysDept.setSortNo(1);
179
+        sysDept.setStatus(Constants.STATUS_NORMAL);
180
+        sysDept.setTenantId(tenantId);
181
+        sysDept.setTenantName(registerDTO.getUserName());
182
+        sysDept.setCreatedBy(userId);
183
+        sysDeptMapper.insert(sysDept);
184
+
185
+
186
+        // 创建租户账户
187
+        SysUser sysUser = new SysUser();
188
+        sysUser.setUserId(userId);
189
+        sysUser.setUserName(registerDTO.getUserName());
190
+        sysUser.setPhone(registerDTO.getPhone());
191
+        sysUser.setDeptId(deptId);
192
+        sysUser.setIsAdmin(0);
193
+        sysUser.setStatus(Constants.STATUS_NORMAL);
194
+        sysUser.setTenantId(tenantId);
195
+        sysUser.setCreatedBy(userId);
196
+        sysUserMapper.insert(sysUser);
197
+
198
+
199
+        // 创建登录信息
200
+        SysLogin sysLogin = new SysLogin();
201
+        sysLogin.setLoginId(loginId);
202
+        sysLogin.setUserId(userId);
203
+        sysLogin.setLoginType("admin.pc");
204
+        sysLogin.setLoginName(registerDTO.getPhone());
205
+        sysLogin.setPassword(EncryptUtil.md5(EncryptUtil.md5(registerDTO.getPassword()), userId));
206
+        sysLogin.setStatus(fxTenant.getStatus());
207
+        sysLogin.setTenantId(tenantId);
208
+        sysLogin.setCreatedBy(userId);
209
+        sysLoginMapper.insert(sysLogin);
210
+
211
+    }
91 212
 }

+ 18
- 0
admin/src/main/java/com/njyunzhi/admin/service/impl/TaCompanyBeneficiaryInfoServiceImpl.java 查看文件

@@ -0,0 +1,18 @@
1
+package com.njyunzhi.admin.service.impl;
2
+
3
+import com.njyunzhi.admin.service.TaCompanyBeneficiaryInfoService;
4
+import com.njyunzhi.repository.BaseServiceImpl;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.stereotype.Service;
7
+import com.njyunzhi.repository.entity.TaCompanyBeneficiaryInfo;
8
+import com.njyunzhi.repository.mapper.TaCompanyBeneficiaryInfoMapper;
9
+
10
+/**
11
+* 受益所有人信息;(ta_company_beneficiary_info)表服务实现类
12
+* @author : http://www.chiner.pro
13
+* @date : 2024-2-28
14
+*/
15
+@Service
16
+public class TaCompanyBeneficiaryInfoServiceImpl extends BaseServiceImpl<TaCompanyBeneficiaryInfoMapper, TaCompanyBeneficiaryInfo> implements TaCompanyBeneficiaryInfoService {
17
+
18
+}

+ 18
- 0
admin/src/main/java/com/njyunzhi/admin/service/impl/TaCompanyInfoServiceImpl.java 查看文件

@@ -0,0 +1,18 @@
1
+package com.njyunzhi.admin.service.impl;
2
+
3
+import com.njyunzhi.admin.service.TaCompanyInfoService;
4
+import com.njyunzhi.repository.BaseServiceImpl;
5
+import com.njyunzhi.repository.entity.TaCompanyInfo;
6
+import com.njyunzhi.repository.mapper.TaCompanyInfoMapper;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * 公司基本信息;(ta_company_info)表服务实现类
11
+ *
12
+ * @author : http://www.chiner.pro
13
+ * @date : 2024-2-28
14
+ */
15
+@Service
16
+public class TaCompanyInfoServiceImpl extends BaseServiceImpl<TaCompanyInfoMapper, TaCompanyInfo> implements TaCompanyInfoService {
17
+
18
+}

+ 18
- 0
admin/src/main/java/com/njyunzhi/admin/service/impl/TaCompanyLegalInfoServiceImpl.java 查看文件

@@ -0,0 +1,18 @@
1
+package com.njyunzhi.admin.service.impl;
2
+
3
+import com.njyunzhi.admin.service.TaCompanyLegalInfoService;
4
+import com.njyunzhi.repository.BaseServiceImpl;
5
+import com.njyunzhi.repository.entity.TaCompanyLegalInfo;
6
+import com.njyunzhi.repository.mapper.TaCompanyLegalInfoMapper;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * 公司法人代表信息;(ta_company_legal_info)表服务实现类
11
+ *
12
+ * @author : http://www.chiner.pro
13
+ * @date : 2024-2-28
14
+ */
15
+@Service
16
+public class TaCompanyLegalInfoServiceImpl extends BaseServiceImpl<TaCompanyLegalInfoMapper, TaCompanyLegalInfo> implements TaCompanyLegalInfoService {
17
+
18
+}

+ 2
- 2
admin/src/main/resources/application.yml 查看文件

@@ -38,7 +38,7 @@ spring:
38 38
     # Redis数据库索引
39 39
     database: 3
40 40
     # Redis服务器地址
41
-    host: 192.168.89.147
41
+    host: 192.168.89.10
42 42
     # Redis服务器连接端口
43 43
     port: 6379
44 44
     # Redis服务器连接密码(默认为空)
@@ -118,8 +118,8 @@ yz:
118 118
       - /swagger-resources/**
119 119
       - /v2/**
120 120
       - /static/**
121
-      - /h5/**
122 121
       - /admin/login
122
+      - /admin/register
123 123
   # 租户系统
124 124
   tenant:
125 125
     # 默认不启用

+ 5938
- 0
db/.back_global_funding(支付)/T20240227103818.pdma.json
文件差異過大導致無法顯示
查看文件


+ 5938
- 0
db/.back_global_funding(支付)/T20240227103937.pdma.json
文件差異過大導致無法顯示
查看文件


+ 436
- 2
db/global_funding(支付).pdma.json 查看文件

@@ -4,7 +4,7 @@
4 4
   "avatar": "",
5 5
   "version": "4.6.0",
6 6
   "createdTime": "2024-2-26 20:14:20",
7
-  "updatedTime": "2024-2-26 21:06:47",
7
+  "updatedTime": "2024-2-27 10:39:37",
8 8
   "dbConns": [],
9 9
   "profile": {
10 10
     "default": {
@@ -3291,6 +3291,23 @@
3291 3291
           "id": "C32AC37A-0A50-4F09-9895-8552B68B4D51",
3292 3292
           "extProps": {}
3293 3293
         },
3294
+        {
3295
+          "defKey": "email",
3296
+          "defName": "邮箱",
3297
+          "comment": "",
3298
+          "type": "",
3299
+          "len": "",
3300
+          "scale": "",
3301
+          "primaryKey": false,
3302
+          "notNull": false,
3303
+          "autoIncrement": false,
3304
+          "defaultValue": "",
3305
+          "hideInGraph": false,
3306
+          "refDict": "",
3307
+          "extProps": {},
3308
+          "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
3309
+          "id": "6ADFA1B7-B0B7-490F-B59C-DACCD5A2500E"
3310
+        },
3294 3311
         {
3295 3312
           "defKey": "phone",
3296 3313
           "defName": "手机",
@@ -3688,7 +3705,8 @@
3688 3705
           "hideInGraph": true
3689 3706
         }
3690 3707
       ],
3691
-      "correlations": []
3708
+      "correlations": [],
3709
+      "notes": {}
3692 3710
     },
3693 3711
     {
3694 3712
       "id": "880FA077-9E05-4DC0-BA00-560116009D16",
@@ -5013,6 +5031,422 @@
5013 5031
       ],
5014 5032
       "correlations": [],
5015 5033
       "indexes": []
5034
+    },
5035
+    {
5036
+      "id": "E681CB95-A1DC-4B07-859C-10232F89EA4E",
5037
+      "env": {
5038
+        "base": {
5039
+          "nameSpace": "com.njyunzhi.admin",
5040
+          "codeRoot": "SysDept"
5041
+        },
5042
+        "template": {
5043
+          "JavaMybatisPlus": {
5044
+            "Controller": {
5045
+              "suffix": "controller/{{=it.codeRoot}}Controller.java",
5046
+              "enable": true
5047
+            },
5048
+            "Service": {
5049
+              "suffix": "service/{{=it.codeRoot}}Service.java",
5050
+              "enable": true
5051
+            },
5052
+            "ServiceImpl": {
5053
+              "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
5054
+              "enable": true
5055
+            },
5056
+            "Mapper": {
5057
+              "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
5058
+              "enable": false
5059
+            },
5060
+            "Mapper.xml": {
5061
+              "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
5062
+              "enable": false
5063
+            },
5064
+            "Entity": {
5065
+              "suffix": "entity/{{=it.codeRoot}}.java",
5066
+              "enable": false
5067
+            }
5068
+          }
5069
+        },
5070
+        "custom": {}
5071
+      },
5072
+      "defKey": "sys_dept",
5073
+      "defName": "部门表",
5074
+      "comment": "",
5075
+      "properties": {},
5076
+      "nameTemplate": "{defKey}[{defName}]",
5077
+      "headers": [
5078
+        {
5079
+          "refKey": "hideInGraph",
5080
+          "hideInGraph": true
5081
+        },
5082
+        {
5083
+          "refKey": "defKey",
5084
+          "hideInGraph": false
5085
+        },
5086
+        {
5087
+          "refKey": "defName",
5088
+          "hideInGraph": false
5089
+        },
5090
+        {
5091
+          "refKey": "primaryKey",
5092
+          "hideInGraph": false
5093
+        },
5094
+        {
5095
+          "refKey": "notNull",
5096
+          "hideInGraph": true
5097
+        },
5098
+        {
5099
+          "refKey": "autoIncrement",
5100
+          "hideInGraph": true
5101
+        },
5102
+        {
5103
+          "refKey": "domain",
5104
+          "hideInGraph": true
5105
+        },
5106
+        {
5107
+          "refKey": "type",
5108
+          "hideInGraph": false
5109
+        },
5110
+        {
5111
+          "refKey": "len",
5112
+          "hideInGraph": false
5113
+        },
5114
+        {
5115
+          "refKey": "scale",
5116
+          "hideInGraph": false
5117
+        },
5118
+        {
5119
+          "refKey": "comment",
5120
+          "hideInGraph": true
5121
+        },
5122
+        {
5123
+          "refKey": "refDict",
5124
+          "hideInGraph": true
5125
+        },
5126
+        {
5127
+          "refKey": "defaultValue",
5128
+          "hideInGraph": true
5129
+        },
5130
+        {
5131
+          "refKey": "isStandard",
5132
+          "hideInGraph": false
5133
+        },
5134
+        {
5135
+          "refKey": "uiHint",
5136
+          "hideInGraph": true
5137
+        },
5138
+        {
5139
+          "refKey": "extProps",
5140
+          "hideInGraph": true
5141
+        }
5142
+      ],
5143
+      "fields": [
5144
+        {
5145
+          "defKey": "dept_id",
5146
+          "defName": "机构ID",
5147
+          "comment": "",
5148
+          "type": "",
5149
+          "len": "",
5150
+          "scale": "",
5151
+          "primaryKey": true,
5152
+          "notNull": true,
5153
+          "autoIncrement": false,
5154
+          "defaultValue": "",
5155
+          "hideInGraph": false,
5156
+          "refDict": null,
5157
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
5158
+          "id": "726DF23D-B389-482C-8A83-CD882FB21B8F",
5159
+          "uiHint": null
5160
+        },
5161
+        {
5162
+          "defKey": "dept_code",
5163
+          "defName": "机构编码",
5164
+          "comment": "",
5165
+          "type": "VARCHAR",
5166
+          "len": 64,
5167
+          "scale": "",
5168
+          "primaryKey": false,
5169
+          "notNull": false,
5170
+          "autoIncrement": false,
5171
+          "defaultValue": "",
5172
+          "hideInGraph": false,
5173
+          "refDict": null,
5174
+          "extProps": {},
5175
+          "domain": null,
5176
+          "id": "F8BA4F99-125F-4249-9678-A8BBAB3F352B",
5177
+          "uiHint": null
5178
+        },
5179
+        {
5180
+          "defKey": "dept_name",
5181
+          "defName": "机构名称",
5182
+          "comment": "",
5183
+          "type": "",
5184
+          "len": "",
5185
+          "scale": "",
5186
+          "primaryKey": false,
5187
+          "notNull": false,
5188
+          "autoIncrement": false,
5189
+          "defaultValue": "",
5190
+          "hideInGraph": false,
5191
+          "refDict": null,
5192
+          "extProps": {},
5193
+          "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
5194
+          "id": "940B4065-3A04-42F6-B7CB-265742DD38C1",
5195
+          "uiHint": null
5196
+        },
5197
+        {
5198
+          "defKey": "parent_id",
5199
+          "defName": "上级单位",
5200
+          "comment": "-1为根级目录",
5201
+          "type": "",
5202
+          "len": "",
5203
+          "scale": "",
5204
+          "primaryKey": false,
5205
+          "notNull": false,
5206
+          "autoIncrement": false,
5207
+          "defaultValue": "",
5208
+          "hideInGraph": false,
5209
+          "refDict": null,
5210
+          "extProps": {},
5211
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
5212
+          "id": "A893979D-88C9-402E-A601-18E4D7872FCF",
5213
+          "uiHint": null
5214
+        },
5215
+        {
5216
+          "defKey": "sort_no",
5217
+          "defName": "排序",
5218
+          "comment": "",
5219
+          "type": "",
5220
+          "len": "",
5221
+          "scale": "",
5222
+          "primaryKey": false,
5223
+          "notNull": false,
5224
+          "autoIncrement": false,
5225
+          "defaultValue": "",
5226
+          "hideInGraph": false,
5227
+          "refDict": null,
5228
+          "extProps": {},
5229
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
5230
+          "id": "A20379C0-271E-4E48-9375-05561D29E496",
5231
+          "uiHint": null
5232
+        },
5233
+        {
5234
+          "defKey": "status",
5235
+          "defName": "状态",
5236
+          "comment": "",
5237
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
5238
+          "type": "",
5239
+          "len": "",
5240
+          "scale": "",
5241
+          "primaryKey": false,
5242
+          "notNull": false,
5243
+          "autoIncrement": false,
5244
+          "defaultValue": "1",
5245
+          "hideInGraph": true,
5246
+          "refDict": null,
5247
+          "uiHint": null,
5248
+          "id": "76D66252-B46B-4FCA-B2F3-0EA78F744C94"
5249
+        },
5250
+        {
5251
+          "defKey": "tenant_id",
5252
+          "defName": "租户号",
5253
+          "comment": "",
5254
+          "type": "",
5255
+          "len": "",
5256
+          "scale": "",
5257
+          "primaryKey": false,
5258
+          "notNull": false,
5259
+          "autoIncrement": false,
5260
+          "defaultValue": "",
5261
+          "hideInGraph": true,
5262
+          "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
5263
+          "refDict": null,
5264
+          "extProps": {},
5265
+          "notes": {},
5266
+          "attr1": "",
5267
+          "attr2": "",
5268
+          "attr3": "",
5269
+          "attr4": "",
5270
+          "attr5": "",
5271
+          "attr6": "",
5272
+          "attr7": "",
5273
+          "attr8": "",
5274
+          "attr9": "",
5275
+          "id": "459A4C24-D208-4C5B-A3FD-0E8F555A6233",
5276
+          "uiHint": null
5277
+        },
5278
+        {
5279
+          "defKey": "tenant_name",
5280
+          "defName": "租户名称",
5281
+          "comment": "",
5282
+          "type": "",
5283
+          "len": "",
5284
+          "scale": "",
5285
+          "primaryKey": false,
5286
+          "notNull": false,
5287
+          "autoIncrement": false,
5288
+          "defaultValue": "",
5289
+          "hideInGraph": true,
5290
+          "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
5291
+          "refDict": null,
5292
+          "extProps": {},
5293
+          "notes": {},
5294
+          "attr1": "",
5295
+          "attr2": "",
5296
+          "attr3": "",
5297
+          "attr4": "",
5298
+          "attr5": "",
5299
+          "attr6": "",
5300
+          "attr7": "",
5301
+          "attr8": "",
5302
+          "attr9": "",
5303
+          "id": "F2E965FE-A1AA-4F24-92BB-79F1DF4451F3",
5304
+          "uiHint": null
5305
+        },
5306
+        {
5307
+          "defKey": "created_by",
5308
+          "defName": "创建人",
5309
+          "comment": "",
5310
+          "type": "VARCHAR",
5311
+          "len": 255,
5312
+          "scale": "",
5313
+          "primaryKey": false,
5314
+          "notNull": false,
5315
+          "autoIncrement": false,
5316
+          "defaultValue": "",
5317
+          "hideInGraph": true,
5318
+          "refDict": null,
5319
+          "extProps": {},
5320
+          "notes": {},
5321
+          "attr1": "",
5322
+          "attr2": "",
5323
+          "attr3": "",
5324
+          "attr4": "",
5325
+          "attr5": "",
5326
+          "attr6": "",
5327
+          "attr7": "",
5328
+          "attr8": "",
5329
+          "attr9": "",
5330
+          "id": "3BF9CDFA-F632-4DA0-9DBB-FCCE207290F4",
5331
+          "domain": null,
5332
+          "uiHint": null
5333
+        },
5334
+        {
5335
+          "defKey": "created_at",
5336
+          "defName": "创建时间",
5337
+          "comment": "",
5338
+          "type": "",
5339
+          "len": "",
5340
+          "scale": "",
5341
+          "primaryKey": false,
5342
+          "notNull": false,
5343
+          "autoIncrement": false,
5344
+          "defaultValue": "CURRENT_TIMESTAMP",
5345
+          "hideInGraph": true,
5346
+          "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
5347
+          "refDict": null,
5348
+          "extProps": {},
5349
+          "notes": {},
5350
+          "attr1": "",
5351
+          "attr2": "",
5352
+          "attr3": "",
5353
+          "attr4": "",
5354
+          "attr5": "",
5355
+          "attr6": "",
5356
+          "attr7": "",
5357
+          "attr8": "",
5358
+          "attr9": "",
5359
+          "id": "F4377BE1-22DD-4D6F-A3DD-2C94C3E0329D",
5360
+          "uiHint": null
5361
+        },
5362
+        {
5363
+          "defKey": "updated_by",
5364
+          "defName": "更新人",
5365
+          "comment": "",
5366
+          "type": "VARCHAR",
5367
+          "len": 255,
5368
+          "scale": "",
5369
+          "primaryKey": false,
5370
+          "notNull": false,
5371
+          "autoIncrement": false,
5372
+          "defaultValue": "",
5373
+          "hideInGraph": true,
5374
+          "refDict": null,
5375
+          "extProps": {},
5376
+          "notes": {},
5377
+          "attr1": "",
5378
+          "attr2": "",
5379
+          "attr3": "",
5380
+          "attr4": "",
5381
+          "attr5": "",
5382
+          "attr6": "",
5383
+          "attr7": "",
5384
+          "attr8": "",
5385
+          "attr9": "",
5386
+          "id": "397FFAB8-3494-493F-A507-7E5C540D4B5F",
5387
+          "domain": null,
5388
+          "uiHint": null
5389
+        },
5390
+        {
5391
+          "defKey": "updated_at",
5392
+          "defName": "更新时间",
5393
+          "comment": "",
5394
+          "type": "",
5395
+          "len": "",
5396
+          "scale": "",
5397
+          "primaryKey": false,
5398
+          "notNull": false,
5399
+          "autoIncrement": false,
5400
+          "defaultValue": "",
5401
+          "hideInGraph": true,
5402
+          "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
5403
+          "refDict": null,
5404
+          "extProps": {},
5405
+          "notes": {},
5406
+          "attr1": "",
5407
+          "attr2": "",
5408
+          "attr3": "",
5409
+          "attr4": "",
5410
+          "attr5": "",
5411
+          "attr6": "",
5412
+          "attr7": "",
5413
+          "attr8": "",
5414
+          "attr9": "",
5415
+          "id": "C134F08D-E36F-489E-B480-91E9B75291C4",
5416
+          "uiHint": null
5417
+        },
5418
+        {
5419
+          "defKey": "deleted",
5420
+          "defName": "删除标志",
5421
+          "comment": "1删除,0正常",
5422
+          "type": "",
5423
+          "len": "",
5424
+          "scale": "",
5425
+          "primaryKey": false,
5426
+          "notNull": false,
5427
+          "autoIncrement": false,
5428
+          "defaultValue": "0",
5429
+          "hideInGraph": true,
5430
+          "refDict": null,
5431
+          "extProps": {},
5432
+          "notes": {},
5433
+          "attr1": "",
5434
+          "attr2": "",
5435
+          "attr3": "",
5436
+          "attr4": "",
5437
+          "attr5": "",
5438
+          "attr6": "",
5439
+          "attr7": "",
5440
+          "attr8": "",
5441
+          "attr9": "",
5442
+          "id": "78EDFB66-F20B-4EC1-9384-5DFF01899543",
5443
+          "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
5444
+          "uiHint": null
5445
+        }
5446
+      ],
5447
+      "correlations": [],
5448
+      "indexes": [],
5449
+      "notes": {}
5016 5450
     }
5017 5451
   ],
5018 5452
   "views": [],

+ 1
- 0
platform/src/main/java/com/njyunzhi/platform/controller/FxTenantController.java 查看文件

@@ -44,6 +44,7 @@ public class FxTenantController extends BaseController {
44 44
     @ApiOperation("通过ID查询单条数据")
45 45
     @GetMapping("/fxTenant/{id}")
46 46
     public SaResult queryById(@ApiParam("对象ID") @PathVariable String id) throws Exception {
47
+
47 48
         return SaResult.data(fxTenantService.getById(id));
48 49
     }
49 50
 

+ 118
- 0
platform/src/main/java/com/njyunzhi/platform/controller/TaCompanyBeneficiaryInfoController.java 查看文件

@@ -0,0 +1,118 @@
1
+package com.njyunzhi.platform.controller;
2
+
3
+import cn.dev33.satoken.util.SaResult;
4
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5
+import com.baomidou.mybatisplus.core.metadata.IPage;
6
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
7
+import com.njyunzhi.common.util.StringUtil;
8
+import com.njyunzhi.framework.accesslimit.AccessLimit;
9
+import com.njyunzhi.framework.log.OpLog;
10
+import com.njyunzhi.platform.service.TaCompanyBeneficiaryInfoService;
11
+import com.njyunzhi.repository.BaseController;
12
+import com.njyunzhi.repository.entity.TaCompanyBeneficiaryInfo;
13
+import io.swagger.annotations.Api;
14
+import io.swagger.annotations.ApiOperation;
15
+import io.swagger.annotations.ApiParam;
16
+import org.springframework.beans.factory.annotation.Autowired;
17
+import org.springframework.validation.annotation.Validated;
18
+import org.springframework.web.bind.annotation.*;
19
+
20
+/**
21
+ * 受益所有人信息;(ta_company_beneficiary_info)表控制层
22
+ *
23
+ * @author : http://njyunzhi.com
24
+ * @date : 2024-2-28
25
+ */
26
+@Api(tags = "受益所有人信息对象功能接口")
27
+@RestController
28
+@RequestMapping("/")
29
+public class TaCompanyBeneficiaryInfoController extends BaseController {
30
+
31
+    @Autowired
32
+    private TaCompanyBeneficiaryInfoService taCompanyBeneficiaryInfoService;
33
+
34
+    /**
35
+     * 通过ID查询单条数据
36
+     *
37
+     * @param id 主键
38
+     * @return 实例对象
39
+     */
40
+    @OpLog(module = "受益所有人信息", action = "查询单条数据", desc = "ID:{{#id}}")
41
+    @AccessLimit()
42
+    @ApiOperation("通过ID查询单条数据")
43
+    @GetMapping("/taCompanyBeneficiaryInfo/{id}")
44
+    public SaResult queryById(@ApiParam("对象ID") @PathVariable String id) throws Exception {
45
+        return SaResult.data(taCompanyBeneficiaryInfoService.getById(id));
46
+    }
47
+
48
+    /**
49
+     * 分页查询
50
+     *
51
+     * @param pageNum  当前页码
52
+     * @param pageSize 每页条数
53
+     * @return 查询结果
54
+     */
55
+    @OpLog(module = "受益所有人信息", action = "分页列表查询")
56
+    @AccessLimit()
57
+    @ApiOperation("分页查询")
58
+    @GetMapping("/taCompanyBeneficiaryInfo")
59
+    public SaResult list(@ApiParam("页码") @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
60
+                         @ApiParam("单页数据量") @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
61
+                         @ApiParam("正序排列") @RequestParam(value = "sortAsc", required = false) String sortAsc,
62
+                         @ApiParam("倒序排列") @RequestParam(value = "sortDesc", defaultValue = "created_at") String sortDesc) throws Exception {
63
+
64
+        IPage<TaCompanyBeneficiaryInfo> pg = new Page<>(pageNum, pageSize);
65
+        QueryWrapper<TaCompanyBeneficiaryInfo> queryWrapper = new QueryWrapper<>();
66
+        queryWrapper.orderByAsc(StringUtil.isNotEmpty(sortAsc), StringUtil.humpToLine(sortAsc));
67
+        queryWrapper.orderByDesc(StringUtil.isNotEmpty(sortDesc), StringUtil.humpToLine(sortDesc));
68
+        IPage<TaCompanyBeneficiaryInfo> result = taCompanyBeneficiaryInfoService.page(pg, queryWrapper);
69
+
70
+        return SaResult.data(result);
71
+    }
72
+
73
+    /**
74
+     * 新增数据
75
+     *
76
+     * @param taCompanyBeneficiaryInfo 实例对象
77
+     * @return 实例对象
78
+     */
79
+    @OpLog(module = "受益所有人信息", action = "新增数据")
80
+    @AccessLimit()
81
+    @ApiOperation("新增数据")
82
+    @PostMapping("/taCompanyBeneficiaryInfo")
83
+    public SaResult add(@ApiParam("对象实体") @Validated @RequestBody TaCompanyBeneficiaryInfo taCompanyBeneficiaryInfo) throws Exception {
84
+        taCompanyBeneficiaryInfoService.save(taCompanyBeneficiaryInfo);
85
+        return SaResult.data(taCompanyBeneficiaryInfo);
86
+    }
87
+
88
+    /**
89
+     * 更新数据
90
+     *
91
+     * @param taCompanyBeneficiaryInfo 实例对象
92
+     * @return 实例对象
93
+     */
94
+    @OpLog(module = "受益所有人信息", action = "更新数据")
95
+    @AccessLimit()
96
+    @ApiOperation("更新数据")
97
+    @PutMapping("/taCompanyBeneficiaryInfo/{id}")
98
+    public SaResult edit(@ApiParam("对象实体") @Validated @RequestBody TaCompanyBeneficiaryInfo taCompanyBeneficiaryInfo,
99
+                         @ApiParam("对象ID") @PathVariable String id) throws Exception {
100
+        taCompanyBeneficiaryInfoService.updateById(taCompanyBeneficiaryInfo);
101
+        return SaResult.data(taCompanyBeneficiaryInfo);
102
+    }
103
+
104
+    /**
105
+     * 通过主键删除数据
106
+     *
107
+     * @param id 主键
108
+     * @return 是否成功
109
+     */
110
+    @OpLog(module = "受益所有人信息", action = "删除数据", desc = "ID:{{#id}}")
111
+    @AccessLimit()
112
+    @ApiOperation("通过主键删除数据")
113
+    @DeleteMapping("/taCompanyBeneficiaryInfo/{id}")
114
+    public SaResult deleteById(@ApiParam("对象ID") @PathVariable String id) {
115
+        taCompanyBeneficiaryInfoService.removeById(id);
116
+        return SaResult.data("success");
117
+    }
118
+}

+ 129
- 0
platform/src/main/java/com/njyunzhi/platform/controller/TaCompanyInfoController.java 查看文件

@@ -0,0 +1,129 @@
1
+package com.njyunzhi.platform.controller;
2
+
3
+import cn.dev33.satoken.util.SaResult;
4
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5
+import com.baomidou.mybatisplus.core.metadata.IPage;
6
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
7
+import com.njyunzhi.common.util.StringUtil;
8
+import com.njyunzhi.framework.accesslimit.AccessLimit;
9
+import com.njyunzhi.framework.log.OpLog;
10
+import com.njyunzhi.platform.service.TaCompanyInfoService;
11
+import com.njyunzhi.repository.BaseController;
12
+import com.njyunzhi.repository.entity.TaCompanyInfo;
13
+import io.swagger.annotations.Api;
14
+import io.swagger.annotations.ApiOperation;
15
+import io.swagger.annotations.ApiParam;
16
+import org.springframework.beans.factory.annotation.Autowired;
17
+import org.springframework.validation.annotation.Validated;
18
+import org.springframework.web.bind.annotation.*;
19
+
20
+/**
21
+ * 公司基本信息;(ta_company_info)表控制层
22
+ *
23
+ * @author : http://njyunzhi.com
24
+ * @date : 2024-2-28
25
+ */
26
+@Api(tags = "公司基本信息对象功能接口")
27
+@RestController
28
+@RequestMapping("/")
29
+public class TaCompanyInfoController extends BaseController {
30
+
31
+    @Autowired
32
+    private TaCompanyInfoService taCompanyInfoService;
33
+
34
+    /**
35
+     * 通过ID查询单条数据
36
+     *
37
+     * @param id 主键
38
+     * @return 实例对象
39
+     */
40
+    @OpLog(module = "公司基本信息", action = "查询单条数据", desc = "ID:{{#id}}")
41
+    @AccessLimit()
42
+    @ApiOperation("通过ID查询单条数据")
43
+    @GetMapping("/taCompanyInfo/{id}")
44
+    public SaResult queryById(@ApiParam("对象ID") @PathVariable String id) throws Exception {
45
+        return SaResult.data(taCompanyInfoService.getById(id));
46
+    }
47
+
48
+    /**
49
+     * 分页查询
50
+     *
51
+     * @param pageNum  当前页码
52
+     * @param pageSize 每页条数
53
+     * @return 查询结果
54
+     */
55
+    @OpLog(module = "公司基本信息", action = "分页列表查询")
56
+    @AccessLimit()
57
+    @ApiOperation("分页查询")
58
+    @GetMapping("/taCompanyInfo")
59
+    public SaResult list(@ApiParam("页码") @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
60
+                         @ApiParam("单页数据量") @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
61
+                         @ApiParam("企业注册地") @RequestParam(value = "registrationLocation", required = false) String registrationLocation,
62
+                         @ApiParam("企业中文名") @RequestParam(value = "companyNameCn", required = false) String companyNameCn,
63
+                         @ApiParam("企业英文名") @RequestParam(value = "companyNameEn", required = false) String companyNameEn,
64
+                         @ApiParam("是否为上市企业") @RequestParam(value = "isListedCompany", required = false) String isListedCompany,
65
+                         @ApiParam("企业类型") @RequestParam(value = "companyType", required = false) String companyType,
66
+
67
+                         @ApiParam("正序排列") @RequestParam(value = "sortAsc", required = false) String sortAsc,
68
+                         @ApiParam("倒序排列") @RequestParam(value = "sortDesc", defaultValue = "created_at") String sortDesc) throws Exception {
69
+
70
+        IPage<TaCompanyInfo> pg = new Page<>(pageNum, pageSize);
71
+        QueryWrapper<TaCompanyInfo> queryWrapper = new QueryWrapper<>();
72
+        queryWrapper.like(StringUtil.isNotEmpty(registrationLocation),"registration_location",registrationLocation);
73
+        queryWrapper.like(StringUtil.isNotEmpty(companyNameCn),"company_name_cn",companyNameCn);
74
+        queryWrapper.like(StringUtil.isNotEmpty(companyNameEn),"company_name_en",companyNameEn);
75
+        queryWrapper.eq(StringUtil.isNotEmpty(isListedCompany),"is_listed_company",isListedCompany);
76
+        queryWrapper.eq(StringUtil.isNotEmpty(companyType),"company_type",companyType);
77
+        queryWrapper.orderByAsc(StringUtil.isNotEmpty(sortAsc), StringUtil.humpToLine(sortAsc));
78
+        queryWrapper.orderByDesc(StringUtil.isNotEmpty(sortDesc), StringUtil.humpToLine(sortDesc));
79
+        IPage<TaCompanyInfo> result = taCompanyInfoService.page(pg, queryWrapper);
80
+
81
+        return SaResult.data(result);
82
+    }
83
+
84
+    /**
85
+     * 新增数据
86
+     *
87
+     * @param taCompanyInfo 实例对象
88
+     * @return 实例对象
89
+     */
90
+    @OpLog(module = "公司基本信息", action = "新增数据")
91
+    @AccessLimit()
92
+    @ApiOperation("新增数据")
93
+    @PostMapping("/taCompanyInfo")
94
+    public SaResult add(@ApiParam("对象实体") @Validated @RequestBody TaCompanyInfo taCompanyInfo) throws Exception {
95
+        taCompanyInfoService.save(taCompanyInfo);
96
+        return SaResult.data(taCompanyInfo);
97
+    }
98
+
99
+    /**
100
+     * 更新数据
101
+     *
102
+     * @param taCompanyInfo 实例对象
103
+     * @return 实例对象
104
+     */
105
+    @OpLog(module = "公司基本信息", action = "更新数据")
106
+    @AccessLimit()
107
+    @ApiOperation("更新数据")
108
+    @PutMapping("/taCompanyInfo/{id}")
109
+    public SaResult edit(@ApiParam("对象实体") @Validated @RequestBody TaCompanyInfo taCompanyInfo,
110
+                         @ApiParam("对象ID") @PathVariable String id) throws Exception {
111
+        taCompanyInfoService.updateById(taCompanyInfo);
112
+        return SaResult.data(taCompanyInfo);
113
+    }
114
+
115
+    /**
116
+     * 通过主键删除数据
117
+     *
118
+     * @param id 主键
119
+     * @return 是否成功
120
+     */
121
+    @OpLog(module = "公司基本信息", action = "删除数据", desc = "ID:{{#id}}")
122
+    @AccessLimit()
123
+    @ApiOperation("通过主键删除数据")
124
+    @DeleteMapping("/taCompanyInfo/{id}")
125
+    public SaResult deleteById(@ApiParam("对象ID") @PathVariable String id) {
126
+        taCompanyInfoService.removeById(id);
127
+        return SaResult.data("success");
128
+    }
129
+}

+ 118
- 0
platform/src/main/java/com/njyunzhi/platform/controller/TaCompanyLegalInfoController.java 查看文件

@@ -0,0 +1,118 @@
1
+package com.njyunzhi.platform.controller;
2
+
3
+import cn.dev33.satoken.util.SaResult;
4
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5
+import com.baomidou.mybatisplus.core.metadata.IPage;
6
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
7
+import com.njyunzhi.common.util.StringUtil;
8
+import com.njyunzhi.framework.accesslimit.AccessLimit;
9
+import com.njyunzhi.framework.log.OpLog;
10
+import com.njyunzhi.platform.service.TaCompanyLegalInfoService;
11
+import com.njyunzhi.repository.BaseController;
12
+import com.njyunzhi.repository.entity.TaCompanyLegalInfo;
13
+import io.swagger.annotations.Api;
14
+import io.swagger.annotations.ApiOperation;
15
+import io.swagger.annotations.ApiParam;
16
+import org.springframework.beans.factory.annotation.Autowired;
17
+import org.springframework.validation.annotation.Validated;
18
+import org.springframework.web.bind.annotation.*;
19
+
20
+/**
21
+ * 公司法人代表信息;(ta_company_legal_info)表控制层
22
+ *
23
+ * @author : http://njyunzhi.com
24
+ * @date : 2024-2-28
25
+ */
26
+@Api(tags = "公司法人代表信息对象功能接口")
27
+@RestController
28
+@RequestMapping("/")
29
+public class TaCompanyLegalInfoController extends BaseController {
30
+
31
+    @Autowired
32
+    private TaCompanyLegalInfoService taCompanyLegalInfoService;
33
+
34
+    /**
35
+     * 通过ID查询单条数据
36
+     *
37
+     * @param id 主键
38
+     * @return 实例对象
39
+     */
40
+    @OpLog(module = "公司法人代表信息", action = "查询单条数据", desc = "ID:{{#id}}")
41
+    @AccessLimit()
42
+    @ApiOperation("通过ID查询单条数据")
43
+    @GetMapping("/taCompanyLegalInfo/{id}")
44
+    public SaResult queryById(@ApiParam("对象ID") @PathVariable String id) throws Exception {
45
+        return SaResult.data(taCompanyLegalInfoService.getById(id));
46
+    }
47
+
48
+    /**
49
+     * 分页查询
50
+     *
51
+     * @param pageNum  当前页码
52
+     * @param pageSize 每页条数
53
+     * @return 查询结果
54
+     */
55
+    @OpLog(module = "公司法人代表信息", action = "分页列表查询")
56
+    @AccessLimit()
57
+    @ApiOperation("分页查询")
58
+    @GetMapping("/taCompanyLegalInfo")
59
+    public SaResult list(@ApiParam("页码") @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
60
+                         @ApiParam("单页数据量") @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
61
+                         @ApiParam("正序排列") @RequestParam(value = "sortAsc", required = false) String sortAsc,
62
+                         @ApiParam("倒序排列") @RequestParam(value = "sortDesc", defaultValue = "created_at") String sortDesc) throws Exception {
63
+
64
+        IPage<TaCompanyLegalInfo> pg = new Page<>(pageNum, pageSize);
65
+        QueryWrapper<TaCompanyLegalInfo> queryWrapper = new QueryWrapper<>();
66
+        queryWrapper.orderByAsc(StringUtil.isNotEmpty(sortAsc), StringUtil.humpToLine(sortAsc));
67
+        queryWrapper.orderByDesc(StringUtil.isNotEmpty(sortDesc), StringUtil.humpToLine(sortDesc));
68
+        IPage<TaCompanyLegalInfo> result = taCompanyLegalInfoService.page(pg, queryWrapper);
69
+
70
+        return SaResult.data(result);
71
+    }
72
+
73
+    /**
74
+     * 新增数据
75
+     *
76
+     * @param taCompanyLegalInfo 实例对象
77
+     * @return 实例对象
78
+     */
79
+    @OpLog(module = "公司法人代表信息", action = "新增数据")
80
+    @AccessLimit()
81
+    @ApiOperation("新增数据")
82
+    @PostMapping("/taCompanyLegalInfo")
83
+    public SaResult add(@ApiParam("对象实体") @Validated @RequestBody TaCompanyLegalInfo taCompanyLegalInfo) throws Exception {
84
+        taCompanyLegalInfoService.save(taCompanyLegalInfo);
85
+        return SaResult.data(taCompanyLegalInfo);
86
+    }
87
+
88
+    /**
89
+     * 更新数据
90
+     *
91
+     * @param taCompanyLegalInfo 实例对象
92
+     * @return 实例对象
93
+     */
94
+    @OpLog(module = "公司法人代表信息", action = "更新数据")
95
+    @AccessLimit()
96
+    @ApiOperation("更新数据")
97
+    @PutMapping("/taCompanyLegalInfo/{id}")
98
+    public SaResult edit(@ApiParam("对象实体") @Validated @RequestBody TaCompanyLegalInfo taCompanyLegalInfo,
99
+                         @ApiParam("对象ID") @PathVariable String id) throws Exception {
100
+        taCompanyLegalInfoService.updateById(taCompanyLegalInfo);
101
+        return SaResult.data(taCompanyLegalInfo);
102
+    }
103
+
104
+    /**
105
+     * 通过主键删除数据
106
+     *
107
+     * @param id 主键
108
+     * @return 是否成功
109
+     */
110
+    @OpLog(module = "公司法人代表信息", action = "删除数据", desc = "ID:{{#id}}")
111
+    @AccessLimit()
112
+    @ApiOperation("通过主键删除数据")
113
+    @DeleteMapping("/taCompanyLegalInfo/{id}")
114
+    public SaResult deleteById(@ApiParam("对象ID") @PathVariable String id) {
115
+        taCompanyLegalInfoService.removeById(id);
116
+        return SaResult.data("success");
117
+    }
118
+}

+ 14
- 0
platform/src/main/java/com/njyunzhi/platform/service/TaCompanyBeneficiaryInfoService.java 查看文件

@@ -0,0 +1,14 @@
1
+package com.njyunzhi.platform.service;
2
+
3
+import com.njyunzhi.repository.IBaseService;
4
+import com.njyunzhi.repository.entity.TaCompanyBeneficiaryInfo;
5
+
6
+/**
7
+ * 受益所有人信息;(ta_company_beneficiary_info)表服务接口
8
+ *
9
+ * @author : http://njyunzhi.com
10
+ * @date : 2024-2-28
11
+ */
12
+public interface TaCompanyBeneficiaryInfoService extends IBaseService<TaCompanyBeneficiaryInfo> {
13
+
14
+}

+ 14
- 0
platform/src/main/java/com/njyunzhi/platform/service/TaCompanyInfoService.java 查看文件

@@ -0,0 +1,14 @@
1
+package com.njyunzhi.platform.service;
2
+
3
+import com.njyunzhi.repository.IBaseService;
4
+import com.njyunzhi.repository.entity.TaCompanyInfo;
5
+
6
+/**
7
+ * 公司基本信息;(ta_company_info)表服务接口
8
+ *
9
+ * @author : http://njyunzhi.com
10
+ * @date : 2024-2-28
11
+ */
12
+public interface TaCompanyInfoService extends IBaseService<TaCompanyInfo> {
13
+
14
+}

+ 14
- 0
platform/src/main/java/com/njyunzhi/platform/service/TaCompanyLegalInfoService.java 查看文件

@@ -0,0 +1,14 @@
1
+package com.njyunzhi.platform.service;
2
+
3
+import com.njyunzhi.repository.IBaseService;
4
+import com.njyunzhi.repository.entity.TaCompanyLegalInfo;
5
+
6
+/**
7
+ * 公司法人代表信息;(ta_company_legal_info)表服务接口
8
+ *
9
+ * @author : http://njyunzhi.com
10
+ * @date : 2024-2-28
11
+ */
12
+public interface TaCompanyLegalInfoService extends IBaseService<TaCompanyLegalInfo> {
13
+
14
+}

+ 18
- 0
platform/src/main/java/com/njyunzhi/platform/service/impl/TaCompanyBeneficiaryInfoServiceImpl.java 查看文件

@@ -0,0 +1,18 @@
1
+package com.njyunzhi.platform.service.impl;
2
+
3
+import com.njyunzhi.repository.BaseServiceImpl;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.njyunzhi.repository.entity.TaCompanyBeneficiaryInfo;
7
+import com.njyunzhi.repository.mapper.TaCompanyBeneficiaryInfoMapper;
8
+import com.njyunzhi.platform.service.TaCompanyBeneficiaryInfoService;
9
+
10
+ /**
11
+ * 受益所有人信息;(ta_company_beneficiary_info)表服务实现类
12
+ * @author : http://www.chiner.pro
13
+ * @date : 2024-2-28
14
+ */
15
+@Service
16
+public class TaCompanyBeneficiaryInfoServiceImpl extends BaseServiceImpl<TaCompanyBeneficiaryInfoMapper, TaCompanyBeneficiaryInfo> implements TaCompanyBeneficiaryInfoService {
17
+    
18
+}

+ 18
- 0
platform/src/main/java/com/njyunzhi/platform/service/impl/TaCompanyInfoServiceImpl.java 查看文件

@@ -0,0 +1,18 @@
1
+package com.njyunzhi.platform.service.impl;
2
+
3
+import com.njyunzhi.platform.service.TaCompanyInfoService;
4
+import com.njyunzhi.repository.BaseServiceImpl;
5
+import com.njyunzhi.repository.entity.TaCompanyInfo;
6
+import com.njyunzhi.repository.mapper.TaCompanyInfoMapper;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * 公司基本信息;(ta_company_info)表服务实现类
11
+ *
12
+ * @author : http://www.chiner.pro
13
+ * @date : 2024-2-28
14
+ */
15
+@Service
16
+public class TaCompanyInfoServiceImpl extends BaseServiceImpl<TaCompanyInfoMapper, TaCompanyInfo> implements TaCompanyInfoService {
17
+
18
+}

+ 18
- 0
platform/src/main/java/com/njyunzhi/platform/service/impl/TaCompanyLegalInfoServiceImpl.java 查看文件

@@ -0,0 +1,18 @@
1
+package com.njyunzhi.platform.service.impl;
2
+
3
+import com.njyunzhi.platform.service.TaCompanyLegalInfoService;
4
+import com.njyunzhi.repository.BaseServiceImpl;
5
+import com.njyunzhi.repository.entity.TaCompanyLegalInfo;
6
+import com.njyunzhi.repository.mapper.TaCompanyLegalInfoMapper;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * 公司法人代表信息;(ta_company_legal_info)表服务实现类
11
+ *
12
+ * @author : http://www.chiner.pro
13
+ * @date : 2024-2-28
14
+ */
15
+@Service
16
+public class TaCompanyLegalInfoServiceImpl extends BaseServiceImpl<TaCompanyLegalInfoMapper, TaCompanyLegalInfo> implements TaCompanyLegalInfoService {
17
+
18
+}

+ 1
- 1
platform/src/main/resources/application.yml 查看文件

@@ -38,7 +38,7 @@ spring:
38 38
     # Redis数据库索引
39 39
     database: 3
40 40
     # Redis服务器地址
41
-    host: 192.168.89.147
41
+    host: 192.168.89.10
42 42
     # Redis服务器连接端口
43 43
     port: 6379
44 44
     # Redis服务器连接密码(默认为空)

+ 1
- 0
repository/src/main/java/com/njyunzhi/repository/BaseController.java 查看文件

@@ -2,6 +2,7 @@ package com.njyunzhi.repository;
2 2
 
3 3
 import cn.dev33.satoken.stp.StpUtil;
4 4
 import com.njyunzhi.common.util.StringUtil;
5
+import com.njyunzhi.repository.entity.SysUser;
5 6
 import org.springframework.beans.factory.annotation.Autowired;
6 7
 import org.springframework.context.annotation.Lazy;
7 8
 import org.springframework.stereotype.Component;

+ 55
- 51
repository/src/main/java/com/njyunzhi/repository/entity/SysUser.java 查看文件

@@ -12,71 +12,75 @@ import java.io.Serializable;
12 12
 import java.time.LocalDateTime;
13 13
 import java.util.List;
14 14
 
15
- /**
15
+/**
16 16
  * 用户管理;
17
+ *
17 18
  * @author : http://www.chiner.pro
18 19
  * @date : 2023-10-25
19 20
  */
20 21
 @Data
21 22
 @EqualsAndHashCode(callSuper = false)
22 23
 @Accessors(chain = true)
23
-@ApiModel(value = "用户管理",description = "")
24
+@ApiModel(value = "用户管理", description = "")
24 25
 @TableName("sys_user")
25
-public class SysUser implements Serializable,Cloneable{
26
-    
27
-    @ApiModelProperty(name = "用户ID",notes = "")
26
+public class SysUser implements Serializable, Cloneable {
27
+
28
+    @ApiModelProperty(name = "用户ID", notes = "")
28 29
     @TableId(value = "user_id", type = IdType.ASSIGN_UUID)
29
-    private String userId ;
30
-    
30
+    private String userId;
31
+
31 32
     @NotBlank(message = "用户名称不能为空")
32
-    @ApiModelProperty(name = "用户名称",notes = "")
33
-    private String userName ;
34
-    
35
-    @ApiModelProperty(name = "头像",notes = "")
36
-    private String avatar ;
37
-    
38
-    @ApiModelProperty(name = "手机",notes = "")
39
-    private String phone ;
40
-    
41
-    @ApiModelProperty(name = "岗位ID",notes = "")
42
-    private String positionId ;
43
-    
44
-    @ApiModelProperty(name = "部门ID",notes = "")
45
-    private String deptId ;
46
-    
47
-    @ApiModelProperty(name = "标签",notes = "")
48
-    private String tag ;
49
-    
50
-    @ApiModelProperty(name = "状态",notes = "")
51
-    private Integer status ;
52
-    
53
-    @ApiModelProperty(name = "是否管理员",notes = "")
54
-    private Integer isAdmin ;
55
-    
56
-    @ApiModelProperty(name = "租户号",notes = "")
57
-    private String tenantId ;
58
-    
59
-    @ApiModelProperty(name = "创建人",notes = "")
33
+    @ApiModelProperty(name = "用户名称", notes = "")
34
+    private String userName;
35
+
36
+    @ApiModelProperty(name = "头像", notes = "")
37
+    private String avatar;
38
+
39
+    @ApiModelProperty(name = "邮箱", notes = "")
40
+    private String email;
41
+
42
+    @ApiModelProperty(name = "手机", notes = "")
43
+    private String phone;
44
+
45
+    @ApiModelProperty(name = "岗位ID", notes = "")
46
+    private String positionId;
47
+
48
+    @ApiModelProperty(name = "部门ID", notes = "")
49
+    private String deptId;
50
+
51
+    @ApiModelProperty(name = "标签", notes = "")
52
+    private String tag;
53
+
54
+    @ApiModelProperty(name = "状态", notes = "")
55
+    private Integer status;
56
+
57
+    @ApiModelProperty(name = "是否管理员", notes = "")
58
+    private Integer isAdmin;
59
+
60
+    @ApiModelProperty(name = "租户号", notes = "")
61
+    private String tenantId;
62
+
63
+    @ApiModelProperty(name = "创建人", notes = "")
60 64
     @TableField(fill = FieldFill.INSERT)
61
-    private String createdBy ;
62
-    
63
-    @ApiModelProperty(name = "创建时间",notes = "")
65
+    private String createdBy;
66
+
67
+    @ApiModelProperty(name = "创建时间", notes = "")
64 68
     @TableField(fill = FieldFill.INSERT)
65
-    private LocalDateTime createdAt ;
66
-    
67
-    @ApiModelProperty(name = "更新人",notes = "")
69
+    private LocalDateTime createdAt;
70
+
71
+    @ApiModelProperty(name = "更新人", notes = "")
68 72
     @TableField(fill = FieldFill.INSERT_UPDATE)
69
-    private String updatedBy ;
70
-    
71
-    @ApiModelProperty(name = "更新时间",notes = "")
73
+    private String updatedBy;
74
+
75
+    @ApiModelProperty(name = "更新时间", notes = "")
72 76
     @TableField(fill = FieldFill.INSERT_UPDATE)
73
-    private LocalDateTime updatedAt ;
74
-    
75
-    @ApiModelProperty(name = "删除标志",notes = "1删除,0正常")
77
+    private LocalDateTime updatedAt;
78
+
79
+    @ApiModelProperty(name = "删除标志", notes = "1删除,0正常")
76 80
     @TableField(fill = FieldFill.INSERT)
77
-    private Integer deleted ;
81
+    private Integer deleted;
78 82
 
79
-     @ApiModelProperty(name = "角色列表")
80
-     @TableField(exist = false)
81
-     private List<SysRole> roleList;
83
+    @ApiModelProperty(name = "角色列表")
84
+    @TableField(exist = false)
85
+    private List<SysRole> roleList;
82 86
 }

+ 60
- 0
repository/src/main/java/com/njyunzhi/repository/entity/TaCompanyBeneficiaryInfo.java 查看文件

@@ -0,0 +1,60 @@
1
+package com.njyunzhi.repository.entity;
2
+
3
+import io.swagger.annotations.ApiModel;
4
+import io.swagger.annotations.ApiModelProperty;
5
+import com.baomidou.mybatisplus.annotation.*;
6
+import java.io.Serializable;
7
+import java.time.LocalDateTime;
8
+import lombok.Data;
9
+import lombok.EqualsAndHashCode;
10
+import lombok.experimental.Accessors;
11
+import javax.validation.constraints.NotBlank;
12
+
13
+ /**
14
+ * 受益所有人信息;
15
+ * @author : http://www.chiner.pro
16
+ * @date : 2024-2-28
17
+ */
18
+@Data
19
+@EqualsAndHashCode(callSuper = false)
20
+@Accessors(chain = true)
21
+@ApiModel(value = "受益所有人信息",description = "")
22
+@TableName("ta_company_beneficiary_info")
23
+public class TaCompanyBeneficiaryInfo implements Serializable,Cloneable{
24
+    
25
+    @ApiModelProperty(name = "受益人id",notes = "")
26
+    @TableId(value = "beneficiary_id", type = IdType.ASSIGN_UUID)
27
+    private String beneficiaryId ;
28
+    
29
+    @ApiModelProperty(name = "公司id",notes = "")
30
+    private String companyId ;
31
+    
32
+    @ApiModelProperty(name = "公司法人代表信息id",notes = "")
33
+    private String companyLegalId ;
34
+    
35
+    @ApiModelProperty(name = "租户号",notes = "")
36
+    private String tenantId ;
37
+    
38
+    @ApiModelProperty(name = "持股比例",notes = "")
39
+    private String shareholdingRatio ;
40
+    
41
+    @ApiModelProperty(name = "股权架构图",notes = "")
42
+    private byte[] equityStructureChart ;
43
+    
44
+    @ApiModelProperty(name = "创建人",notes = "")
45
+    @TableField(fill = FieldFill.INSERT)
46
+    private String createdBy ;
47
+    
48
+    @ApiModelProperty(name = "创建时间",notes = "")
49
+    @TableField(fill = FieldFill.INSERT)
50
+    private LocalDateTime createdAt ;
51
+    
52
+    @ApiModelProperty(name = "更新人",notes = "")
53
+    @TableField(fill = FieldFill.INSERT_UPDATE)
54
+    private String updatedBy ;
55
+    
56
+    @ApiModelProperty(name = "更新时间",notes = "")
57
+    @TableField(fill = FieldFill.INSERT_UPDATE)
58
+    private LocalDateTime updatedAt ;
59
+
60
+}

+ 116
- 0
repository/src/main/java/com/njyunzhi/repository/entity/TaCompanyInfo.java 查看文件

@@ -0,0 +1,116 @@
1
+package com.njyunzhi.repository.entity;
2
+
3
+import io.swagger.annotations.ApiModel;
4
+import io.swagger.annotations.ApiModelProperty;
5
+import com.baomidou.mybatisplus.annotation.*;
6
+import java.io.Serializable;
7
+import java.time.LocalDateTime;
8
+import lombok.Data;
9
+import lombok.EqualsAndHashCode;
10
+import lombok.experimental.Accessors;
11
+import javax.validation.constraints.NotBlank;
12
+
13
+ /**
14
+ * 公司基本信息;
15
+ * @author : http://www.chiner.pro
16
+ * @date : 2024-2-28
17
+ */
18
+@Data
19
+@EqualsAndHashCode(callSuper = false)
20
+@Accessors(chain = true)
21
+@ApiModel(value = "公司基本信息",description = "")
22
+@TableName("ta_company_info")
23
+public class TaCompanyInfo implements Serializable,Cloneable{
24
+    
25
+    @ApiModelProperty(name = "公司id",notes = "")
26
+    @TableId(value = "company_id", type = IdType.ASSIGN_UUID)
27
+    private String companyId ;
28
+    
29
+    @ApiModelProperty(name = "租户号",notes = "")
30
+    private String tenantId ;
31
+    
32
+    @ApiModelProperty(name = "企业注册地",notes = "")
33
+    private String registrationLocation ;
34
+    
35
+    @NotBlank(message = "企业中文名不能为空")
36
+    @ApiModelProperty(name = "企业中文名",notes = "")
37
+    private String companyNameCn ;
38
+    
39
+    @NotBlank(message = "企业英文名不能为空")
40
+    @ApiModelProperty(name = "企业英文名",notes = "")
41
+    private String companyNameEn ;
42
+    
43
+    @ApiModelProperty(name = "是否为上市企业",notes = "")
44
+    private String isListedCompany ;
45
+    
46
+    @ApiModelProperty(name = "公司注册证书",notes = "")
47
+    private byte[] certificateIncorporation ;
48
+    
49
+    @ApiModelProperty(name = "公司商业登记证",notes = "")
50
+    private byte[] companyBusinessRegistration ;
51
+    
52
+    @ApiModelProperty(name = "nnc1/最新nar1",notes = "")
53
+    private byte[] nnc1Nar1 ;
54
+    
55
+    @ApiModelProperty(name = "其他附件",notes = "")
56
+    private byte[] otherAnnex ;
57
+    
58
+    @ApiModelProperty(name = "企业类型 1:私人股份有限公司,2公众股份有限公司,3有股本的公众无限公司,4有股本的私人无限公司",notes = "")
59
+    private String companyType ;
60
+    
61
+    @ApiModelProperty(name = "商业登记号",notes = "")
62
+    private String businessRegistrationNum ;
63
+    
64
+    @ApiModelProperty(name = "注册 国家",notes = "")
65
+    private String registerCountry ;
66
+    
67
+    @ApiModelProperty(name = "注册 省/地区",notes = "")
68
+    private String registerProvinceRegion ;
69
+    
70
+    @ApiModelProperty(name = "注册 市",notes = "")
71
+    private String registerCity ;
72
+    
73
+    @ApiModelProperty(name = "注册具体地址",notes = "")
74
+    private String registerSpecificAddress ;
75
+    
76
+    @ApiModelProperty(name = "注册 邮政编码",notes = "")
77
+    private String registerPostalCode ;
78
+    
79
+    @ApiModelProperty(name = "实际经营 国家",notes = "")
80
+    private String realityCountry ;
81
+    
82
+    @ApiModelProperty(name = "实际经营 省/地区",notes = "")
83
+    private String realityProvinceRegion ;
84
+    
85
+    @ApiModelProperty(name = "实际经营 市",notes = "")
86
+    private String realityCity ;
87
+    
88
+    @ApiModelProperty(name = "实际经营 具体地址",notes = "")
89
+    private String realitySpecificAddress ;
90
+    
91
+    @ApiModelProperty(name = "实际经营 邮政编码",notes = "")
92
+    private String realityPostalCode ;
93
+    
94
+    @ApiModelProperty(name = "雇员人数 1:员工人数超过200人,2员工人数50-200人,3员工人数少于50人",notes = "")
95
+    private String numEmployees ;
96
+    
97
+    @ApiModelProperty(name = "经营场所类型 1:自有办公场所,2:较大租用办公场所 (大于500平方),3:较小租用办公场所 (小于500平方),4:无固定办公场所",notes = "")
98
+    private String businessPremisesType ;
99
+    
100
+    @ApiModelProperty(name = "创建人",notes = "")
101
+    @TableField(fill = FieldFill.INSERT)
102
+    private String createdBy ;
103
+    
104
+    @ApiModelProperty(name = "创建时间",notes = "")
105
+    @TableField(fill = FieldFill.INSERT)
106
+    private LocalDateTime createdAt ;
107
+    
108
+    @ApiModelProperty(name = "更新人",notes = "")
109
+    @TableField(fill = FieldFill.INSERT_UPDATE)
110
+    private String updatedBy ;
111
+    
112
+    @ApiModelProperty(name = "更新时间",notes = "")
113
+    @TableField(fill = FieldFill.INSERT_UPDATE)
114
+    private LocalDateTime updatedAt ;
115
+
116
+}

+ 73
- 0
repository/src/main/java/com/njyunzhi/repository/entity/TaCompanyLegalInfo.java 查看文件

@@ -0,0 +1,73 @@
1
+package com.njyunzhi.repository.entity;
2
+
3
+import io.swagger.annotations.ApiModel;
4
+import io.swagger.annotations.ApiModelProperty;
5
+import com.baomidou.mybatisplus.annotation.*;
6
+import java.io.Serializable;
7
+import java.time.LocalDateTime;
8
+import lombok.Data;
9
+import lombok.EqualsAndHashCode;
10
+import lombok.experimental.Accessors;
11
+import javax.validation.constraints.NotBlank;
12
+
13
+ /**
14
+ * 公司法人代表信息;
15
+ * @author : http://www.chiner.pro
16
+ * @date : 2024-2-28
17
+ */
18
+@Data
19
+@EqualsAndHashCode(callSuper = false)
20
+@Accessors(chain = true)
21
+@ApiModel(value = "公司法人代表信息",description = "")
22
+@TableName("ta_company_legal_info")
23
+public class TaCompanyLegalInfo implements Serializable,Cloneable{
24
+    
25
+    @ApiModelProperty(name = "公司法人代表信息id",notes = "")
26
+    @TableId(value = "company_legal_id", type = IdType.ASSIGN_UUID)
27
+    private String companyLegalId ;
28
+    
29
+    @ApiModelProperty(name = "公司id",notes = "")
30
+    private String companyId ;
31
+    
32
+    @ApiModelProperty(name = "租户号",notes = "")
33
+    private String tenantId ;
34
+    
35
+    @ApiModelProperty(name = "身份  conpanyDirector:企业董事,authorizedPerson:授权人",notes = "")
36
+    private String identity ;
37
+    
38
+    @ApiModelProperty(name = "企业董事国家",notes = "")
39
+    private String directorCountry ;
40
+    
41
+    @ApiModelProperty(name = "企业董事证件类型",notes = "")
42
+    private String directorIdType ;
43
+    
44
+    @ApiModelProperty(name = "企业董事证件正面",notes = "")
45
+    private byte[] directorIdFront ;
46
+    
47
+    @ApiModelProperty(name = "企业董事证件反面",notes = "")
48
+    private byte[] directorIdBack ;
49
+    
50
+    @NotBlank(message = "董事中文名不能为空")
51
+    @ApiModelProperty(name = "董事中文名",notes = "")
52
+    private byte[] directorNameCn ;
53
+    
54
+    @ApiModelProperty(name = "董事证件号码",notes = "")
55
+    private byte[] directorIdNo ;
56
+    
57
+    @ApiModelProperty(name = "创建人",notes = "")
58
+    @TableField(fill = FieldFill.INSERT)
59
+    private String createdBy ;
60
+    
61
+    @ApiModelProperty(name = "创建时间",notes = "")
62
+    @TableField(fill = FieldFill.INSERT)
63
+    private LocalDateTime createdAt ;
64
+    
65
+    @ApiModelProperty(name = "更新人",notes = "")
66
+    @TableField(fill = FieldFill.INSERT_UPDATE)
67
+    private String updatedBy ;
68
+    
69
+    @ApiModelProperty(name = "更新时间",notes = "")
70
+    @TableField(fill = FieldFill.INSERT_UPDATE)
71
+    private LocalDateTime updatedAt ;
72
+
73
+}

+ 16
- 0
repository/src/main/java/com/njyunzhi/repository/mapper/TaCompanyBeneficiaryInfoMapper.java 查看文件

@@ -0,0 +1,16 @@
1
+package com.njyunzhi.repository.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.Param;
6
+import com.njyunzhi.repository.entity.TaCompanyBeneficiaryInfo;
7
+
8
+ /**
9
+ * 受益所有人信息;(ta_company_beneficiary_info)表数据库访问层
10
+ * @author : http://njyunzhi.com
11
+ * @date : 2024-2-28
12
+ */
13
+@Mapper
14
+public interface TaCompanyBeneficiaryInfoMapper  extends BaseMapper<TaCompanyBeneficiaryInfo>{
15
+    
16
+}

+ 16
- 0
repository/src/main/java/com/njyunzhi/repository/mapper/TaCompanyInfoMapper.java 查看文件

@@ -0,0 +1,16 @@
1
+package com.njyunzhi.repository.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.njyunzhi.repository.entity.TaCompanyInfo;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * 公司基本信息;(ta_company_info)表数据库访问层
9
+ *
10
+ * @author : http://njyunzhi.com
11
+ * @date : 2024-2-28
12
+ */
13
+@Mapper
14
+public interface TaCompanyInfoMapper extends BaseMapper<TaCompanyInfo> {
15
+
16
+}

+ 16
- 0
repository/src/main/java/com/njyunzhi/repository/mapper/TaCompanyLegalInfoMapper.java 查看文件

@@ -0,0 +1,16 @@
1
+package com.njyunzhi.repository.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.Param;
6
+import com.njyunzhi.repository.entity.TaCompanyLegalInfo;
7
+
8
+ /**
9
+ * 公司法人代表信息;(ta_company_legal_info)表数据库访问层
10
+ * @author : http://njyunzhi.com
11
+ * @date : 2024-2-28
12
+ */
13
+@Mapper
14
+public interface TaCompanyLegalInfoMapper  extends BaseMapper<TaCompanyLegalInfo>{
15
+    
16
+}

+ 6
- 0
repository/src/main/resources/mapper/TaCompanyInfoMapper.xml 查看文件

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