Przeglądaj źródła

预算添加备注

lamphua 1 rok temu
rodzic
commit
90fda46433

+ 5
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetCarMapper.xml Wyświetl plik

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

+ 5
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetDeviceMapper.xml Wyświetl plik

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

+ 5
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetSettleMapper.xml Wyświetl plik

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

+ 5
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetStaffMapper.xml Wyświetl plik

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

+ 4
- 0
oa-back/sql/sql.sql Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz