Selaa lähdekoodia

新版预算修改

lamphua 4 viikkoa sitten
vanhempi
commit
815cc82621
21 muutettua tiedostoa jossa 1368 lisäystä ja 21 poistoa
  1. 104
    0
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetOtherController.java
  2. 104
    0
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetSiteController.java
  3. 91
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudget.java
  4. 39
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetCar.java
  5. 40
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetDevice.java
  6. 81
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetOther.java
  7. 95
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetSite.java
  8. 104
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetStaff.java
  9. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcBudgetOtherMapper.java
  10. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcBudgetSiteMapper.java
  11. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcBudgetOtherService.java
  12. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcBudgetSiteService.java
  13. 93
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcBudgetOtherServiceImpl.java
  14. 93
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcBudgetSiteServiceImpl.java
  15. 14
    1
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetCarMapper.xml
  16. 14
    1
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetDeviceMapper.xml
  17. 29
    1
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetMapper.xml
  18. 70
    0
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetOtherMapper.xml
  19. 75
    0
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetSiteMapper.xml
  20. 34
    1
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetStaffMapper.xml
  21. 44
    17
      oa-back/sql/sq.sql

+ 104
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetOtherController.java Näytä tiedosto

@@ -0,0 +1,104 @@
1
+package com.ruoyi.oa.controller;
2
+
3
+import java.util.List;
4
+import javax.servlet.http.HttpServletResponse;
5
+import org.springframework.security.access.prepost.PreAuthorize;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.web.bind.annotation.GetMapping;
8
+import org.springframework.web.bind.annotation.PostMapping;
9
+import org.springframework.web.bind.annotation.PutMapping;
10
+import org.springframework.web.bind.annotation.DeleteMapping;
11
+import org.springframework.web.bind.annotation.PathVariable;
12
+import org.springframework.web.bind.annotation.RequestBody;
13
+import org.springframework.web.bind.annotation.RequestMapping;
14
+import org.springframework.web.bind.annotation.RestController;
15
+import com.ruoyi.common.annotation.Log;
16
+import com.ruoyi.common.core.controller.BaseController;
17
+import com.ruoyi.common.core.domain.AjaxResult;
18
+import com.ruoyi.common.enums.BusinessType;
19
+import com.ruoyi.oa.domain.CmcBudgetOther;
20
+import com.ruoyi.oa.service.ICmcBudgetOtherService;
21
+import com.ruoyi.common.utils.poi.ExcelUtil;
22
+import com.ruoyi.common.core.page.TableDataInfo;
23
+
24
+/**
25
+ * cmc预算外开支Controller
26
+ * 
27
+ * @author cmc
28
+ * @date 2025-05-09
29
+ */
30
+@RestController
31
+@RequestMapping("/oa/other")
32
+public class CmcBudgetOtherController extends BaseController
33
+{
34
+    @Autowired
35
+    private ICmcBudgetOtherService cmcBudgetOtherService;
36
+
37
+    /**
38
+     * 查询cmc预算外开支列表
39
+     */
40
+    @PreAuthorize("@ss.hasPermi('oa:other:list')")
41
+    @GetMapping("/list")
42
+    public TableDataInfo list(CmcBudgetOther cmcBudgetOther)
43
+    {
44
+        startPage();
45
+        List<CmcBudgetOther> list = cmcBudgetOtherService.selectCmcBudgetOtherList(cmcBudgetOther);
46
+        return getDataTable(list);
47
+    }
48
+
49
+    /**
50
+     * 导出cmc预算外开支列表
51
+     */
52
+    @PreAuthorize("@ss.hasPermi('oa:other:export')")
53
+    @Log(title = "cmc预算外开支", businessType = BusinessType.EXPORT)
54
+    @PostMapping("/export")
55
+    public void export(HttpServletResponse response, CmcBudgetOther cmcBudgetOther)
56
+    {
57
+        List<CmcBudgetOther> list = cmcBudgetOtherService.selectCmcBudgetOtherList(cmcBudgetOther);
58
+        ExcelUtil<CmcBudgetOther> util = new ExcelUtil<CmcBudgetOther>(CmcBudgetOther.class);
59
+        util.exportExcel(response, list, "cmc预算外开支数据");
60
+    }
61
+
62
+    /**
63
+     * 获取cmc预算外开支详细信息
64
+     */
65
+    @PreAuthorize("@ss.hasPermi('oa:other:query')")
66
+    @GetMapping(value = "/{expenseId}")
67
+    public AjaxResult getInfo(@PathVariable("expenseId") Long expenseId)
68
+    {
69
+        return success(cmcBudgetOtherService.selectCmcBudgetOtherByExpenseId(expenseId));
70
+    }
71
+
72
+    /**
73
+     * 新增cmc预算外开支
74
+     */
75
+    @PreAuthorize("@ss.hasPermi('oa:other:add')")
76
+    @Log(title = "cmc预算外开支", businessType = BusinessType.INSERT)
77
+    @PostMapping
78
+    public AjaxResult add(@RequestBody CmcBudgetOther cmcBudgetOther)
79
+    {
80
+        return toAjax(cmcBudgetOtherService.insertCmcBudgetOther(cmcBudgetOther));
81
+    }
82
+
83
+    /**
84
+     * 修改cmc预算外开支
85
+     */
86
+    @PreAuthorize("@ss.hasPermi('oa:other:edit')")
87
+    @Log(title = "cmc预算外开支", businessType = BusinessType.UPDATE)
88
+    @PutMapping
89
+    public AjaxResult edit(@RequestBody CmcBudgetOther cmcBudgetOther)
90
+    {
91
+        return toAjax(cmcBudgetOtherService.updateCmcBudgetOther(cmcBudgetOther));
92
+    }
93
+
94
+    /**
95
+     * 删除cmc预算外开支
96
+     */
97
+    @PreAuthorize("@ss.hasPermi('oa:other:remove')")
98
+    @Log(title = "cmc预算外开支", businessType = BusinessType.DELETE)
99
+	@DeleteMapping("/{expenseIds}")
100
+    public AjaxResult remove(@PathVariable Long[] expenseIds)
101
+    {
102
+        return toAjax(cmcBudgetOtherService.deleteCmcBudgetOtherByExpenseIds(expenseIds));
103
+    }
104
+}

+ 104
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetSiteController.java Näytä tiedosto

@@ -0,0 +1,104 @@
1
+package com.ruoyi.oa.controller;
2
+
3
+import java.util.List;
4
+import javax.servlet.http.HttpServletResponse;
5
+import org.springframework.security.access.prepost.PreAuthorize;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.web.bind.annotation.GetMapping;
8
+import org.springframework.web.bind.annotation.PostMapping;
9
+import org.springframework.web.bind.annotation.PutMapping;
10
+import org.springframework.web.bind.annotation.DeleteMapping;
11
+import org.springframework.web.bind.annotation.PathVariable;
12
+import org.springframework.web.bind.annotation.RequestBody;
13
+import org.springframework.web.bind.annotation.RequestMapping;
14
+import org.springframework.web.bind.annotation.RestController;
15
+import com.ruoyi.common.annotation.Log;
16
+import com.ruoyi.common.core.controller.BaseController;
17
+import com.ruoyi.common.core.domain.AjaxResult;
18
+import com.ruoyi.common.enums.BusinessType;
19
+import com.ruoyi.oa.domain.CmcBudgetSite;
20
+import com.ruoyi.oa.service.ICmcBudgetSiteService;
21
+import com.ruoyi.common.utils.poi.ExcelUtil;
22
+import com.ruoyi.common.core.page.TableDataInfo;
23
+
24
+/**
25
+ * cmc现场开支Controller
26
+ * 
27
+ * @author cmc
28
+ * @date 2025-05-09
29
+ */
30
+@RestController
31
+@RequestMapping("/oa/site")
32
+public class CmcBudgetSiteController extends BaseController
33
+{
34
+    @Autowired
35
+    private ICmcBudgetSiteService cmcBudgetSiteService;
36
+
37
+    /**
38
+     * 查询cmc现场开支列表
39
+     */
40
+    @PreAuthorize("@ss.hasPermi('oa:site:list')")
41
+    @GetMapping("/list")
42
+    public TableDataInfo list(CmcBudgetSite cmcBudgetSite)
43
+    {
44
+        startPage();
45
+        List<CmcBudgetSite> list = cmcBudgetSiteService.selectCmcBudgetSiteList(cmcBudgetSite);
46
+        return getDataTable(list);
47
+    }
48
+
49
+    /**
50
+     * 导出cmc现场开支列表
51
+     */
52
+    @PreAuthorize("@ss.hasPermi('oa:site:export')")
53
+    @Log(title = "cmc现场开支", businessType = BusinessType.EXPORT)
54
+    @PostMapping("/export")
55
+    public void export(HttpServletResponse response, CmcBudgetSite cmcBudgetSite)
56
+    {
57
+        List<CmcBudgetSite> list = cmcBudgetSiteService.selectCmcBudgetSiteList(cmcBudgetSite);
58
+        ExcelUtil<CmcBudgetSite> util = new ExcelUtil<CmcBudgetSite>(CmcBudgetSite.class);
59
+        util.exportExcel(response, list, "cmc现场开支数据");
60
+    }
61
+
62
+    /**
63
+     * 获取cmc现场开支详细信息
64
+     */
65
+    @PreAuthorize("@ss.hasPermi('oa:site:query')")
66
+    @GetMapping(value = "/{expenseId}")
67
+    public AjaxResult getInfo(@PathVariable("expenseId") Long expenseId)
68
+    {
69
+        return success(cmcBudgetSiteService.selectCmcBudgetSiteByExpenseId(expenseId));
70
+    }
71
+
72
+    /**
73
+     * 新增cmc现场开支
74
+     */
75
+    @PreAuthorize("@ss.hasPermi('oa:site:add')")
76
+    @Log(title = "cmc现场开支", businessType = BusinessType.INSERT)
77
+    @PostMapping
78
+    public AjaxResult add(@RequestBody CmcBudgetSite cmcBudgetSite)
79
+    {
80
+        return toAjax(cmcBudgetSiteService.insertCmcBudgetSite(cmcBudgetSite));
81
+    }
82
+
83
+    /**
84
+     * 修改cmc现场开支
85
+     */
86
+    @PreAuthorize("@ss.hasPermi('oa:site:edit')")
87
+    @Log(title = "cmc现场开支", businessType = BusinessType.UPDATE)
88
+    @PutMapping
89
+    public AjaxResult edit(@RequestBody CmcBudgetSite cmcBudgetSite)
90
+    {
91
+        return toAjax(cmcBudgetSiteService.updateCmcBudgetSite(cmcBudgetSite));
92
+    }
93
+
94
+    /**
95
+     * 删除cmc现场开支
96
+     */
97
+    @PreAuthorize("@ss.hasPermi('oa:site:remove')")
98
+    @Log(title = "cmc现场开支", businessType = BusinessType.DELETE)
99
+	@DeleteMapping("/{expenseIds}")
100
+    public AjaxResult remove(@PathVariable Long[] expenseIds)
101
+    {
102
+        return toAjax(cmcBudgetSiteService.deleteCmcBudgetSiteByExpenseIds(expenseIds));
103
+    }
104
+}

+ 91
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudget.java Näytä tiedosto

@@ -147,6 +147,34 @@ public class CmcBudget extends BaseEntity
147 147
     @Excel(name = "董事长批准时间", width = 30, dateFormat = "yyyy-MM-dd")
148 148
     private Date dszTime;
149 149
 
150
+    /** 保函费用 */
151
+    @Excel(name = "保函费用")
152
+    private BigDecimal letterExpense;
153
+
154
+    /** 中标服务费 */
155
+    @Excel(name = "中标服务费")
156
+    private BigDecimal winExpense;
157
+
158
+    /** 管理出差费用 */
159
+    @Excel(name = "管理出差费用")
160
+    private BigDecimal travelExpense;
161
+
162
+    /** 内业核算绩效总额 */
163
+    @Excel(name = "内业核算绩效总额")
164
+    private BigDecimal settleAdjust;
165
+
166
+    /** 保函费用备注 */
167
+    @Excel(name = "保函费用备注")
168
+    private String letterRemark;
169
+
170
+    /** 管理出差费用备注 */
171
+    @Excel(name = "管理出差费用备注")
172
+    private String travelRemark;
173
+
174
+    /** 中标服务费备注 */
175
+    @Excel(name = "中标服务费备注")
176
+    private String winRemark;
177
+
150 178
     /** 预算附件 */
151 179
     @Excel(name = "预算附件")
152 180
     private String document;
@@ -493,6 +521,69 @@ public class CmcBudget extends BaseEntity
493 521
     {
494 522
         return document;
495 523
     }
524
+    public void setLetterExpense(BigDecimal letterExpense)
525
+    {
526
+        this.letterExpense = letterExpense;
527
+    }
528
+
529
+    public BigDecimal getLetterExpense()
530
+    {
531
+        return letterExpense;
532
+    }
533
+    public void setWinExpense(BigDecimal winExpense)
534
+    {
535
+        this.winExpense = winExpense;
536
+    }
537
+
538
+    public BigDecimal getWinExpense()
539
+    {
540
+        return winExpense;
541
+    }
542
+    public void setTravelExpense(BigDecimal travelExpense)
543
+    {
544
+        this.travelExpense = travelExpense;
545
+    }
546
+
547
+    public BigDecimal getTravelExpense()
548
+    {
549
+        return travelExpense;
550
+    }
551
+    public void setSettleAdjust(BigDecimal settleAdjust)
552
+    {
553
+        this.settleAdjust = settleAdjust;
554
+    }
555
+
556
+    public BigDecimal getSettleAdjust()
557
+    {
558
+        return settleAdjust;
559
+    }
560
+    public void setLetterRemark(String letterRemark)
561
+    {
562
+        this.letterRemark = letterRemark;
563
+    }
564
+
565
+    public String getLetterRemark()
566
+    {
567
+        return letterRemark;
568
+    }
569
+    public void setTravelRemark(String travelRemark)
570
+    {
571
+        this.travelRemark = travelRemark;
572
+    }
573
+
574
+    public String getTravelRemark()
575
+    {
576
+        return travelRemark;
577
+    }
578
+    public void setWinRemark(String winRemark)
579
+    {
580
+        this.winRemark = winRemark;
581
+    }
582
+
583
+    public String getWinRemark()
584
+    {
585
+        return winRemark;
586
+    }
496 587
 
497 588
     @Override
498 589
     public String toString() {

+ 39
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetCar.java Näytä tiedosto

@@ -57,6 +57,18 @@ public class CmcBudgetCar extends BaseEntity
57 57
     @Excel(name = "使用成本")
58 58
     private BigDecimal expense;
59 59
 
60
+    /** 核算天数 */
61
+    @Excel(name = "核算天数")
62
+    private Long daysAdjust;
63
+
64
+    /** 预算金额 */
65
+    @Excel(name = "预算金额")
66
+    private BigDecimal amount;
67
+
68
+    /** 核算金额 */
69
+    @Excel(name = "核算金额")
70
+    private BigDecimal amountAdjust;
71
+
60 72
     public void setBudgetCarId(Long budgetCarId)
61 73
     {
62 74
         this.budgetCarId = budgetCarId;
@@ -156,6 +168,33 @@ public class CmcBudgetCar extends BaseEntity
156 168
     {
157 169
         return toll;
158 170
     }
171
+    public void setDaysAdjust(Long daysAdjust)
172
+    {
173
+        this.daysAdjust = daysAdjust;
174
+    }
175
+
176
+    public Long getDaysAdjust()
177
+    {
178
+        return daysAdjust;
179
+    }
180
+    public void setAmount(BigDecimal amount)
181
+    {
182
+        this.amount = amount;
183
+    }
184
+
185
+    public BigDecimal getAmount()
186
+    {
187
+        return amount;
188
+    }
189
+    public void setAmountAdjust(BigDecimal amountAdjust)
190
+    {
191
+        this.amountAdjust = amountAdjust;
192
+    }
193
+
194
+    public BigDecimal getAmountAdjust()
195
+    {
196
+        return amountAdjust;
197
+    }
159 198
 
160 199
     @Override
161 200
     public String toString() {

+ 40
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetDevice.java Näytä tiedosto

@@ -37,6 +37,18 @@ public class CmcBudgetDevice extends BaseEntity
37 37
     @Excel(name = "折旧成本")
38 38
     private BigDecimal depreciation;
39 39
 
40
+    /** 核算天数 */
41
+    @Excel(name = "核算天数")
42
+    private Long daysAdjust;
43
+
44
+    /** 预算金额 */
45
+    @Excel(name = "预算金额")
46
+    private BigDecimal amount;
47
+
48
+    /** 核算金额 */
49
+    @Excel(name = "核算金额")
50
+    private BigDecimal amountAdjust;
51
+
40 52
     public void setBudgetDeviceId(Long budgetDeviceId)
41 53
     {
42 54
         this.budgetDeviceId = budgetDeviceId;
@@ -91,6 +103,34 @@ public class CmcBudgetDevice extends BaseEntity
91 103
     {
92 104
         return depreciation;
93 105
     }
106
+    public void setDaysAdjust(Long daysAdjust)
107
+    {
108
+        this.daysAdjust = daysAdjust;
109
+    }
110
+
111
+    public Long getDaysAdjust()
112
+    {
113
+        return daysAdjust;
114
+    }
115
+    public void setAmount(BigDecimal amount)
116
+    {
117
+        this.amount = amount;
118
+    }
119
+
120
+    public BigDecimal getAmount()
121
+    {
122
+        return amount;
123
+    }
124
+    public void setAmountAdjust(BigDecimal amountAdjust)
125
+    {
126
+        this.amountAdjust = amountAdjust;
127
+    }
128
+
129
+    public BigDecimal getAmountAdjust()
130
+    {
131
+        return amountAdjust;
132
+    }
133
+
94 134
 
95 135
     @Override
96 136
     public String toString() {

+ 81
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetOther.java Näytä tiedosto

@@ -0,0 +1,81 @@
1
+package com.ruoyi.oa.domain;
2
+
3
+import java.math.BigDecimal;
4
+import org.apache.commons.lang3.builder.ToStringBuilder;
5
+import org.apache.commons.lang3.builder.ToStringStyle;
6
+import com.ruoyi.common.annotation.Excel;
7
+import com.ruoyi.common.core.domain.BaseEntity;
8
+
9
+/**
10
+ * cmc预算外开支对象 cmc_budget_other
11
+ * 
12
+ * @author cmc
13
+ * @date 2025-05-09
14
+ */
15
+public class CmcBudgetOther extends BaseEntity
16
+{
17
+    private static final long serialVersionUID = 1L;
18
+
19
+    /** 现场开支id */
20
+    private Long expenseId;
21
+
22
+    /** 预算id */
23
+    @Excel(name = "预算id")
24
+    private String budgetId;
25
+
26
+    /** 开支名称 */
27
+    @Excel(name = "开支名称")
28
+    private String name;
29
+
30
+    /** 核算开支 */
31
+    @Excel(name = "核算开支")
32
+    private BigDecimal amountAdjust;
33
+
34
+    public void setExpenseId(Long expenseId) 
35
+    {
36
+        this.expenseId = expenseId;
37
+    }
38
+
39
+    public Long getExpenseId() 
40
+    {
41
+        return expenseId;
42
+    }
43
+    public void setBudgetId(String budgetId) 
44
+    {
45
+        this.budgetId = budgetId;
46
+    }
47
+
48
+    public String getBudgetId() 
49
+    {
50
+        return budgetId;
51
+    }
52
+    public void setName(String name) 
53
+    {
54
+        this.name = name;
55
+    }
56
+
57
+    public String getName() 
58
+    {
59
+        return name;
60
+    }
61
+    public void setAmountAdjust(BigDecimal amountAdjust) 
62
+    {
63
+        this.amountAdjust = amountAdjust;
64
+    }
65
+
66
+    public BigDecimal getAmountAdjust() 
67
+    {
68
+        return amountAdjust;
69
+    }
70
+
71
+    @Override
72
+    public String toString() {
73
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
74
+            .append("expenseId", getExpenseId())
75
+            .append("budgetId", getBudgetId())
76
+            .append("name", getName())
77
+            .append("amountAdjust", getAmountAdjust())
78
+            .append("remark", getRemark())
79
+            .toString();
80
+    }
81
+}

+ 95
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetSite.java Näytä tiedosto

@@ -0,0 +1,95 @@
1
+package com.ruoyi.oa.domain;
2
+
3
+import java.math.BigDecimal;
4
+import org.apache.commons.lang3.builder.ToStringBuilder;
5
+import org.apache.commons.lang3.builder.ToStringStyle;
6
+import com.ruoyi.common.annotation.Excel;
7
+import com.ruoyi.common.core.domain.BaseEntity;
8
+
9
+/**
10
+ * cmc现场开支对象 cmc_budget_site
11
+ * 
12
+ * @author cmc
13
+ * @date 2025-05-09
14
+ */
15
+public class CmcBudgetSite extends BaseEntity
16
+{
17
+    private static final long serialVersionUID = 1L;
18
+
19
+    /** 现场开支id */
20
+    private Long expenseId;
21
+
22
+    /** 预算id */
23
+    @Excel(name = "预算id")
24
+    private String budgetId;
25
+
26
+    /** 开支名称 */
27
+    @Excel(name = "开支名称")
28
+    private String name;
29
+
30
+    /** 开支金额 */
31
+    @Excel(name = "开支金额")
32
+    private BigDecimal amount;
33
+
34
+    /** 核算开支 */
35
+    @Excel(name = "核算开支")
36
+    private BigDecimal amountAdjust;
37
+
38
+    public void setExpenseId(Long expenseId) 
39
+    {
40
+        this.expenseId = expenseId;
41
+    }
42
+
43
+    public Long getExpenseId() 
44
+    {
45
+        return expenseId;
46
+    }
47
+    public void setBudgetId(String budgetId) 
48
+    {
49
+        this.budgetId = budgetId;
50
+    }
51
+
52
+    public String getBudgetId() 
53
+    {
54
+        return budgetId;
55
+    }
56
+    public void setName(String name) 
57
+    {
58
+        this.name = name;
59
+    }
60
+
61
+    public String getName() 
62
+    {
63
+        return name;
64
+    }
65
+    public void setAmount(BigDecimal amount) 
66
+    {
67
+        this.amount = amount;
68
+    }
69
+
70
+    public BigDecimal getAmount() 
71
+    {
72
+        return amount;
73
+    }
74
+    public void setAmountAdjust(BigDecimal amountAdjust) 
75
+    {
76
+        this.amountAdjust = amountAdjust;
77
+    }
78
+
79
+    public BigDecimal getAmountAdjust() 
80
+    {
81
+        return amountAdjust;
82
+    }
83
+
84
+    @Override
85
+    public String toString() {
86
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
87
+            .append("expenseId", getExpenseId())
88
+            .append("budgetId", getBudgetId())
89
+            .append("name", getName())
90
+            .append("amount", getAmount())
91
+            .append("amountAdjust", getAmountAdjust())
92
+            .append("remark", getRemark())
93
+            .toString();
94
+    }
95
+}

+ 104
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetStaff.java Näytä tiedosto

@@ -42,6 +42,38 @@ public class CmcBudgetStaff extends BaseEntity
42 42
     @Excel(name = "人员成本")
43 43
     private BigDecimal staffCost;
44 44
 
45
+    /** 作业类别 */
46
+    @Excel(name = "作业类别")
47
+    private String type;
48
+
49
+    /** 核算天数 */
50
+    @Excel(name = "核算天数")
51
+    private Long daysAdjust;
52
+
53
+    /** 预算绩效 */
54
+    @Excel(name = "预算绩效")
55
+    private BigDecimal performance;
56
+
57
+    /** 核算绩效 */
58
+    @Excel(name = "核算绩效")
59
+    private BigDecimal performanceAdjust;
60
+
61
+    /** 预算系数 */
62
+    @Excel(name = "预算系数")
63
+    private String coefficient;
64
+
65
+    /** 核算系数 */
66
+    @Excel(name = "核算系数")
67
+    private String coefficientAdjust;
68
+
69
+    /** 预算金额 */
70
+    @Excel(name = "预算金额")
71
+    private BigDecimal amount;
72
+
73
+    /** 核算金额 */
74
+    @Excel(name = "核算金额")
75
+    private BigDecimal amountAdjust;
76
+
45 77
     public void setBudgetStaffId(Long budgetStaffId)
46 78
     {
47 79
         this.budgetStaffId = budgetStaffId;
@@ -105,6 +137,78 @@ public class CmcBudgetStaff extends BaseEntity
105 137
     {
106 138
         return salary;
107 139
     }
140
+    public void setType(String type)
141
+    {
142
+        this.type = type;
143
+    }
144
+
145
+    public String getType()
146
+    {
147
+        return type;
148
+    }
149
+    public void setDaysAdjust(Long daysAdjust)
150
+    {
151
+        this.daysAdjust = daysAdjust;
152
+    }
153
+
154
+    public Long getDaysAdjust()
155
+    {
156
+        return daysAdjust;
157
+    }
158
+    public void setPerformance(BigDecimal performance)
159
+    {
160
+        this.performance = performance;
161
+    }
162
+
163
+    public BigDecimal getPerformance()
164
+    {
165
+        return performance;
166
+    }
167
+    public void setPerformanceAdjust(BigDecimal performanceAdjust)
168
+    {
169
+        this.performanceAdjust = performanceAdjust;
170
+    }
171
+
172
+    public BigDecimal getPerformanceAdjust()
173
+    {
174
+        return performanceAdjust;
175
+    }
176
+    public void setCoefficient(String coefficient)
177
+    {
178
+        this.coefficient = coefficient;
179
+    }
180
+
181
+    public String getCoefficient()
182
+    {
183
+        return coefficient;
184
+    }
185
+    public void setCoefficientAdjust(String coefficientAdjust)
186
+    {
187
+        this.coefficientAdjust = coefficientAdjust;
188
+    }
189
+
190
+    public String getCoefficientAdjust()
191
+    {
192
+        return coefficientAdjust;
193
+    }
194
+    public void setAmount(BigDecimal amount)
195
+    {
196
+        this.amount = amount;
197
+    }
198
+
199
+    public BigDecimal getAmount()
200
+    {
201
+        return amount;
202
+    }
203
+    public void setAmountAdjust(BigDecimal amountAdjust)
204
+    {
205
+        this.amountAdjust = amountAdjust;
206
+    }
207
+
208
+    public BigDecimal getAmountAdjust()
209
+    {
210
+        return amountAdjust;
211
+    }
108 212
 
109 213
     @Override
110 214
     public String toString() {

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcBudgetOtherMapper.java Näytä tiedosto

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.mapper;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcBudgetOther;
5
+
6
+/**
7
+ * cmc预算外开支Mapper接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2025-05-09
11
+ */
12
+public interface CmcBudgetOtherMapper 
13
+{
14
+    /**
15
+     * 查询cmc预算外开支
16
+     * 
17
+     * @param expenseId cmc预算外开支主键
18
+     * @return cmc预算外开支
19
+     */
20
+    public CmcBudgetOther selectCmcBudgetOtherByExpenseId(Long expenseId);
21
+
22
+    /**
23
+     * 查询cmc预算外开支列表
24
+     * 
25
+     * @param cmcBudgetOther cmc预算外开支
26
+     * @return cmc预算外开支集合
27
+     */
28
+    public List<CmcBudgetOther> selectCmcBudgetOtherList(CmcBudgetOther cmcBudgetOther);
29
+
30
+    /**
31
+     * 新增cmc预算外开支
32
+     * 
33
+     * @param cmcBudgetOther cmc预算外开支
34
+     * @return 结果
35
+     */
36
+    public int insertCmcBudgetOther(CmcBudgetOther cmcBudgetOther);
37
+
38
+    /**
39
+     * 修改cmc预算外开支
40
+     * 
41
+     * @param cmcBudgetOther cmc预算外开支
42
+     * @return 结果
43
+     */
44
+    public int updateCmcBudgetOther(CmcBudgetOther cmcBudgetOther);
45
+
46
+    /**
47
+     * 删除cmc预算外开支
48
+     * 
49
+     * @param expenseId cmc预算外开支主键
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcBudgetOtherByExpenseId(Long expenseId);
53
+
54
+    /**
55
+     * 批量删除cmc预算外开支
56
+     * 
57
+     * @param expenseIds 需要删除的数据主键集合
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcBudgetOtherByExpenseIds(Long[] expenseIds);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcBudgetSiteMapper.java Näytä tiedosto

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.mapper;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcBudgetSite;
5
+
6
+/**
7
+ * cmc现场开支Mapper接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2025-05-09
11
+ */
12
+public interface CmcBudgetSiteMapper 
13
+{
14
+    /**
15
+     * 查询cmc现场开支
16
+     * 
17
+     * @param expenseId cmc现场开支主键
18
+     * @return cmc现场开支
19
+     */
20
+    public CmcBudgetSite selectCmcBudgetSiteByExpenseId(Long expenseId);
21
+
22
+    /**
23
+     * 查询cmc现场开支列表
24
+     * 
25
+     * @param cmcBudgetSite cmc现场开支
26
+     * @return cmc现场开支集合
27
+     */
28
+    public List<CmcBudgetSite> selectCmcBudgetSiteList(CmcBudgetSite cmcBudgetSite);
29
+
30
+    /**
31
+     * 新增cmc现场开支
32
+     * 
33
+     * @param cmcBudgetSite cmc现场开支
34
+     * @return 结果
35
+     */
36
+    public int insertCmcBudgetSite(CmcBudgetSite cmcBudgetSite);
37
+
38
+    /**
39
+     * 修改cmc现场开支
40
+     * 
41
+     * @param cmcBudgetSite cmc现场开支
42
+     * @return 结果
43
+     */
44
+    public int updateCmcBudgetSite(CmcBudgetSite cmcBudgetSite);
45
+
46
+    /**
47
+     * 删除cmc现场开支
48
+     * 
49
+     * @param expenseId cmc现场开支主键
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcBudgetSiteByExpenseId(Long expenseId);
53
+
54
+    /**
55
+     * 批量删除cmc现场开支
56
+     * 
57
+     * @param expenseIds 需要删除的数据主键集合
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcBudgetSiteByExpenseIds(Long[] expenseIds);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcBudgetOtherService.java Näytä tiedosto

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.service;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcBudgetOther;
5
+
6
+/**
7
+ * cmc预算外开支Service接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2025-05-09
11
+ */
12
+public interface ICmcBudgetOtherService 
13
+{
14
+    /**
15
+     * 查询cmc预算外开支
16
+     * 
17
+     * @param expenseId cmc预算外开支主键
18
+     * @return cmc预算外开支
19
+     */
20
+    public CmcBudgetOther selectCmcBudgetOtherByExpenseId(Long expenseId);
21
+
22
+    /**
23
+     * 查询cmc预算外开支列表
24
+     * 
25
+     * @param cmcBudgetOther cmc预算外开支
26
+     * @return cmc预算外开支集合
27
+     */
28
+    public List<CmcBudgetOther> selectCmcBudgetOtherList(CmcBudgetOther cmcBudgetOther);
29
+
30
+    /**
31
+     * 新增cmc预算外开支
32
+     * 
33
+     * @param cmcBudgetOther cmc预算外开支
34
+     * @return 结果
35
+     */
36
+    public int insertCmcBudgetOther(CmcBudgetOther cmcBudgetOther);
37
+
38
+    /**
39
+     * 修改cmc预算外开支
40
+     * 
41
+     * @param cmcBudgetOther cmc预算外开支
42
+     * @return 结果
43
+     */
44
+    public int updateCmcBudgetOther(CmcBudgetOther cmcBudgetOther);
45
+
46
+    /**
47
+     * 批量删除cmc预算外开支
48
+     * 
49
+     * @param expenseIds 需要删除的cmc预算外开支主键集合
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcBudgetOtherByExpenseIds(Long[] expenseIds);
53
+
54
+    /**
55
+     * 删除cmc预算外开支信息
56
+     * 
57
+     * @param expenseId cmc预算外开支主键
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcBudgetOtherByExpenseId(Long expenseId);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcBudgetSiteService.java Näytä tiedosto

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.service;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcBudgetSite;
5
+
6
+/**
7
+ * cmc现场开支Service接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2025-05-09
11
+ */
12
+public interface ICmcBudgetSiteService 
13
+{
14
+    /**
15
+     * 查询cmc现场开支
16
+     * 
17
+     * @param expenseId cmc现场开支主键
18
+     * @return cmc现场开支
19
+     */
20
+    public CmcBudgetSite selectCmcBudgetSiteByExpenseId(Long expenseId);
21
+
22
+    /**
23
+     * 查询cmc现场开支列表
24
+     * 
25
+     * @param cmcBudgetSite cmc现场开支
26
+     * @return cmc现场开支集合
27
+     */
28
+    public List<CmcBudgetSite> selectCmcBudgetSiteList(CmcBudgetSite cmcBudgetSite);
29
+
30
+    /**
31
+     * 新增cmc现场开支
32
+     * 
33
+     * @param cmcBudgetSite cmc现场开支
34
+     * @return 结果
35
+     */
36
+    public int insertCmcBudgetSite(CmcBudgetSite cmcBudgetSite);
37
+
38
+    /**
39
+     * 修改cmc现场开支
40
+     * 
41
+     * @param cmcBudgetSite cmc现场开支
42
+     * @return 结果
43
+     */
44
+    public int updateCmcBudgetSite(CmcBudgetSite cmcBudgetSite);
45
+
46
+    /**
47
+     * 批量删除cmc现场开支
48
+     * 
49
+     * @param expenseIds 需要删除的cmc现场开支主键集合
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcBudgetSiteByExpenseIds(Long[] expenseIds);
53
+
54
+    /**
55
+     * 删除cmc现场开支信息
56
+     * 
57
+     * @param expenseId cmc现场开支主键
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcBudgetSiteByExpenseId(Long expenseId);
61
+}

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcBudgetOtherServiceImpl.java Näytä tiedosto

@@ -0,0 +1,93 @@
1
+package com.ruoyi.oa.service.impl;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.ruoyi.oa.mapper.CmcBudgetOtherMapper;
7
+import com.ruoyi.oa.domain.CmcBudgetOther;
8
+import com.ruoyi.oa.service.ICmcBudgetOtherService;
9
+
10
+/**
11
+ * cmc预算外开支Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2025-05-09
15
+ */
16
+@Service
17
+public class CmcBudgetOtherServiceImpl implements ICmcBudgetOtherService 
18
+{
19
+    @Autowired
20
+    private CmcBudgetOtherMapper cmcBudgetOtherMapper;
21
+
22
+    /**
23
+     * 查询cmc预算外开支
24
+     * 
25
+     * @param expenseId cmc预算外开支主键
26
+     * @return cmc预算外开支
27
+     */
28
+    @Override
29
+    public CmcBudgetOther selectCmcBudgetOtherByExpenseId(Long expenseId)
30
+    {
31
+        return cmcBudgetOtherMapper.selectCmcBudgetOtherByExpenseId(expenseId);
32
+    }
33
+
34
+    /**
35
+     * 查询cmc预算外开支列表
36
+     * 
37
+     * @param cmcBudgetOther cmc预算外开支
38
+     * @return cmc预算外开支
39
+     */
40
+    @Override
41
+    public List<CmcBudgetOther> selectCmcBudgetOtherList(CmcBudgetOther cmcBudgetOther)
42
+    {
43
+        return cmcBudgetOtherMapper.selectCmcBudgetOtherList(cmcBudgetOther);
44
+    }
45
+
46
+    /**
47
+     * 新增cmc预算外开支
48
+     * 
49
+     * @param cmcBudgetOther cmc预算外开支
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcBudgetOther(CmcBudgetOther cmcBudgetOther)
54
+    {
55
+        return cmcBudgetOtherMapper.insertCmcBudgetOther(cmcBudgetOther);
56
+    }
57
+
58
+    /**
59
+     * 修改cmc预算外开支
60
+     * 
61
+     * @param cmcBudgetOther cmc预算外开支
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcBudgetOther(CmcBudgetOther cmcBudgetOther)
66
+    {
67
+        return cmcBudgetOtherMapper.updateCmcBudgetOther(cmcBudgetOther);
68
+    }
69
+
70
+    /**
71
+     * 批量删除cmc预算外开支
72
+     * 
73
+     * @param expenseIds 需要删除的cmc预算外开支主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcBudgetOtherByExpenseIds(Long[] expenseIds)
78
+    {
79
+        return cmcBudgetOtherMapper.deleteCmcBudgetOtherByExpenseIds(expenseIds);
80
+    }
81
+
82
+    /**
83
+     * 删除cmc预算外开支信息
84
+     * 
85
+     * @param expenseId cmc预算外开支主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcBudgetOtherByExpenseId(Long expenseId)
90
+    {
91
+        return cmcBudgetOtherMapper.deleteCmcBudgetOtherByExpenseId(expenseId);
92
+    }
93
+}

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcBudgetSiteServiceImpl.java Näytä tiedosto

@@ -0,0 +1,93 @@
1
+package com.ruoyi.oa.service.impl;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.ruoyi.oa.mapper.CmcBudgetSiteMapper;
7
+import com.ruoyi.oa.domain.CmcBudgetSite;
8
+import com.ruoyi.oa.service.ICmcBudgetSiteService;
9
+
10
+/**
11
+ * cmc现场开支Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2025-05-09
15
+ */
16
+@Service
17
+public class CmcBudgetSiteServiceImpl implements ICmcBudgetSiteService 
18
+{
19
+    @Autowired
20
+    private CmcBudgetSiteMapper cmcBudgetSiteMapper;
21
+
22
+    /**
23
+     * 查询cmc现场开支
24
+     * 
25
+     * @param expenseId cmc现场开支主键
26
+     * @return cmc现场开支
27
+     */
28
+    @Override
29
+    public CmcBudgetSite selectCmcBudgetSiteByExpenseId(Long expenseId)
30
+    {
31
+        return cmcBudgetSiteMapper.selectCmcBudgetSiteByExpenseId(expenseId);
32
+    }
33
+
34
+    /**
35
+     * 查询cmc现场开支列表
36
+     * 
37
+     * @param cmcBudgetSite cmc现场开支
38
+     * @return cmc现场开支
39
+     */
40
+    @Override
41
+    public List<CmcBudgetSite> selectCmcBudgetSiteList(CmcBudgetSite cmcBudgetSite)
42
+    {
43
+        return cmcBudgetSiteMapper.selectCmcBudgetSiteList(cmcBudgetSite);
44
+    }
45
+
46
+    /**
47
+     * 新增cmc现场开支
48
+     * 
49
+     * @param cmcBudgetSite cmc现场开支
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcBudgetSite(CmcBudgetSite cmcBudgetSite)
54
+    {
55
+        return cmcBudgetSiteMapper.insertCmcBudgetSite(cmcBudgetSite);
56
+    }
57
+
58
+    /**
59
+     * 修改cmc现场开支
60
+     * 
61
+     * @param cmcBudgetSite cmc现场开支
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcBudgetSite(CmcBudgetSite cmcBudgetSite)
66
+    {
67
+        return cmcBudgetSiteMapper.updateCmcBudgetSite(cmcBudgetSite);
68
+    }
69
+
70
+    /**
71
+     * 批量删除cmc现场开支
72
+     * 
73
+     * @param expenseIds 需要删除的cmc现场开支主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcBudgetSiteByExpenseIds(Long[] expenseIds)
78
+    {
79
+        return cmcBudgetSiteMapper.deleteCmcBudgetSiteByExpenseIds(expenseIds);
80
+    }
81
+
82
+    /**
83
+     * 删除cmc现场开支信息
84
+     * 
85
+     * @param expenseId cmc现场开支主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcBudgetSiteByExpenseId(Long expenseId)
90
+    {
91
+        return cmcBudgetSiteMapper.deleteCmcBudgetSiteByExpenseId(expenseId);
92
+    }
93
+}

+ 14
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetCarMapper.xml Näytä tiedosto

@@ -15,6 +15,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
15 15
         <result property="expense"    column="expense"    />
16 16
         <result property="toll"    column="toll"    />
17 17
         <result property="remark"    column="remark"    />
18
+        <result property="daysAdjust"    column="days_adjust"    />
19
+        <result property="amount"    column="amount"    />
20
+        <result property="amountAdjust"    column="amount_adjust"    />
18 21
         <association property="car"    javaType="CmcCar"         resultMap="CmcCarResult" />
19 22
         <association property="driverUser"    javaType="SysUser"         resultMap="SysUserResult" />
20 23
     </resultMap>
@@ -36,7 +39,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
36 39
     </resultMap>
37 40
 
38 41
     <sql id="selectCmcBudgetCarVo">
39
-        select bc.budget_car_id, bc.budget_id, bc.car_id, c.license_plate, c.driver, c.brand, u.nick_name, c.day_cost, c.fuel, c.insurance, c.maintenance, bc.days, bc.depreciation, bc.distance, bc.mileage, bc.toll, bc.expense, bc.remark from cmc_budget_car as bc
42
+        select bc.budget_car_id, bc.budget_id, bc.car_id, c.license_plate, c.driver, c.brand, u.nick_name, c.day_cost, c.fuel, c.insurance, c.maintenance, bc.days,
43
+               bc.depreciation, bc.distance, bc.mileage, bc.toll, bc.expense, bc.remark, bc.days_adjust, bc.amount, bc.amount_adjust from cmc_budget_car as bc
40 44
         left join cmc_car as c on c.car_id = bc.car_id
41 45
         left join sys_user as u on c.driver = u.user_id
42 46
     </sql>
@@ -73,6 +77,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
73 77
             <if test="expense != null">expense,</if>
74 78
             <if test="toll != null">toll,</if>
75 79
             <if test="remark != null">remark,</if>
80
+            <if test="daysAdjust != null">days_adjust,</if>
81
+            <if test="amount != null">amount,</if>
82
+            <if test="amountAdjust != null">amount_adjust,</if>
76 83
          </trim>
77 84
         <trim prefix="values (" suffix=")" suffixOverrides=",">
78 85
             <if test="budgetCarId != null">#{budgetCarId},</if>
@@ -85,6 +92,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
85 92
             <if test="expense != null">#{expense},</if>
86 93
             <if test="toll != null">#{toll},</if>
87 94
             <if test="remark != null">#{remark},</if>
95
+            <if test="daysAdjust != null">#{daysAdjust},</if>
96
+            <if test="amount != null">#{amount},</if>
97
+            <if test="amountAdjust != null">#{amountAdjust},</if>
88 98
          </trim>
89 99
     </insert>
90 100
 
@@ -100,6 +110,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
100 110
             <if test="toll != null">toll = #{toll},</if>
101 111
             <if test="expense != null">expense = #{expense},</if>
102 112
             <if test="remark != null">remark = #{remark},</if>
113
+            <if test="daysAdjust != null">days_adjust = #{daysAdjust},</if>
114
+            <if test="amount != null">amount = #{amount},</if>
115
+            <if test="amountAdjust != null">amount_adjust = #{amountAdjust},</if>
103 116
         </trim>
104 117
         where budget_car_id = #{budgetCarId}
105 118
     </update>

+ 14
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetDeviceMapper.xml Näytä tiedosto

@@ -11,6 +11,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
11 11
         <result property="days"    column="days"    />
12 12
         <result property="depreciation"    column="depreciation"    />
13 13
         <result property="remark"    column="remark"    />
14
+        <result property="daysAdjust"    column="days_adjust"    />
15
+        <result property="amount"    column="amount"    />
16
+        <result property="amountAdjust"    column="amount_adjust"    />
14 17
         <association property="device"    javaType="CmcDevice"         resultMap="CmcDeviceResult" />
15 18
     </resultMap>
16 19
 
@@ -24,7 +27,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
24 27
     </resultMap>
25 28
 
26 29
     <sql id="selectCmcBudgetDeviceVo">
27
-        select bd.budget_device_id, bd.budget_id, d.code, d.name, d.series, d.brand, d.day_cost, bd.device_id, bd.days, bd.depreciation, bd.remark from cmc_budget_device as bd
30
+        select bd.budget_device_id, bd.budget_id, d.code, d.name, d.series, d.brand, d.day_cost, bd.device_id, bd.days, bd.depreciation,
31
+               bd.remark, bd.days_adjust, bd.amount, bd.amount_adjust from cmc_budget_device as bd
28 32
         left join cmc_device as d on d.device_id = bd.device_id
29 33
     </sql>
30 34
 
@@ -52,6 +56,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
52 56
             <if test="days != null">days,</if>
53 57
             <if test="depreciation != null">depreciation,</if>
54 58
             <if test="remark != null">remark,</if>
59
+            <if test="daysAdjust != null">days_adjust,</if>
60
+            <if test="amount != null">amount,</if>
61
+            <if test="amountAdjust != null">amount_adjust,</if>
55 62
          </trim>
56 63
         <trim prefix="values (" suffix=")" suffixOverrides=",">
57 64
             <if test="budgetDeviceId != null">#{budgetDeviceId},</if>
@@ -60,6 +67,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
60 67
             <if test="days != null">#{days},</if>
61 68
             <if test="depreciation != null">#{depreciation},</if>
62 69
             <if test="remark != null">#{remark},</if>
70
+            <if test="daysAdjust != null">#{daysAdjust},</if>
71
+            <if test="amount != null">#{amount},</if>
72
+            <if test="amountAdjust != null">#{amountAdjust},</if>
63 73
          </trim>
64 74
     </insert>
65 75
 
@@ -71,6 +81,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
71 81
             <if test="days != null">days = #{days},</if>
72 82
             <if test="depreciation != null">depreciation = #{depreciation},</if>
73 83
             <if test="remark != null">remark = #{remark},</if>
84
+            <if test="daysAdjust != null">days_adjust = #{daysAdjust},</if>
85
+            <if test="amount != null">amount = #{amount},</if>
86
+            <if test="amountAdjust != null">amount_adjust = #{amountAdjust},</if>
74 87
         </trim>
75 88
         where budget_device_id = #{budgetDeviceId}
76 89
     </update>

+ 29
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetMapper.xml Näytä tiedosto

@@ -37,6 +37,13 @@
37 37
         <result property="createTime"    column="create_time"    />
38 38
         <result property="remark"    column="remark"    />
39 39
         <result property="document"    column="document"    />
40
+        <result property="letterExpense"    column="letter_expense"    />
41
+        <result property="winExpense"    column="win_expense"    />
42
+        <result property="travelExpense"    column="travel_expense"    />
43
+        <result property="settleAdjust"    column="settle_adjust"    />
44
+        <result property="letterRemark"    column="letter_remark"    />
45
+        <result property="travelRemark"    column="travel_remark"    />
46
+        <result property="winRemark"    column="win_remark"    />
40 47
         <association property="compilerUser"    javaType="SysUser"         resultMap="CompilerResult" />
41 48
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerResult" />
42 49
         <association property="zjlUser"    javaType="SysUser"         resultMap="ZjlResult" />
@@ -74,7 +81,7 @@
74 81
         select b.budget_id, b.project_id, p.project_number, p.project_name, b.staff_cost, b.car_cost, b.device_cost, b.fix_cost, b.settle_expense, b.out_expense, b.business_expense, b.tax_expense,
75 82
                b.rent_expense, b.other_expense, b.out_remark, b.business_remark, b.tax_remark, b.rent_remark, b.other_remark, b.direct_expense, b.total_budget, b.compiler,
76 83
                u.nick_name as compiler_nick_name, b.manager, u1.nick_name as manager_nick_name, b.auditor, u2.nick_name as zjl_nick_name, b.approver, u3.nick_name as dsz_nick_name, b.create_time, b.manager_time, b.zjl_time, b.dsz_time,
77
-               b.manager_comment, b.zjl_comment, b.dsz_comment, b.remark, b.document from cmc_budget as b
84
+               b.manager_comment, b.zjl_comment, b.dsz_comment, b.remark, b.document, b.letter_expense, b.win_expense, b.travel_expense, b.settle_adjust, b.letter_remark, b.travel_remark, b.win_remark from cmc_budget as b
78 85
             left join sys_user as u on u.user_id = b.compiler
79 86
             left join sys_user as u1 on u1.user_id = b.manager
80 87
             left join sys_user as u2 on u2.user_id = b.auditor
@@ -142,6 +149,13 @@
142 149
             <if test="dszComment != null">dsz_comment,</if>
143 150
             <if test="remark != null">remark,</if>
144 151
             <if test="document != null">document,</if>
152
+            <if test="letterExpense != null">letter_expense,</if>
153
+            <if test="winExpense != null">win_expense,</if>
154
+            <if test="travelExpense != null">travel_expense,</if>
155
+            <if test="settleAdjust != null">settle_adjust,</if>
156
+            <if test="letterRemark != null">letter_remark,</if>
157
+            <if test="travelRemark != null">travel_remark,</if>
158
+            <if test="winRemark != null">win_remark,</if>
145 159
             create_time
146 160
         </trim>
147 161
         <trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -176,6 +190,13 @@
176 190
             <if test="dszComment != null">#{dszComment},</if>
177 191
             <if test="remark != null">#{remark},</if>
178 192
             <if test="document != null">#{document},</if>
193
+            <if test="letterExpense != null">#{letterExpense},</if>
194
+            <if test="winExpense != null">#{winExpense},</if>
195
+            <if test="travelExpense != null">#{travelExpense},</if>
196
+            <if test="settleAdjust != null">#{settleAdjust},</if>
197
+            <if test="letterRemark != null">#{letterRemark},</if>
198
+            <if test="travelRemark != null">#{travelRemark},</if>
199
+            <if test="winRemark != null">#{winRemark},</if>
179 200
             sysdate()
180 201
         </trim>
181 202
     </insert>
@@ -214,6 +235,13 @@
214 235
             <if test="createTime != null">create_time = #{createTime},</if>
215 236
             <if test="remark != null">remark = #{remark},</if>
216 237
             <if test="document != null">document = #{document},</if>
238
+            <if test="letterExpense != null">letter_expense = #{letterExpense},</if>
239
+            <if test="winExpense != null">win_expense = #{winExpense},</if>
240
+            <if test="travelExpense != null">travel_expense = #{travelExpense},</if>
241
+            <if test="settleAdjust != null">settle_adjust = #{settleAdjust},</if>
242
+            <if test="letterRemark != null">letter_remark = #{letterRemark},</if>
243
+            <if test="travelRemark != null">travel_remark = #{travelRemark},</if>
244
+            <if test="winRemark != null">win_remark = #{winRemark},</if>
217 245
         </trim>
218 246
         where budget_id = #{budgetId}
219 247
     </update>

+ 70
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetOtherMapper.xml Näytä tiedosto

@@ -0,0 +1,70 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.ruoyi.oa.mapper.CmcBudgetOtherMapper">
6
+    
7
+    <resultMap type="CmcBudgetOther" id="CmcBudgetOtherResult">
8
+        <result property="expenseId"    column="expense_id"    />
9
+        <result property="budgetId"    column="budget_id"    />
10
+        <result property="name"    column="name"    />
11
+        <result property="amountAdjust"    column="amount_adjust"    />
12
+        <result property="remark"    column="remark"    />
13
+    </resultMap>
14
+
15
+    <sql id="selectCmcBudgetOtherVo">
16
+        select expense_id, budget_id, name, amount_adjust, remark from cmc_budget_other
17
+    </sql>
18
+
19
+    <select id="selectCmcBudgetOtherList" parameterType="CmcBudgetOther" resultMap="CmcBudgetOtherResult">
20
+        <include refid="selectCmcBudgetOtherVo"/>
21
+        <where>  
22
+            <if test="budgetId != null  and budgetId != ''"> and budget_id = #{budgetId}</if>
23
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
24
+            <if test="amountAdjust != null "> and amount_adjust = #{amountAdjust}</if>
25
+        </where>
26
+    </select>
27
+    
28
+    <select id="selectCmcBudgetOtherByExpenseId" parameterType="Long" resultMap="CmcBudgetOtherResult">
29
+        <include refid="selectCmcBudgetOtherVo"/>
30
+        where expense_id = #{expenseId}
31
+    </select>
32
+        
33
+    <insert id="insertCmcBudgetOther" parameterType="CmcBudgetOther" useGeneratedKeys="true" keyProperty="expenseId">
34
+        insert into cmc_budget_other
35
+        <trim prefix="(" suffix=")" suffixOverrides=",">
36
+            <if test="budgetId != null">budget_id,</if>
37
+            <if test="name != null">name,</if>
38
+            <if test="amountAdjust != null">amount_adjust,</if>
39
+            <if test="remark != null">remark,</if>
40
+         </trim>
41
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
42
+            <if test="budgetId != null">#{budgetId},</if>
43
+            <if test="name != null">#{name},</if>
44
+            <if test="amountAdjust != null">#{amountAdjust},</if>
45
+            <if test="remark != null">#{remark},</if>
46
+         </trim>
47
+    </insert>
48
+
49
+    <update id="updateCmcBudgetOther" parameterType="CmcBudgetOther">
50
+        update cmc_budget_other
51
+        <trim prefix="SET" suffixOverrides=",">
52
+            <if test="budgetId != null">budget_id = #{budgetId},</if>
53
+            <if test="name != null">name = #{name},</if>
54
+            <if test="amountAdjust != null">amount_adjust = #{amountAdjust},</if>
55
+            <if test="remark != null">remark = #{remark},</if>
56
+        </trim>
57
+        where expense_id = #{expenseId}
58
+    </update>
59
+
60
+    <delete id="deleteCmcBudgetOtherByExpenseId" parameterType="Long">
61
+        delete from cmc_budget_other where expense_id = #{expenseId}
62
+    </delete>
63
+
64
+    <delete id="deleteCmcBudgetOtherByExpenseIds" parameterType="String">
65
+        delete from cmc_budget_other where expense_id in 
66
+        <foreach item="expenseId" collection="array" open="(" separator="," close=")">
67
+            #{expenseId}
68
+        </foreach>
69
+    </delete>
70
+</mapper>

+ 75
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetSiteMapper.xml Näytä tiedosto

@@ -0,0 +1,75 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.ruoyi.oa.mapper.CmcBudgetSiteMapper">
6
+    
7
+    <resultMap type="CmcBudgetSite" id="CmcBudgetSiteResult">
8
+        <result property="expenseId"    column="expense_id"    />
9
+        <result property="budgetId"    column="budget_id"    />
10
+        <result property="name"    column="name"    />
11
+        <result property="amount"    column="amount"    />
12
+        <result property="amountAdjust"    column="amount_adjust"    />
13
+        <result property="remark"    column="remark"    />
14
+    </resultMap>
15
+
16
+    <sql id="selectCmcBudgetSiteVo">
17
+        select expense_id, budget_id, name, amount, amount_adjust, remark from cmc_budget_site
18
+    </sql>
19
+
20
+    <select id="selectCmcBudgetSiteList" parameterType="CmcBudgetSite" resultMap="CmcBudgetSiteResult">
21
+        <include refid="selectCmcBudgetSiteVo"/>
22
+        <where>  
23
+            <if test="budgetId != null  and budgetId != ''"> and budget_id = #{budgetId}</if>
24
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
25
+            <if test="amount != null "> and amount = #{amount}</if>
26
+            <if test="amountAdjust != null "> and amount_adjust = #{amountAdjust}</if>
27
+        </where>
28
+    </select>
29
+    
30
+    <select id="selectCmcBudgetSiteByExpenseId" parameterType="Long" resultMap="CmcBudgetSiteResult">
31
+        <include refid="selectCmcBudgetSiteVo"/>
32
+        where expense_id = #{expenseId}
33
+    </select>
34
+        
35
+    <insert id="insertCmcBudgetSite" parameterType="CmcBudgetSite" useGeneratedKeys="true" keyProperty="expenseId">
36
+        insert into cmc_budget_site
37
+        <trim prefix="(" suffix=")" suffixOverrides=",">
38
+            <if test="budgetId != null">budget_id,</if>
39
+            <if test="name != null">name,</if>
40
+            <if test="amount != null">amount,</if>
41
+            <if test="amountAdjust != null">amount_adjust,</if>
42
+            <if test="remark != null">remark,</if>
43
+         </trim>
44
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
45
+            <if test="budgetId != null">#{budgetId},</if>
46
+            <if test="name != null">#{name},</if>
47
+            <if test="amount != null">#{amount},</if>
48
+            <if test="amountAdjust != null">#{amountAdjust},</if>
49
+            <if test="remark != null">#{remark},</if>
50
+         </trim>
51
+    </insert>
52
+
53
+    <update id="updateCmcBudgetSite" parameterType="CmcBudgetSite">
54
+        update cmc_budget_site
55
+        <trim prefix="SET" suffixOverrides=",">
56
+            <if test="budgetId != null">budget_id = #{budgetId},</if>
57
+            <if test="name != null">name = #{name},</if>
58
+            <if test="amount != null">amount = #{amount},</if>
59
+            <if test="amountAdjust != null">amount_adjust = #{amountAdjust},</if>
60
+            <if test="remark != null">remark = #{remark},</if>
61
+        </trim>
62
+        where expense_id = #{expenseId}
63
+    </update>
64
+
65
+    <delete id="deleteCmcBudgetSiteByExpenseId" parameterType="Long">
66
+        delete from cmc_budget_site where expense_id = #{expenseId}
67
+    </delete>
68
+
69
+    <delete id="deleteCmcBudgetSiteByExpenseIds" parameterType="String">
70
+        delete from cmc_budget_site where expense_id in 
71
+        <foreach item="expenseId" collection="array" open="(" separator="," close=")">
72
+            #{expenseId}
73
+        </foreach>
74
+    </delete>
75
+</mapper>

+ 34
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetStaffMapper.xml Näytä tiedosto

@@ -11,6 +11,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
11 11
         <result property="days"    column="days"    />
12 12
         <result property="staffCost"    column="staff_cost"    />
13 13
         <result property="remark"    column="remark"    />
14
+        <result property="type"    column="type"    />
15
+        <result property="daysAdjust"    column="days_adjust"    />
16
+        <result property="performance"    column="performance"    />
17
+        <result property="performanceAdjust"    column="performance_adjust"    />
18
+        <result property="coefficient"    column="coefficient"    />
19
+        <result property="coefficientAdjust"    column="coefficient_adjust"    />
20
+        <result property="amount"    column="amount"    />
21
+        <result property="amountAdjust"    column="amount_adjust"    />
14 22
         <association property="user"    javaType="SysUser"         resultMap="SysUserResult" />
15 23
         <association property="salary"    javaType="CmcPostSalary"         resultMap="CmcPostSalaryResult" />
16 24
     </resultMap>
@@ -31,7 +39,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
31 39
     </resultMap>
32 40
 
33 41
     <sql id="selectCmcBudgetStaffVo">
34
-        select bs.budget_staff_id, bs.budget_id, bs.user_id, u.dept_id, u.nick_name, bs.days, ps.salary, bs.staff_cost, bs.remark from cmc_budget_staff as bs
42
+        select bs.budget_staff_id, bs.budget_id, bs.user_id, u.dept_id, u.nick_name, bs.days, ps.salary, bs.staff_cost, bs.remark,
43
+               bs.type, bs.days_adjust, bs.performance, bs.performance_adjust, bs.coefficient, bs.coefficient_adjust, bs.amount, bs.amount_adjust from cmc_budget_staff as bs
35 44
         left join sys_user as u on u.user_id = bs.user_id
36 45
         left join cmc_post_salary as ps on u.salary_level = ps.salary_level and u.post_level = ps.post_level
37 46
     </sql>
@@ -60,6 +69,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
60 69
             <if test="days != null">days,</if>
61 70
             <if test="staffCost != null">staff_cost,</if>
62 71
             <if test="remark != null">remark,</if>
72
+            <if test="type != null">type,</if>
73
+            <if test="daysAdjust != null">days_adjust,</if>
74
+            <if test="performance != null">performance,</if>
75
+            <if test="performanceAdjust != null">performance_adjust,</if>
76
+            <if test="coefficient != null">coefficient,</if>
77
+            <if test="coefficientAdjust != null">coefficient_adjust,</if>
78
+            <if test="amount != null">amount,</if>
79
+            <if test="amountAdjust != null">amount_adjust,</if>
63 80
          </trim>
64 81
         <trim prefix="values (" suffix=")" suffixOverrides=",">
65 82
             <if test="budgetStaffId != null">#{budgetStaffId},</if>
@@ -68,6 +85,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
68 85
             <if test="days != null">#{days},</if>
69 86
             <if test="staffCost != null">#{staffCost},</if>
70 87
             <if test="remark != null">#{remark},</if>
88
+            <if test="type != null">#{type},</if>
89
+            <if test="daysAdjust != null">#{daysAdjust},</if>
90
+            <if test="performance != null">#{performance},</if>
91
+            <if test="performanceAdjust != null">#{performanceAdjust},</if>
92
+            <if test="coefficient != null">#{coefficient},</if>
93
+            <if test="coefficientAdjust != null">#{coefficientAdjust},</if>
94
+            <if test="amount != null">#{amount},</if>
95
+            <if test="amountAdjust != null">#{amountAdjust},</if>
71 96
          </trim>
72 97
     </insert>
73 98
 
@@ -79,6 +104,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
79 104
             <if test="days != null">days = #{days},</if>
80 105
             <if test="staffCost != null">staff_cost = #{staffCost},</if>
81 106
             <if test="remark != null">remark = #{remark},</if>
107
+            <if test="type != null">type = #{type},</if>
108
+            <if test="daysAdjust != null">days_adjust = #{daysAdjust},</if>
109
+            <if test="performance != null">performance = #{performance},</if>
110
+            <if test="performanceAdjust != null">performance_adjust = #{performanceAdjust},</if>
111
+            <if test="coefficient != null">coefficient = #{coefficient},</if>
112
+            <if test="coefficientAdjust != null">coefficient_adjust = #{coefficientAdjust},</if>
113
+            <if test="amount != null">amount = #{amount},</if>
114
+            <if test="amountAdjust != null">amount_adjust = #{amountAdjust},</if>
82 115
         </trim>
83 116
         where budget_staff_id = #{budgetStaffId}
84 117
     </update>

+ 44
- 17
oa-back/sql/sq.sql Näytä tiedosto

@@ -1,18 +1,45 @@
1
-alter table cmc_car add column insurance decimal(10,2) default null comment '保险';
2
-alter table cmc_car add column maintenance decimal(10,2) default null comment '维修';
3
-UPDATE `cmc_oa`.`cmc_car` SET `license_plate` = '川A5177U', `insurance` = 11, `maintenance` = 35.00 WHERE `car_id` = 1;
4
-UPDATE `cmc_oa`.`cmc_car` SET `license_plate` = '川A1081W', `insurance` = 13, `maintenance` = 60.00 WHERE `car_id` = 2;
5
-UPDATE `cmc_oa`.`cmc_car` SET `license_plate` = '川A2239Q', `insurance` = 8, `maintenance` = 46.00 WHERE `car_id` = 3;
6
-UPDATE `cmc_oa`.`cmc_car` SET `license_plate` = '川A1686T', `insurance` = 10, `maintenance` = 60.00 WHERE `car_id` = 4;
7
-UPDATE `cmc_oa`.`cmc_car` SET `license_plate` = '川A0T282', `insurance` = 8, `maintenance` = 60.00 WHERE `car_id` = 5;
8
-UPDATE `cmc_oa`.`cmc_car` SET `license_plate` = '川A9802U', `insurance` = 12, `maintenance` = 32.00 WHERE `car_id` = 6;
9
-UPDATE `cmc_oa`.`cmc_car` SET `license_plate` = '川A6106T', `insurance` = 11, `maintenance` = 10.00 WHERE `car_id` = 32;
10
-UPDATE `cmc_oa`.`cmc_car` SET `license_plate` = '川AQ259W', `insurance` = 8, `maintenance` = 13.00 WHERE `car_id` = 8;
11
-UPDATE `cmc_oa`.`cmc_car` SET `license_plate` = '川A5U91Q', `insurance` = 8, `maintenance` = 46.00 WHERE `car_id` = 9;
12
-UPDATE `cmc_oa`.`cmc_car` SET `license_plate` = '川AEX607', `insurance` = 7, `maintenance` = 8.00 WHERE `car_id` = 10;
13
-UPDATE `cmc_oa`.`cmc_car` SET `license_plate` = '川A99L3B', `insurance` = 6, `maintenance` = 14.00 WHERE `car_id` = 11;
14
-UPDATE `cmc_oa`.`cmc_car` SET `license_plate` = '川A6692U', `insurance` = 9, `maintenance` = 10.00 WHERE `car_id` = 12;
15
-UPDATE `cmc_oa`.`cmc_car` SET `license_plate` = '川GAR907', `insurance` = 8, `maintenance` = 7.00 WHERE `car_id` = 13;
16
-UPDATE `cmc_oa`.`cmc_car` SET `license_plate` = '川A3760U', `insurance` = 10, `maintenance` = 10.00 WHERE `car_id` = 14;
17
-UPDATE `cmc_oa`.`cmc_car` SET `license_plate` = '川A1950R', `insurance` = 10, `maintenance` = 10.00 WHERE `car_id` = 15;
1
+alter table cmc_budget add column letter_expense	decimal(10,2) default null	comment '保函费用';
2
+alter table cmc_budget add column letter_remark	varchar(255) default null	comment '保函费用备注';
3
+alter table cmc_budget add column win_expense	decimal(10,2) default null	comment '中标服务费';
4
+alter table cmc_budget add column win_remark	varchar(255) default null	comment '中标服务费备注';
5
+alter table cmc_budget add column travel_expense	decimal(10,2) default null	comment '管理出差费用';
6
+alter table cmc_budget add column travel_remark	varchar(255) default null	comment '管理出差费用备注';
7
+alter table cmc_budget add column settle_adjust	decimal(10,2) default null	comment '内业核算绩效总额';
18 8
 
9
+alter table cmc_budget_staff add column type	char(2) default null	comment '作业类别';
10
+alter table cmc_budget_staff add column days_adjust	int default null	comment '核算天数';
11
+alter table cmc_budget_staff add column performance	decimal(10,2) default null	comment '预算绩效';
12
+alter table cmc_budget_staff add column performance_adjust	decimal(10,2) default null	comment '核算绩效';
13
+alter table cmc_budget_staff add column coefficient	varchar(5) default null	comment '预算系数';
14
+alter table cmc_budget_staff add column coefficient_adjust	varchar(5) default null	comment '核算系数';
15
+alter table cmc_budget_staff add column amount	decimal(10,2) default null	comment '预算金额';
16
+alter table cmc_budget_staff add column amount_adjust	decimal(10,2) default null	comment '核算金额';
17
+
18
+alter table cmc_budget_car add column days_adjust	int default null	comment '核算天数';
19
+alter table cmc_budget_car add column amount	decimal(10,2) default null	comment '预算金额';
20
+alter table cmc_budget_car add column amount_adjust	decimal(10,2) default null	comment '核算金额';
21
+
22
+alter table cmc_budget_device add column days_adjust	int default null	comment '核算天数';
23
+alter table cmc_budget_device add column amount	decimal(10,2) default null	comment '预算金额';
24
+alter table cmc_budget_device add column amount_adjust	decimal(10,2) default null	comment '核算金额';
25
+
26
+DROP TABLE IF EXISTS `cmc_budget_site`;
27
+CREATE TABLE `cmc_budget_site`  (
28
+  `expense_id` int NOT NULL AUTO_INCREMENT COMMENT '现场开支id',
29
+  `budget_id` char(19) DEFAULT NULL COMMENT '预算id',
30
+  `name` varchar(255) DEFAULT NULL COMMENT '开支名称',
31
+  `amount` decimal(10, 2) DEFAULT NULL COMMENT '开支金额',
32
+  `amount_adjust` decimal(10, 2) DEFAULT NULL COMMENT '核算开支',
33
+  `remark` varchar(255) DEFAULT NULL COMMENT '备注',
34
+  PRIMARY KEY (`expense_id`)
35
+) ENGINE = InnoDB comment 'cmc现场开支表';
36
+
37
+DROP TABLE IF EXISTS `cmc_budget_other`;
38
+CREATE TABLE `cmc_budget_other`  (
39
+  `expense_id` int NOT NULL AUTO_INCREMENT COMMENT '现场开支id',
40
+  `budget_id` char(19) DEFAULT NULL COMMENT '预算id',
41
+  `name` varchar(255) DEFAULT NULL COMMENT '开支名称',
42
+  `amount_adjust` decimal(10, 2) DEFAULT NULL COMMENT '核算开支',
43
+  `remark` varchar(255) DEFAULT NULL COMMENT '备注',
44
+  PRIMARY KEY (`expense_id`)
45
+) ENGINE = InnoDB comment 'cmc预算外开支表';

Loading…
Peruuta
Tallenna