瀏覽代碼

预算添加备注

lamphua 1 年之前
父節點
當前提交
90fda46433

+ 5
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetCarMapper.xml 查看文件

@@ -13,6 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
13 13
         <result property="distance"    column="distance"    />
14 14
         <result property="mileage"    column="mileage"    />
15 15
         <result property="expense"    column="expense"    />
16
+        <result property="remark"    column="remark"    />
16 17
         <association property="car"    javaType="CmcCar"         resultMap="CmcCarResult" />
17 18
     </resultMap>
18 19
 
@@ -23,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
23 24
     </resultMap>
24 25
 
25 26
     <sql id="selectCmcBudgetCarVo">
26
-        select bc.budget_car_id, bc.budget_id, bc.car_id, c.license_plate, c.day_cost, bc.days, bc.depreciation, bc.distance, bc.mileage, bc.expense from cmc_budget_car as bc
27
+        select bc.budget_car_id, bc.budget_id, bc.car_id, c.license_plate, c.day_cost, bc.days, bc.depreciation, bc.distance, bc.mileage, bc.expense, bc.remark from cmc_budget_car as bc
27 28
         left join cmc_car as c on c.car_id = bc.car_id
28 29
     </sql>
29 30
 
@@ -56,6 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
56 57
             <if test="distance != null">distance,</if>
57 58
             <if test="mileage != null">mileage,</if>
58 59
             <if test="expense != null">expense,</if>
60
+            <if test="remark != null">remark,</if>
59 61
          </trim>
60 62
         <trim prefix="values (" suffix=")" suffixOverrides=",">
61 63
             <if test="budgetCarId != null">#{budgetCarId},</if>
@@ -66,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
66 68
             <if test="distance != null">#{distance},</if>
67 69
             <if test="mileage != null">#{mileage},</if>
68 70
             <if test="expense != null">#{expense},</if>
71
+            <if test="remark != null">#{remark},</if>
69 72
          </trim>
70 73
     </insert>
71 74
 
@@ -79,6 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
79 82
             <if test="distance != null">distance = #{distance},</if>
80 83
             <if test="mileage != null">mileage = #{mileage},</if>
81 84
             <if test="expense != null">expense = #{expense},</if>
85
+            <if test="remark != null">remark = #{remark},</if>
82 86
         </trim>
83 87
         where budget_car_id = #{budgetCarId}
84 88
     </update>

+ 5
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetDeviceMapper.xml 查看文件

@@ -10,6 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
10 10
         <result property="deviceId"    column="device_id"    />
11 11
         <result property="days"    column="days"    />
12 12
         <result property="depreciation"    column="depreciation"    />
13
+        <result property="remark"    column="remark"    />
13 14
         <association property="device"    javaType="CmcDevice"         resultMap="CmcDeviceResult" />
14 15
     </resultMap>
15 16
 
@@ -23,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
23 24
     </resultMap>
24 25
 
25 26
     <sql id="selectCmcBudgetDeviceVo">
26
-        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 from cmc_budget_device as bd
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
27 28
         left join cmc_device as d on d.device_id = bd.device_id
28 29
     </sql>
29 30
 
@@ -50,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
50 51
             <if test="deviceId != null">device_id,</if>
51 52
             <if test="days != null">days,</if>
52 53
             <if test="depreciation != null">depreciation,</if>
54
+            <if test="remark != null">remark,</if>
53 55
          </trim>
54 56
         <trim prefix="values (" suffix=")" suffixOverrides=",">
55 57
             <if test="budgetDeviceId != null">#{budgetDeviceId},</if>
@@ -57,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
57 59
             <if test="deviceId != null">#{deviceId},</if>
58 60
             <if test="days != null">#{days},</if>
59 61
             <if test="depreciation != null">#{depreciation},</if>
62
+            <if test="remark != null">#{remark},</if>
60 63
          </trim>
61 64
     </insert>
62 65
 
@@ -67,6 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
67 70
             <if test="deviceId != null">device_id = #{deviceId},</if>
68 71
             <if test="days != null">days = #{days},</if>
69 72
             <if test="depreciation != null">depreciation = #{depreciation},</if>
73
+            <if test="remark != null">remark = #{remark},</if>
70 74
         </trim>
71 75
         where budget_device_id = #{budgetDeviceId}
72 76
     </update>

+ 5
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetSettleMapper.xml 查看文件

@@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
12 12
         <result property="coefficient"    column="coefficient"    />
13 13
         <result property="groundType"    column="ground_type"    />
14 14
         <result property="settle"    column="settle"    />
15
+        <result property="remark"    column="remark"    />
15 16
         <association property="cmcPrice"    javaType="CmcPrice"         resultMap="CmcPriceResult" />
16 17
     </resultMap>
17 18
 
@@ -27,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
27 28
     </resultMap>
28 29
 
29 30
     <sql id="selectCmcBudgetSettleVo">
30
-        select bs.budget_settle_id, bs.budget_id, 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 from cmc_budget_settle as bs
31
+        select bs.budget_settle_id, bs.budget_id, 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
31 32
         left join cmc_price as p on p.id = bs.price_id
32 33
     </sql>
33 34
 
@@ -58,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
58 59
             <if test="coefficient != null">coefficient,</if>
59 60
             <if test="groundType != null">ground_type,</if>
60 61
             <if test="settle != null">settle,</if>
62
+            <if test="remark != null">remark,</if>
61 63
          </trim>
62 64
         <trim prefix="values (" suffix=")" suffixOverrides=",">
63 65
             <if test="budgetSettleId != null">#{budgetSettleId},</if>
@@ -67,6 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
67 69
             <if test="coefficient != null">#{coefficient},</if>
68 70
             <if test="groundType != null">#{groundType},</if>
69 71
             <if test="settle != null">#{settle},</if>
72
+            <if test="remark != null">#{remark},</if>
70 73
          </trim>
71 74
     </insert>
72 75
 
@@ -79,6 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
79 82
             <if test="coefficient != null">coefficient = #{coefficient},</if>
80 83
             <if test="groundType != null">ground_type = #{groundType},</if>
81 84
             <if test="settle != null">settle = #{settle},</if>
85
+            <if test="remark != null">remark = #{remark},</if>
82 86
         </trim>
83 87
         where budget_settle_id = #{budgetSettleId}
84 88
     </update>

+ 5
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetStaffMapper.xml 查看文件

@@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
12 12
         <result property="staffCost"    column="staff_cost"    />
13 13
         <result property="inOutPrice"    column="in_out_price"    />
14 14
         <result property="inOutExpense"    column="in_out_expense"    />
15
+        <result property="remark"    column="remark"    />
15 16
         <association property="user"    javaType="SysUser"         resultMap="SysUserResult" />
16 17
         <association property="salary"    javaType="CmcPostSalary"         resultMap="CmcPostSalaryResult" />
17 18
     </resultMap>
@@ -31,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
31 32
     </resultMap>
32 33
 
33 34
     <sql id="selectCmcBudgetStaffVo">
34
-        select bs.budget_staff_id, bs.budget_id, bs.user_id, u.nick_name, bs.days, ps.salary, bs.staff_cost, bs.in_out_price, bs.in_out_expense from cmc_budget_staff as bs
35
+        select bs.budget_staff_id, bs.budget_id, bs.user_id, u.nick_name, bs.days, ps.salary, bs.staff_cost, bs.in_out_price, bs.in_out_expense, bs.remark from cmc_budget_staff as bs
35 36
         left join sys_user as u on u.user_id = bs.user_id
36 37
         left join cmc_post_salary as ps on u.salary_level = ps.salary_level and u.post_level = ps.post_level
37 38
     </sql>
@@ -63,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
63 64
             <if test="staffCost != null">staff_cost,</if>
64 65
             <if test="inOutPrice != null">in_out_price,</if>
65 66
             <if test="inOutExpense != null">in_out_expense,</if>
67
+            <if test="remark != null">remark,</if>
66 68
          </trim>
67 69
         <trim prefix="values (" suffix=")" suffixOverrides=",">
68 70
             <if test="budgetStaffId != null">#{budgetStaffId},</if>
@@ -72,6 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
72 74
             <if test="staffCost != null">#{staffCost},</if>
73 75
             <if test="inOutPrice != null">#{inOutPrice},</if>
74 76
             <if test="inOutExpense != null">#{inOutExpense},</if>
77
+            <if test="remark != null">#{remark},</if>
75 78
          </trim>
76 79
     </insert>
77 80
 
@@ -84,6 +87,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
84 87
             <if test="staffCost != null">staff_cost = #{staffCost},</if>
85 88
             <if test="inOutPrice != null">in_out_price = #{inOutPrice},</if>
86 89
             <if test="inOutExpense != null">in_out_expense = #{inOutExpense},</if>
90
+            <if test="remark != null">remark = #{remark},</if>
87 91
         </trim>
88 92
         where budget_staff_id = #{budgetStaffId}
89 93
     </update>

+ 4
- 0
oa-back/sql/sql.sql 查看文件

@@ -3579,6 +3579,7 @@ create table `cmc_budget_car`  (
3579 3579
   `distance` 		double 			default null comment '距离',
3580 3580
   `mileage` 		decimal(10, 2) 	default null comment '油耗',
3581 3581
   `expense` 		decimal(10, 2) 	default null comment '使用成本',
3582
+  `remark` 			varchar(50) 	default null comment '备注',
3582 3583
   primary key (`budget_car_id`)
3583 3584
 ) engine = innodb comment = 'cmc车辆预算表';
3584 3585
 
@@ -3596,6 +3597,7 @@ create table `cmc_budget_device`  (
3596 3597
   `device_id` 			int 			default null comment '设备id',
3597 3598
   `days` 				int 			default null comment '天数',
3598 3599
   `depreciation` 		decimal(10, 2) 	default null comment '折旧成本',
3600
+  `remark` 				varchar(50) 	default null comment '备注',
3599 3601
   primary key (`budget_device_id`)
3600 3602
 ) engine = innodb comment = 'cmc设备预算表';
3601 3603
 
@@ -3615,6 +3617,7 @@ create table `cmc_budget_settle`  (
3615 3617
   `coefficient` 		double 			default null comment '系数',
3616 3618
   `ground_type` 		char(1) 		default null comment '地类',
3617 3619
   `settle` 				decimal(10, 2) 	default null comment '结算金额',
3620
+  `remark` 				varchar(50) 	default null comment '备注',
3618 3621
   primary key (`budget_settle_id`)
3619 3622
 ) engine = innodb comment = 'cmc预结算表';
3620 3623
 
@@ -3634,6 +3637,7 @@ create table `cmc_budget_staff`  (
3634 3637
   `staff_cost` 			decimal(10, 2) 	default null comment '人员成本',
3635 3638
   `in_out_price` 		decimal(10, 2) 	default null comment '进出场单价',
3636 3639
   `in_out_expense` 		decimal(10, 2) 	default null comment '进出场费用',
3640
+  `remark` 				varchar(50) 	default null comment '备注',
3637 3641
   primary key (`budget_staff_id`)
3638 3642
 ) engine = innodb comment = 'cmc人员预算表';
3639 3643
 

Loading…
取消
儲存