176 lines
15 KiB
SQL
176 lines
15 KiB
SQL
-- 任务:修改价格、费用与数量的类型
|
|
|
|
update data_receive_detail set rent_price = 0.00 where rent_price is null;
|
|
update ma_machine set buy_price = 0.00 where buy_price is null;
|
|
update ma_part_type set buy_price = 0.00 where buy_price is null;
|
|
update ma_type set lease_price = 0.00 where lease_price is null;
|
|
update ma_type set rent_price = 0.00 where rent_price is null;
|
|
update ma_type set buy_price = 0.00 where buy_price is null or buy_price='';
|
|
update ma_type set pay_price = 0.00 where pay_price is null or pay_price='';
|
|
update ma_type_his_price set lease_price = 0.00 where lease_price is null;
|
|
update plan_borrow_details set plan_price = 0.00 where plan_price is null;
|
|
update plan_need_details set plan_price = 0.00 where plan_price is null;
|
|
update purchase_check_details set purchase_price = 0.00 where purchase_price is null;
|
|
update purchase_part_details set purchase_price = 0.00 where purchase_price is null;
|
|
update repair_apply_record set part_price = 0.00 where part_price is null;
|
|
update slt_agreement_details set price = 0.00 where price is null;
|
|
update slt_agreement_info set lease_price = 0.00 where lease_price is null;
|
|
update slt_agreement_info set buy_price = 0.00 where buy_price is null;
|
|
|
|
update plan_borrow_details set plan_cost = 0.00 where plan_cost is null;
|
|
update plan_need_details set plan_cost = 0.00 where plan_cost is null;
|
|
update project_month_costs set costs = 0.00 where costs is null;
|
|
update project_month_detail set slt_costs = 0.00 where slt_costs is null;
|
|
update project_month_detail set month_temporarily_costs = 0.00 where month_temporarily_costs is null;
|
|
update repair_part_details set part_cost = 0.00 where part_cost is null;
|
|
update slt_agreement_apply set cost = 0.00 where cost is null;
|
|
update slt_agreement_details set money = 0.00 where money is null;
|
|
update slt_agreement_relation set add_cost = 0.00 where add_cost is null;
|
|
update slt_agreement_relation set sub_cost = 0.00 where sub_cost is null;
|
|
update slt_agreement_relation set lease_one_cost = 0.00 where lease_one_cost is null;
|
|
update slt_agreement_relation set repair_cost = 0.00 where repair_cost is null;
|
|
update slt_agreement_relation set scrap_cost = 0.00 where scrap_cost is null;
|
|
update slt_agreement_relation set lose_cost = 0.00 where lose_cost is null;
|
|
update slt_agreement_relation set cost = 0.00 where cost is null;
|
|
update slt_agreement_relation set lease_three_cost = 0.00 where lease_three_cost is null;
|
|
|
|
update back_apply_details set pre_num = 0 where pre_num is null;
|
|
update back_apply_details set audit_num = 0 where audit_num is null;
|
|
update back_check_details set back_num = 0 where back_num is null;
|
|
update direct_apply_details set direct_num = 0 where direct_num is null;
|
|
update input_apply_details set input_num = 0 where input_num is null;
|
|
update lease_agreement_record set num = 0 where num is null;
|
|
update lease_apply_details set pre_num = 0 where pre_num is null;
|
|
update lease_apply_details set audit_num = 0 where audit_num is null;
|
|
update lease_apply_details set al_num = 0 where al_num is null;
|
|
update lease_out_details set out_num = 0 where out_num is null;
|
|
update lease_scene_regist set num = 0 where num is null;
|
|
update lease_user_book set book_num = 0 where book_num is null;
|
|
update ma_accessory set acessory_number = 0 where acessory_number is null;
|
|
update ma_house_set set num = 0 where num is null;
|
|
update ma_input_record set input_num = 0 where input_num is null;
|
|
update ma_machine set in_out_num = 0 where in_out_num is null;
|
|
update ma_part_type set num = 0 where num is null;
|
|
update ma_part_type set warn_num = 0 where warn_num is null;
|
|
update ma_type set num = 0 where num is null;
|
|
update ma_type set warn_num = 0 where warn_num is null;
|
|
update ma_type_his_num set storage_num = 0 where storage_num is null;
|
|
update ma_type_put_in_storage_details set NUM = 0 where num is null;
|
|
update ma_type_put_in_storage_info set NUM = 0 where num is null;
|
|
update ma_whole_set set part_num = 0 where part_num is null;
|
|
update plan_borrow_details set plan_num = 0 where plan_num is null;
|
|
update plan_borrow_details set borrow_num = 0 where borrow_num is null;
|
|
update plan_need_details set plan_num = 0 where plan_num is null;
|
|
update project_month_detail set num = 0 where num is null;
|
|
update purchase_check_details set purchase_num = 0 where purchase_num is null;
|
|
update purchase_check_details set check_num = 0 where check_num is null;
|
|
update purchase_check_details set bind_num = 0 where bind_num is null;
|
|
update purchase_check_details set input_num = 0 where input_num is null;
|
|
update purchase_part_details set purchase_num = 0 where purchase_num is null;
|
|
update purchase_part_details set check_num = 0 where check_num is null;
|
|
update purchase_part_details set input_num = 0 where input_num is null;
|
|
update repair_apply_details set repair_num = 0 where repair_num is null;
|
|
update repair_apply_details set repaired_num = 0 where repaired_num is null;
|
|
update repair_apply_details set scrap_num = 0 where scrap_num is null;
|
|
update repair_apply_record set repair_num = 0 where repair_num is null;
|
|
update repair_apply_record set scrap_num = 0 where scrap_num is null;
|
|
update repair_apply_record set part_num = 0 where part_num is null;
|
|
update repair_audit_details set repair_num = 0 where repair_num is null;
|
|
update repair_audit_details set repaired_num = 0 where repaired_num is null;
|
|
update repair_audit_details set scrap_num = 0 where scrap_num is null;
|
|
update repair_cost set repair_num = 0 where repair_num is null;
|
|
update repair_input_details set repair_num = 0 where repair_num is null;
|
|
update repair_input_details set input_num = 0 where input_num is null;
|
|
update repair_part_details set part_num = 0 where part_num is null;
|
|
update scrap_apply_details set scrap_num = 0 where scrap_num is null;
|
|
update slt_agreement_details set num = 0 where num is null;
|
|
update slt_agreement_info set num = 0 where num is null;
|
|
update team_lease_info set num = 0 where num is null;
|
|
|
|
ALTER TABLE data_receive_detail MODIFY COLUMN rent_price decimal(10, 2) default 0.00 comment '租赁价格'; -- 数据推送过来的,未联调过
|
|
ALTER TABLE ma_machine MODIFY COLUMN buy_price decimal(10, 2) default 0.00 comment '购置价格'; -- 该字段未用
|
|
ALTER TABLE ma_part_type MODIFY COLUMN buy_price decimal(10, 2) default 0.00 comment '原值'; -- 已改
|
|
ALTER TABLE ma_type MODIFY COLUMN lease_price decimal(10, 2) default 0.00 comment '内部租赁单价'; -- 已改
|
|
ALTER TABLE ma_type MODIFY COLUMN rent_price decimal(10, 2) default 0.00 comment '外部租赁单价'; -- 重庆未使用该字段
|
|
ALTER TABLE ma_type MODIFY COLUMN buy_price decimal(10, 2) default 0.00 comment '原值'; -- 已改
|
|
ALTER TABLE ma_type MODIFY COLUMN pay_price decimal(10, 2) default 0.00 comment '丢失赔偿价'; -- 重庆未使用该字段(已改)
|
|
ALTER TABLE ma_type_his_price MODIFY COLUMN lease_price decimal(10, 2) default 0.00 comment '租赁价格'; -- 该表未使用
|
|
ALTER TABLE plan_borrow_details MODIFY COLUMN plan_price decimal(10, 2) default 0.00 comment '计划单价'; -- 计划管理功能菜单隐藏,暂时不改
|
|
ALTER TABLE plan_need_details MODIFY COLUMN plan_price decimal(10, 2) default 0.00 comment '计划单价'; -- 计划管理功能菜单隐藏,暂时不改
|
|
ALTER TABLE purchase_check_details MODIFY COLUMN purchase_price decimal(10, 2) default 0.00 comment '采购单价'; -- 已改
|
|
ALTER TABLE purchase_part_details MODIFY COLUMN purchase_price decimal(10, 2) default 0.00 comment '采购单价'; -- 已改
|
|
ALTER TABLE repair_apply_record MODIFY COLUMN part_price decimal(10, 2) default 0.00 comment '配件单价'; -- 已改
|
|
ALTER TABLE slt_agreement_details MODIFY COLUMN price decimal(10, 2) default 0.00 comment '单价'; -- 该表未使用
|
|
ALTER TABLE slt_agreement_info MODIFY COLUMN lease_price decimal(10, 2) default 0.00 comment '租赁单价'; -- 已改
|
|
ALTER TABLE slt_agreement_info MODIFY COLUMN buy_price decimal(10, 2) default 0.00 comment '原值'; -- 已改
|
|
|
|
ALTER TABLE plan_borrow_details MODIFY COLUMN plan_cost decimal(10, 2) default 0.00 comment '计划总价'; -- 计划管理功能菜单隐藏,暂时不改
|
|
ALTER TABLE plan_need_details MODIFY COLUMN plan_cost decimal(10, 2) default 0.00 comment '计划总价'; -- 计划管理功能菜单隐藏,暂时不改
|
|
ALTER TABLE project_month_costs MODIFY COLUMN costs decimal(10, 2) default 0.00 comment '结算金额'; -- 已改
|
|
ALTER TABLE project_month_detail MODIFY COLUMN slt_costs decimal(10, 2) default 0.00 comment '结算金额'; -- 已改
|
|
ALTER TABLE project_month_detail MODIFY COLUMN month_temporarily_costs decimal(10, 2) default 0.00 comment '本月暂计金额'; -- 已改
|
|
ALTER TABLE repair_part_details MODIFY COLUMN part_cost decimal(10, 2) default 0.00 comment '配件费用'; -- 已改
|
|
ALTER TABLE slt_agreement_apply MODIFY COLUMN cost decimal(10, 2) default 0.00 comment '结算总费用'; -- 该表未使用(已改)
|
|
ALTER TABLE slt_agreement_details MODIFY COLUMN money decimal(10, 2) default 0.00 comment '金额'; -- 该表未使用(已改)
|
|
ALTER TABLE slt_agreement_relation MODIFY COLUMN add_cost decimal(10, 2) default 0.00 comment '增加费用'; -- 目前该字段未使用(已改)
|
|
ALTER TABLE slt_agreement_relation MODIFY COLUMN sub_cost decimal(10, 2) default 0.00 comment '减免费用'; -- 目前该字段未使用(已改)
|
|
ALTER TABLE slt_agreement_relation MODIFY COLUMN lease_one_cost decimal(10, 2) default 0.00 comment '费用承担方1费用'; -- 已改
|
|
ALTER TABLE slt_agreement_relation MODIFY COLUMN repair_cost decimal(10, 2) default 0.00 comment '维修费用'; -- 已改
|
|
ALTER TABLE slt_agreement_relation MODIFY COLUMN scrap_cost decimal(10, 2) default 0.00 comment '报废费用'; -- 已改
|
|
ALTER TABLE slt_agreement_relation MODIFY COLUMN lose_cost decimal(10, 2) default 0.00 comment '丢失费用'; -- 已改
|
|
ALTER TABLE slt_agreement_relation MODIFY COLUMN cost decimal(10, 2) default 0.00 comment '总费用'; -- 已改
|
|
ALTER TABLE slt_agreement_relation MODIFY COLUMN lease_three_cost decimal(10, 2) default 0.00 comment '费用承担方3费用'; -- 已改
|
|
|
|
ALTER TABLE back_apply_details MODIFY COLUMN pre_num int default 0 comment '退料数'; -- 已改
|
|
ALTER TABLE back_apply_details MODIFY COLUMN audit_num int default 0 comment '审批数量'; -- 已改
|
|
ALTER TABLE back_check_details MODIFY COLUMN back_num int default 0 comment '退料数量'; -- 已改
|
|
ALTER TABLE direct_apply_details MODIFY COLUMN direct_num int default 0 comment '直转数量'; -- 已改
|
|
ALTER TABLE input_apply_details MODIFY COLUMN input_num int default 0 comment '入库数量'; -- 已改
|
|
ALTER TABLE lease_agreement_record MODIFY COLUMN num int default 0 comment '数量'; -- 该表未使用
|
|
ALTER TABLE lease_apply_details MODIFY COLUMN pre_num int default 0 comment '预领料数'; -- 已改
|
|
ALTER TABLE lease_apply_details MODIFY COLUMN audit_num int default 0 comment '审批数量'; -- 已改
|
|
ALTER TABLE lease_apply_details MODIFY COLUMN al_num int default 0 comment '已领数量'; -- 已改
|
|
ALTER TABLE lease_out_details MODIFY COLUMN out_num int default 0 comment '预领料数'; -- 已改
|
|
ALTER TABLE lease_scene_regist MODIFY COLUMN num int default 0 comment '数量'; -- 该表未使用
|
|
ALTER TABLE lease_user_book MODIFY COLUMN book_num int default 0 comment '预约数量'; -- 已改
|
|
ALTER TABLE ma_accessory MODIFY COLUMN acessory_number int default 0 comment '数量'; -- 该表未使用
|
|
ALTER TABLE ma_house_set MODIFY COLUMN num int default 0 comment '数量'; -- 已改
|
|
ALTER TABLE ma_input_record MODIFY COLUMN input_num int default 0 comment '入库数量'; -- 已改
|
|
ALTER TABLE ma_machine MODIFY COLUMN in_out_num int default 0 comment '出入库次数'; -- 该字段未使用
|
|
ALTER TABLE ma_part_type MODIFY COLUMN num int default 0 comment '实时库存'; -- 已改
|
|
ALTER TABLE ma_part_type MODIFY COLUMN warn_num int default 0 comment '库存预警数量'; -- 该字段未使用(已改)
|
|
ALTER TABLE ma_type MODIFY COLUMN num int default 0 comment '实时库存'; -- 已改
|
|
ALTER TABLE ma_type MODIFY COLUMN warn_num int default 0 comment '库存预警数量'; -- 该字段未使用(已改)
|
|
ALTER TABLE ma_type_his_num MODIFY COLUMN storage_num int default 0 comment '历史库存'; -- 该表未使用
|
|
ALTER TABLE ma_type_put_in_storage_details MODIFY COLUMN NUM int default 0 comment '数量'; -- 已改
|
|
ALTER TABLE ma_type_put_in_storage_info MODIFY COLUMN NUM int default 0 comment '入库数量'; -- 已改
|
|
ALTER TABLE ma_whole_set MODIFY COLUMN part_num int default 0 comment '整套配件数'; -- 已改
|
|
ALTER TABLE plan_borrow_details MODIFY COLUMN plan_num int default 0 comment '计划数'; -- 计划管理功能菜单隐藏,暂时不改
|
|
ALTER TABLE plan_borrow_details MODIFY COLUMN borrow_num int default 0 comment '借出数'; -- 计划管理功能菜单隐藏,暂时不改
|
|
ALTER TABLE plan_need_details MODIFY COLUMN plan_num int default 0 comment '计划数'; -- 计划管理功能菜单隐藏,暂时不改
|
|
ALTER TABLE project_month_detail MODIFY COLUMN num int default 0 comment '数量'; -- 已改
|
|
ALTER TABLE purchase_check_details MODIFY COLUMN purchase_num int default 0 comment '采购数量'; -- 已改
|
|
ALTER TABLE purchase_check_details MODIFY COLUMN check_num int default 0 comment '验收数量'; -- 已改
|
|
ALTER TABLE purchase_check_details MODIFY COLUMN bind_num int default 0 comment '绑定数量'; -- 已改
|
|
ALTER TABLE purchase_check_details MODIFY COLUMN input_num int default 0 comment '入库数量'; -- 已改
|
|
ALTER TABLE purchase_part_details MODIFY COLUMN purchase_num int default 0 comment '采购数量'; -- 已改
|
|
ALTER TABLE purchase_part_details MODIFY COLUMN check_num int default 0 comment '验收数量'; -- 已改
|
|
ALTER TABLE purchase_part_details MODIFY COLUMN input_num int default 0 comment '入库数量'; -- 已改
|
|
ALTER TABLE repair_apply_details MODIFY COLUMN repair_num int default 0 comment '维修总量'; -- 已改
|
|
ALTER TABLE repair_apply_details MODIFY COLUMN repaired_num int default 0 comment '维修合格数量'; -- 已改
|
|
ALTER TABLE repair_apply_details MODIFY COLUMN scrap_num int default 0 comment '维修报废数量'; -- 已改
|
|
ALTER TABLE repair_apply_record MODIFY COLUMN repair_num int default 0 comment '维修数量'; -- 已改
|
|
ALTER TABLE repair_apply_record MODIFY COLUMN scrap_num int default 0 comment '报废数量'; -- 已改
|
|
ALTER TABLE repair_apply_record MODIFY COLUMN part_num int default 0 comment '配件数量'; -- 已改
|
|
ALTER TABLE repair_audit_details MODIFY COLUMN repair_num int default 0 comment '维修总量'; -- 已改
|
|
ALTER TABLE repair_audit_details MODIFY COLUMN repaired_num int default 0 comment '维修合格数量'; -- 已改
|
|
ALTER TABLE repair_audit_details MODIFY COLUMN scrap_num int default 0 comment '维修报废数量'; -- 已改
|
|
ALTER TABLE repair_cost MODIFY COLUMN repair_num int default 0 comment '维修数量'; -- 已改
|
|
ALTER TABLE repair_input_details MODIFY COLUMN repair_num int default 0 comment '维修合格数量'; -- 已改
|
|
ALTER TABLE repair_input_details MODIFY COLUMN input_num int default 0 comment '入库数量'; -- 已改
|
|
ALTER TABLE repair_part_details MODIFY COLUMN part_num int default 0 comment '配件数量'; -- 已改
|
|
ALTER TABLE scrap_apply_details MODIFY COLUMN scrap_num int default 0 comment '报废数量'; -- 已改
|
|
ALTER TABLE slt_agreement_details MODIFY COLUMN num int default 0 comment '数量'; -- 该表未使用
|
|
ALTER TABLE slt_agreement_info MODIFY COLUMN num int default 0 comment '领料数量'; -- 已改
|
|
ALTER TABLE team_lease_info MODIFY COLUMN num int default 0 comment '数量'; -- 已改
|