张涛 пре 1 година
родитељ
комит
c155b0322b
46 измењених фајлова са 1161 додато и 1255 уклоњено
  1. 0
    139
      application/src/main/java/com/lyg/application/controller/CustomerBirthdayController.java
  2. 0
    142
      application/src/main/java/com/lyg/application/controller/CustomerBirthdayManageController.java
  3. 0
    120
      application/src/main/java/com/lyg/application/controller/CustomerPingLogController.java
  4. 120
    0
      application/src/main/java/com/lyg/application/controller/TaIncompatibleController.java
  5. 120
    0
      application/src/main/java/com/lyg/application/controller/TaMandatoryLeaveController.java
  6. 120
    0
      application/src/main/java/com/lyg/application/controller/TaRotationController.java
  7. 123
    123
      application/src/main/java/com/lyg/application/controller/UploadController.java
  8. 83
    83
      application/src/main/java/com/lyg/application/dao/UploadDataListener.java
  9. 61
    61
      application/src/main/java/com/lyg/application/dao/UploadDataListenerManage.java
  10. 32
    32
      application/src/main/java/com/lyg/application/dto/CustomerExcelDTO.java
  11. 35
    35
      application/src/main/java/com/lyg/application/dto/CustomerManageExcelDTO.java
  12. 0
    50
      application/src/main/java/com/lyg/application/entity/CustomerBirthday.java
  13. 0
    38
      application/src/main/java/com/lyg/application/entity/CustomerBirthdayManage.java
  14. 0
    31
      application/src/main/java/com/lyg/application/entity/CustomerPingLog.java
  15. 61
    0
      application/src/main/java/com/lyg/application/entity/TaIncompatible.java
  16. 105
    0
      application/src/main/java/com/lyg/application/entity/TaMandatoryLeave.java
  17. 133
    0
      application/src/main/java/com/lyg/application/entity/TaRotation.java
  18. 0
    33
      application/src/main/java/com/lyg/application/job/ProjectOrgDaily.java
  19. 0
    27
      application/src/main/java/com/lyg/application/mapper/CustomerBirthdayManageMapper.java
  20. 0
    24
      application/src/main/java/com/lyg/application/mapper/CustomerBirthdayMapper.java
  21. 0
    15
      application/src/main/java/com/lyg/application/mapper/CustomerPingLogMapper.java
  22. 16
    0
      application/src/main/java/com/lyg/application/mapper/TaIncompatibleMapper.java
  23. 16
    0
      application/src/main/java/com/lyg/application/mapper/TaMandatoryLeaveMapper.java
  24. 16
    0
      application/src/main/java/com/lyg/application/mapper/TaRotationMapper.java
  25. 0
    23
      application/src/main/java/com/lyg/application/service/CustomerBirthdayManageService.java
  26. 0
    21
      application/src/main/java/com/lyg/application/service/CustomerBirthdayService.java
  27. 0
    13
      application/src/main/java/com/lyg/application/service/CustomerPingLogService.java
  28. 14
    0
      application/src/main/java/com/lyg/application/service/TaIncompatibleService.java
  29. 14
    0
      application/src/main/java/com/lyg/application/service/TaMandatoryLeaveService.java
  30. 14
    0
      application/src/main/java/com/lyg/application/service/TaRotationService.java
  31. 0
    62
      application/src/main/java/com/lyg/application/service/impl/CustomerBirthdayManageServiceImpl.java
  32. 0
    69
      application/src/main/java/com/lyg/application/service/impl/CustomerBirthdayServiceImpl.java
  33. 0
    25
      application/src/main/java/com/lyg/application/service/impl/CustomerPingLogServiceImpl.java
  34. 18
    0
      application/src/main/java/com/lyg/application/service/impl/TaIncompatibleServiceImpl.java
  35. 18
    0
      application/src/main/java/com/lyg/application/service/impl/TaMandatoryLeaveServiceImpl.java
  36. 18
    0
      application/src/main/java/com/lyg/application/service/impl/TaRotationServiceImpl.java
  37. 0
    19
      application/src/main/java/com/lyg/application/vo/ReportFreqVO.java
  38. 3
    10
      application/src/main/resources/application.yml
  39. 0
    31
      application/src/main/resources/mapper/CustomerBirthdayManageMapper.xml
  40. 0
    17
      application/src/main/resources/mapper/CustomerBirthdayMapper.xml
  41. 1
    1
      application/src/main/resources/mapper/TaIncompatibleMapper.xml
  42. 6
    0
      application/src/main/resources/mapper/TaMandatoryLeaveMapper.xml
  43. 6
    0
      application/src/main/resources/mapper/TaRotationMapper.xml
  44. 5
    5
      common/pom.xml
  45. 1
    1
      pom.xml
  46. 2
    5
      system/src/main/java/com/lyg/system/controller/BaseController.java

+ 0
- 139
application/src/main/java/com/lyg/application/controller/CustomerBirthdayController.java Прегледај датотеку

@@ -1,139 +0,0 @@
1
-package com.lyg.application.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.lyg.application.entity.CustomerBirthday;
8
-import com.lyg.application.entity.CustomerBirthdayManage;
9
-import com.lyg.application.service.CustomerBirthdayService;
10
-import com.lyg.common.util.StringUtil;
11
-import com.lyg.framework.accesslimit.AccessLimit;
12
-import com.lyg.framework.log.OpLog;
13
-import com.lyg.system.controller.BaseController;
14
-import io.swagger.annotations.Api;
15
-import io.swagger.annotations.ApiOperation;
16
-import io.swagger.annotations.ApiParam;
17
-import org.springframework.beans.factory.annotation.Autowired;
18
-import org.springframework.validation.annotation.Validated;
19
-import org.springframework.web.bind.annotation.*;
20
-
21
-import java.util.List;
22
-
23
-/**
24
- * CustomerBirthday;(CustomerBirthday)表控制层
25
- *
26
- * @author : http://njyunzhi.com
27
- * @date : 2024-1-29
28
- */
29
-@Api(tags = "客户生日表对象功能接口")
30
-@RestController
31
-@RequestMapping("/")
32
-public class CustomerBirthdayController extends BaseController {
33
-
34
-    @Autowired
35
-    private CustomerBirthdayService customerBirthdayService;
36
-
37
-    /**
38
-     * 通过ID查询单条数据
39
-     *
40
-     * @param id 主键
41
-     * @return 实例对象
42
-     */
43
-    @OpLog(module = "CustomerBirthday", action = "查询单条数据", desc = "ID:{{#id}}")
44
-    @AccessLimit()
45
-    @ApiOperation("通过ID查询单条数据")
46
-    @GetMapping("/customerBir/{id}")
47
-    public SaResult queryById(@ApiParam("对象ID") @PathVariable String id) throws Exception {
48
-        return SaResult.data(customerBirthdayService.getById(id));
49
-    }
50
-
51
-    /**
52
-     * 分页查询
53
-     *
54
-     * @param pageNum  当前页码
55
-     * @param pageSize 每页条数
56
-     * @return 查询结果
57
-     */
58
-    @OpLog(module = "CustomerBirthday", action = "分页列表查询")
59
-    @AccessLimit()
60
-    @ApiOperation("分页查询")
61
-    @GetMapping("/customerBir")
62
-    public SaResult list(@ApiParam("页码") @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
63
-                         @ApiParam("单页数据量") @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
64
-//                         @ApiParam("身份证号") @RequestParam(value = "idNum", required = false) String idNum,
65
-                         @ApiParam("客户姓名") @RequestParam(value = "name", required = false) String name,
66
-                         @ApiParam("客户号") @RequestParam(value = "custId", required = false) String custId,
67
-                         @ApiParam("客户标志位辅助匹配客户经理") @RequestParam(value = "custClass", required = false) String custClass,
68
-                         @ApiParam("倒序排列") @RequestParam(value = "sortAsc", required = false) String sortAsc) throws Exception {
69
-
70
-        IPage<CustomerBirthday> pg = new Page<>(pageNum, pageSize);
71
-        QueryWrapper<CustomerBirthday> queryWrapper = new QueryWrapper<>();
72
-        queryWrapper.like(StringUtil.isNotEmpty(name), "name", name);
73
-        queryWrapper.like(StringUtil.isNotEmpty(custId), "cust_id", custId);
74
-        queryWrapper.like(StringUtil.isNotEmpty(custClass), "cust_class", custClass);
75
-        queryWrapper.orderByDesc("cust_id");
76
-        IPage<CustomerBirthday> result = customerBirthdayService.page(pg, queryWrapper);
77
-
78
-        return SaResult.data(result);
79
-    }
80
-
81
-    /**
82
-     * 新增数据
83
-     *
84
-     * @param customerBirthday 实例对象
85
-     * @return 实例对象
86
-     */
87
-    @OpLog(module = "CustomerBirthday", action = "新增数据")
88
-    @AccessLimit()
89
-    @ApiOperation("新增数据")
90
-    @PostMapping("/customerBir")
91
-    public SaResult add(@ApiParam("对象实体") @Validated @RequestBody CustomerBirthday customerBirthday) throws Exception {
92
-        String idNum = customerBirthday.getIdNum();
93
-
94
-        QueryWrapper<CustomerBirthday> queryWrapper = new QueryWrapper<>();
95
-        queryWrapper.eq("id_num", idNum);
96
-        List<CustomerBirthday> customerBirthdayList = customerBirthdayService.list(queryWrapper);
97
-
98
-        if (customerBirthdayList.size() >= 1) {
99
-            throw new Exception("请勿重复录入客户");
100
-        }
101
-
102
-        customerBirthdayService.save(customerBirthday);
103
-        return SaResult.data(customerBirthday);
104
-    }
105
-
106
-    /**
107
-     * 更新数据
108
-     *
109
-     * @param customerBirthday 实例对象
110
-     * @return 实例对象
111
-     */
112
-    @OpLog(module = "CustomerBirthday", action = "更新数据")
113
-    @AccessLimit()
114
-    @ApiOperation("更新数据")
115
-    @PutMapping("/customerBir/{id}")
116
-    public SaResult edit(@ApiParam("对象实体") @Validated @RequestBody CustomerBirthday customerBirthday,
117
-                         @ApiParam("对象ID") @PathVariable String id) throws Exception {
118
-        customerBirthday.setCustId(id);
119
-        customerBirthdayService.updateById(customerBirthday);
120
-        return SaResult.data(customerBirthday);
121
-    }
122
-
123
-    /**
124
-     * 通过主键删除数据
125
-     *
126
-     * @param id 主键
127
-     * @return 是否成功
128
-     */
129
-    @OpLog(module = "CustomerBirthday", action = "删除数据", desc = "ID:{{#id}}")
130
-    @AccessLimit()
131
-    @ApiOperation("通过主键删除数据")
132
-    @DeleteMapping("/customerBir/{id}")
133
-    public SaResult deleteById(@ApiParam("对象ID") @PathVariable String id) {
134
-        customerBirthdayService.removeById(id);
135
-        return SaResult.data("success");
136
-    }
137
-
138
-
139
-}

+ 0
- 142
application/src/main/java/com/lyg/application/controller/CustomerBirthdayManageController.java Прегледај датотеку

@@ -1,142 +0,0 @@
1
-package com.lyg.application.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.lyg.application.entity.CustomerBirthdayManage;
8
-import com.lyg.application.service.CustomerBirthdayManageService;
9
-import com.lyg.common.util.StringUtil;
10
-import com.lyg.framework.accesslimit.AccessLimit;
11
-import com.lyg.framework.log.OpLog;
12
-import com.lyg.system.controller.BaseController;
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
-import java.util.List;
21
-
22
-/**
23
- * 客户生日维护经理表;(客户生日维护经理表)表控制层
24
- *
25
- * @author : http://njyunzhi.com
26
- * @date : 2024-1-29
27
- */
28
-@Api(tags = "客户生日维护经理表对象功能接口")
29
-@RestController
30
-@RequestMapping("/")
31
-public class CustomerBirthdayManageController extends BaseController {
32
-
33
-    @Autowired
34
-    private CustomerBirthdayManageService customerBirthdayManageService;
35
-
36
-    /**
37
-     * 通过ID查询单条数据
38
-     *
39
-     * @param phone 主键
40
-     * @return 实例对象
41
-     */
42
-    @OpLog(module = "客户生日维护经理表", action = "查询单条数据", desc = "ID:{{#id}}")
43
-    @AccessLimit()
44
-    @ApiOperation("通过ID查询单条数据")
45
-    @GetMapping("/customerBirManage/{phone}")
46
-    public SaResult queryById(@ApiParam("对象phone") @PathVariable String phone) throws Exception {
47
-
48
-        CustomerBirthdayManage customerBirthdayManage = customerBirthdayManageService.getByPhone(phone);
49
-
50
-
51
-        return SaResult.data(customerBirthdayManage);
52
-    }
53
-
54
-    /**
55
-     * 分页查询
56
-     *
57
-     * @param pageNum  当前页码
58
-     * @param pageSize 每页条数
59
-     * @return 查询结果
60
-     */
61
-    @OpLog(module = "客户生日维护经理表", action = "分页列表查询")
62
-    @AccessLimit()
63
-    @ApiOperation("分页查询")
64
-    @GetMapping("/customerBirManage")
65
-    public SaResult list(@ApiParam("页码") @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
66
-                         @ApiParam("单页数据量") @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
67
-                         @ApiParam("手机号") @RequestParam(value = "phoneNo", required = false) Integer phoneNo,
68
-                         @ApiParam("员工姓名") @RequestParam(value = "name", required = false) String name,
69
-                         @ApiParam("客户标志位辅助匹配客户经理") @RequestParam(value = "custClass", required = false) String custClass,
70
-                         @ApiParam("正序排列") @RequestParam(value = "sortAsc", required = false) String sortAsc
71
-    ) throws Exception {
72
-
73
-        IPage<CustomerBirthdayManage> pg = new Page<>(pageNum, pageSize);
74
-        QueryWrapper<CustomerBirthdayManage> queryWrapper = new QueryWrapper<>();
75
-        queryWrapper.like(StringUtil.isNotEmpty(name), "name", name);
76
-        queryWrapper.like(StringUtil.isNotEmpty(custClass), "cust_class", custClass);
77
-        queryWrapper.like(StringUtil.isNotEmpty(String.valueOf(phoneNo)), "phone_no", phoneNo);
78
-        queryWrapper.orderByAsc(StringUtil.isNotEmpty(sortAsc), StringUtil.humpToLine(sortAsc));
79
-        IPage<CustomerBirthdayManage> result = customerBirthdayManageService.page(pg, queryWrapper);
80
-
81
-        return SaResult.data(result);
82
-    }
83
-
84
-    /**
85
-     * 新增数据
86
-     *
87
-     * @param customerBirthdayManage 实例对象
88
-     * @return 实例对象
89
-     */
90
-    @OpLog(module = "客户生日维护经理表", action = "新增数据")
91
-    @AccessLimit()
92
-    @ApiOperation("新增数据")
93
-    @PostMapping("/customerBirManage")
94
-    public SaResult add(@ApiParam("对象实体") @Validated @RequestBody CustomerBirthdayManage customerBirthdayManage) throws Exception {
95
-        Integer phone = customerBirthdayManage.getPhoneNo();
96
-        QueryWrapper<CustomerBirthdayManage> queryWrapper = new QueryWrapper<>();
97
-        queryWrapper.eq("phone_no", phone);
98
-        List<CustomerBirthdayManage> customerBirthdayManageList = customerBirthdayManageService.list(queryWrapper);
99
-
100
-        if (customerBirthdayManageList.size() >= 1) {
101
-            throw new Exception("请勿重复");
102
-        }
103
-
104
-
105
-        customerBirthdayManageService.save(customerBirthdayManage);
106
-        return SaResult.data(customerBirthdayManage);
107
-    }
108
-
109
-    /**
110
-     * 更新数据
111
-     *
112
-     * @param customerBirthdayManage 实例对象
113
-     * @return 实例对象
114
-     */
115
-    @OpLog(module = "客户生日维护经理表", action = "更新数据")
116
-    @AccessLimit()
117
-    @ApiOperation("更新数据")
118
-    @PutMapping("/customerBirManage/{phone}")
119
-    public SaResult edit(@ApiParam("对象实体") @Validated @RequestBody CustomerBirthdayManage customerBirthdayManage,
120
-                         @ApiParam("对象手机号") @PathVariable String phone) throws Exception {
121
-        QueryWrapper<CustomerBirthdayManage> queryWrapper = new QueryWrapper<>();
122
-        queryWrapper.eq("phone_no", phone);
123
-
124
-        customerBirthdayManageService.update(customerBirthdayManage, queryWrapper);
125
-        return SaResult.data(customerBirthdayManage);
126
-    }
127
-
128
-    /**
129
-     * 通过主键删除数据
130
-     *
131
-     * @param phone 主键
132
-     * @return 是否成功
133
-     */
134
-    @OpLog(module = "客户生日维护经理表", action = "删除数据", desc = "ID:{{#id}}")
135
-    @AccessLimit()
136
-    @ApiOperation("通过主键删除数据")
137
-    @DeleteMapping("/customerBirManage/{phone}")
138
-    public SaResult deleteById(@ApiParam("对象手机号") @PathVariable String phone) {
139
-        customerBirthdayManageService.removeByPhone(phone);
140
-        return SaResult.data("success");
141
-    }
142
-}

+ 0
- 120
application/src/main/java/com/lyg/application/controller/CustomerPingLogController.java Прегледај датотеку

@@ -1,120 +0,0 @@
1
-package com.lyg.application.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.lyg.application.entity.CustomerPingLog;
8
-import com.lyg.application.service.CustomerPingLogService;
9
-import com.lyg.common.util.StringUtil;
10
-import com.lyg.framework.accesslimit.AccessLimit;
11
-import com.lyg.framework.log.OpLog;
12
-import com.lyg.system.controller.BaseController;
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
- * CustomerPingLog;(CustomerPingLog)表控制层
22
- *
23
- * @author : http://njyunzhi.com
24
- * @date : 2024-1-29
25
- */
26
-@Api(tags = "营销维护客户发送日志对象功能接口")
27
-@RestController
28
-@RequestMapping("/")
29
-public class CustomerPingLogController extends BaseController {
30
-
31
-    @Autowired
32
-    private CustomerPingLogService customerPingLogService;
33
-
34
-    /**
35
-     * 通过ID查询单条数据
36
-     *
37
-     * @param id 主键
38
-     * @return 实例对象
39
-     */
40
-    @OpLog(module = "CustomerPingLog", action = "查询单条数据", desc = "ID:{{#id}}")
41
-    @AccessLimit()
42
-    @ApiOperation("通过ID查询单条数据")
43
-    @GetMapping("/customerPingLog/{id}")
44
-    public SaResult queryById(@ApiParam("对象ID") @PathVariable String id) throws Exception {
45
-        return SaResult.data(customerPingLogService.getById(id));
46
-    }
47
-
48
-    /**
49
-     * 分页查询
50
-     *
51
-     * @param pageNum  当前页码
52
-     * @param pageSize 每页条数
53
-     * @return 查询结果
54
-     */
55
-    @OpLog(module = "CustomerPingLog", action = "分页列表查询")
56
-    @AccessLimit()
57
-    @ApiOperation("分页查询")
58
-    @GetMapping("/customerPingLog")
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 = "startDate", required = false) String startDate,
62
-                         @ApiParam("结束日期") @RequestParam(value = "endDate", required = false) String endDate,
63
-                         @ApiParam("倒序排列") @RequestParam(value = "sortDesc", required = false) String sortDesc) throws Exception {
64
-
65
-        IPage<CustomerPingLog> pg = new Page<>(pageNum, pageSize);
66
-        QueryWrapper<CustomerPingLog> queryWrapper = new QueryWrapper<>();
67
-        queryWrapper.ge(StringUtil.isNotEmpty(startDate), "TO_CHAR(rksj,'YYYY-MM-DD')", startDate).le(StringUtil.isNotEmpty(endDate), "TO_CHAR(rksj,'YYYY-MM-DD')", endDate);
68
-        queryWrapper.orderByDesc("rksj");
69
-        IPage<CustomerPingLog> result = customerPingLogService.page(pg, queryWrapper);
70
-
71
-        return SaResult.data(result);
72
-    }
73
-
74
-    /**
75
-     * 新增数据
76
-     *
77
-     * @param CustomerPingLog 实例对象
78
-     * @return 实例对象
79
-     */
80
-    @OpLog(module = "CustomerPingLog", action = "新增数据")
81
-    @AccessLimit()
82
-    @ApiOperation("新增数据")
83
-    @PostMapping("/CustomerPingLog")
84
-    public SaResult add(@ApiParam("对象实体") @Validated @RequestBody CustomerPingLog CustomerPingLog) throws Exception {
85
-        customerPingLogService.save(CustomerPingLog);
86
-        return SaResult.data(CustomerPingLog);
87
-    }
88
-
89
-    /**
90
-     * 更新数据
91
-     *
92
-     * @param CustomerPingLog 实例对象
93
-     * @return 实例对象
94
-     */
95
-    @OpLog(module = "CustomerPingLog", action = "更新数据")
96
-    @AccessLimit()
97
-    @ApiOperation("更新数据")
98
-    @PutMapping("/customerPingLog/{id}")
99
-    public SaResult edit(@ApiParam("对象实体") @Validated @RequestBody CustomerPingLog CustomerPingLog,
100
-                         @ApiParam("对象ID") @PathVariable String id) throws Exception {
101
-//        CustomerPingLog.setUndefinedId(id);
102
-        customerPingLogService.updateById(CustomerPingLog);
103
-        return SaResult.data(CustomerPingLog);
104
-    }
105
-
106
-    /**
107
-     * 通过主键删除数据
108
-     *
109
-     * @param id 主键
110
-     * @return 是否成功
111
-     */
112
-    @OpLog(module = "CustomerPingLog", action = "删除数据", desc = "ID:{{#id}}")
113
-    @AccessLimit()
114
-    @ApiOperation("通过主键删除数据")
115
-    @DeleteMapping("/customerPingLog/{id}")
116
-    public SaResult deleteById(@ApiParam("对象ID") @PathVariable String id) {
117
-        customerPingLogService.removeById(id);
118
-        return SaResult.data("success");
119
-    }
120
-}

+ 120
- 0
application/src/main/java/com/lyg/application/controller/TaIncompatibleController.java Прегледај датотеку

@@ -0,0 +1,120 @@
1
+package com.lyg.application.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 java.util.List;
8
+import com.lyg.common.Constants;
9
+import com.lyg.common.util.StringUtil;
10
+import com.lyg.framework.log.OpLog;
11
+import com.lyg.system.controller.BaseController;
12
+import com.lyg.framework.accesslimit.AccessLimit;
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
+import com.lyg.application.entity.TaIncompatible;
20
+import com.lyg.application.service.TaIncompatibleService;
21
+
22
+ /**
23
+ * 不相容;(ta_incompatible)表控制层
24
+ * @author : http://njyunzhi.com
25
+ * @date : 2024-3-6
26
+ */
27
+@Api(tags = "不相容对象功能接口")
28
+@RestController
29
+@RequestMapping("/")
30
+public class TaIncompatibleController extends BaseController {
31
+    
32
+    @Autowired
33
+    private TaIncompatibleService taIncompatibleService;
34
+    
35
+    /** 
36
+     * 通过ID查询单条数据 
37
+     *
38
+     * @param id 主键
39
+     * @return 实例对象
40
+     */
41
+    @OpLog(module = "不相容", action = "查询单条数据", desc = "ID:{{#id}}")
42
+    @AccessLimit()
43
+    @ApiOperation("通过ID查询单条数据")
44
+    @GetMapping("/taIncompatible/{id}")
45
+    public SaResult queryById(@ApiParam("对象ID") @PathVariable String id) throws Exception {
46
+        return SaResult.data(taIncompatibleService.getById(id));
47
+    }
48
+    
49
+    /** 
50
+     * 分页查询
51
+     *
52
+     * @param pageNum 当前页码
53
+     * @param pageSize 每页条数
54
+     * @return 查询结果
55
+     */
56
+    @OpLog(module = "不相容", action = "分页列表查询")
57
+    @AccessLimit()
58
+    @ApiOperation("分页查询")
59
+    @GetMapping("/taIncompatible")
60
+    public SaResult list(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
61
+                            @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
62
+                            @ApiParam("正序排列") @RequestParam(value ="sortAsc", required = false) String sortAsc,
63
+                         @ApiParam("倒序排列") @RequestParam(value ="sortDesc", defaultValue = "created_date") String sortDesc) throws Exception {
64
+        
65
+        IPage<TaIncompatible> pg = new Page<>(pageNum, pageSize);
66
+        QueryWrapper<TaIncompatible> queryWrapper = new QueryWrapper<>();
67
+        queryWrapper.orderByAsc(StringUtil.isNotEmpty(sortAsc), StringUtil.humpToLine(sortAsc));
68
+        queryWrapper.orderByDesc(StringUtil.isNotEmpty(sortDesc), StringUtil.humpToLine(sortDesc));
69
+        IPage<TaIncompatible> result = taIncompatibleService.page(pg, queryWrapper);
70
+        
71
+        return SaResult.data(result);
72
+    }
73
+    
74
+    /** 
75
+     * 新增数据
76
+     *
77
+     * @param taIncompatible 实例对象
78
+     * @return 实例对象
79
+     */
80
+    @OpLog(module = "不相容", action = "新增数据")
81
+    @AccessLimit()
82
+    @ApiOperation("新增数据")
83
+    @PostMapping("/taIncompatible")
84
+    public SaResult add(@ApiParam("对象实体") @Validated @RequestBody TaIncompatible taIncompatible) throws Exception {
85
+        taIncompatibleService.save(taIncompatible);
86
+        return SaResult.data(taIncompatible);
87
+    }
88
+    
89
+    /** 
90
+     * 更新数据
91
+     *
92
+     * @param taIncompatible 实例对象
93
+     * @return 实例对象
94
+     */
95
+    @OpLog(module = "不相容", action = "更新数据")
96
+    @AccessLimit()
97
+    @ApiOperation("更新数据")
98
+    @PutMapping("/taIncompatible/{id}")
99
+    public SaResult edit(@ApiParam("对象实体") @Validated @RequestBody TaIncompatible taIncompatible,
100
+                            @ApiParam("对象ID") @PathVariable String id ) throws Exception {
101
+        taIncompatible.setIncompatibleId(id);
102
+        taIncompatibleService.updateById(taIncompatible);
103
+        return SaResult.data(taIncompatible);
104
+    }
105
+    
106
+    /** 
107
+     * 通过主键删除数据
108
+     *
109
+     * @param id 主键
110
+     * @return 是否成功
111
+     */
112
+    @OpLog(module = "不相容", action = "删除数据", desc = "ID:{{#id}}")
113
+    @AccessLimit()
114
+    @ApiOperation("通过主键删除数据")
115
+    @DeleteMapping("/taIncompatible/{id}")
116
+    public SaResult deleteById(@ApiParam("对象ID") @PathVariable String id){
117
+        taIncompatibleService.removeById(id);
118
+        return SaResult.data("success");
119
+    }
120
+}

+ 120
- 0
application/src/main/java/com/lyg/application/controller/TaMandatoryLeaveController.java Прегледај датотеку

@@ -0,0 +1,120 @@
1
+package com.lyg.application.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 java.util.List;
8
+import com.lyg.common.Constants;
9
+import com.lyg.common.util.StringUtil;
10
+import com.lyg.framework.log.OpLog;
11
+import com.lyg.system.controller.BaseController;
12
+import com.lyg.framework.accesslimit.AccessLimit;
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
+import com.lyg.application.entity.TaMandatoryLeave;
20
+import com.lyg.application.service.TaMandatoryLeaveService;
21
+
22
+ /**
23
+ * 强制休假表;(ta_mandatory_leave)表控制层
24
+ * @author : http://njyunzhi.com
25
+ * @date : 2024-3-6
26
+ */
27
+@Api(tags = "强制休假表对象功能接口")
28
+@RestController
29
+@RequestMapping("/")
30
+public class TaMandatoryLeaveController extends BaseController {
31
+    
32
+    @Autowired
33
+    private TaMandatoryLeaveService taMandatoryLeaveService;
34
+    
35
+    /** 
36
+     * 通过ID查询单条数据 
37
+     *
38
+     * @param id 主键
39
+     * @return 实例对象
40
+     */
41
+    @OpLog(module = "强制休假表", action = "查询单条数据", desc = "ID:{{#id}}")
42
+    @AccessLimit()
43
+    @ApiOperation("通过ID查询单条数据")
44
+    @GetMapping("/taMandatoryLeave/{id}")
45
+    public SaResult queryById(@ApiParam("对象ID") @PathVariable String id) throws Exception {
46
+        return SaResult.data(taMandatoryLeaveService.getById(id));
47
+    }
48
+    
49
+    /** 
50
+     * 分页查询
51
+     *
52
+     * @param pageNum 当前页码
53
+     * @param pageSize 每页条数
54
+     * @return 查询结果
55
+     */
56
+    @OpLog(module = "强制休假表", action = "分页列表查询")
57
+    @AccessLimit()
58
+    @ApiOperation("分页查询")
59
+    @GetMapping("/taMandatoryLeave")
60
+    public SaResult list(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
61
+                            @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
62
+                            @ApiParam("正序排列") @RequestParam(value ="sortAsc", required = false) String sortAsc,
63
+                         @ApiParam("倒序排列") @RequestParam(value ="sortDesc", defaultValue = "created_date") String sortDesc) throws Exception {
64
+        
65
+        IPage<TaMandatoryLeave> pg = new Page<>(pageNum, pageSize);
66
+        QueryWrapper<TaMandatoryLeave> queryWrapper = new QueryWrapper<>();
67
+        queryWrapper.orderByAsc(StringUtil.isNotEmpty(sortAsc), StringUtil.humpToLine(sortAsc));
68
+        queryWrapper.orderByDesc(StringUtil.isNotEmpty(sortDesc), StringUtil.humpToLine(sortDesc));
69
+        IPage<TaMandatoryLeave> result = taMandatoryLeaveService.page(pg, queryWrapper);
70
+        
71
+        return SaResult.data(result);
72
+    }
73
+    
74
+    /** 
75
+     * 新增数据
76
+     *
77
+     * @param taMandatoryLeave 实例对象
78
+     * @return 实例对象
79
+     */
80
+    @OpLog(module = "强制休假表", action = "新增数据")
81
+    @AccessLimit()
82
+    @ApiOperation("新增数据")
83
+    @PostMapping("/taMandatoryLeave")
84
+    public SaResult add(@ApiParam("对象实体") @Validated @RequestBody TaMandatoryLeave taMandatoryLeave) throws Exception {
85
+        taMandatoryLeaveService.save(taMandatoryLeave);
86
+        return SaResult.data(taMandatoryLeave);
87
+    }
88
+    
89
+    /** 
90
+     * 更新数据
91
+     *
92
+     * @param taMandatoryLeave 实例对象
93
+     * @return 实例对象
94
+     */
95
+    @OpLog(module = "强制休假表", action = "更新数据")
96
+    @AccessLimit()
97
+    @ApiOperation("更新数据")
98
+    @PutMapping("/taMandatoryLeave/{id}")
99
+    public SaResult edit(@ApiParam("对象实体") @Validated @RequestBody TaMandatoryLeave taMandatoryLeave,
100
+                            @ApiParam("对象ID") @PathVariable String id ) throws Exception {
101
+        taMandatoryLeave.setLeaveId(id);
102
+        taMandatoryLeaveService.updateById(taMandatoryLeave);
103
+        return SaResult.data(taMandatoryLeave);
104
+    }
105
+    
106
+    /** 
107
+     * 通过主键删除数据
108
+     *
109
+     * @param id 主键
110
+     * @return 是否成功
111
+     */
112
+    @OpLog(module = "强制休假表", action = "删除数据", desc = "ID:{{#id}}")
113
+    @AccessLimit()
114
+    @ApiOperation("通过主键删除数据")
115
+    @DeleteMapping("/taMandatoryLeave/{id}")
116
+    public SaResult deleteById(@ApiParam("对象ID") @PathVariable String id){
117
+        taMandatoryLeaveService.removeById(id);
118
+        return SaResult.data("success");
119
+    }
120
+}

+ 120
- 0
application/src/main/java/com/lyg/application/controller/TaRotationController.java Прегледај датотеку

@@ -0,0 +1,120 @@
1
+package com.lyg.application.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 java.util.List;
8
+import com.lyg.common.Constants;
9
+import com.lyg.common.util.StringUtil;
10
+import com.lyg.framework.log.OpLog;
11
+import com.lyg.system.controller.BaseController;
12
+import com.lyg.framework.accesslimit.AccessLimit;
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
+import com.lyg.application.entity.TaRotation;
20
+import com.lyg.application.service.TaRotationService;
21
+
22
+ /**
23
+ * 轮岗列表;(ta_rotation)表控制层
24
+ * @author : http://njyunzhi.com
25
+ * @date : 2024-3-6
26
+ */
27
+@Api(tags = "轮岗列表对象功能接口")
28
+@RestController
29
+@RequestMapping("/")
30
+public class TaRotationController extends BaseController {
31
+    
32
+    @Autowired
33
+    private TaRotationService taRotationService;
34
+    
35
+    /** 
36
+     * 通过ID查询单条数据 
37
+     *
38
+     * @param id 主键
39
+     * @return 实例对象
40
+     */
41
+    @OpLog(module = "轮岗列表", action = "查询单条数据", desc = "ID:{{#id}}")
42
+    @AccessLimit()
43
+    @ApiOperation("通过ID查询单条数据")
44
+    @GetMapping("/taRotation/{id}")
45
+    public SaResult queryById(@ApiParam("对象ID") @PathVariable String id) throws Exception {
46
+        return SaResult.data(taRotationService.getById(id));
47
+    }
48
+    
49
+    /** 
50
+     * 分页查询
51
+     *
52
+     * @param pageNum 当前页码
53
+     * @param pageSize 每页条数
54
+     * @return 查询结果
55
+     */
56
+    @OpLog(module = "轮岗列表", action = "分页列表查询")
57
+    @AccessLimit()
58
+    @ApiOperation("分页查询")
59
+    @GetMapping("/taRotation")
60
+    public SaResult list(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
61
+                            @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
62
+                            @ApiParam("正序排列") @RequestParam(value ="sortAsc", required = false) String sortAsc,
63
+                         @ApiParam("倒序排列") @RequestParam(value ="sortDesc", defaultValue = "created_date") String sortDesc) throws Exception {
64
+        
65
+        IPage<TaRotation> pg = new Page<>(pageNum, pageSize);
66
+        QueryWrapper<TaRotation> queryWrapper = new QueryWrapper<>();
67
+        queryWrapper.orderByAsc(StringUtil.isNotEmpty(sortAsc), StringUtil.humpToLine(sortAsc));
68
+        queryWrapper.orderByDesc(StringUtil.isNotEmpty(sortDesc), StringUtil.humpToLine(sortDesc));
69
+        IPage<TaRotation> result = taRotationService.page(pg, queryWrapper);
70
+        
71
+        return SaResult.data(result);
72
+    }
73
+    
74
+    /** 
75
+     * 新增数据
76
+     *
77
+     * @param taRotation 实例对象
78
+     * @return 实例对象
79
+     */
80
+    @OpLog(module = "轮岗列表", action = "新增数据")
81
+    @AccessLimit()
82
+    @ApiOperation("新增数据")
83
+    @PostMapping("/taRotation")
84
+    public SaResult add(@ApiParam("对象实体") @Validated @RequestBody TaRotation taRotation) throws Exception {
85
+        taRotationService.save(taRotation);
86
+        return SaResult.data(taRotation);
87
+    }
88
+    
89
+    /** 
90
+     * 更新数据
91
+     *
92
+     * @param taRotation 实例对象
93
+     * @return 实例对象
94
+     */
95
+    @OpLog(module = "轮岗列表", action = "更新数据")
96
+    @AccessLimit()
97
+    @ApiOperation("更新数据")
98
+    @PutMapping("/taRotation/{id}")
99
+    public SaResult edit(@ApiParam("对象实体") @Validated @RequestBody TaRotation taRotation,
100
+                            @ApiParam("对象ID") @PathVariable String id ) throws Exception {
101
+        taRotation.setRotationId(id);
102
+        taRotationService.updateById(taRotation);
103
+        return SaResult.data(taRotation);
104
+    }
105
+    
106
+    /** 
107
+     * 通过主键删除数据
108
+     *
109
+     * @param id 主键
110
+     * @return 是否成功
111
+     */
112
+    @OpLog(module = "轮岗列表", action = "删除数据", desc = "ID:{{#id}}")
113
+    @AccessLimit()
114
+    @ApiOperation("通过主键删除数据")
115
+    @DeleteMapping("/taRotation/{id}")
116
+    public SaResult deleteById(@ApiParam("对象ID") @PathVariable String id){
117
+        taRotationService.removeById(id);
118
+        return SaResult.data("success");
119
+    }
120
+}

+ 123
- 123
application/src/main/java/com/lyg/application/controller/UploadController.java Прегледај датотеку

@@ -1,134 +1,134 @@
1
-package com.lyg.application.controller;
2
-
3
-import cn.dev33.satoken.util.SaResult;
4
-import com.alibaba.excel.EasyExcel;
5
-import com.lyg.application.dao.UploadDataListener;
6
-import com.lyg.application.dao.UploadDataListenerManage;
7
-import com.lyg.application.dto.CustomerExcelDTO;
8
-import com.lyg.application.dto.CustomerManageExcelDTO;
9
-import com.lyg.application.service.CustomerBirthdayManageService;
10
-import com.lyg.application.service.CustomerBirthdayService;
11
-import com.lyg.framework.accesslimit.AccessLimit;
12
-import com.lyg.framework.log.OpLog;
13
-import com.lyg.system.controller.BaseController;
14
-import io.swagger.annotations.Api;
15
-import io.swagger.annotations.ApiOperation;
16
-import io.swagger.annotations.ApiParam;
17
-import lombok.SneakyThrows;
18
-import org.springframework.beans.factory.annotation.Autowired;
19
-import org.springframework.transaction.annotation.Transactional;
20
-import org.springframework.web.bind.annotation.*;
21
-import org.springframework.web.multipart.MultipartFile;
22
-
23
-import javax.servlet.http.HttpServletResponse;
24
-import java.io.File;
25
-import java.io.IOException;
26
-import java.io.InputStream;
27
-import java.util.HashMap;
28
-import java.util.Map;
29
-
30
-
31
-/**
32
- * 客户生日维护经理表;(客户生日维护经理表)表控制层
33
- *
34
- * @author : http://njyunzhi.com
35
- * @date : 2024-1-29
36
- */
37
-@Api(tags = "上传")
38
-@RestController
39
-@RequestMapping("/")
40
-@ResponseBody
41
-public class UploadController extends BaseController {
42
-
43
-
44
-    @Autowired
45
-    private CustomerBirthdayService customerBirthdayService;
46
-    @Autowired
47
-    private CustomerBirthdayManageService customerBirthdayManageService;
48
-//    @Autowired
49
-//    private CustomerBirthDAO customerBirthDAO;
1
+//package com.lyg.application.controller;
2
+//
3
+//import cn.dev33.satoken.util.SaResult;
4
+//import com.alibaba.excel.EasyExcel;
5
+//import com.lyg.application.dao.UploadDataListener;
6
+//import com.lyg.application.dao.UploadDataListenerManage;
7
+//import com.lyg.application.dto.CustomerExcelDTO;
8
+//import com.lyg.application.dto.CustomerManageExcelDTO;
9
+//import com.lyg.application.service.CustomerBirthdayManageService;
10
+//import com.lyg.application.service.CustomerBirthdayService;
11
+//import com.lyg.framework.accesslimit.AccessLimit;
12
+//import com.lyg.framework.log.OpLog;
13
+//import com.lyg.system.controller.BaseController;
14
+//import io.swagger.annotations.Api;
15
+//import io.swagger.annotations.ApiOperation;
16
+//import io.swagger.annotations.ApiParam;
17
+//import lombok.SneakyThrows;
18
+//import org.springframework.beans.factory.annotation.Autowired;
19
+//import org.springframework.transaction.annotation.Transactional;
20
+//import org.springframework.web.bind.annotation.*;
21
+//import org.springframework.web.multipart.MultipartFile;
22
+//
23
+//import javax.servlet.http.HttpServletResponse;
24
+//import java.io.File;
25
+//import java.io.IOException;
26
+//import java.io.InputStream;
27
+//import java.util.HashMap;
28
+//import java.util.Map;
29
+//
30
+//
31
+///**
32
+// * 客户生日维护经理表;(客户生日维护经理表)表控制层
33
+// *
34
+// * @author : http://njyunzhi.com
35
+// * @date : 2024-1-29
36
+// */
37
+//@Api(tags = "上传")
38
+//@RestController
39
+//@RequestMapping("/")
40
+//@ResponseBody
41
+//public class UploadController extends BaseController {
50 42
 //
51 43
 //
52 44
 //    @Autowired
53
-//    private CustomerBirthManageDAO customerBirthManageDAO;
54
-
55
-
56
-    @AccessLimit()
57
-    @ApiOperation("上传文件")
58
-    @PostMapping("/upload")
59
-    public SaResult upload(@ApiParam("文件") @RequestParam("file") MultipartFile file) throws IOException {
60
-        if (file.isEmpty()) {//检查文件是否为空
61
-            throw new IllegalArgumentException("文件不能为空");
62
-
63
-        }
64
-        try {
65
-            InputStream inputStream = file.getInputStream();
66
-            EasyExcel.read(inputStream, CustomerExcelDTO.class, new UploadDataListener(customerBirthdayService)).sheet(0).doReadSync();
67
-            return SaResult.data("操作成功");
68
-        } catch (Exception e) {
69
-            e.printStackTrace();
70
-            return SaResult.error("读取文件失败: " + e.getMessage());
71
-        }
72
-
73
-
74
-    }
75
-
76
-
77
-    @AccessLimit()
78
-    @ApiOperation("上传文件")
79
-    @PostMapping("/uploadManage")
80
-
81
-    public SaResult uploadManage(@ApiParam("文件") @RequestParam("file") MultipartFile file) throws IOException {
82
-        if (file.isEmpty()) {//检查文件是否为空
83
-            new Exception("文件不能为空");
84
-        }
85
-        try {
86
-            EasyExcel.read(file.getInputStream(), CustomerManageExcelDTO.class, new UploadDataListenerManage(customerBirthdayManageService)).sheet().doRead();
87
-            return SaResult.data("操作成功");
88
-        } catch (Exception e) {
89
-            e.printStackTrace();
90
-            return SaResult.error("读取文件失败: " + e.getMessage());
91
-        }
92
-
93
-    }
94
-
95
-
96
-    @OpLog(module = "CustomerBirthday", action = "客户生日表模板下载")
97
-    @AccessLimit()
98
-    @ApiOperation("CustomerBirthday")
99
-    @GetMapping(value = "/downloadBirth")
100
-    public SaResult downloadBirth(HttpServletResponse response) throws IOException {
101
-        Map<String, Object> params = new HashMap<>();
102
-        String fileName = "CustomerBirthday.xlsx";
103
-
104
-        File file = new File("application/src/main/resources/" + fileName);
105
-
106
-        params.put("fileName", fileName);
107
-        params.put("file", file);
108
-        return SaResult.data(params);
109
-
110
-
111
-    }
112
-
113
-    @OpLog(module = "客户生日维护经理表", action = "客户生日维护经理表模板下载")
114
-    @AccessLimit()
115
-    @ApiOperation("客户生日维护经理表")
116
-    @GetMapping(value = "/downloadBirManage")
117
-    public SaResult downloadBirManage(HttpServletResponse response) {
118
-//        Map<String, Object> params = new HashMap<>();
45
+//    private CustomerBirthdayService customerBirthdayService;
46
+//    @Autowired
47
+//    private CustomerBirthdayManageService customerBirthdayManageService;
48
+////    @Autowired
49
+////    private CustomerBirthDAO customerBirthDAO;
50
+////
51
+////
52
+////    @Autowired
53
+////    private CustomerBirthManageDAO customerBirthManageDAO;
54
+//
119 55
 //
120
-//        String fileName = "/客户生日维护经理表.xlsx";
121
-//        File file = null;
56
+//    @AccessLimit()
57
+//    @ApiOperation("上传文件")
58
+//    @PostMapping("/upload")
59
+//    public SaResult upload(@ApiParam("文件") @RequestParam("file") MultipartFile file) throws IOException {
60
+//        if (file.isEmpty()) {//检查文件是否为空
61
+//            throw new IllegalArgumentException("文件不能为空");
62
+//
63
+//        }
122 64
 //        try {
123
-//            file = DownloadExcel.download(response, fileName);
65
+//            InputStream inputStream = file.getInputStream();
66
+//            EasyExcel.read(inputStream, CustomerExcelDTO.class, new UploadDataListener(customerBirthdayService)).sheet(0).doReadSync();
67
+//            return SaResult.data("操作成功");
68
+//        } catch (Exception e) {
69
+//            e.printStackTrace();
70
+//            return SaResult.error("读取文件失败: " + e.getMessage());
71
+//        }
72
+//
73
+//
74
+//    }
124 75
 //
76
+//
77
+//    @AccessLimit()
78
+//    @ApiOperation("上传文件")
79
+//    @PostMapping("/uploadManage")
80
+//
81
+//    public SaResult uploadManage(@ApiParam("文件") @RequestParam("file") MultipartFile file) throws IOException {
82
+//        if (file.isEmpty()) {//检查文件是否为空
83
+//            new Exception("文件不能为空");
84
+//        }
85
+//        try {
86
+//            EasyExcel.read(file.getInputStream(), CustomerManageExcelDTO.class, new UploadDataListenerManage(customerBirthdayManageService)).sheet().doRead();
87
+//            return SaResult.data("操作成功");
125 88
 //        } catch (Exception e) {
126 89
 //            e.printStackTrace();
90
+//            return SaResult.error("读取文件失败: " + e.getMessage());
127 91
 //        }
92
+//
93
+//    }
94
+//
95
+//
96
+//    @OpLog(module = "CustomerBirthday", action = "客户生日表模板下载")
97
+//    @AccessLimit()
98
+//    @ApiOperation("CustomerBirthday")
99
+//    @GetMapping(value = "/downloadBirth")
100
+//    public SaResult downloadBirth(HttpServletResponse response) throws IOException {
101
+//        Map<String, Object> params = new HashMap<>();
102
+//        String fileName = "CustomerBirthday.xlsx";
103
+//
104
+//        File file = new File("application/src/main/resources/" + fileName);
105
+//
128 106
 //        params.put("fileName", fileName);
129 107
 //        params.put("file", file);
130
-        return SaResult.data("");
131
-    }
132
-
133
-
134
-}
108
+//        return SaResult.data(params);
109
+//
110
+//
111
+//    }
112
+//
113
+//    @OpLog(module = "客户生日维护经理表", action = "客户生日维护经理表模板下载")
114
+//    @AccessLimit()
115
+//    @ApiOperation("客户生日维护经理表")
116
+//    @GetMapping(value = "/downloadBirManage")
117
+//    public SaResult downloadBirManage(HttpServletResponse response) {
118
+////        Map<String, Object> params = new HashMap<>();
119
+////
120
+////        String fileName = "/客户生日维护经理表.xlsx";
121
+////        File file = null;
122
+////        try {
123
+////            file = DownloadExcel.download(response, fileName);
124
+////
125
+////        } catch (Exception e) {
126
+////            e.printStackTrace();
127
+////        }
128
+////        params.put("fileName", fileName);
129
+////        params.put("file", file);
130
+//        return SaResult.data("");
131
+//    }
132
+//
133
+//
134
+//}

+ 83
- 83
application/src/main/java/com/lyg/application/dao/UploadDataListener.java Прегледај датотеку

@@ -1,87 +1,87 @@
1
-package com.lyg.application.dao;
2
-
3
-import com.alibaba.excel.context.AnalysisContext;
4
-import com.alibaba.excel.read.listener.ReadListener;
5
-import com.lyg.application.dto.CustomerExcelDTO;
6
-import com.lyg.application.service.CustomerBirthdayService;
7
-import lombok.extern.slf4j.Slf4j;
8
-import org.springframework.transaction.annotation.Transactional;
9
-import org.springframework.transaction.interceptor.TransactionAspectSupport;
10
-
11
-import java.time.LocalDate;
12
-import java.time.format.DateTimeFormatter;
13
-import java.time.format.DateTimeParseException;
14
-import java.time.temporal.ChronoField;
15
-import java.util.ArrayList;
16
-import java.util.List;
17
-
18
-@Slf4j
19
-public class UploadDataListener implements ReadListener<CustomerExcelDTO> {
20
-
21
-
22
-    private static final int BATCH_COUNT = 10;
23
-    private final List<CustomerExcelDTO> dataList = new ArrayList<>();
24
-
25
-
26
-    private final CustomerBirthdayService customerBirthdayService;
27
-
28
-
29
-    public UploadDataListener(CustomerBirthdayService customerBirthdayService) {
30
-        this.customerBirthdayService = customerBirthdayService;
31
-    }
32
-
33
-    @Override
34
-    public void invoke(CustomerExcelDTO data, AnalysisContext context) {
35
-        log.info("解析到一条数据:{}", data);
36
-        if (data == null) {
37
-            throw new RuntimeException("excel读取失败");
38
-        }
39
-        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
40
-        String dateString = data.getBirth();
41
-//        try {
42
-            LocalDate date = LocalDate.parse(dateString, formatter);
43
-            // 检查日期是否有效
44
-            int month = date.get(ChronoField.MONTH_OF_YEAR);
45
-            int day = date.get(ChronoField.DAY_OF_MONTH);
46
-            if (month < 1 || month > 12 || day < 1 || day > date.lengthOfMonth()) {
47
-//            log.error("日期错误: {}", dateString);
48
-                TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
49
-                throw new RuntimeException("日期错误");
50
-            }
51
-
52
-            if (data.getIdNum() == null||data.getName() == null||data.getCustId() == null||data.getBirth() == null) {
53
-                throw new RuntimeException("请输入完整信息!");
54
-            }
55
-//            if () {
56
-//                throw new RuntimeException("请输入姓名!");
57
-//            }
58
-//            if () {
59
-//                throw new RuntimeException("请输入客户号!");
1
+//package com.lyg.application.dao;
2
+//
3
+//import com.alibaba.excel.context.AnalysisContext;
4
+//import com.alibaba.excel.read.listener.ReadListener;
5
+//import com.lyg.application.dto.CustomerExcelDTO;
6
+//import com.lyg.application.service.CustomerBirthdayService;
7
+//import lombok.extern.slf4j.Slf4j;
8
+//import org.springframework.transaction.annotation.Transactional;
9
+//import org.springframework.transaction.interceptor.TransactionAspectSupport;
10
+//
11
+//import java.time.LocalDate;
12
+//import java.time.format.DateTimeFormatter;
13
+//import java.time.format.DateTimeParseException;
14
+//import java.time.temporal.ChronoField;
15
+//import java.util.ArrayList;
16
+//import java.util.List;
17
+//
18
+//@Slf4j
19
+//public class UploadDataListener implements ReadListener<CustomerExcelDTO> {
20
+//
21
+//
22
+//    private static final int BATCH_COUNT = 10;
23
+//    private final List<CustomerExcelDTO> dataList = new ArrayList<>();
24
+//
25
+//
26
+//    private final CustomerBirthdayService customerBirthdayService;
27
+//
28
+//
29
+//    public UploadDataListener(CustomerBirthdayService customerBirthdayService) {
30
+//        this.customerBirthdayService = customerBirthdayService;
31
+//    }
32
+//
33
+//    @Override
34
+//    public void invoke(CustomerExcelDTO data, AnalysisContext context) {
35
+//        log.info("解析到一条数据:{}", data);
36
+//        if (data == null) {
37
+//            throw new RuntimeException("excel读取失败");
38
+//        }
39
+//        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
40
+//        String dateString = data.getBirth();
41
+////        try {
42
+//            LocalDate date = LocalDate.parse(dateString, formatter);
43
+//            // 检查日期是否有效
44
+//            int month = date.get(ChronoField.MONTH_OF_YEAR);
45
+//            int day = date.get(ChronoField.DAY_OF_MONTH);
46
+//            if (month < 1 || month > 12 || day < 1 || day > date.lengthOfMonth()) {
47
+////            log.error("日期错误: {}", dateString);
48
+//                TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
49
+//                throw new RuntimeException("日期错误");
60 50
 //            }
61 51
 //
62
-//            if (data.getBirth() == null) {
63
-//                throw new RuntimeException("请输入出生日期!");
52
+//            if (data.getIdNum() == null||data.getName() == null||data.getCustId() == null||data.getBirth() == null) {
53
+//                throw new RuntimeException("请输入完整信息!");
64 54
 //            }
65
-            dataList.add(data);
66
-            saveData();
67
-//        } catch (DateTimeParseException e) {
68
-//            // 日期格式错误,抛出异常
69
-//            throw new RuntimeException("解析错误");
55
+////            if () {
56
+////                throw new RuntimeException("请输入姓名!");
57
+////            }
58
+////            if () {
59
+////                throw new RuntimeException("请输入客户号!");
60
+////            }
61
+////
62
+////            if (data.getBirth() == null) {
63
+////                throw new RuntimeException("请输入出生日期!");
64
+////            }
65
+//            dataList.add(data);
66
+//            saveData();
67
+////        } catch (DateTimeParseException e) {
68
+////            // 日期格式错误,抛出异常
69
+////            throw new RuntimeException("解析错误");
70
+////        }
71
+//    }
72
+//
73
+//    @Override
74
+////    @Transactional(rollbackFor = Exception.class)
75
+//    public void doAfterAllAnalysed(AnalysisContext context) {
76
+//        saveData();
77
+//        log.info("所有数据解析完成!");
78
+//    }
79
+//
80
+//    //    @Transactional(rollbackFor = Exception.class)
81
+//    public void saveData() {
82
+//        if (!dataList.isEmpty()) {
83
+//            customerBirthdayService.saveBatch(dataList);
84
+//            dataList.clear();
70 85
 //        }
71
-    }
72
-
73
-    @Override
74
-//    @Transactional(rollbackFor = Exception.class)
75
-    public void doAfterAllAnalysed(AnalysisContext context) {
76
-        saveData();
77
-        log.info("所有数据解析完成!");
78
-    }
79
-
80
-    //    @Transactional(rollbackFor = Exception.class)
81
-    public void saveData() {
82
-        if (!dataList.isEmpty()) {
83
-            customerBirthdayService.saveBatch(dataList);
84
-            dataList.clear();
85
-        }
86
-    }
87
-}
86
+//    }
87
+//}

+ 61
- 61
application/src/main/java/com/lyg/application/dao/UploadDataListenerManage.java Прегледај датотеку

@@ -1,62 +1,62 @@
1
-package com.lyg.application.dao;
2
-
3
-import com.alibaba.excel.context.AnalysisContext;
4
-import com.alibaba.excel.read.listener.ReadListener;
5
-import com.lyg.application.dto.CustomerManageExcelDTO;
6
-import com.lyg.application.service.CustomerBirthdayManageService;
7
-import lombok.extern.slf4j.Slf4j;
8
-import org.springframework.transaction.annotation.Transactional;
9
-import org.springframework.transaction.interceptor.TransactionAspectSupport;
10
-
11
-import java.time.format.DateTimeParseException;
12
-import java.util.ArrayList;
13
-import java.util.List;
14
-
15
-@Slf4j
16
-public class UploadDataListenerManage implements ReadListener<CustomerManageExcelDTO> {
17
-
18
-    private static final int BATCH_COUNT = 10;
19
-    private final List<CustomerManageExcelDTO> dataList = new ArrayList<>();
20
-
21
-    //
22
-    private final CustomerBirthdayManageService customerBirthdayManageService;
23
-
24
-    public UploadDataListenerManage(CustomerBirthdayManageService customerBirthdayManageService) {
25
-        this.customerBirthdayManageService = customerBirthdayManageService;
26
-    }
27
-
28
-    @Override
29
-    public void invoke(CustomerManageExcelDTO data, AnalysisContext context) {
30
-//
31
-        log.info("解析到一条数据:{}", data);
32
-        if (data == null) {
33
-            throw new RuntimeException("excel读取失败");
34
-        }
35
-
36
-            if (data.getPhoneNo() == null||data.getName() == null) {
37
-                throw new RuntimeException("请输入完整信息!");
38
-            }
39
-
40
-            dataList.add(data);
41
-//            saveData();
42
-//        } catch (DateTimeParseException e) {
43
-//            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
44
-//            throw new RuntimeException("数据异常");
1
+//package com.lyg.application.dao;
2
+//
3
+//import com.alibaba.excel.context.AnalysisContext;
4
+//import com.alibaba.excel.read.listener.ReadListener;
5
+//import com.lyg.application.dto.CustomerManageExcelDTO;
6
+//import com.lyg.application.service.CustomerBirthdayManageService;
7
+//import lombok.extern.slf4j.Slf4j;
8
+//import org.springframework.transaction.annotation.Transactional;
9
+//import org.springframework.transaction.interceptor.TransactionAspectSupport;
10
+//
11
+//import java.time.format.DateTimeParseException;
12
+//import java.util.ArrayList;
13
+//import java.util.List;
14
+//
15
+//@Slf4j
16
+//public class UploadDataListenerManage implements ReadListener<CustomerManageExcelDTO> {
17
+//
18
+//    private static final int BATCH_COUNT = 10;
19
+//    private final List<CustomerManageExcelDTO> dataList = new ArrayList<>();
20
+//
21
+//    //
22
+//    private final CustomerBirthdayManageService customerBirthdayManageService;
23
+//
24
+//    public UploadDataListenerManage(CustomerBirthdayManageService customerBirthdayManageService) {
25
+//        this.customerBirthdayManageService = customerBirthdayManageService;
26
+//    }
27
+//
28
+//    @Override
29
+//    public void invoke(CustomerManageExcelDTO data, AnalysisContext context) {
30
+////
31
+//        log.info("解析到一条数据:{}", data);
32
+//        if (data == null) {
33
+//            throw new RuntimeException("excel读取失败");
34
+//        }
35
+//
36
+//            if (data.getPhoneNo() == null||data.getName() == null) {
37
+//                throw new RuntimeException("请输入完整信息!");
38
+//            }
39
+//
40
+//            dataList.add(data);
41
+////            saveData();
42
+////        } catch (DateTimeParseException e) {
43
+////            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
44
+////            throw new RuntimeException("数据异常");
45
+////        }
46
+//
47
+//    }
48
+//
49
+//
50
+//    @Override
51
+//    public void doAfterAllAnalysed(AnalysisContext context) {
52
+//        saveData();
53
+//        log.info("所有数据解析完成!");
54
+//    }
55
+//
56
+//    public void saveData() {
57
+//        if (!dataList.isEmpty()) {
58
+//            customerBirthdayManageService.saveBatchManage(dataList);
59
+//            dataList.clear();
45 60
 //        }
46
-
47
-    }
48
-
49
-
50
-    @Override
51
-    public void doAfterAllAnalysed(AnalysisContext context) {
52
-        saveData();
53
-        log.info("所有数据解析完成!");
54
-    }
55
-
56
-    public void saveData() {
57
-        if (!dataList.isEmpty()) {
58
-            customerBirthdayManageService.saveBatchManage(dataList);
59
-            dataList.clear();
60
-        }
61
-    }
62
-}
61
+//    }
62
+//}

+ 32
- 32
application/src/main/java/com/lyg/application/dto/CustomerExcelDTO.java Прегледај датотеку

@@ -1,32 +1,32 @@
1
-package com.lyg.application.dto;
2
-
3
-
4
-import com.alibaba.excel.annotation.ExcelProperty;
5
-import io.swagger.annotations.ApiModelProperty;
6
-import lombok.Data;
7
-import org.springframework.stereotype.Repository;
8
-
9
-@Data
10
-@Repository
11
-
12
-public class CustomerExcelDTO  {
13
-
14
-    @ApiModelProperty(name = "客户号", notes = "")
15
-//    @TableId(value = "cust_id", type = IdType.ASSIGN_UUID)
16
-    private String custId;
17
-    @ExcelProperty(value = "姓名", index = 1)
18
-    private String name;
19
-
20
-    @ExcelProperty(value = "身份证号", index = 2)
21
-    private String idNum;
22
-
23
-    @ExcelProperty(value = "归属机构号", index = 3)
24
-    private String brNo;
25
-
26
-    @ExcelProperty(value = "生日", index = 4)
27
-    private String birth;
28
-
29
-    @ExcelProperty(value = "客户标志位辅助匹配客户经理", index = 5)
30
-    private Integer custClass;
31
-
32
-}
1
+//package com.lyg.application.dto;
2
+//
3
+//
4
+//import com.alibaba.excel.annotation.ExcelProperty;
5
+//import io.swagger.annotations.ApiModelProperty;
6
+//import lombok.Data;
7
+//import org.springframework.stereotype.Repository;
8
+//
9
+//@Data
10
+//@Repository
11
+//
12
+//public class CustomerExcelDTO  {
13
+//
14
+//    @ApiModelProperty(name = "客户号", notes = "")
15
+////    @TableId(value = "cust_id", type = IdType.ASSIGN_UUID)
16
+//    private String custId;
17
+//    @ExcelProperty(value = "姓名", index = 1)
18
+//    private String name;
19
+//
20
+//    @ExcelProperty(value = "身份证号", index = 2)
21
+//    private String idNum;
22
+//
23
+//    @ExcelProperty(value = "归属机构号", index = 3)
24
+//    private String brNo;
25
+//
26
+//    @ExcelProperty(value = "生日", index = 4)
27
+//    private String birth;
28
+//
29
+//    @ExcelProperty(value = "客户标志位辅助匹配客户经理", index = 5)
30
+//    private Integer custClass;
31
+//
32
+//}

+ 35
- 35
application/src/main/java/com/lyg/application/dto/CustomerManageExcelDTO.java Прегледај датотеку

@@ -1,35 +1,35 @@
1
-package com.lyg.application.dto;
2
-
3
-
4
-import com.alibaba.excel.annotation.ExcelProperty;
5
-import io.swagger.annotations.ApiModelProperty;
6
-import lombok.Data;
7
-import org.springframework.stereotype.Repository;
8
-
9
-import javax.validation.constraints.NotBlank;
10
-
11
-@Data
12
-@Repository
13
-public class CustomerManageExcelDTO {
14
-
15
-
16
-    @ExcelProperty(value = "归属机构", index = 0)
17
-    @ApiModelProperty(name = "归属机构", notes = "")
18
-    private String brNo;
19
-
20
-
21
-    @ExcelProperty(value = "员工姓名", index = 1)
22
-    @NotBlank(message = "员工姓名")
23
-    @ApiModelProperty(name = "员工姓名", notes = "")
24
-    private String name;
25
-
26
-    @ExcelProperty(value = "员工手机号", index = 2)
27
-    @ApiModelProperty(name = "员工手机号", notes = "")
28
-    private Integer phoneNo;
29
-
30
-    @ExcelProperty(value = "客户标志位辅助匹配客户经理", index = 3)
31
-    @ApiModelProperty(name = "客户标志位辅助匹配客户经理", notes = "")
32
-    private Integer custClass;
33
-
34
-
35
-}
1
+//package com.lyg.application.dto;
2
+//
3
+//
4
+//import com.alibaba.excel.annotation.ExcelProperty;
5
+//import io.swagger.annotations.ApiModelProperty;
6
+//import lombok.Data;
7
+//import org.springframework.stereotype.Repository;
8
+//
9
+//import javax.validation.constraints.NotBlank;
10
+//
11
+//@Data
12
+//@Repository
13
+//public class CustomerManageExcelDTO {
14
+//
15
+//
16
+//    @ExcelProperty(value = "归属机构", index = 0)
17
+//    @ApiModelProperty(name = "归属机构", notes = "")
18
+//    private String brNo;
19
+//
20
+//
21
+//    @ExcelProperty(value = "员工姓名", index = 1)
22
+//    @NotBlank(message = "员工姓名")
23
+//    @ApiModelProperty(name = "员工姓名", notes = "")
24
+//    private String name;
25
+//
26
+//    @ExcelProperty(value = "员工手机号", index = 2)
27
+//    @ApiModelProperty(name = "员工手机号", notes = "")
28
+//    private Integer phoneNo;
29
+//
30
+//    @ExcelProperty(value = "客户标志位辅助匹配客户经理", index = 3)
31
+//    @ApiModelProperty(name = "客户标志位辅助匹配客户经理", notes = "")
32
+//    private Integer custClass;
33
+//
34
+//
35
+//}

+ 0
- 50
application/src/main/java/com/lyg/application/entity/CustomerBirthday.java Прегледај датотеку

@@ -1,50 +0,0 @@
1
-package com.lyg.application.entity;
2
-
3
-import com.alibaba.excel.annotation.ExcelProperty;
4
-import com.baomidou.mybatisplus.annotation.IdType;
5
-import com.baomidou.mybatisplus.annotation.TableId;
6
-import com.baomidou.mybatisplus.annotation.TableName;
7
-import io.swagger.annotations.ApiModel;
8
-import io.swagger.annotations.ApiModelProperty;
9
-import lombok.Data;
10
-import lombok.EqualsAndHashCode;
11
-import lombok.experimental.Accessors;
12
-
13
-import javax.validation.constraints.NotBlank;
14
-import java.io.Serializable;
15
-
16
-/**
17
- * CustomerBirthday;
18
- *
19
- * @author : http://www.chiner.pro
20
- * @date : 2024-1-29
21
- */
22
-@Data
23
-@EqualsAndHashCode()
24
-@Accessors(chain = true)
25
-@ApiModel(value = "CustomerBirthday", description = "")
26
-@TableName("客户生日表")
27
-public class CustomerBirthday implements Serializable, Cloneable {
28
-
29
-    @ApiModelProperty(name = "客户号", notes = "")
30
-    @TableId(value = "cust_id", type = IdType.ASSIGN_UUID)
31
-    private String custId;
32
-
33
-    @NotBlank(message = "姓名不能为空")
34
-    @ApiModelProperty(name = "姓名", notes = "")
35
-    private String name;
36
-
37
-    @ApiModelProperty(name = "身份证号", notes = "")
38
-    private String idNum;
39
-
40
-    @ApiModelProperty(name = "归属机构号", notes = "")
41
-    private String brNo;
42
-
43
-    @ApiModelProperty(name = "生日", notes = "")
44
-    private String birth;
45
-
46
-    @ApiModelProperty(name = "客户标志位辅助匹配客户经理", notes = "")
47
-    private Integer custClass;
48
-
49
-
50
-}

+ 0
- 38
application/src/main/java/com/lyg/application/entity/CustomerBirthdayManage.java Прегледај датотеку

@@ -1,38 +0,0 @@
1
-package com.lyg.application.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-1-29
17
- */
18
-@Data
19
-@EqualsAndHashCode(callSuper = false)
20
-@Accessors(chain = true)
21
-@ApiModel(value = "客户生日维护经理表",description = "")
22
-@TableName("客户生日维护经理表")
23
-public class CustomerBirthdayManage implements Serializable,Cloneable{
24
-    
25
-    @ApiModelProperty(name = "归属机构",notes = "")
26
-    private String brNo ;
27
-    
28
-    @NotBlank(message = "员工姓名不能为空")
29
-    @ApiModelProperty(name = "员工姓名",notes = "")
30
-    private String name ;
31
-    
32
-    @ApiModelProperty(name = "员工手机号",notes = "")
33
-    private Integer phoneNo ;
34
-    
35
-    @ApiModelProperty(name = "客户标志位辅助匹配客户经理",notes = "")
36
-    private Integer custClass ;
37
-
38
-}

+ 0
- 31
application/src/main/java/com/lyg/application/entity/CustomerPingLog.java Прегледај датотеку

@@ -1,31 +0,0 @@
1
-package com.lyg.application.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
- * CustomerPingLog;
15
- * @author : http://www.chiner.pro
16
- * @date : 2024-1-29
17
- */
18
-@Data
19
-@EqualsAndHashCode(callSuper = false)
20
-@Accessors(chain = true)
21
-@ApiModel(value = "CustomerPingLog",description = "")
22
-@TableName("营销维护客户发送日志")
23
-public class CustomerPingLog implements Serializable,Cloneable{
24
-    
25
-    @ApiModelProperty(name = "日志内容,成功返回发送报文,错误返回错误代码",notes = "")
26
-    private String log ;
27
-    
28
-    @ApiModelProperty(name = "日期",notes = "")
29
-    private LocalDateTime rksj ;
30
-
31
-}

+ 61
- 0
application/src/main/java/com/lyg/application/entity/TaIncompatible.java Прегледај датотеку

@@ -0,0 +1,61 @@
1
+package com.lyg.application.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-3-6
17
+ */
18
+@Data
19
+@EqualsAndHashCode(callSuper = false)
20
+@Accessors(chain = true)
21
+@ApiModel(value = "不相容",description = "")
22
+@TableName("ta_incompatible")
23
+public class TaIncompatible implements Serializable,Cloneable{
24
+
25
+    @ApiModelProperty(name = "不相容Id",notes = "")
26
+    @TableId(value = "incompatible_id", type = IdType.ASSIGN_UUID)
27
+    private String incompatibleId ;
28
+
29
+    @ApiModelProperty(name = "原岗位",notes = "")
30
+    private String primaryPost ;
31
+
32
+    @ApiModelProperty(name = "目标岗位",notes = "")
33
+    private String targetPost ;
34
+
35
+    @ApiModelProperty(name = "规则",notes = "")
36
+    private String rule ;
37
+
38
+    @ApiModelProperty(name = "状态",notes = "")
39
+    private Integer status ;
40
+
41
+    @ApiModelProperty(name = "创建人",notes = "")
42
+    @TableField(fill = FieldFill.INSERT)
43
+    private String createUser ;
44
+
45
+    @ApiModelProperty(name = "创建时间",notes = "")
46
+    @TableField(fill = FieldFill.INSERT)
47
+    private LocalDateTime createDate ;
48
+
49
+    @ApiModelProperty(name = "更新人",notes = "")
50
+    @TableField(fill = FieldFill.INSERT_UPDATE)
51
+    private String updateUser ;
52
+
53
+    @ApiModelProperty(name = "更新时间",notes = "")
54
+    @TableField(fill = FieldFill.INSERT_UPDATE)
55
+    private LocalDateTime updateDate ;
56
+
57
+    @ApiModelProperty(name = "删除标志",notes = "1删除")
58
+    @TableField(fill = FieldFill.INSERT)
59
+    private Integer deleted ;
60
+
61
+}

+ 105
- 0
application/src/main/java/com/lyg/application/entity/TaMandatoryLeave.java Прегледај датотеку

@@ -0,0 +1,105 @@
1
+package com.lyg.application.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-3-6
17
+ */
18
+@Data
19
+@EqualsAndHashCode(callSuper = false)
20
+@Accessors(chain = true)
21
+@ApiModel(value = "强制休假表",description = "")
22
+@TableName("ta_mandatory_leave")
23
+public class TaMandatoryLeave implements Serializable,Cloneable{
24
+    
25
+    @ApiModelProperty(name = "轮岗Id",notes = "")
26
+    @TableId(value = "leave_id", type = IdType.ASSIGN_UUID)
27
+    private String leaveId ;
28
+    
29
+    @ApiModelProperty(name = "总行部门/一级分行",notes = "")
30
+    private String headOfficeOrg ;
31
+    
32
+    @ApiModelProperty(name = "员工工号",notes = "")
33
+    private String employeeNum ;
34
+    
35
+    @NotBlank(message = "员工姓名不能为空")
36
+    @ApiModelProperty(name = "员工姓名",notes = "")
37
+    private String employeeName ;
38
+    
39
+    @ApiModelProperty(name = "所在单位机构号",notes = "")
40
+    private String orgNum ;
41
+    
42
+    @NotBlank(message = "所在单位名称不能为空")
43
+    @ApiModelProperty(name = "所在单位名称",notes = "")
44
+    private String orgName ;
45
+    
46
+    @ApiModelProperty(name = "对应机构层次",notes = "")
47
+    private String counterInstitutionsLevel ;
48
+    
49
+    @ApiModelProperty(name = "当前职位",notes = "")
50
+    private String currentPosition ;
51
+    
52
+    @ApiModelProperty(name = "对应重要岗位",notes = "")
53
+    private String counterImpPost ;
54
+    
55
+    @ApiModelProperty(name = "对应总行条线",notes = "")
56
+    private String counterHeadOfficeLine ;
57
+    
58
+    @ApiModelProperty(name = "休假起始时间 格式:年/月/日",notes = "")
59
+    private LocalDateTime startTimeVacation ;
60
+    
61
+    @ApiModelProperty(name = "休假截止时间 格式:年/月/日",notes = "")
62
+    private LocalDateTime vacationDeadline ;
63
+    
64
+    @ApiModelProperty(name = "已强制休假天数(工作日)",notes = "")
65
+    private Integer mandatoryVacationDay ;
66
+    
67
+    @ApiModelProperty(name = "开展离岗检查/代职检查情况",notes = "")
68
+    private String depSbtDepartureCheck ;
69
+    
70
+    @ApiModelProperty(name = "备注",notes = "")
71
+    private String remark ;
72
+    
73
+    @ApiModelProperty(name = "立查立改(是/否)",notes = "")
74
+    private String checkChange ;
75
+    
76
+    @ApiModelProperty(name = "自查自纠 (是/否)",notes = "")
77
+    private String checkCorrect ;
78
+    
79
+    @ApiModelProperty(name = "序号",notes = "")
80
+    private String sort ;
81
+    
82
+    @ApiModelProperty(name = "状态",notes = "")
83
+    private Integer status ;
84
+    
85
+    @ApiModelProperty(name = "创建人",notes = "")
86
+    @TableField(fill = FieldFill.INSERT)
87
+    private String createUser ;
88
+    
89
+    @ApiModelProperty(name = "创建时间",notes = "")
90
+    @TableField(fill = FieldFill.INSERT)
91
+    private LocalDateTime createDate ;
92
+    
93
+    @ApiModelProperty(name = "更新人",notes = "")
94
+    @TableField(fill = FieldFill.INSERT_UPDATE)
95
+    private String updateUser ;
96
+    
97
+    @ApiModelProperty(name = "更新时间",notes = "")
98
+    @TableField(fill = FieldFill.INSERT_UPDATE)
99
+    private LocalDateTime updateDate ;
100
+    
101
+    @ApiModelProperty(name = "删除标志",notes = "1删除")
102
+    @TableField(fill = FieldFill.INSERT)
103
+    private Integer deleted ;
104
+
105
+}

+ 133
- 0
application/src/main/java/com/lyg/application/entity/TaRotation.java Прегледај датотеку

@@ -0,0 +1,133 @@
1
+package com.lyg.application.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-3-6
17
+ */
18
+@Data
19
+@EqualsAndHashCode(callSuper = false)
20
+@Accessors(chain = true)
21
+@ApiModel(value = "轮岗列表",description = "")
22
+@TableName("ta_rotation")
23
+public class TaRotation implements Serializable,Cloneable{
24
+    
25
+    @ApiModelProperty(name = "轮岗Id",notes = "")
26
+    @TableId(value = "rotation_id", type = IdType.ASSIGN_UUID)
27
+    private String rotationId ;
28
+    
29
+    @ApiModelProperty(name = "总行部门/一级分行",notes = "")
30
+    private String headOfficeOrg ;
31
+    
32
+    @ApiModelProperty(name = "员工工号",notes = "")
33
+    private String employeeNum ;
34
+    
35
+    @NotBlank(message = "员工姓名不能为空")
36
+    @ApiModelProperty(name = "员工姓名",notes = "")
37
+    private String employeeName ;
38
+    
39
+    @ApiModelProperty(name = "具体单位机构号",notes = "")
40
+    private String specificOrgNum ;
41
+    
42
+    @NotBlank(message = "所在单位具体名称不能为空")
43
+    @ApiModelProperty(name = "所在单位具体名称",notes = "")
44
+    private String specificOrgName ;
45
+    
46
+    @ApiModelProperty(name = "对应机构层次",notes = "")
47
+    private String counterInstitutionsLevel ;
48
+    
49
+    @ApiModelProperty(name = "当前职位",notes = "")
50
+    private String currentPosition ;
51
+    
52
+    @ApiModelProperty(name = "对应重要岗位",notes = "")
53
+    private String counterImpPositions ;
54
+    
55
+    @ApiModelProperty(name = "对应总行条线",notes = "")
56
+    private String counterHeadOfficeLine ;
57
+    
58
+    @ApiModelProperty(name = "从事相应重要岗位时间 格式:年/月/日",notes = "")
59
+    private LocalDateTime durationOfEmployment ;
60
+    
61
+    @ApiModelProperty(name = "轮岗周期要求(年)",notes = "")
62
+    private Integer rotationCycle ;
63
+    
64
+    @ApiModelProperty(name = "轮岗截止日期",notes = "")
65
+    private LocalDateTime rotationDeadline ;
66
+    
67
+    @ApiModelProperty(name = "对应轮岗方式",notes = "")
68
+    private String counterRotationMethod ;
69
+    
70
+    @ApiModelProperty(name = "轮岗后单位机构号",notes = "")
71
+    private String orgNumJobRotation ;
72
+    
73
+    @NotBlank(message = "轮岗后单位具体名称不能为空")
74
+    @ApiModelProperty(name = "轮岗后单位具体名称",notes = "")
75
+    private String specificNameOrgRotation ;
76
+    
77
+    @ApiModelProperty(name = "轮岗后职位",notes = "")
78
+    private String jobRotationPost ;
79
+    
80
+    @ApiModelProperty(name = "轮岗后对应重要岗位",notes = "")
81
+    private String counterImpPostRotation ;
82
+    
83
+    @ApiModelProperty(name = "轮岗后对应总行条线",notes = "")
84
+    private String counterOfficeLineRotation ;
85
+    
86
+    @ApiModelProperty(name = "轮岗执行时间 格式:年/月/",notes = "")
87
+    private LocalDateTime rotationExeTime ;
88
+    
89
+    @ApiModelProperty(name = "备注",notes = "")
90
+    private String remark ;
91
+    
92
+    @ApiModelProperty(name = "立查立改(是/否)",notes = "")
93
+    private String checkChange ;
94
+    
95
+    @ApiModelProperty(name = "是否问责",notes = "")
96
+    private String accountability ;
97
+    
98
+    @ApiModelProperty(name = "事实确认书编号",notes = "")
99
+    private String factConfirmationNum ;
100
+    
101
+    @ApiModelProperty(name = "自查自纠 (是/否)",notes = "")
102
+    private String checkCorrect ;
103
+    
104
+    @ApiModelProperty(name = "计划轮岗日期",notes = "")
105
+    private LocalDateTime planRotationDate ;
106
+    
107
+    @ApiModelProperty(name = "序号",notes = "")
108
+    private String sort ;
109
+    
110
+    @ApiModelProperty(name = "状态",notes = "")
111
+    private Integer status ;
112
+    
113
+    @ApiModelProperty(name = "创建人",notes = "")
114
+    @TableField(fill = FieldFill.INSERT)
115
+    private String createUser ;
116
+    
117
+    @ApiModelProperty(name = "创建时间",notes = "")
118
+    @TableField(fill = FieldFill.INSERT)
119
+    private LocalDateTime createDate ;
120
+    
121
+    @ApiModelProperty(name = "更新人",notes = "")
122
+    @TableField(fill = FieldFill.INSERT_UPDATE)
123
+    private String updateUser ;
124
+    
125
+    @ApiModelProperty(name = "更新时间",notes = "")
126
+    @TableField(fill = FieldFill.INSERT_UPDATE)
127
+    private LocalDateTime updateDate ;
128
+    
129
+    @ApiModelProperty(name = "删除标志",notes = "1删除")
130
+    @TableField(fill = FieldFill.INSERT)
131
+    private Integer deleted ;
132
+
133
+}

+ 0
- 33
application/src/main/java/com/lyg/application/job/ProjectOrgDaily.java Прегледај датотеку

@@ -1,33 +0,0 @@
1
-//package com.lyg.application.job;
2
-//
3
-//
4
-//import com.lyg.application.mapper.TsProjectOrgDailyMapper;
5
-//import com.lyg.common.util.DateUtil;
6
-//import lombok.extern.slf4j.Slf4j;
7
-//import org.springframework.beans.factory.annotation.Autowired;
8
-//import org.springframework.scheduling.annotation.Scheduled;
9
-//import org.springframework.stereotype.Component;
10
-//
11
-//@Slf4j
12
-//@Component
13
-//public class ProjectOrgDaily {
14
-//
15
-//    @Autowired
16
-//    TsProjectOrgDailyMapper tsProjectOrgDailyMapper;
17
-//
18
-//    // 每天晚上 11 点执行
19
-//    @Scheduled(cron = "0 0 23 * * ?")
20
-//    public void calcScore() {
21
-//        log.info("开始统计日结数据...");
22
-//        String today = DateUtil.today();
23
-//
24
-//        try {
25
-//            tsProjectOrgDailyMapper.callProcess(today);
26
-//
27
-//            log.info("统计日结数据成功结束");
28
-//        } catch (Exception e) {
29
-//            log.error(e.getMessage());
30
-//            e.printStackTrace();
31
-//        }
32
-//    }
33
-//}

+ 0
- 27
application/src/main/java/com/lyg/application/mapper/CustomerBirthdayManageMapper.java Прегледај датотеку

@@ -1,27 +0,0 @@
1
-package com.lyg.application.mapper;
2
-
3
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
-import com.lyg.application.dto.CustomerManageExcelDTO;
5
-import com.lyg.application.entity.CustomerBirthdayManage;
6
-import org.apache.ibatis.annotations.Mapper;
7
-import org.apache.ibatis.annotations.Param;
8
-
9
-import java.util.List;
10
-
11
-/**
12
- * 客户生日维护经理表;(客户生日维护经理表)表数据库访问层
13
- *
14
- * @author : http://njyunzhi.com
15
- * @date : 2024-1-29
16
- */
17
-@Mapper
18
-public interface CustomerBirthdayManageMapper extends BaseMapper<CustomerBirthdayManage> {
19
-
20
-    CustomerBirthdayManage getByPhone(@Param("phone") String phone);
21
-
22
-    void removeByPhone(@Param("phone") String phone);
23
-
24
-    void saveBatchManage(@Param("ele") CustomerManageExcelDTO ele);
25
-
26
-    void insertBatch(@Param("list") List<CustomerManageExcelDTO> customerManageExcelDTOList);
27
-}

+ 0
- 24
application/src/main/java/com/lyg/application/mapper/CustomerBirthdayMapper.java Прегледај датотеку

@@ -1,24 +0,0 @@
1
-package com.lyg.application.mapper;
2
-
3
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
-import com.lyg.application.dto.CustomerExcelDTO;
5
-import com.lyg.application.entity.CustomerBirthday;
6
-import org.apache.ibatis.annotations.Mapper;
7
-import org.apache.ibatis.annotations.Param;
8
-
9
-import java.util.List;
10
-
11
-/**
12
- * CustomerBirthday;(CustomerBirthday)表数据库访问层
13
- *
14
- * @author : http://njyunzhi.com
15
- * @date : 2024-1-29
16
- */
17
-@Mapper
18
-public interface CustomerBirthdayMapper extends BaseMapper<CustomerBirthday> {
19
-
20
-    void insertBatch(@Param("list") List<CustomerExcelDTO> customerExcelDTOArrayList);
21
-
22
-    void saveBatch(@Param("ele") CustomerExcelDTO ele);
23
-
24
-}

+ 0
- 15
application/src/main/java/com/lyg/application/mapper/CustomerPingLogMapper.java Прегледај датотеку

@@ -1,15 +0,0 @@
1
-package com.lyg.application.mapper;
2
-
3
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
-import com.lyg.application.entity.CustomerPingLog;
5
-import org.apache.ibatis.annotations.Mapper;
6
-
7
-/**
8
- * CustomerPingLog;(CustomerPingLog)表数据库访问层
9
- * @author : http://njyunzhi.com
10
- * @date : 2024-1-29
11
- */
12
-@Mapper
13
-public interface CustomerPingLogMapper extends BaseMapper<CustomerPingLog>{
14
-    
15
-}

+ 16
- 0
application/src/main/java/com/lyg/application/mapper/TaIncompatibleMapper.java Прегледај датотеку

@@ -0,0 +1,16 @@
1
+package com.lyg.application.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.lyg.application.entity.TaIncompatible;
7
+
8
+ /**
9
+ * 不相容;(ta_incompatible)表数据库访问层
10
+ * @author : http://njyunzhi.com
11
+ * @date : 2024-3-6
12
+ */
13
+@Mapper
14
+public interface TaIncompatibleMapper  extends BaseMapper<TaIncompatible>{
15
+    
16
+}

+ 16
- 0
application/src/main/java/com/lyg/application/mapper/TaMandatoryLeaveMapper.java Прегледај датотеку

@@ -0,0 +1,16 @@
1
+package com.lyg.application.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.lyg.application.entity.TaMandatoryLeave;
7
+
8
+ /**
9
+ * 强制休假表;(ta_mandatory_leave)表数据库访问层
10
+ * @author : http://njyunzhi.com
11
+ * @date : 2024-3-6
12
+ */
13
+@Mapper
14
+public interface TaMandatoryLeaveMapper  extends BaseMapper<TaMandatoryLeave>{
15
+    
16
+}

+ 16
- 0
application/src/main/java/com/lyg/application/mapper/TaRotationMapper.java Прегледај датотеку

@@ -0,0 +1,16 @@
1
+package com.lyg.application.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.lyg.application.entity.TaRotation;
7
+
8
+ /**
9
+ * 轮岗列表;(ta_rotation)表数据库访问层
10
+ * @author : http://njyunzhi.com
11
+ * @date : 2024-3-6
12
+ */
13
+@Mapper
14
+public interface TaRotationMapper  extends BaseMapper<TaRotation>{
15
+    
16
+}

+ 0
- 23
application/src/main/java/com/lyg/application/service/CustomerBirthdayManageService.java Прегледај датотеку

@@ -1,23 +0,0 @@
1
-package com.lyg.application.service;
2
-
3
-import com.lyg.application.dto.CustomerManageExcelDTO;
4
-import com.lyg.application.entity.CustomerBirthdayManage;
5
-import com.lyg.system.service.IBaseService;
6
-import org.springframework.transaction.annotation.Transactional;
7
-
8
-import java.util.List;
9
-
10
-/**
11
- * 客户生日维护经理表;(客户生日维护经理表)表服务接口
12
- *
13
- * @author : http://njyunzhi.com
14
- * @date : 2024-1-29
15
- */
16
-public interface CustomerBirthdayManageService extends IBaseService<CustomerBirthdayManage> {
17
-
18
-    CustomerBirthdayManage getByPhone(String phone);
19
-
20
-    void removeByPhone(String phone);
21
-
22
-    void saveBatchManage(List<CustomerManageExcelDTO> dataList) ;
23
-}

+ 0
- 21
application/src/main/java/com/lyg/application/service/CustomerBirthdayService.java Прегледај датотеку

@@ -1,21 +0,0 @@
1
-package com.lyg.application.service;
2
-
3
-import com.lyg.application.dto.CustomerExcelDTO;
4
-import com.lyg.application.entity.CustomerBirthday;
5
-import com.lyg.system.service.IBaseService;
6
-import org.springframework.web.multipart.MultipartFile;
7
-
8
-import java.util.List;
9
-
10
-/**
11
- * CustomerBirthday;(CustomerBirthday)表服务接口
12
- * @author : http://njyunzhi.com
13
- * @date : 2024-1-29
14
- */
15
-public interface CustomerBirthdayService extends IBaseService<CustomerBirthday> {
16
-
17
- void batchInsert(List<CustomerBirthday> dataList);
18
- void saveUser(MultipartFile file);
19
-
20
- void saveBatch(List<CustomerExcelDTO> dataList) ;
21
-}

+ 0
- 13
application/src/main/java/com/lyg/application/service/CustomerPingLogService.java Прегледај датотеку

@@ -1,13 +0,0 @@
1
-package com.lyg.application.service;
2
-
3
-import com.lyg.application.entity.CustomerPingLog;
4
-import com.lyg.system.service.IBaseService;
5
-
6
- /**
7
- * CustomerPingLog;(CustomerPingLog)表服务接口
8
- * @author : http://njyunzhi.com
9
- * @date : 2024-1-29
10
- */
11
-public interface CustomerPingLogService extends IBaseService<CustomerPingLog> {
12
-    
13
-}

+ 14
- 0
application/src/main/java/com/lyg/application/service/TaIncompatibleService.java Прегледај датотеку

@@ -0,0 +1,14 @@
1
+package com.lyg.application.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.lyg.application.entity.TaIncompatible;
5
+import com.lyg.system.service.IBaseService;
6
+
7
+ /**
8
+ * 不相容;(ta_incompatible)表服务接口
9
+ * @author : http://njyunzhi.com
10
+ * @date : 2024-3-6
11
+ */
12
+public interface TaIncompatibleService extends IBaseService<TaIncompatible> {
13
+    
14
+}

+ 14
- 0
application/src/main/java/com/lyg/application/service/TaMandatoryLeaveService.java Прегледај датотеку

@@ -0,0 +1,14 @@
1
+package com.lyg.application.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.lyg.application.entity.TaMandatoryLeave;
5
+import com.lyg.system.service.IBaseService;
6
+
7
+ /**
8
+ * 强制休假表;(ta_mandatory_leave)表服务接口
9
+ * @author : http://njyunzhi.com
10
+ * @date : 2024-3-6
11
+ */
12
+public interface TaMandatoryLeaveService extends IBaseService<TaMandatoryLeave> {
13
+    
14
+}

+ 14
- 0
application/src/main/java/com/lyg/application/service/TaRotationService.java Прегледај датотеку

@@ -0,0 +1,14 @@
1
+package com.lyg.application.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.lyg.application.entity.TaRotation;
5
+import com.lyg.system.service.IBaseService;
6
+
7
+ /**
8
+ * 轮岗列表;(ta_rotation)表服务接口
9
+ * @author : http://njyunzhi.com
10
+ * @date : 2024-3-6
11
+ */
12
+public interface TaRotationService extends IBaseService<TaRotation> {
13
+    
14
+}

+ 0
- 62
application/src/main/java/com/lyg/application/service/impl/CustomerBirthdayManageServiceImpl.java Прегледај датотеку

@@ -1,62 +0,0 @@
1
-package com.lyg.application.service.impl;
2
-
3
-import com.baomidou.dynamic.datasource.annotation.DS;
4
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5
-import com.lyg.application.dto.CustomerManageExcelDTO;
6
-import com.lyg.application.entity.CustomerBirthdayManage;
7
-import com.lyg.application.mapper.CustomerBirthdayManageMapper;
8
-import com.lyg.application.service.CustomerBirthdayManageService;
9
-import com.lyg.system.service.impl.BaseServiceImpl;
10
-import org.springframework.stereotype.Service;
11
-import org.springframework.transaction.annotation.Transactional;
12
-import org.springframework.transaction.interceptor.TransactionAspectSupport;
13
-
14
-import java.util.ArrayList;
15
-import java.util.List;
16
-
17
-/**
18
- * 客户生日维护经理表;(客户生日维护经理表)表服务实现类
19
- *
20
- * @author : http://www.chiner.pro
21
- * @date : 2024-1-29
22
- */
23
-@Service
24
-@DS("db_2")
25
-public class CustomerBirthdayManageServiceImpl extends BaseServiceImpl<CustomerBirthdayManageMapper, CustomerBirthdayManage> implements CustomerBirthdayManageService {
26
-
27
-    @Override
28
-    public CustomerBirthdayManage getByPhone(String phone) {
29
-        return baseMapper.getByPhone(phone);
30
-    }
31
-
32
-    @Override
33
-    public void removeByPhone(String phone) {
34
-        baseMapper.removeByPhone(phone);
35
-
36
-    }
37
-
38
-    @Override
39
-    @Transactional(rollbackFor = Exception.class)
40
-    public void saveBatchManage(List<CustomerManageExcelDTO> dataList) {
41
-        if (dataList.isEmpty()) {
42
-            return;
43
-        }
44
-        QueryWrapper<CustomerBirthdayManage> queryWrapper = new QueryWrapper<>();
45
-
46
-
47
-//        List<CustomerManageExcelDTO> customerManageExcelDTOList = new ArrayList<>();
48
-
49
-
50
-        for (CustomerManageExcelDTO ele : dataList) {
51
-            Integer phoneNo = ele.getPhoneNo();
52
-            queryWrapper.eq("phone_no", phoneNo);
53
-            List<CustomerBirthdayManage> customerBirthdayManageList = baseMapper.selectList(queryWrapper);
54
-            if (customerBirthdayManageList.size() >= 1) {
55
-                throw new RuntimeException("请勿重复录入");
56
-            }
57
-            baseMapper.saveBatchManage(ele);
58
-        }
59
-
60
-    }
61
-
62
-}

+ 0
- 69
application/src/main/java/com/lyg/application/service/impl/CustomerBirthdayServiceImpl.java Прегледај датотеку

@@ -1,69 +0,0 @@
1
-package com.lyg.application.service.impl;
2
-
3
-import com.baomidou.dynamic.datasource.annotation.DS;
4
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5
-import com.lyg.application.dto.CustomerExcelDTO;
6
-import com.lyg.application.dto.CustomerManageExcelDTO;
7
-import com.lyg.application.entity.CustomerBirthday;
8
-import com.lyg.application.mapper.CustomerBirthdayMapper;
9
-import com.lyg.application.service.CustomerBirthdayService;
10
-import com.lyg.system.service.impl.BaseServiceImpl;
11
-import lombok.SneakyThrows;
12
-import org.apache.ibatis.annotations.Param;
13
-import org.springframework.stereotype.Service;
14
-import org.springframework.transaction.annotation.Transactional;
15
-import org.springframework.transaction.interceptor.TransactionAspectSupport;
16
-import org.springframework.web.multipart.MultipartFile;
17
-
18
-import java.io.BufferedInputStream;
19
-import java.io.InputStream;
20
-import java.util.ArrayList;
21
-import java.util.List;
22
-
23
-/**
24
- * CustomerBirthday;(CustomerBirthday)表服务实现类
25
- *
26
- * @author : http://www.chiner.pro
27
- * @date : 2024-1-29
28
- */
29
-@Service
30
-@DS("db_2")
31
-public class CustomerBirthdayServiceImpl extends BaseServiceImpl<CustomerBirthdayMapper, CustomerBirthday> implements CustomerBirthdayService {
32
-
33
-    @Override
34
-    public void batchInsert(List<CustomerBirthday> dataList) {
35
-        saveBatch(dataList);
36
-    }
37
-
38
-    @SneakyThrows
39
-    @Override
40
-    public void saveUser(MultipartFile file) {
41
-        InputStream inputStream = new BufferedInputStream(file.getInputStream());
42
-    }
43
-
44
-    @Override
45
-    @Transactional(rollbackFor = Exception.class)
46
-    public void saveBatch(List<CustomerExcelDTO> dataList)  {
47
-        if (dataList.isEmpty()) {
48
-            return;
49
-        }
50
-        QueryWrapper<CustomerBirthday> queryWrapper = new QueryWrapper<>();
51
-
52
-//        List<CustomerExcelDTO> customerExcelDTOArrayList = new ArrayList<>();
53
-
54
-
55
-        for (CustomerExcelDTO ele : dataList) {
56
-            String idNum = ele.getIdNum();
57
-            queryWrapper.eq("id_num", idNum);
58
-            List<CustomerBirthday> customerBirthdayList = baseMapper.selectList(queryWrapper);
59
-            if (customerBirthdayList.size() >= 1) {
60
-                throw new RuntimeException("请勿重复录入客户");
61
-            }
62
-
63
-            baseMapper.saveBatch(ele);
64
-        }
65
-
66
-    }
67
-
68
-
69
-}

+ 0
- 25
application/src/main/java/com/lyg/application/service/impl/CustomerPingLogServiceImpl.java Прегледај датотеку

@@ -1,25 +0,0 @@
1
-package com.lyg.application.service.impl;
2
-
3
-import com.baomidou.dynamic.datasource.annotation.DS;
4
-import com.lyg.application.entity.CustomerPingLog;
5
-import com.lyg.system.service.impl.BaseServiceImpl;
6
-import org.springframework.stereotype.Service;
7
-import com.lyg.application.mapper.CustomerPingLogMapper;
8
-import com.lyg.application.service.CustomerPingLogService;
9
-
10
- /**
11
- * CustomerPingLog;(CustomerPingLog)表服务实现类
12
- * @author : http://www.chiner.pro
13
- * @date : 2024-1-29
14
- */
15
-@Service
16
-@DS("db_2")
17
-public class CustomerPingLogServiceImpl extends BaseServiceImpl<CustomerPingLogMapper, CustomerPingLog> implements CustomerPingLogService {
18
-
19
-    int i = 0;
20
-
21
-    public void  add() {
22
-        i += 1;
23
-
24
-    }
25
-}

+ 18
- 0
application/src/main/java/com/lyg/application/service/impl/TaIncompatibleServiceImpl.java Прегледај датотеку

@@ -0,0 +1,18 @@
1
+package com.lyg.application.service.impl;
2
+
3
+import com.lyg.system.service.impl.BaseServiceImpl;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lyg.application.entity.TaIncompatible;
7
+import com.lyg.application.mapper.TaIncompatibleMapper;
8
+import com.lyg.application.service.TaIncompatibleService;
9
+
10
+ /**
11
+ * 不相容;(ta_incompatible)表服务实现类
12
+ * @author : http://www.chiner.pro
13
+ * @date : 2024-3-6
14
+ */
15
+@Service
16
+public class TaIncompatibleServiceImpl extends BaseServiceImpl<TaIncompatibleMapper, TaIncompatible> implements TaIncompatibleService {
17
+    
18
+}

+ 18
- 0
application/src/main/java/com/lyg/application/service/impl/TaMandatoryLeaveServiceImpl.java Прегледај датотеку

@@ -0,0 +1,18 @@
1
+package com.lyg.application.service.impl;
2
+
3
+import com.lyg.system.service.impl.BaseServiceImpl;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lyg.application.entity.TaMandatoryLeave;
7
+import com.lyg.application.mapper.TaMandatoryLeaveMapper;
8
+import com.lyg.application.service.TaMandatoryLeaveService;
9
+
10
+ /**
11
+ * 强制休假表;(ta_mandatory_leave)表服务实现类
12
+ * @author : http://www.chiner.pro
13
+ * @date : 2024-3-6
14
+ */
15
+@Service
16
+public class TaMandatoryLeaveServiceImpl extends BaseServiceImpl<TaMandatoryLeaveMapper, TaMandatoryLeave> implements TaMandatoryLeaveService {
17
+    
18
+}

+ 18
- 0
application/src/main/java/com/lyg/application/service/impl/TaRotationServiceImpl.java Прегледај датотеку

@@ -0,0 +1,18 @@
1
+package com.lyg.application.service.impl;
2
+
3
+import com.lyg.system.service.impl.BaseServiceImpl;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lyg.application.entity.TaRotation;
7
+import com.lyg.application.mapper.TaRotationMapper;
8
+import com.lyg.application.service.TaRotationService;
9
+
10
+ /**
11
+ * 轮岗列表;(ta_rotation)表服务实现类
12
+ * @author : http://www.chiner.pro
13
+ * @date : 2024-3-6
14
+ */
15
+@Service
16
+public class TaRotationServiceImpl extends BaseServiceImpl<TaRotationMapper, TaRotation> implements TaRotationService {
17
+    
18
+}

+ 0
- 19
application/src/main/java/com/lyg/application/vo/ReportFreqVO.java Прегледај датотеку

@@ -1,19 +0,0 @@
1
-//package com.lyg.application.vo;
2
-//
3
-//import com.alibaba.excel.annotation.ExcelIgnore;
4
-//import com.alibaba.excel.annotation.ExcelProperty;
5
-//import com.lyg.application.entity.TaProjectReport;
6
-//import io.swagger.annotations.ApiModelProperty;
7
-//import lombok.Data;
8
-//
9
-//@Data
10
-//public class ReportFreqVO extends TaProjectReport {
11
-//
12
-////    @ApiModelProperty(name = "上报时间",notes = "")
13
-//    @ExcelProperty(value = "日期", index = 6)
14
-//    private String bizDate ;
15
-//
16
-////    @ApiModelProperty(name = "积分",notes = "")
17
-//    @ExcelProperty(value = "积分", index = 5)
18
-//    private Double score ;
19
-//}

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

@@ -1,7 +1,7 @@
1 1
 
2 2
 # 端口
3 3
 server:
4
-  port: 9010
4
+  port: 8001
5 5
   servlet:
6 6
     context-path: /api
7 7
 
@@ -10,21 +10,14 @@ logging:
10 10
     root: info
11 11
     web: trace
12 12
 
13
+
13 14
 spring:
14
-  mvc:
15
-    pathmatch:
16
-      matching-strategy: ANT_PATH_MATCHER
17
-  servlet:
18
-    multipart:
19
-      max-file-size: 1024MB
20
-      max-request-size: 1024MB
21 15
   datasource:
22 16
     url: jdbc:oracle:thin:@192.168.89.10:1521:orcl
23 17
     username: job_waring
24 18
     password: job_waring@ABCD1234
25 19
     driver-class-name: oracle.jdbc.OracleDriver
26
-    hikari:
27
-      maximum-pool-size: 3
20
+
28 21
 
29 22
   # 配置 Redis 连接
30 23
   redis:

+ 0
- 31
application/src/main/resources/mapper/CustomerBirthdayManageMapper.xml Прегледај датотеку

@@ -1,31 +0,0 @@
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.lyg.application.mapper.CustomerBirthdayManageMapper">
5
-    <insert id="saveBatchManage">
6
-        INSERT INTO "客户生日维护经理表" (BR_NO, NAME, PHONE_NO, CUST_CLASS)
7
-        VALUES (#{ele.brNo},#{ele.name}, #{ele.phoneNo},#{ele.custClass})
8
-    </insert>
9
-<!--    <insert id="insertBatch" parameterType="java.util.List">-->
10
-<!--        INSERT INTO "客户生日维护经理表" (BR_NO, NAME, PHONE_NO, CUST_CLASS)-->
11
-<!--        VALUES-->
12
-<!--        <foreach collection="list" item="item" separator="">-->
13
-<!--            (#{item.brNo},#{item.name},#{item.phoneNo},#{item.custClass})-->
14
-<!--        </foreach>-->
15
-<!--    </insert>-->
16
-
17
-    <delete id="removeByPhone">
18
-        DELETE "客户生日维护经理表" b
19
-        WHERE
20
-        b.PHONE_NO =#{phone}
21
-    </delete>
22
-
23
-    <select id="getByPhone" resultType="com.lyg.application.entity.CustomerBirthdayManage">
24
-        SELECT
25
-        *
26
-        FROM
27
-        "客户生日维护经理表" b
28
-        WHERE
29
-        b.PHONE_NO =#{phone}
30
-    </select>
31
-</mapper>

+ 0
- 17
application/src/main/resources/mapper/CustomerBirthdayMapper.xml Прегледај датотеку

@@ -1,17 +0,0 @@
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.lyg.application.mapper.CustomerBirthdayMapper">
5
-
6
-    <insert id="saveBatch">
7
-        INSERT INTO "客户生日表" (CUST_ID, NAME, ID_NUM, BR_NO, BIRTH, CUST_CLASS)
8
-        VALUES (#{ele.custId}, #{ele.name}, #{ele.idNum}, #{ele.brNo}, #{ele.birth}, #{ele.custClass})
9
-    </insert>
10
-    <insert id="insertBatch" parameterType="java.util.List">
11
-        INSERT INTO "客户生日表" (CUST_ID, NAME, ID_NUM, BR_NO, BIRTH, CUST_CLASS)
12
-        VALUES
13
-        <foreach collection="list" item="item" separator=",">
14
-            (#{item.custId}, #{item.name}, #{item.idNum}, #{item.brNo}, #{item.birth}, #{item.custClass})
15
-        </foreach>
16
-    </insert>
17
-</mapper>

application/src/main/resources/mapper/CustomerPingLogMapper.xml → application/src/main/resources/mapper/TaIncompatibleMapper.xml Прегледај датотеку

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

+ 6
- 0
application/src/main/resources/mapper/TaMandatoryLeaveMapper.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.lyg.application.mapper.TaMandatoryLeaveMapper">
5
+    
6
+</mapper>

+ 6
- 0
application/src/main/resources/mapper/TaRotationMapper.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.lyg.application.mapper.TaRotationMapper">
5
+    
6
+</mapper>

+ 5
- 5
common/pom.xml Прегледај датотеку

@@ -38,11 +38,11 @@
38 38
             <artifactId>easyexcel</artifactId>
39 39
             <version>${easyexcel.version}</version>
40 40
         </dependency>
41
-        <dependency>
42
-            <groupId>com.baomidou</groupId>
43
-            <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
44
-            <version>${dynamic.version}</version>
45
-        </dependency>
41
+<!--        <dependency>-->
42
+<!--            <groupId>com.baomidou</groupId>-->
43
+<!--            <artifactId>dynamic-datasource-spring-boot-starter</artifactId>-->
44
+<!--            <version>${dynamic.version}</version>-->
45
+<!--        </dependency>-->
46 46
 
47 47
     </dependencies>
48 48
 </project>

+ 1
- 1
pom.xml Прегледај датотеку

@@ -31,7 +31,7 @@
31 31
 		<swagger.version>3.0.0</swagger.version>
32 32
 		<hutool.version>5.8.11</hutool.version>
33 33
 		<easyexcel.version>3.1.3</easyexcel.version>
34
-		<dynamic.version>3.0.0</dynamic.version>
34
+<!--		<dynamic.version>3.0.0</dynamic.version>-->
35 35
 
36 36
 	</properties>
37 37
 

+ 2
- 5
system/src/main/java/com/lyg/system/controller/BaseController.java Прегледај датотеку

@@ -1,28 +1,27 @@
1 1
 package com.lyg.system.controller;
2 2
 
3 3
 import cn.dev33.satoken.stp.StpUtil;
4
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5 4
 import com.lyg.common.Constants;
6 5
 import com.lyg.common.util.StringUtil;
7 6
 import com.lyg.system.entity.SysUser;
8 7
 import com.lyg.system.service.SysUserService;
9 8
 import com.lyg.system.service.request.Fetch;
10
-import org.apache.poi.ss.formula.functions.T;
11 9
 import org.springframework.beans.factory.annotation.Autowired;
12 10
 import org.springframework.stereotype.Component;
13 11
 
14 12
 import javax.annotation.Resource;
15 13
 import javax.servlet.http.HttpServletRequest;
16 14
 import java.time.LocalDateTime;
17
-import java.util.List;
18 15
 
19 16
 @Component
20 17
 public class BaseController {
21 18
 
22 19
     @Autowired
23 20
     protected SysUserService sysUserService;
21
+
24 22
     @Autowired
25 23
     protected Fetch fetch;
24
+
26 25
     @Resource
27 26
     HttpServletRequest request;
28 27
 
@@ -117,6 +116,4 @@ public class BaseController {
117 116
 //    }
118 117
 
119 118
 
120
-
121
-
122 119
 }