Browse Source

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

lamphua 3 months ago
parent
commit
4df903d19c

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

33
 
33
 
34
     private CmcPrice cmcPrice;
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
     @Excel(name = "工作量")
43
     @Excel(name = "工作量")
38
     private Double workload;
44
     private Double workload;
94
     {
100
     {
95
         return cmcPrice;
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
     public void setWorkload(Double workload)
112
     public void setWorkload(Double workload)
98
     {
113
     {
99
         this.workload = workload;
114
         this.workload = workload;
130
     {
145
     {
131
         return settle;
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
     @Override
158
     @Override
135
     public String toString() {
159
     public String toString() {

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

8
         <result property="budgetSettleId"    column="budget_settle_id"    />
8
         <result property="budgetSettleId"    column="budget_settle_id"    />
9
         <result property="budgetId"    column="budget_id"    />
9
         <result property="budgetId"    column="budget_id"    />
10
         <result property="priceId"    column="price_id"    />
10
         <result property="priceId"    column="price_id"    />
11
+        <result property="checkPriceId"    column="check_price_id"    />
11
         <result property="content"    column="content"    />
12
         <result property="content"    column="content"    />
12
         <result property="workload"    column="workload"    />
13
         <result property="workload"    column="workload"    />
13
         <result property="coefficient"    column="coefficient"    />
14
         <result property="coefficient"    column="coefficient"    />
29
     </resultMap>
30
     </resultMap>
30
 
31
 
31
     <sql id="selectCmcBudgetSettleVo">
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
         left join cmc_price as p on p.id = bs.price_id
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
     </sql>
36
     </sql>
35
 
37
 
36
     <select id="selectCmcBudgetSettleList" parameterType="CmcBudgetSettle" resultMap="CmcBudgetSettleResult">
38
     <select id="selectCmcBudgetSettleList" parameterType="CmcBudgetSettle" resultMap="CmcBudgetSettleResult">
57
             <if test="budgetId != null">budget_id,</if>
59
             <if test="budgetId != null">budget_id,</if>
58
             <if test="content != null">content,</if>
60
             <if test="content != null">content,</if>
59
             <if test="priceId != null">price_id,</if>
61
             <if test="priceId != null">price_id,</if>
62
+            <if test="checkPriceId != null">check_price_id,</if>
60
             <if test="workload != null">workload,</if>
63
             <if test="workload != null">workload,</if>
61
             <if test="coefficient != null">coefficient,</if>
64
             <if test="coefficient != null">coefficient,</if>
62
             <if test="groundType != null">ground_type,</if>
65
             <if test="groundType != null">ground_type,</if>
68
             <if test="budgetId != null">#{budgetId},</if>
71
             <if test="budgetId != null">#{budgetId},</if>
69
             <if test="content != null">#{content},</if>
72
             <if test="content != null">#{content},</if>
70
             <if test="priceId != null">#{priceId},</if>
73
             <if test="priceId != null">#{priceId},</if>
74
+            <if test="checkPriceId != null">#{checkPriceId},</if>
71
             <if test="workload != null">#{workload},</if>
75
             <if test="workload != null">#{workload},</if>
72
             <if test="coefficient != null">#{coefficient},</if>
76
             <if test="coefficient != null">#{coefficient},</if>
73
             <if test="groundType != null">#{groundType},</if>
77
             <if test="groundType != null">#{groundType},</if>
82
             <if test="budgetId != null">budget_id = #{budgetId},</if>
86
             <if test="budgetId != null">budget_id = #{budgetId},</if>
83
             <if test="content != null">content = #{content},</if>
87
             <if test="content != null">content = #{content},</if>
84
             <if test="priceId != null">price_id = #{priceId},</if>
88
             <if test="priceId != null">price_id = #{priceId},</if>
89
+            <if test="checkPriceId != null">check_price_id = #{checkPriceId},</if>
85
             <if test="workload != null">workload = #{workload},</if>
90
             <if test="workload != null">workload = #{workload},</if>
86
             <if test="coefficient != null">coefficient = #{coefficient},</if>
91
             <if test="coefficient != null">coefficient = #{coefficient},</if>
87
             <if test="groundType != null">ground_type = #{groundType},</if>
92
             <if test="groundType != null">ground_type = #{groundType},</if>

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

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)
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
 values(174, '核算单价', '16', '3', 'checkPrice', 'oa/price/checkPrice', 1, 0, 'C', '0', '0', 'oa:price:list', 'price', 'admin', sysdate(), '', null, '核算单价菜单');
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…
Cancel
Save