Explorar el Código

修改雪花id引起的重复错误

lamphua hace 1 año
padre
commit
6b73bd4f55
Se han modificado 28 ficheros con 82 adiciones y 93 borrados
  1. 2
    3
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBorrowDetailController.java
  2. 3
    3
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBrandPaymentController.java
  3. 2
    3
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetCarController.java
  4. 2
    4
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetDeviceController.java
  5. 2
    3
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetSettleController.java
  6. 2
    3
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetStaffController.java
  7. 2
    3
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractCommentController.java
  8. 2
    3
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractPaymentController.java
  9. 2
    3
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractWorkController.java
  10. 2
    3
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectProgressController.java
  11. 2
    3
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectWorkController.java
  12. 3
    3
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcSettleSummaryController.java
  13. 3
    3
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcSettleWorkController.java
  14. 1
    1
      oa-back/ruoyi-common/src/main/java/com/ruoyi/common/utils/SnowFlake.java
  15. 3
    3
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBorrowDetail.java
  16. 3
    3
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBrandPayment.java
  17. 3
    3
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetCar.java
  18. 3
    3
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetDevice.java
  19. 3
    3
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetSettle.java
  20. 3
    3
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetStaff.java
  21. 3
    3
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractComment.java
  22. 3
    3
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractPayment.java
  23. 3
    3
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractWork.java
  24. 3
    3
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcProjectProgress.java
  25. 3
    3
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcProjectWork.java
  26. 3
    3
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSettleSummary.java
  27. 3
    3
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSettleWork.java
  28. 13
    13
      oa-back/sql/sql.sql

+ 2
- 3
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBorrowDetailController.java Ver fichero

72
      */
72
      */
73
     @Log(title = "cmc借款明细", businessType = BusinessType.INSERT)
73
     @Log(title = "cmc借款明细", businessType = BusinessType.INSERT)
74
     @PostMapping
74
     @PostMapping
75
-    public AjaxResult add(@RequestBody CmcBorrowDetail cmcBorrowDetail) throws InterruptedException
75
+    public AjaxResult add(@RequestBody CmcBorrowDetail cmcBorrowDetail)
76
     {
76
     {
77
-        Thread.sleep(1);
78
-        cmcBorrowDetail.setBorrowDetailId(new SnowFlake().generateId());
77
+        cmcBorrowDetail.setBorrowDetailId(new SnowFlake().nextId());
79
         return toAjax(cmcBorrowDetailService.insertCmcBorrowDetail(cmcBorrowDetail));
78
         return toAjax(cmcBorrowDetailService.insertCmcBorrowDetail(cmcBorrowDetail));
80
     }
79
     }
81
 
80
 

+ 3
- 3
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBrandPaymentController.java Ver fichero

72
      */
72
      */
73
     @Log(title = "cmc品牌项目支付记录", businessType = BusinessType.INSERT)
73
     @Log(title = "cmc品牌项目支付记录", businessType = BusinessType.INSERT)
74
     @PostMapping
74
     @PostMapping
75
-    public AjaxResult add(@RequestBody CmcBrandPayment cmcBrandPayment) throws InterruptedException {
76
-        Thread.sleep(1);
77
-        cmcBrandPayment.setBrandPaymentId(new SnowFlake().generateId());
75
+    public AjaxResult add(@RequestBody CmcBrandPayment cmcBrandPayment)
76
+    {
77
+        cmcBrandPayment.setBrandPaymentId(new SnowFlake().nextId());
78
         return toAjax(cmcBrandPaymentService.insertCmcBrandPayment(cmcBrandPayment));
78
         return toAjax(cmcBrandPaymentService.insertCmcBrandPayment(cmcBrandPayment));
79
     }
79
     }
80
 
80
 

+ 2
- 3
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetCarController.java Ver fichero

73
      */
73
      */
74
     @Log(title = "cmc车辆预算", businessType = BusinessType.INSERT)
74
     @Log(title = "cmc车辆预算", businessType = BusinessType.INSERT)
75
     @PostMapping
75
     @PostMapping
76
-    public AjaxResult add(@RequestBody CmcBudgetCar cmcBudgetCar) throws InterruptedException
76
+    public AjaxResult add(@RequestBody CmcBudgetCar cmcBudgetCar)
77
     {
77
     {
78
-        Thread.sleep(1);
79
-        cmcBudgetCar.setBudgetCarId(new SnowFlake().generateId());
78
+        cmcBudgetCar.setBudgetCarId(new SnowFlake().nextId());
80
         return toAjax(cmcBudgetCarService.insertCmcBudgetCar(cmcBudgetCar));
79
         return toAjax(cmcBudgetCarService.insertCmcBudgetCar(cmcBudgetCar));
81
     }
80
     }
82
 
81
 

+ 2
- 4
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetDeviceController.java Ver fichero

73
      */
73
      */
74
     @Log(title = "cmc设备预算", businessType = BusinessType.INSERT)
74
     @Log(title = "cmc设备预算", businessType = BusinessType.INSERT)
75
     @PostMapping
75
     @PostMapping
76
-    public AjaxResult add(@RequestBody CmcBudgetDevice cmcBudgetDevice) throws InterruptedException
77
-    {
78
-        Thread.sleep(1);
79
-        cmcBudgetDevice.setBudgetDeviceId(new SnowFlake().generateId());
76
+    public AjaxResult add(@RequestBody CmcBudgetDevice cmcBudgetDevice){
77
+        cmcBudgetDevice.setBudgetDeviceId(new SnowFlake().nextId());
80
         return toAjax(cmcBudgetDeviceService.insertCmcBudgetDevice(cmcBudgetDevice));
78
         return toAjax(cmcBudgetDeviceService.insertCmcBudgetDevice(cmcBudgetDevice));
81
     }
79
     }
82
 
80
 

+ 2
- 3
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetSettleController.java Ver fichero

73
      */
73
      */
74
     @Log(title = "cmc预结算", businessType = BusinessType.INSERT)
74
     @Log(title = "cmc预结算", businessType = BusinessType.INSERT)
75
     @PostMapping
75
     @PostMapping
76
-    public AjaxResult add(@RequestBody CmcBudgetSettle cmcBudgetSettle) throws InterruptedException
76
+    public AjaxResult add(@RequestBody CmcBudgetSettle cmcBudgetSettle)
77
     {
77
     {
78
-        Thread.sleep(1);
79
-        cmcBudgetSettle.setBudgetSettleId(new SnowFlake().generateId());
78
+        cmcBudgetSettle.setBudgetSettleId(new SnowFlake().nextId());
80
         return toAjax(cmcBudgetSettleService.insertCmcBudgetSettle(cmcBudgetSettle));
79
         return toAjax(cmcBudgetSettleService.insertCmcBudgetSettle(cmcBudgetSettle));
81
     }
80
     }
82
 
81
 

+ 2
- 3
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetStaffController.java Ver fichero

73
      */
73
      */
74
     @Log(title = "cmc人员预算", businessType = BusinessType.INSERT)
74
     @Log(title = "cmc人员预算", businessType = BusinessType.INSERT)
75
     @PostMapping
75
     @PostMapping
76
-    public AjaxResult add(@RequestBody CmcBudgetStaff cmcBudgetStaff) throws InterruptedException
76
+    public AjaxResult add(@RequestBody CmcBudgetStaff cmcBudgetStaff)
77
     {
77
     {
78
-        Thread.sleep(1);
79
-        cmcBudgetStaff.setBudgetStaffId(new SnowFlake().generateId());
78
+        cmcBudgetStaff.setBudgetStaffId(new SnowFlake().nextId());
80
         return toAjax(cmcBudgetStaffService.insertCmcBudgetStaff(cmcBudgetStaff));
79
         return toAjax(cmcBudgetStaffService.insertCmcBudgetStaff(cmcBudgetStaff));
81
     }
80
     }
82
 
81
 

+ 2
- 3
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractCommentController.java Ver fichero

74
      */
74
      */
75
     @Log(title = "cmc合同意见", businessType = BusinessType.INSERT)
75
     @Log(title = "cmc合同意见", businessType = BusinessType.INSERT)
76
     @PostMapping
76
     @PostMapping
77
-    public AjaxResult add(@RequestBody CmcContractComment cmcContractComment) throws InterruptedException
77
+    public AjaxResult add(@RequestBody CmcContractComment cmcContractComment)
78
     {
78
     {
79
-        Thread.sleep(1);
80
-        cmcContractComment.setCommentId(new SnowFlake().generateId());
79
+        cmcContractComment.setCommentId(new SnowFlake().nextId());
81
         return toAjax(cmcContractCommentService.insertCmcContractComment(cmcContractComment));
80
         return toAjax(cmcContractCommentService.insertCmcContractComment(cmcContractComment));
82
     }
81
     }
83
 
82
 

+ 2
- 3
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractPaymentController.java Ver fichero

72
      */
72
      */
73
     @Log(title = "cmc合同回款", businessType = BusinessType.INSERT)
73
     @Log(title = "cmc合同回款", businessType = BusinessType.INSERT)
74
     @PostMapping
74
     @PostMapping
75
-    public AjaxResult add(@RequestBody CmcContractPayment cmcContractPayment) throws InterruptedException
75
+    public AjaxResult add(@RequestBody CmcContractPayment cmcContractPayment)
76
     {
76
     {
77
-        Thread.sleep(1);
78
-        cmcContractPayment.setPaymentId(new SnowFlake().generateId());
77
+        cmcContractPayment.setPaymentId(new SnowFlake().nextId());
79
         return toAjax(cmcContractPaymentService.insertCmcContractPayment(cmcContractPayment));
78
         return toAjax(cmcContractPaymentService.insertCmcContractPayment(cmcContractPayment));
80
     }
79
     }
81
 
80
 

+ 2
- 3
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractWorkController.java Ver fichero

72
      */
72
      */
73
     @Log(title = "cmc合同内容", businessType = BusinessType.INSERT)
73
     @Log(title = "cmc合同内容", businessType = BusinessType.INSERT)
74
     @PostMapping
74
     @PostMapping
75
-    public AjaxResult add(@RequestBody CmcContractWork cmcContractWork) throws InterruptedException
75
+    public AjaxResult add(@RequestBody CmcContractWork cmcContractWork)
76
     {
76
     {
77
-        Thread.sleep(1);
78
-        cmcContractWork.setWorkId(new SnowFlake().generateId());
77
+        cmcContractWork.setWorkId(new SnowFlake().nextId());
79
         return toAjax(cmcContractWorkService.insertCmcContractWork(cmcContractWork));
78
         return toAjax(cmcContractWorkService.insertCmcContractWork(cmcContractWork));
80
     }
79
     }
81
 
80
 

+ 2
- 3
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectProgressController.java Ver fichero

72
      */
72
      */
73
     @Log(title = "cmc项目进度", businessType = BusinessType.INSERT)
73
     @Log(title = "cmc项目进度", businessType = BusinessType.INSERT)
74
     @PostMapping
74
     @PostMapping
75
-    public AjaxResult add(@RequestBody CmcProjectProgress cmcProjectProgress) throws InterruptedException
75
+    public AjaxResult add(@RequestBody CmcProjectProgress cmcProjectProgress)
76
     {
76
     {
77
-        Thread.sleep(1);
78
-        cmcProjectProgress.setProgressId(new SnowFlake().generateId());
77
+        cmcProjectProgress.setProgressId(new SnowFlake().nextId());
79
         return toAjax(cmcProjectProgressService.insertCmcProjectProgress(cmcProjectProgress));
78
         return toAjax(cmcProjectProgressService.insertCmcProjectProgress(cmcProjectProgress));
80
     }
79
     }
81
 
80
 

+ 2
- 3
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectWorkController.java Ver fichero

72
      */
72
      */
73
     @Log(title = "cmc项目内容", businessType = BusinessType.INSERT)
73
     @Log(title = "cmc项目内容", businessType = BusinessType.INSERT)
74
     @PostMapping
74
     @PostMapping
75
-    public AjaxResult add(@RequestBody CmcProjectWork cmcProjectWork) throws InterruptedException
75
+    public AjaxResult add(@RequestBody CmcProjectWork cmcProjectWork)
76
     {
76
     {
77
-        Thread.sleep(1);
78
-        cmcProjectWork.setWorkId(new SnowFlake().generateId());
77
+        cmcProjectWork.setWorkId(new SnowFlake().nextId());
79
         return toAjax(cmcProjectWorkService.insertCmcProjectWork(cmcProjectWork));
78
         return toAjax(cmcProjectWorkService.insertCmcProjectWork(cmcProjectWork));
80
     }
79
     }
81
 
80
 

+ 3
- 3
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcSettleSummaryController.java Ver fichero

72
      */
72
      */
73
     @Log(title = "cmc结算汇总", businessType = BusinessType.INSERT)
73
     @Log(title = "cmc结算汇总", businessType = BusinessType.INSERT)
74
     @PostMapping
74
     @PostMapping
75
-    public AjaxResult add(@RequestBody CmcSettleSummary cmcSettleSummary) throws InterruptedException {
76
-        Thread.sleep(2);
77
-        cmcSettleSummary.setSummaryId(new SnowFlake().generateId());
75
+    public AjaxResult add(@RequestBody CmcSettleSummary cmcSettleSummary)
76
+    {
77
+        cmcSettleSummary.setSummaryId(new SnowFlake().nextId());
78
         return toAjax(cmcSettleSummaryService.insertCmcSettleSummary(cmcSettleSummary));
78
         return toAjax(cmcSettleSummaryService.insertCmcSettleSummary(cmcSettleSummary));
79
     }
79
     }
80
 
80
 

+ 3
- 3
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcSettleWorkController.java Ver fichero

72
      */
72
      */
73
     @Log(title = "cmc经费计算", businessType = BusinessType.INSERT)
73
     @Log(title = "cmc经费计算", businessType = BusinessType.INSERT)
74
     @PostMapping
74
     @PostMapping
75
-    public AjaxResult add(@RequestBody CmcSettleWork cmcSettleWork) throws InterruptedException {
76
-        Thread.sleep(2);
77
-        cmcSettleWork.setWorkId(new SnowFlake().generateId());
75
+    public AjaxResult add(@RequestBody CmcSettleWork cmcSettleWork)
76
+    {
77
+        cmcSettleWork.setWorkId(new SnowFlake().nextId());
78
         return toAjax(cmcSettleWorkService.insertCmcSettleWork(cmcSettleWork));
78
         return toAjax(cmcSettleWorkService.insertCmcSettleWork(cmcSettleWork));
79
     }
79
     }
80
 
80
 

+ 1
- 1
oa-back/ruoyi-common/src/main/java/com/ruoyi/common/utils/SnowFlake.java Ver fichero

14
 @Component
14
 @Component
15
 public class SnowFlake {
15
 public class SnowFlake {
16
     /* 时间起始标记点,作为基准,一般取系统的最近时间(一旦确定不能变动) */
16
     /* 时间起始标记点,作为基准,一般取系统的最近时间(一旦确定不能变动) */
17
-    private final long twepoch = 1288834974657L;
17
+    private final long twepoch = 1715236540000L;
18
     private final long workerIdBits = 5L;/* 机器标识位数 */
18
     private final long workerIdBits = 5L;/* 机器标识位数 */
19
     private final long datacenterIdBits = 5L;
19
     private final long datacenterIdBits = 5L;
20
     private final long maxWorkerId = -1L ^ (-1L << workerIdBits);
20
     private final long maxWorkerId = -1L ^ (-1L << workerIdBits);

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBorrowDetail.java Ver fichero

17
     private static final long serialVersionUID = 1L;
17
     private static final long serialVersionUID = 1L;
18
 
18
 
19
     /** 借款明细id */
19
     /** 借款明细id */
20
-    private String borrowDetailId;
20
+    private Long borrowDetailId;
21
 
21
 
22
     /** 借款id */
22
     /** 借款id */
23
     @Excel(name = "借款id")
23
     @Excel(name = "借款id")
51
     @Excel(name = "分管审核金额")
51
     @Excel(name = "分管审核金额")
52
     private BigDecimal managerAmount;
52
     private BigDecimal managerAmount;
53
 
53
 
54
-    public void setBorrowDetailId(String borrowDetailId) 
54
+    public void setBorrowDetailId(Long borrowDetailId)
55
     {
55
     {
56
         this.borrowDetailId = borrowDetailId;
56
         this.borrowDetailId = borrowDetailId;
57
     }
57
     }
58
 
58
 
59
-    public String getBorrowDetailId() 
59
+    public Long getBorrowDetailId()
60
     {
60
     {
61
         return borrowDetailId;
61
         return borrowDetailId;
62
     }
62
     }

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBrandPayment.java Ver fichero

18
     private static final long serialVersionUID = 1L;
18
     private static final long serialVersionUID = 1L;
19
 
19
 
20
     /** 品牌项目支付记录id */
20
     /** 品牌项目支付记录id */
21
-    private String brandPaymentId;
21
+    private Long brandPaymentId;
22
 
22
 
23
     /** 品牌项目支付审批id */
23
     /** 品牌项目支付审批id */
24
     @Excel(name = "品牌项目支付审批id")
24
     @Excel(name = "品牌项目支付审批id")
33
     @Excel(name = "到账情况")
33
     @Excel(name = "到账情况")
34
     private String cwComment;
34
     private String cwComment;
35
 
35
 
36
-    public void setBrandPaymentId(String brandPaymentId) 
36
+    public void setBrandPaymentId(Long brandPaymentId)
37
     {
37
     {
38
         this.brandPaymentId = brandPaymentId;
38
         this.brandPaymentId = brandPaymentId;
39
     }
39
     }
40
 
40
 
41
-    public String getBrandPaymentId() 
41
+    public Long getBrandPaymentId()
42
     {
42
     {
43
         return brandPaymentId;
43
         return brandPaymentId;
44
     }
44
     }

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetCar.java Ver fichero

19
     private static final long serialVersionUID = 1L;
19
     private static final long serialVersionUID = 1L;
20
 
20
 
21
     /** 车辆预算id */
21
     /** 车辆预算id */
22
-    private String budgetCarId;
22
+    private Long budgetCarId;
23
 
23
 
24
     /** 预算id */
24
     /** 预算id */
25
     @Excel(name = "预算id")
25
     @Excel(name = "预算id")
53
     @Excel(name = "使用成本")
53
     @Excel(name = "使用成本")
54
     private BigDecimal expense;
54
     private BigDecimal expense;
55
 
55
 
56
-    public void setBudgetCarId(String budgetCarId) 
56
+    public void setBudgetCarId(Long budgetCarId)
57
     {
57
     {
58
         this.budgetCarId = budgetCarId;
58
         this.budgetCarId = budgetCarId;
59
     }
59
     }
60
 
60
 
61
-    public String getBudgetCarId() 
61
+    public Long getBudgetCarId()
62
     {
62
     {
63
         return budgetCarId;
63
         return budgetCarId;
64
     }
64
     }

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetDevice.java Ver fichero

17
     private static final long serialVersionUID = 1L;
17
     private static final long serialVersionUID = 1L;
18
 
18
 
19
     /** 设备预算id */
19
     /** 设备预算id */
20
-    private String budgetDeviceId;
20
+    private Long budgetDeviceId;
21
 
21
 
22
     /** 预算id */
22
     /** 预算id */
23
     @Excel(name = "预算id")
23
     @Excel(name = "预算id")
37
     @Excel(name = "折旧成本")
37
     @Excel(name = "折旧成本")
38
     private BigDecimal depreciation;
38
     private BigDecimal depreciation;
39
 
39
 
40
-    public void setBudgetDeviceId(String budgetDeviceId) 
40
+    public void setBudgetDeviceId(Long budgetDeviceId)
41
     {
41
     {
42
         this.budgetDeviceId = budgetDeviceId;
42
         this.budgetDeviceId = budgetDeviceId;
43
     }
43
     }
44
 
44
 
45
-    public String getBudgetDeviceId() 
45
+    public Long getBudgetDeviceId()
46
     {
46
     {
47
         return budgetDeviceId;
47
         return budgetDeviceId;
48
     }
48
     }

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetSettle.java Ver fichero

17
     private static final long serialVersionUID = 1L;
17
     private static final long serialVersionUID = 1L;
18
 
18
 
19
     /** 预结算id */
19
     /** 预结算id */
20
-    private String budgetSettleId;
20
+    private Long budgetSettleId;
21
 
21
 
22
     /** 预算id */
22
     /** 预算id */
23
     @Excel(name = "预算id")
23
     @Excel(name = "预算id")
45
     @Excel(name = "结算金额")
45
     @Excel(name = "结算金额")
46
     private BigDecimal settle;
46
     private BigDecimal settle;
47
 
47
 
48
-    public void setBudgetSettleId(String budgetSettleId) 
48
+    public void setBudgetSettleId(Long budgetSettleId)
49
     {
49
     {
50
         this.budgetSettleId = budgetSettleId;
50
         this.budgetSettleId = budgetSettleId;
51
     }
51
     }
52
 
52
 
53
-    public String getBudgetSettleId() 
53
+    public Long getBudgetSettleId()
54
     {
54
     {
55
         return budgetSettleId;
55
         return budgetSettleId;
56
     }
56
     }

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetStaff.java Ver fichero

20
     private static final long serialVersionUID = 1L;
20
     private static final long serialVersionUID = 1L;
21
 
21
 
22
     /** 人员预算id */
22
     /** 人员预算id */
23
-    private String budgetStaffId;
23
+    private Long budgetStaffId;
24
 
24
 
25
     /** 预算id */
25
     /** 预算id */
26
     @Excel(name = "预算id")
26
     @Excel(name = "预算id")
50
     @Excel(name = "进出场费用")
50
     @Excel(name = "进出场费用")
51
     private BigDecimal inOutExpense;
51
     private BigDecimal inOutExpense;
52
 
52
 
53
-    public void setBudgetStaffId(String budgetStaffId) 
53
+    public void setBudgetStaffId(Long budgetStaffId)
54
     {
54
     {
55
         this.budgetStaffId = budgetStaffId;
55
         this.budgetStaffId = budgetStaffId;
56
     }
56
     }
57
 
57
 
58
-    public String getBudgetStaffId() 
58
+    public Long getBudgetStaffId()
59
     {
59
     {
60
         return budgetStaffId;
60
         return budgetStaffId;
61
     }
61
     }

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractComment.java Ver fichero

19
     private static final long serialVersionUID = 1L;
19
     private static final long serialVersionUID = 1L;
20
 
20
 
21
     /** 合同会审意见id */
21
     /** 合同会审意见id */
22
-    private String commentId;
22
+    private Long commentId;
23
 
23
 
24
     /** 合同id */
24
     /** 合同id */
25
     @Excel(name = "合同id")
25
     @Excel(name = "合同id")
48
     @Excel(name = "会审日期", width = 30, dateFormat = "yyyy-MM-dd")
48
     @Excel(name = "会审日期", width = 30, dateFormat = "yyyy-MM-dd")
49
     private Date commentTime;
49
     private Date commentTime;
50
 
50
 
51
-    public void setCommentId(String commentId)
51
+    public void setCommentId(Long commentId)
52
     {
52
     {
53
         this.commentId = commentId;
53
         this.commentId = commentId;
54
     }
54
     }
55
 
55
 
56
-    public String getCommentId()
56
+    public Long getCommentId()
57
     {
57
     {
58
         return commentId;
58
         return commentId;
59
     }
59
     }

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractPayment.java Ver fichero

18
     private static final long serialVersionUID = 1L;
18
     private static final long serialVersionUID = 1L;
19
 
19
 
20
     /** 合同回款id */
20
     /** 合同回款id */
21
-    private String paymentId;
21
+    private Long paymentId;
22
 
22
 
23
     /** 合同id */
23
     /** 合同id */
24
     @Excel(name = "合同id")
24
     @Excel(name = "合同id")
41
     @Excel(name = "回款预计时间", width = 30, dateFormat = "yyyy-MM-dd")
41
     @Excel(name = "回款预计时间", width = 30, dateFormat = "yyyy-MM-dd")
42
     private Date paymentTime;
42
     private Date paymentTime;
43
 
43
 
44
-    public void setPaymentId(String paymentId) 
44
+    public void setPaymentId(Long paymentId)
45
     {
45
     {
46
         this.paymentId = paymentId;
46
         this.paymentId = paymentId;
47
     }
47
     }
48
 
48
 
49
-    public String getPaymentId() 
49
+    public Long getPaymentId()
50
     {
50
     {
51
         return paymentId;
51
         return paymentId;
52
     }
52
     }

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractWork.java Ver fichero

18
     private static final long serialVersionUID = 1L;
18
     private static final long serialVersionUID = 1L;
19
 
19
 
20
     /** 工作内容id */
20
     /** 工作内容id */
21
-    private String workId;
21
+    private Long workId;
22
 
22
 
23
     /** 合同id */
23
     /** 合同id */
24
     @Excel(name = "合同id")
24
     @Excel(name = "合同id")
45
     @Excel(name = "要求完成时间", width = 30, dateFormat = "yyyy-MM-dd")
45
     @Excel(name = "要求完成时间", width = 30, dateFormat = "yyyy-MM-dd")
46
     private Date deadline;
46
     private Date deadline;
47
 
47
 
48
-    public void setWorkId(String workId) 
48
+    public void setWorkId(Long workId)
49
     {
49
     {
50
         this.workId = workId;
50
         this.workId = workId;
51
     }
51
     }
52
 
52
 
53
-    public String getWorkId() 
53
+    public Long getWorkId()
54
     {
54
     {
55
         return workId;
55
         return workId;
56
     }
56
     }

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcProjectProgress.java Ver fichero

18
     private static final long serialVersionUID = 1L;
18
     private static final long serialVersionUID = 1L;
19
 
19
 
20
     /** 项目进度id */
20
     /** 项目进度id */
21
-    private String progressId;
21
+    private Long progressId;
22
 
22
 
23
     /** 项目id */
23
     /** 项目id */
24
     @Excel(name = "项目id")
24
     @Excel(name = "项目id")
37
     @Excel(name = "情况说明")
37
     @Excel(name = "情况说明")
38
     private String situation;
38
     private String situation;
39
 
39
 
40
-    public void setProgressId(String progressId) 
40
+    public void setProgressId(Long progressId)
41
     {
41
     {
42
         this.progressId = progressId;
42
         this.progressId = progressId;
43
     }
43
     }
44
 
44
 
45
-    public String getProgressId() 
45
+    public Long getProgressId()
46
     {
46
     {
47
         return progressId;
47
         return progressId;
48
     }
48
     }

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcProjectWork.java Ver fichero

18
     private static final long serialVersionUID = 1L;
18
     private static final long serialVersionUID = 1L;
19
 
19
 
20
     /** 工作内容id */
20
     /** 工作内容id */
21
-    private String workId;
21
+    private Long workId;
22
 
22
 
23
     /** 项目id */
23
     /** 项目id */
24
     private String projectId;
24
     private String projectId;
49
     @Excel(name = "实际完成时间", width = 30, dateFormat = "yyyy-MM-dd")
49
     @Excel(name = "实际完成时间", width = 30, dateFormat = "yyyy-MM-dd")
50
     private Date finishTime;
50
     private Date finishTime;
51
 
51
 
52
-    public void setWorkId(String workId)
52
+    public void setWorkId(Long workId)
53
     {
53
     {
54
         this.workId = workId;
54
         this.workId = workId;
55
     }
55
     }
56
 
56
 
57
-    public String getWorkId()
57
+    public Long getWorkId()
58
     {
58
     {
59
         return workId;
59
         return workId;
60
     }
60
     }

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSettleSummary.java Ver fichero

17
     private static final long serialVersionUID = 1L;
17
     private static final long serialVersionUID = 1L;
18
 
18
 
19
     /** 结算汇总id */
19
     /** 结算汇总id */
20
-    private String summaryId;
20
+    private Long summaryId;
21
 
21
 
22
     /** 结算id */
22
     /** 结算id */
23
     @Excel(name = "结算id")
23
     @Excel(name = "结算id")
35
     @Excel(name = "结算金额")
35
     @Excel(name = "结算金额")
36
     private BigDecimal amount;
36
     private BigDecimal amount;
37
 
37
 
38
-    public void setSummaryId(String summaryId) 
38
+    public void setSummaryId(Long summaryId)
39
     {
39
     {
40
         this.summaryId = summaryId;
40
         this.summaryId = summaryId;
41
     }
41
     }
42
 
42
 
43
-    public String getSummaryId() 
43
+    public Long getSummaryId()
44
     {
44
     {
45
         return summaryId;
45
         return summaryId;
46
     }
46
     }

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSettleWork.java Ver fichero

17
     private static final long serialVersionUID = 1L;
17
     private static final long serialVersionUID = 1L;
18
 
18
 
19
     /** 工作内容id */
19
     /** 工作内容id */
20
-    private String workId;
20
+    private Long workId;
21
 
21
 
22
     /** 结算id */
22
     /** 结算id */
23
     @Excel(name = "结算id")
23
     @Excel(name = "结算id")
55
     @Excel(name = "项目经费", readConverterExp = "分=管")
55
     @Excel(name = "项目经费", readConverterExp = "分=管")
56
     private BigDecimal settleManager;
56
     private BigDecimal settleManager;
57
 
57
 
58
-    public void setWorkId(String workId) 
58
+    public void setWorkId(Long workId)
59
     {
59
     {
60
         this.workId = workId;
60
         this.workId = workId;
61
     }
61
     }
62
 
62
 
63
-    public String getWorkId() 
63
+    public Long getWorkId()
64
     {
64
     {
65
         return workId;
65
         return workId;
66
     }
66
     }

+ 13
- 13
oa-back/sql/sql.sql Ver fichero

1513
 -- ----------------------------
1513
 -- ----------------------------
1514
 drop table if exists `cmc_project_work`;
1514
 drop table if exists `cmc_project_work`;
1515
 create table `cmc_project_work`  (
1515
 create table `cmc_project_work`  (
1516
-  `work_id`			char(19)		not null		comment '工作内容id',
1516
+  `work_id`			bigint not null  auto_increment comment '工作内容id',
1517
   `project_id`		char(19)		default null	comment '项目id',
1517
   `project_id`		char(19)		default null	comment '项目id',
1518
   `content`			varchar(255)	default null	comment '工作内容',
1518
   `content`			varchar(255)	default null	comment '工作内容',
1519
   `scale`			varchar(10)		default null	comment '等级或比例尺',
1519
   `scale`			varchar(10)		default null	comment '等级或比例尺',
3114
 -- ----------------------------
3114
 -- ----------------------------
3115
 drop table if exists `cmc_contract_comment`;
3115
 drop table if exists `cmc_contract_comment`;
3116
 create table `cmc_contract_comment`  (
3116
 create table `cmc_contract_comment`  (
3117
-  `comment_id` 		char(19)  		not null 	 comment '合同会审意见id',
3117
+  `comment_id` 		bigint not null  auto_increment comment '合同会审意见id',
3118
   `contract_id` 	char(19)  		default null comment '合同id',
3118
   `contract_id` 	char(19)  		default null comment '合同id',
3119
   `dept_id` 		bigint  		default null comment '会审部门',
3119
   `dept_id` 		bigint  		default null comment '会审部门',
3120
   `user_id` 		bigint 			default null comment '会审人',
3120
   `user_id` 		bigint 			default null comment '会审人',
3154
 -- ----------------------------
3154
 -- ----------------------------
3155
 drop table if exists `cmc_contract_payment`;
3155
 drop table if exists `cmc_contract_payment`;
3156
 create table `cmc_contract_payment`  (
3156
 create table `cmc_contract_payment`  (
3157
-  `payment_id` 			char(19)  		not null 	 comment '合同回款id',
3157
+  `payment_id` 			bigint not null  auto_increment comment '合同回款id',
3158
   `contract_id` 		char(19)  		default null comment '合同id',
3158
   `contract_id` 		char(19)  		default null comment '合同id',
3159
   `payment_condition` 	varchar(255)  	default null comment '回款条件',
3159
   `payment_condition` 	varchar(255)  	default null comment '回款条件',
3160
   `payment_percentage` 	varchar(5)  	default null comment '回款比例',
3160
   `payment_percentage` 	varchar(5)  	default null comment '回款比例',
3173
 -- ----------------------------
3173
 -- ----------------------------
3174
 drop table if exists `cmc_contract_work`;
3174
 drop table if exists `cmc_contract_work`;
3175
 create table `cmc_contract_work`  (
3175
 create table `cmc_contract_work`  (
3176
-  `work_id` 			char(19)  		not null 	 comment '工作内容id',
3176
+  `work_id` 			bigint not null  auto_increment comment '工作内容id',
3177
   `contract_id` 		char(19)  		default null comment '合同id',
3177
   `contract_id` 		char(19)  		default null comment '合同id',
3178
   `content` 			varchar(255)  	default null comment '工作内容',
3178
   `content` 			varchar(255)  	default null comment '工作内容',
3179
   `scale` 				varchar(10)  	default null comment '等级或比例尺',
3179
   `scale` 				varchar(10)  	default null comment '等级或比例尺',
3621
 -- ----------------------------
3621
 -- ----------------------------
3622
 drop table if exists `cmc_budget_car`;
3622
 drop table if exists `cmc_budget_car`;
3623
 create table `cmc_budget_car`  (
3623
 create table `cmc_budget_car`  (
3624
-  `budget_car_id` 	char(19)		not null 	comment '车辆预算id',
3624
+  `budget_car_id` 	bigint not null  auto_increment comment '车辆预算id',
3625
   `budget_id` 		char(19) 		default null comment '预算id',
3625
   `budget_id` 		char(19) 		default null comment '预算id',
3626
   `car_id` 			int 			default null comment '车辆id',
3626
   `car_id` 			int 			default null comment '车辆id',
3627
   `days` 			int 			default null comment '天数',
3627
   `days` 			int 			default null comment '天数',
3642
 -- ----------------------------
3642
 -- ----------------------------
3643
 drop table if exists `cmc_budget_device`;
3643
 drop table if exists `cmc_budget_device`;
3644
 create table `cmc_budget_device`  (
3644
 create table `cmc_budget_device`  (
3645
-  `budget_device_id` 	char(19) 		not null 	comment '设备预算id',
3645
+  `budget_device_id` 	bigint not null  auto_increment comment '设备预算id',
3646
   `budget_id` 			char(19) 		default null comment '预算id',
3646
   `budget_id` 			char(19) 		default null comment '预算id',
3647
   `device_id` 			int 			default null comment '设备id',
3647
   `device_id` 			int 			default null comment '设备id',
3648
   `days` 				int 			default null comment '天数',
3648
   `days` 				int 			default null comment '天数',
3660
 -- ----------------------------
3660
 -- ----------------------------
3661
 drop table if exists `cmc_budget_settle`;
3661
 drop table if exists `cmc_budget_settle`;
3662
 create table `cmc_budget_settle`  (
3662
 create table `cmc_budget_settle`  (
3663
-  `budget_settle_id` 	char(19) 		not null 	comment '预结算id',
3663
+  `budget_settle_id` 	bigint not null  auto_increment comment '预结算id',
3664
   `budget_id` 			char(19) 		default null comment '预算id',
3664
   `budget_id` 			char(19) 		default null comment '预算id',
3665
   `price_id` 			int 			default null comment '结算单价id',
3665
   `price_id` 			int 			default null comment '结算单价id',
3666
   `workload` 			double 			default null comment '工作量',
3666
   `workload` 			double 			default null comment '工作量',
3680
 -- ----------------------------
3680
 -- ----------------------------
3681
 drop table if exists `cmc_budget_staff`;
3681
 drop table if exists `cmc_budget_staff`;
3682
 create table `cmc_budget_staff`  (
3682
 create table `cmc_budget_staff`  (
3683
-  `budget_staff_id` 	char(19) 		not null 	comment '人员预算id',
3683
+  `budget_staff_id` 	bigint not null  auto_increment comment '人员预算id',
3684
   `budget_id` 			char(19) 		default null comment '预算id',
3684
   `budget_id` 			char(19) 		default null comment '预算id',
3685
   `user_id` 			bigint 			default null comment '人员id',
3685
   `user_id` 			bigint 			default null comment '人员id',
3686
   `days` 				int 			default null comment '天数',
3686
   `days` 				int 			default null comment '天数',
3738
 -- ----------------------------
3738
 -- ----------------------------
3739
 drop table if exists `cmc_project_progress`;
3739
 drop table if exists `cmc_project_progress`;
3740
 create table `cmc_project_progress`  (
3740
 create table `cmc_project_progress`  (
3741
-  `progress_id` 	char(19)  		not null 	comment '项目进度id',
3741
+  `progress_id` 	bigint not null  auto_increment comment '项目进度id',
3742
   `project_id` 		char(19)		default null comment '项目id',
3742
   `project_id` 		char(19)		default null comment '项目id',
3743
   `percentage` 		varchar(5)		default null comment '累计进度',
3743
   `percentage` 		varchar(5)		default null comment '累计进度',
3744
   `date` 			date			default null comment '截止日期',
3744
   `date` 			date			default null comment '截止日期',
3846
 -- ----------------------------
3846
 -- ----------------------------
3847
 drop table if exists `cmc_borrow_detail`;
3847
 drop table if exists `cmc_borrow_detail`;
3848
 create table `cmc_borrow_detail`  (
3848
 create table `cmc_borrow_detail`  (
3849
-  `borrow_detail_id`	char(19)  		not null 	comment '借款明细id',
3849
+  `borrow_detail_id`	bigint not null  auto_increment comment '借款明细id',
3850
   `borrow_id` 			char(19)  		default null comment '借款id',
3850
   `borrow_id` 			char(19)  		default null comment '借款id',
3851
   `borrow_item` 		varchar(50)  	default null comment '开支项',
3851
   `borrow_item` 		varchar(50)  	default null comment '开支项',
3852
   `unit` 				varchar(10)  	default null comment '单位',
3852
   `unit` 				varchar(10)  	default null comment '单位',
3968
 -- ----------------------------
3968
 -- ----------------------------
3969
 drop table if exists `cmc_brand_payment`;
3969
 drop table if exists `cmc_brand_payment`;
3970
 create table `cmc_brand_payment`  (
3970
 create table `cmc_brand_payment`  (
3971
-  `brand_payment_id` 	char(19)  		not null 	 comment '品牌项目支付记录id',
3971
+  `brand_payment_id` 	bigint not null  auto_increment comment '品牌项目支付记录id',
3972
   `brand_id` 			char(19)  		default null comment '品牌项目支付审批id',
3972
   `brand_id` 			char(19)  		default null comment '品牌项目支付审批id',
3973
   `payment_time` 		date  			default null comment '到账时间',
3973
   `payment_time` 		date  			default null comment '到账时间',
3974
   `cw_comment` 			varchar(255)  	default null comment '到账情况',
3974
   `cw_comment` 			varchar(255)  	default null comment '到账情况',
4087
 -- ----------------------------
4087
 -- ----------------------------
4088
 drop table if exists `cmc_settle_work`;
4088
 drop table if exists `cmc_settle_work`;
4089
 create table `cmc_settle_work`  (
4089
 create table `cmc_settle_work`  (
4090
-  `work_id`			char(19)		not null		comment '工作内容id',
4090
+  `work_id`			bigint not null  auto_increment comment '工作内容id',
4091
   `settle_id`		char(19)		default null	comment '结算id',
4091
   `settle_id`		char(19)		default null	comment '结算id',
4092
   `content`			varchar(255)	default null	comment '工作内容',
4092
   `content`			varchar(255)	default null	comment '工作内容',
4093
   `price_id` 		int 			default null 	comment '结算单价id',
4093
   `price_id` 		int 			default null 	comment '结算单价id',
4110
 -- ----------------------------
4110
 -- ----------------------------
4111
 drop table if exists `cmc_settle_summary`;
4111
 drop table if exists `cmc_settle_summary`;
4112
 create table `cmc_settle_summary`  (
4112
 create table `cmc_settle_summary`  (
4113
-  `summary_id`		char(19)		not null		comment '结算汇总id',
4113
+  `summary_id`		bigint not null  auto_increment comment '结算汇总id',
4114
   `settle_id`		char(19)		default null	comment '结算id',
4114
   `settle_id`		char(19)		default null	comment '结算id',
4115
   `content`			varchar(255)	default null	comment '结算内容',
4115
   `content`			varchar(255)	default null	comment '结算内容',
4116
   `amount`			decimal(10,2)	default null	comment '结算金额',
4116
   `amount`			decimal(10,2)	default null	comment '结算金额',

Loading…
Cancelar
Guardar