update
This commit is contained in:
parent
26c8cc3a73
commit
d8d0f48a55
|
|
@ -1646,10 +1646,5 @@ CREATE TABLE `wh_team_receive_detail` (
|
|||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '二级库接收详情wh_team_receive_detail' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- View structure for v_ma_storage_num_by_type_id
|
||||
-- ----------------------------
|
||||
DROP VIEW IF EXISTS `v_ma_storage_num_by_type_id`;
|
||||
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `v_ma_storage_num_by_type_id` AS select `mt`.`type_id` AS `type_id`,(case `mt`.`manage_type` when 0 then ifnull(`subquery`.`num`,0) else ifnull(`mt`.`storage_num`,0) end) AS `storage_num` from (`ma_sgzb_bns`.`ma_type` `mt` left join (select `mt`.`type_id` AS `type_id`,`mt2`.`type_name` AS `typeName`,`mt`.`type_name` AS `typeModelName`,count(`mm`.`ma_id`) AS `num` from ((`ma_sgzb_bns`.`ma_machine` `mm` left join `ma_sgzb_bns`.`ma_type` `mt` on((`mt`.`type_id` = `mm`.`type_id`))) left join `ma_sgzb_bns`.`ma_type` `mt2` on((`mt2`.`type_id` = `mt`.`parent_id`))) where ((`mm`.`ma_code` is not null) and (`mm`.`ma_status` = 15)) group by `mt`.`type_id`) `subquery` on((`subquery`.`type_id` = `mt`.`type_id`))) where (`mt`.`del_flag` = '0');
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue