Sfoglia il codice sorgente

预算内业核算增加核算单价表id

lamphua 3 mesi fa
parent
commit
4df903d19c

+ 24
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetSettle.java Vedi File

@@ -33,6 +33,12 @@ public class CmcBudgetSettle extends BaseEntity
33 33
 
34 34
     private CmcPrice cmcPrice;
35 35
 
36
+    /** 核算单价id */
37
+    @Excel(name = "核算单价id")
38
+    private Long checkPriceId;
39
+
40
+    private CmcCheckPrice cmcCheckPrice;
41
+
36 42
     /** 工作量 */
37 43
     @Excel(name = "工作量")
38 44
     private Double workload;
@@ -94,6 +100,15 @@ public class CmcBudgetSettle extends BaseEntity
94 100
     {
95 101
         return cmcPrice;
96 102
     }
103
+    public void setCmcCheckPrice(CmcCheckPrice cmcCheckPrice)
104
+    {
105
+        this.cmcCheckPrice = cmcCheckPrice;
106
+    }
107
+
108
+    public CmcCheckPrice getCmcCheckPrice()
109
+    {
110
+        return cmcCheckPrice;
111
+    }
97 112
     public void setWorkload(Double workload)
98 113
     {
99 114
         this.workload = workload;
@@ -130,6 +145,15 @@ public class CmcBudgetSettle extends BaseEntity
130 145
     {
131 146
         return settle;
132 147
     }
148
+    public void setCheckPriceId(Long checkPriceId)
149
+    {
150
+        this.checkPriceId = checkPriceId;
151
+    }
152
+
153
+    public Long getCheckPriceId()
154
+    {
155
+        return checkPriceId;
156
+    }
133 157
 
134 158
     @Override
135 159
     public String toString() {

+ 6
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetSettleMapper.xml Vedi File

@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
8 8
         <result property="budgetSettleId"    column="budget_settle_id"    />
9 9
         <result property="budgetId"    column="budget_id"    />
10 10
         <result property="priceId"    column="price_id"    />
11
+        <result property="checkPriceId"    column="check_price_id"    />
11 12
         <result property="content"    column="content"    />
12 13
         <result property="workload"    column="workload"    />
13 14
         <result property="coefficient"    column="coefficient"    />
@@ -29,8 +30,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
29 30
     </resultMap>
30 31
 
31 32
     <sql id="selectCmcBudgetSettleVo">
32
-        select bs.budget_settle_id, bs.budget_id, bs.content, bs.price_id, p.work_type, p.work_item, p.sub_item, p.scale_grade, p.unit, p.common_price, p.complex_price, bs.workload, bs.coefficient, bs.ground_type, bs.settle , bs.remark from cmc_budget_settle as bs
33
+        select bs.budget_settle_id, bs.budget_id, bs.content, bs.price_id, bs.check_price_id, p.work_type, p.work_item, p.sub_item, p.scale_grade, p.unit, p.common_price, p.complex_price, bs.workload, bs.coefficient, bs.ground_type, bs.settle , bs.remark from cmc_budget_settle as bs
33 34
         left join cmc_price as p on p.id = bs.price_id
35
+        left join cmc_check_price as cp on cp.id = bs.check_price_id
34 36
     </sql>
35 37
 
36 38
     <select id="selectCmcBudgetSettleList" parameterType="CmcBudgetSettle" resultMap="CmcBudgetSettleResult">
@@ -57,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
57 59
             <if test="budgetId != null">budget_id,</if>
58 60
             <if test="content != null">content,</if>
59 61
             <if test="priceId != null">price_id,</if>
62
+            <if test="checkPriceId != null">check_price_id,</if>
60 63
             <if test="workload != null">workload,</if>
61 64
             <if test="coefficient != null">coefficient,</if>
62 65
             <if test="groundType != null">ground_type,</if>
@@ -68,6 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
68 71
             <if test="budgetId != null">#{budgetId},</if>
69 72
             <if test="content != null">#{content},</if>
70 73
             <if test="priceId != null">#{priceId},</if>
74
+            <if test="checkPriceId != null">#{checkPriceId},</if>
71 75
             <if test="workload != null">#{workload},</if>
72 76
             <if test="coefficient != null">#{coefficient},</if>
73 77
             <if test="groundType != null">#{groundType},</if>
@@ -82,6 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
82 86
             <if test="budgetId != null">budget_id = #{budgetId},</if>
83 87
             <if test="content != null">content = #{content},</if>
84 88
             <if test="priceId != null">price_id = #{priceId},</if>
89
+            <if test="checkPriceId != null">check_price_id = #{checkPriceId},</if>
85 90
             <if test="workload != null">workload = #{workload},</if>
86 91
             <if test="coefficient != null">coefficient = #{coefficient},</if>
87 92
             <if test="groundType != null">ground_type = #{groundType},</if>

+ 8
- 1
oa-back/sql/sq.sql Vedi File

@@ -153,4 +153,11 @@ INSERT INTO `cmc_check_price` VALUES (96, '内业', '实景三维模型修模',
153 153
 insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
154 154
 values(174, '核算单价', '16', '3', 'checkPrice', 'oa/price/checkPrice', 1, 0, 'C', '0', '0', 'oa:price:list', 'price', 'admin', sysdate(), '', null, '核算单价菜单');
155 155
 
156
-INSERT INTO `cmc_oa`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (7, 174);
156
+INSERT INTO `cmc_oa`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (7, 174);
157
+
158
+alter table cmc_budget_settle add column check_price_id int default null comment '核算单价id';
159
+update `cmc_check_price` set remark = '地形地类图增加部分参照航测成图增加 15%' where id = 26;
160
+update `cmc_check_price` set remark = '地形地类图增加部分参照航测成图增加 15%' where id = 27;
161
+update `cmc_check_price` set remark = '地形地类图增加部分参照航测成图增加 15%' where id = 28;
162
+update `cmc_check_price` set remark = '地形地类图增加部分参照航测成图增加 15%' where id = 29;
163
+update `cmc_check_price` set remark = '地形地类图增加部分参照航测成图增加 15%' where id = 30;

Loading…
Annulla
Salva