| @@ -0,0 +1,183 @@ | |||||
| # 用户、权限接口文档 | |||||
| ## 用户登录接口 | |||||
| > URI: /service-user/login | |||||
| > | |||||
| > METHOD: POST | |||||
| > | |||||
| > CONTENT-TYPE: JSON | |||||
| | 参数 | 数据类型 | 必填 | 备注 | | |||||
| | -------- | ------ | ---- | ---- | | |||||
| | username | String | true | 用户名 | | |||||
| | password | String | true | 密码 | | |||||
| > RETURN: 令牌字符串 | |||||
| > | |||||
| > EXAMPLE: | |||||
| > ``` | |||||
| > eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0Iiwicm9sZXMiOiJVU0VSIiwiZXhwIjoxNTE4MDU0Mzk1fQ.jDXfmpc4UMvJH_888XJveSqM7_iLAp4ukisvAXZ9vb2_zngqVicnbJa2hNXKls0p4mIVbOLfwHttoaxpNHyWvQ | |||||
| > ``` | |||||
| ## 获取用户信息接口 | |||||
| > URI: /service-user/user | |||||
| > | |||||
| > METHOD: GET | |||||
| > | |||||
| > CONTENT-TYPE: Query string | |||||
| | 参数 | 数据类型 | 必填 | 备注 | | |||||
| | -------- | ------ | ---- | ---- | | |||||
| | username | String | true | 用户名 | | |||||
| > RETURN: 用户对象 | |||||
| > | |||||
| > EXAMPLE: | |||||
| > | |||||
| > ```json | |||||
| > { | |||||
| > "id": 1, | |||||
| > "username":"test", | |||||
| > "role": "ADMIN", | |||||
| > "org": 1 | |||||
| > } | |||||
| > ``` | |||||
| ## 获取权限列表接口 | |||||
| > URI: /service-user/user/permissions | |||||
| > | |||||
| > METHOD: GET | |||||
| > | |||||
| > CONTENT-TYPE: Query string | |||||
| | 参数 | 数据类型 | 必填 | 备注 | | |||||
| | -------- | ------ | ---- | ---- | | |||||
| | username | String | true | 用户名 | | |||||
| > RETURN: 用户对象 | |||||
| > | |||||
| > EXAMPLE: | |||||
| > | |||||
| > ```json | |||||
| > [{ | |||||
| > "id": 1, | |||||
| > "name":"获取权限列表", | |||||
| > "url": "/service-user/user/permissions" | |||||
| > },{ | |||||
| > "id": 2, | |||||
| > "name":"获取权限组", | |||||
| > "url": "/service-user/user/permissionGroups" | |||||
| > }] | |||||
| > ``` | |||||
| ## 获取权限组接口 | |||||
| > URI: /service-user/user/permissionGroups | |||||
| > | |||||
| > METHOD: GET | |||||
| > | |||||
| > CONTENT-TYPE: Query string | |||||
| | 参数 | 数据类型 | 必填 | 备注 | | |||||
| | -------- | ------ | ---- | ---- | | |||||
| | username | String | true | 用户名 | | |||||
| > RETURN: 用户对象 | |||||
| > | |||||
| > EXAMPLE: | |||||
| > | |||||
| > ```json | |||||
| > [{ | |||||
| > "id": 1, | |||||
| > "name":"用户管理" | |||||
| > },{ | |||||
| > "id": 2, | |||||
| > "name":"门店管理" | |||||
| > }] | |||||
| > ``` | |||||
| > | |||||
| ## 新建用户接口 | |||||
| > URI: /service-user/user/createUser | |||||
| > | |||||
| > METHOD: POST | |||||
| > | |||||
| > CONTENT-TYPE: JSON | |||||
| | 参数 | 数据类型 | 必填 | 备注 | | |||||
| | -------- | ------- | ----- | ------------------ | | |||||
| | username | String | true | 用户名 | | |||||
| | password | String | true | 密码 | | |||||
| | role | String | true | 角色(超管、集团管理、门店管理) | | |||||
| | org | Integer | false | 所属集团ID(超管不需要填写此字段) | | |||||
| > RETURN: 新建记录行数 | |||||
| > | |||||
| > EXAMPLE: | |||||
| > | |||||
| > ``` | |||||
| > 1 | |||||
| > ``` | |||||
| ## 修改密码接口 | |||||
| > URI: /service-user/user/changePassword | |||||
| > | |||||
| > METHOD: POST | |||||
| > | |||||
| > CONTENT-TYPE: JSON | |||||
| | 参数 | 数据类型 | 必填 | 备注 | | |||||
| | ----------- | ------ | ---- | ---- | | |||||
| | username | String | true | 用户名 | | |||||
| | oldPassword | String | true | 旧密码 | | |||||
| | newPassword | String | true | 新密码 | | |||||
| > RETURN: 修改记录行数 | |||||
| > | |||||
| > EXAMPLE: | |||||
| > | |||||
| > ``` | |||||
| > 1 | |||||
| > ``` | |||||
| ## 为用户增加权限组接口 | |||||
| > URI: /service-user/user/addUserPermissionGroup | |||||
| > | |||||
| > METHOD: POST | |||||
| > | |||||
| > CONTENT-TYPE: JSON | |||||
| | 参数 | 数据类型 | 必填 | 备注 | | |||||
| | ----------------- | ------- | ---- | ----- | | |||||
| | userId | Integer | true | 用户ID | | |||||
| | permissionGroupId | Integer | true | 权限组ID | | |||||
| > RETURN: 修改记录行数 | |||||
| > | |||||
| > EXAMPLE: | |||||
| > | |||||
| > ``` | |||||
| > 1 | |||||
| > ``` | |||||
| ## 为用户移除权限组接口 | |||||
| > URI: /service-user/user/removeUserPermissionGroup | |||||
| > | |||||
| > METHOD: POST | |||||
| > | |||||
| > CONTENT-TYPE: JSON | |||||
| | 参数 | 数据类型 | 必填 | 备注 | | |||||
| | ----------------- | ------- | ---- | ----- | | |||||
| | userId | Integer | true | 用户ID | | |||||
| | permissionGroupId | Integer | true | 权限组ID | | |||||
| > RETURN: 修改记录行数 | |||||
| > | |||||
| > EXAMPLE: | |||||
| > | |||||
| > ``` | |||||
| > 1 | |||||
| > ``` | |||||
| @@ -0,0 +1,10 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | |||||
| <?PowerDesigner signature="Workspace" version="15.1.0.2850"?> | |||||
| <!-- do not edit this file --> | |||||
| <Workspace> | |||||
| <Local Expanded="Yes"> | |||||
| <Model Expanded="Yes" ID="{F5281723-A19C-4D89-93CA-5AB68D20F1B9}" Name="Ota" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" URL="ota.pdm"/> | |||||
| </Local> | |||||
| <BrowserModule Name="Repository"/> | |||||
| </Workspace> | |||||
| @@ -0,0 +1,10 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | |||||
| <?PowerDesigner signature="Workspace" version="16.5.0.3982"?> | |||||
| <!-- do not edit this file --> | |||||
| <Workspace> | |||||
| <Local Expanded="Yes"> | |||||
| <Model Expanded="Yes" ID="{6E8B77DC-6319-4A18-A50C-AC88FE6AFF51}" Name="菜品转化商品" Selected="Yes" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" URL="菜品转化商品.pdm"/> | |||||
| </Local> | |||||
| <BrowserModule Name="Repository"/> | |||||
| </Workspace> | |||||
| @@ -0,0 +1,174 @@ | |||||
| SET FOREIGN_KEY_CHECKS=0; | |||||
| -- 交易及聚合支付初始化数据执行sql | |||||
| truncate table mch_pay_channel; | |||||
| truncate table mch_pay_info; | |||||
| truncate table mch_payment_trade_log; | |||||
| truncate table order_master; | |||||
| truncate table order_transaction; | |||||
| truncate table order_refund; | |||||
| truncate table order_refund_transaction; | |||||
| truncate table pay_order; | |||||
| truncate table pay_refund_order; | |||||
| truncate table payment_trade_log; | |||||
| truncate table trade_mch_pay_channel; | |||||
| truncate table trade_pay_order; | |||||
| truncate table trade_settlement_info; | |||||
| truncate table bill_settlement_cycle; | |||||
| truncate table bill_master; | |||||
| truncate table bill_detail; | |||||
| truncate table bill_detail_profit; | |||||
| truncate table bill_settlement_rule; | |||||
| truncate table bill_settlement_rule_detail; | |||||
| truncate table printer_rule_ref; | |||||
| truncate table printer_rule_attribute; | |||||
| truncate table printer_info; | |||||
| truncate table printer_goods_ref_info; | |||||
| truncate table printer_template_ref; | |||||
| truncate table printer_task_info; | |||||
| truncate table printer_task_log; | |||||
| -- 商品表清理 | |||||
| truncate goods_category; | |||||
| truncate goods_catering_menu; | |||||
| truncate goods_catering_menu_tag; | |||||
| truncate goods_retail; | |||||
| truncate goods_tag; | |||||
| truncate goods_approval_opinion; | |||||
| -- 会员清理 | |||||
| truncate member; | |||||
| truncate member_capital_change; | |||||
| truncate member_card; | |||||
| truncate member_card_relation; | |||||
| truncate member_level; | |||||
| truncate member_business_dict; | |||||
| -- ota | |||||
| truncate apk_strategy; | |||||
| truncate apk_strategy_group; | |||||
| truncate apk_version; | |||||
| truncate app_info; | |||||
| truncate config_strategy; | |||||
| truncate config_strategy_group; | |||||
| truncate device; | |||||
| truncate device_upgrade_history; | |||||
| truncate config_strategy; | |||||
| truncate config_strategy_group; | |||||
| truncate media_resource; | |||||
| truncate media_strategy; | |||||
| truncate media_strategy_group; | |||||
| truncate upgrade_package; | |||||
| truncate upgrade_strategy; | |||||
| truncate upgrade_strategy_group; | |||||
| truncate org; | |||||
| truncate shop; | |||||
| truncate tables; | |||||
| truncate table_groups; | |||||
| truncate user_shop; | |||||
| truncate promotion_pay_channel; | |||||
| SET FOREIGN_KEY_CHECKS=1; | |||||
| -- 权限初始化 | |||||
| INSERT INTO `user_info`(`id`, `username`, `nickname`, `password`, `role`, `org`, `activated`) VALUES (1, 'sa', NULL, '$2a$10$ByesSJi9m4WpXKYDMxsBie9x4Zdq6B4Ojuw2g7E3WNE6y5sqBXoT2', 'sa', NULL, b'1'); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (1, '全部权限', NULL); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (2, '营销系统', 1); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (3, '账号系统', 1); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (4, '设备管理', 1); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (5, '交易管理', 1); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (6, '库存管理', 1); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (7, '集团管理', 2); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (8, '门店管理', 2); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (9, '广告管理', 2); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (10, '帐号管理', 3); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (11, '软件版本管理', 4); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (12, '设备MAC管理', 4); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (13, '升级策略管理', 4); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (14, '设备状态查询', 4); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (15, '配置策略管理', 4); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (16, '交易管理', 5); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (17, '商品管理', 6); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (18, '集团', 7); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (19, '集团支付账号', 7); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (20, '门店', 8); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (21, '广告资源管理', 9); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (22, '广告策略管理', 9); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (23, '版本列表', 11); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (24, '上传新版本', 11); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (25, '设备列表', 12); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (26, '设备导入', 12); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (27, '设备添加', 12); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (28, '升级策略列表', 13); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (29, '升级策略添加', 13); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (30, '设备状态', 14); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (31, '升级历史', 14); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (32, '配置策略列表', 15); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (33, '配置策略添加', 15); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (34, '交易日期统计', 16); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (35, '交易占比统计', 16); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (36, '商品列表', 17); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (37, '商品添加', 17); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (38, '门店添加', 8); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (39, '门店修改', 8); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (40, '集团添加', 7); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (41, '集团修改', 7); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (42, '集团添加支付渠道', 7); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (43, '集团修改支付渠道', 7); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (44, '门店详情', 8); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (45, '门店设备编辑', 8); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (46, '门店支付渠道', 8); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (47, '门店支付渠道添加', 8); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (48, '门店支付渠道修改', 8); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (49, '广告资源添加', 9); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (50, '广告策略添加', 9); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (51, '帐号修改', 3); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (52, '帐号添加', 3); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (53, '权限配置', 3); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (54, '设备修改', 12); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (55, '订单管理', 16); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (56, '交易统计', 16); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (57, '交易流水', 16); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (58, '商品修改', 17); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (63, '零售商品管理', 6); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (64, '零售商品列表', 63); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (65, '零售商品添加', 63); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (66, '零售商品修改', 63); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (67, '零售商品导入', 63); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (68, '餐桌', 8); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (69, '会员', 2); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (70, '会员管理', 69); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (71, '会员等级管理', 69); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (72, '会员详情', 69); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (73, '会员交易历史', 69); | |||||
| INSERT INTO `permission_group`(`id`, `name`, `parent`) VALUES (74, '商品分类', 17); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 10); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 18); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 20); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 25); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 38); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 39); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 40); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 41); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 44); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 45); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 51); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 52); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 53); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 54); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 55); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 56); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 57); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 58); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 63); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 64); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 65); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 66); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 67); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 68); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 70); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 71); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 72); | |||||
| INSERT INTO `user_permission_group`(`user`, `permission_group`) VALUES (1, 73); | |||||
| @@ -0,0 +1,23 @@ | |||||
| delete from pay_order where mcode='NEU186005170877'; | |||||
| delete from payment_trade_log where mcode='NEU186005170877'; | |||||
| delete from mch_payment_trade_log where mcode='NEU186005170877'; | |||||
| delete from pay_refund_order where mcode='NEU186005170877'; | |||||
| delete from trade_pay_order where order_number in (select m.order_number from order_master m where m.shop_id = 36); | |||||
| delete from order_refund_transaction where original_order_number in (select m.order_number from order_master m where m.shop_id = 36); | |||||
| delete from order_refund where original_order_number in (select m.order_number from order_master m where m.shop_id = 36); | |||||
| delete from order_transaction where order_number in (select m.order_number from order_master m where m.shop_id = 36); | |||||
| delete from order_master where shop_id = 36; | |||||
| delete from bill_settlement_rule where shop_id = 36; | |||||
| delete from bill_settlement_cycle where shop_id = 36; | |||||
| delete from bill_master where shop_id = 36; | |||||
| delete from bill_detail where shop_id = 36; | |||||
| delete from bill_detail_profit where shop_id = 36; | |||||
| delete from payment_trade_log; | |||||
| delete from mch_payment_trade_log; | |||||
| DELETE FROM shop WHERE `id`=36; | |||||
| DELETE FROM user_shop WHERE `usr`=53 AND `shop`=36; | |||||
| DELETE FROM `user_info` WHERE `id`=53; | |||||
| DELETE FROM`user_permission_group` WHERE `user`=53; | |||||
| @@ -0,0 +1,737 @@ | |||||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |||||
| <diagram program="umlet" version="11.4"> | |||||
| <zoom_level>10</zoom_level> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.InitialState</type> | |||||
| <coordinates> | |||||
| <x>570</x> | |||||
| <y>130</y> | |||||
| <w>20</w> | |||||
| <h>20</h> | |||||
| </coordinates> | |||||
| <panel_attributes>i</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>110</y> | |||||
| <w>50</w> | |||||
| <h>90</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;70;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>530</x> | |||||
| <y>340</y> | |||||
| <w>100</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>检测POS</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>510</x> | |||||
| <y>840</y> | |||||
| <w>140</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>加入可用 Printer list</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>530</y> | |||||
| <w>50</w> | |||||
| <h>90</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;70;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>500</x> | |||||
| <y>1130</y> | |||||
| <w>160</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>获得全部打印任务</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>530</x> | |||||
| <y>1050</y> | |||||
| <w>86</w> | |||||
| <h>100</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| 没有</panel_attributes> | |||||
| <additional_attributes>50;80;50;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Systemborder</type> | |||||
| <coordinates> | |||||
| <x>680</x> | |||||
| <y>1100</y> | |||||
| <w>260</w> | |||||
| <h>90</h> | |||||
| </coordinates> | |||||
| <panel_attributes>打印任务按优先 | |||||
| 级和生成时间升 | |||||
| 序排列 | |||||
| 考虑合并和插队规则</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>510</x> | |||||
| <y>1200</y> | |||||
| <w>140</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>获得门店打印任 | |||||
| 务建队规则列表</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>1140</y> | |||||
| <w>50</w> | |||||
| <h>80</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;60;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>490</x> | |||||
| <y>520</y> | |||||
| <w>170</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>获取Pos打印机信息</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>490</x> | |||||
| <y>180</y> | |||||
| <w>170</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>获取门店中转设备信息</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>190</y> | |||||
| <w>50</w> | |||||
| <h>90</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;70;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>350</y> | |||||
| <w>50</w> | |||||
| <h>100</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;80;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>530</x> | |||||
| <y>260</y> | |||||
| <w>100</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>Get Next POS</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>270</y> | |||||
| <w>50</w> | |||||
| <h>90</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;70;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Decision</type> | |||||
| <coordinates> | |||||
| <x>560</x> | |||||
| <y>430</y> | |||||
| <w>40</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes/> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>530</x> | |||||
| <y>440</y> | |||||
| <w>88</w> | |||||
| <h>100</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| Pass</panel_attributes> | |||||
| <additional_attributes>50;80;50;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>570</x> | |||||
| <y>250</y> | |||||
| <w>180</w> | |||||
| <h>220</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| Fail</panel_attributes> | |||||
| <additional_attributes>60;30;150;30;150;200;30;200</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>530</x> | |||||
| <y>680</y> | |||||
| <w>100</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>检测Printer</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>690</y> | |||||
| <w>50</w> | |||||
| <h>100</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;80;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>520</x> | |||||
| <y>600</y> | |||||
| <w>110</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>Get Next Printer</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>610</y> | |||||
| <w>50</w> | |||||
| <h>90</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;70;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Decision</type> | |||||
| <coordinates> | |||||
| <x>560</x> | |||||
| <y>770</y> | |||||
| <w>40</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes/> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>570</x> | |||||
| <y>590</y> | |||||
| <w>180</w> | |||||
| <h>220</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| Fail</panel_attributes> | |||||
| <additional_attributes>60;30;150;30;150;200;30;200</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>780</y> | |||||
| <w>50</w> | |||||
| <h>80</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;60;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Decision</type> | |||||
| <coordinates> | |||||
| <x>560</x> | |||||
| <y>1040</y> | |||||
| <w>40</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes/> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>480</x> | |||||
| <y>850</y> | |||||
| <w>184</w> | |||||
| <h>110</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| 是否还有其他打印机</panel_attributes> | |||||
| <additional_attributes>100;90;100;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>490</x> | |||||
| <y>950</y> | |||||
| <w>172</w> | |||||
| <h>110</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| 没有 | |||||
| 是否还有其他POS</panel_attributes> | |||||
| <additional_attributes>90;90;90;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Decision</type> | |||||
| <coordinates> | |||||
| <x>560</x> | |||||
| <y>940</y> | |||||
| <w>40</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes/> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>180</y> | |||||
| <w>322</w> | |||||
| <h>900</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| 有</panel_attributes> | |||||
| <additional_attributes>30;80;30;50;290;50;290;880;50;880</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>390</x> | |||||
| <y>530</y> | |||||
| <w>210</w> | |||||
| <h>450</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| 有</panel_attributes> | |||||
| <additional_attributes>190;70;190;50;40;50;40;430;170;430</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>510</x> | |||||
| <y>2040</y> | |||||
| <w>140</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>将队列 | |||||
| 加入打印队列Map</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>1210</y> | |||||
| <w>50</w> | |||||
| <h>90</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;70;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>500</x> | |||||
| <y>1400</y> | |||||
| <w>180</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>Get 打印机的打印队列 | |||||
| 如没有则新建一个</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>1410</y> | |||||
| <w>50</w> | |||||
| <h>70</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;50;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>500</x> | |||||
| <y>1280</y> | |||||
| <w>160</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>Get next 可用的 Printer</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>1290</y> | |||||
| <w>50</w> | |||||
| <h>70</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;50;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>480</x> | |||||
| <y>2050</y> | |||||
| <w>184</w> | |||||
| <h>100</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| 是否还有其他打印机</panel_attributes> | |||||
| <additional_attributes>100;80;100;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>530</x> | |||||
| <y>2140</y> | |||||
| <w>86</w> | |||||
| <h>90</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| 没有</panel_attributes> | |||||
| <additional_attributes>50;70;50;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Decision</type> | |||||
| <coordinates> | |||||
| <x>560</x> | |||||
| <y>2130</y> | |||||
| <w>40</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes/> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>390</x> | |||||
| <y>1220</y> | |||||
| <w>210</w> | |||||
| <h>950</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| 有</panel_attributes> | |||||
| <additional_attributes>190;60;190;30;40;30;40;430;40;920;170;930</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>510</x> | |||||
| <y>1850</y> | |||||
| <w>140</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>将任务 | |||||
| 加入打印队列</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>510</x> | |||||
| <y>1460</y> | |||||
| <w>140</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>Get Next Print task</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Decision</type> | |||||
| <coordinates> | |||||
| <x>560</x> | |||||
| <y>1700</y> | |||||
| <w>40</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes/> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>510</x> | |||||
| <y>1630</y> | |||||
| <w>140</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>CheckRule</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>1470</y> | |||||
| <w>50</w> | |||||
| <h>70</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;50;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>530</x> | |||||
| <y>1710</y> | |||||
| <w>86</w> | |||||
| <h>80</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| True</panel_attributes> | |||||
| <additional_attributes>50;60;50;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>430</x> | |||||
| <y>1690</y> | |||||
| <w>170</w> | |||||
| <h>300</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| Fail</panel_attributes> | |||||
| <additional_attributes>150;280;150;210;40;210;40;30;130;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>510</x> | |||||
| <y>2210</y> | |||||
| <w>140</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>等待轮询</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>2220</y> | |||||
| <w>50</w> | |||||
| <h>90</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;70;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.FinalState</type> | |||||
| <coordinates> | |||||
| <x>570</x> | |||||
| <y>2290</y> | |||||
| <w>20</w> | |||||
| <h>20</h> | |||||
| </coordinates> | |||||
| <panel_attributes>i</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>500</x> | |||||
| <y>1340</y> | |||||
| <w>160</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>Get Printer Setting</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>1350</y> | |||||
| <w>50</w> | |||||
| <h>70</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;50;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>530</x> | |||||
| <y>1560</y> | |||||
| <w>100</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>Get Next Rule</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>1570</y> | |||||
| <w>50</w> | |||||
| <h>80</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;60;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>570</x> | |||||
| <y>1550</y> | |||||
| <w>216</w> | |||||
| <h>260</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| 还有其他的规则 | |||||
| </panel_attributes> | |||||
| <additional_attributes>60;30;140;30;140;240;30;240</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>1640</y> | |||||
| <w>50</w> | |||||
| <h>80</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| </panel_attributes> | |||||
| <additional_attributes>30;60;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Decision</type> | |||||
| <coordinates> | |||||
| <x>560</x> | |||||
| <y>1770</y> | |||||
| <w>40</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes/> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>520</x> | |||||
| <y>1780</y> | |||||
| <w>114</w> | |||||
| <h>90</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| 全部通过</panel_attributes> | |||||
| <additional_attributes>60;70;60;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>480</x> | |||||
| <y>1860</y> | |||||
| <w>198</w> | |||||
| <h>130</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| 是否还有其他打印任务</panel_attributes> | |||||
| <additional_attributes>100;110;100;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Decision</type> | |||||
| <coordinates> | |||||
| <x>560</x> | |||||
| <y>1970</y> | |||||
| <w>40</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes/> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>530</x> | |||||
| <y>1980</y> | |||||
| <w>86</w> | |||||
| <h>80</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| 没有</panel_attributes> | |||||
| <additional_attributes>50;60;50;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>570</x> | |||||
| <y>1450</y> | |||||
| <w>262</w> | |||||
| <h>560</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| 有</panel_attributes> | |||||
| <additional_attributes>80;30;230;30;230;540;30;540</additional_attributes> | |||||
| </element> | |||||
| </diagram> | |||||
| @@ -0,0 +1,281 @@ | |||||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |||||
| <diagram program="umlet" version="11.4"> | |||||
| <zoom_level>10</zoom_level> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Component</type> | |||||
| <coordinates> | |||||
| <x>130</x> | |||||
| <y>60</y> | |||||
| <w>590</w> | |||||
| <h>580</h> | |||||
| </coordinates> | |||||
| <panel_attributes> | |||||
| '打印服务</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Component</type> | |||||
| <coordinates> | |||||
| <x>170</x> | |||||
| <y>260</y> | |||||
| <w>190</w> | |||||
| <h>60</h> | |||||
| </coordinates> | |||||
| <panel_attributes> | |||||
| '中转设备(POS)信息</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Component</type> | |||||
| <coordinates> | |||||
| <x>420</x> | |||||
| <y>240</y> | |||||
| <w>120</w> | |||||
| <h>270</h> | |||||
| </coordinates> | |||||
| <panel_attributes> | |||||
| '打印队列</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Component</type> | |||||
| <coordinates> | |||||
| <x>420</x> | |||||
| <y>160</y> | |||||
| <w>250</w> | |||||
| <h>50</h> | |||||
| </coordinates> | |||||
| <panel_attributes>'进队规则</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Component</type> | |||||
| <coordinates> | |||||
| <x>800</x> | |||||
| <y>570</y> | |||||
| <w>240</w> | |||||
| <h>70</h> | |||||
| </coordinates> | |||||
| <panel_attributes> | |||||
| ' 4G打印机</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Component</type> | |||||
| <coordinates> | |||||
| <x>170</x> | |||||
| <y>470</y> | |||||
| <w>190</w> | |||||
| <h>60</h> | |||||
| </coordinates> | |||||
| <panel_attributes> | |||||
| '打印模板信息</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Component</type> | |||||
| <coordinates> | |||||
| <x>170</x> | |||||
| <y>160</y> | |||||
| <w>190</w> | |||||
| <h>60</h> | |||||
| </coordinates> | |||||
| <panel_attributes> | |||||
| '门店信息</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>430</x> | |||||
| <y>180</y> | |||||
| <w>50</w> | |||||
| <h>80</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<[^][v]></panel_attributes> | |||||
| <additional_attributes>30;30;30;60</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Component</type> | |||||
| <coordinates> | |||||
| <x>800</x> | |||||
| <y>60</y> | |||||
| <w>240</w> | |||||
| <h>490</h> | |||||
| </coordinates> | |||||
| <panel_attributes> | |||||
| 'POS</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Component</type> | |||||
| <coordinates> | |||||
| <x>170</x> | |||||
| <y>360</y> | |||||
| <w>190</w> | |||||
| <h>60</h> | |||||
| </coordinates> | |||||
| <panel_attributes> | |||||
| '打印机信息</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>690</x> | |||||
| <y>110</y> | |||||
| <w>130</w> | |||||
| <h>50</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<[>] - [>]></panel_attributes> | |||||
| <additional_attributes>110;30;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>690</x> | |||||
| <y>150</y> | |||||
| <w>130</w> | |||||
| <h>50</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<[>] - [>]></panel_attributes> | |||||
| <additional_attributes>110;30;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>690</x> | |||||
| <y>560</y> | |||||
| <w>130</w> | |||||
| <h>50</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<[>] - [>]></panel_attributes> | |||||
| <additional_attributes>110;30;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>690</x> | |||||
| <y>590</y> | |||||
| <w>130</w> | |||||
| <h>50</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<[>] - [>]></panel_attributes> | |||||
| <additional_attributes>110;30;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Component</type> | |||||
| <coordinates> | |||||
| <x>1080</x> | |||||
| <y>70</y> | |||||
| <w>240</w> | |||||
| <h>70</h> | |||||
| </coordinates> | |||||
| <panel_attributes> | |||||
| '打印机</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Component</type> | |||||
| <coordinates> | |||||
| <x>1080</x> | |||||
| <y>170</y> | |||||
| <w>240</w> | |||||
| <h>70</h> | |||||
| </coordinates> | |||||
| <panel_attributes> | |||||
| '打印机</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>1010</x> | |||||
| <y>80</y> | |||||
| <w>90</w> | |||||
| <h>50</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<[>] - [>]></panel_attributes> | |||||
| <additional_attributes>70;30;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>1010</x> | |||||
| <y>170</y> | |||||
| <w>90</w> | |||||
| <h>50</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<[>] - [>]></panel_attributes> | |||||
| <additional_attributes>70;30;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Component</type> | |||||
| <coordinates> | |||||
| <x>550</x> | |||||
| <y>240</y> | |||||
| <w>120</w> | |||||
| <h>270</h> | |||||
| </coordinates> | |||||
| <panel_attributes> | |||||
| '打印队列</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Component</type> | |||||
| <coordinates> | |||||
| <x>170</x> | |||||
| <y>560</y> | |||||
| <w>190</w> | |||||
| <h>60</h> | |||||
| </coordinates> | |||||
| <panel_attributes> | |||||
| '订单信息</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Component</type> | |||||
| <coordinates> | |||||
| <x>420</x> | |||||
| <y>560</y> | |||||
| <w>250</w> | |||||
| <h>60</h> | |||||
| </coordinates> | |||||
| <panel_attributes> | |||||
| '打印任务信息</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>450</x> | |||||
| <y>480</y> | |||||
| <w>50</w> | |||||
| <h>100</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<[^][v]></panel_attributes> | |||||
| <additional_attributes>30;30;30;80</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>590</x> | |||||
| <y>480</y> | |||||
| <w>50</w> | |||||
| <h>100</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<[^][v]></panel_attributes> | |||||
| <additional_attributes>30;30;30;80</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>730</x> | |||||
| <y>0</y> | |||||
| <w>50</w> | |||||
| <h>750</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=:</panel_attributes> | |||||
| <additional_attributes>30;30;30;730</additional_attributes> | |||||
| </element> | |||||
| </diagram> | |||||
| @@ -0,0 +1,526 @@ | |||||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |||||
| <diagram program="umlet" version="11.4"> | |||||
| <zoom_level>10</zoom_level> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>620</x> | |||||
| <y>970</y> | |||||
| <w>230</w> | |||||
| <h>60</h> | |||||
| </coordinates> | |||||
| <panel_attributes>中转设备/4G打印机接收打印任务 | |||||
| 分配各个打印机执行</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.InitialState</type> | |||||
| <coordinates> | |||||
| <x>720</x> | |||||
| <y>20</y> | |||||
| <w>20</w> | |||||
| <h>20</h> | |||||
| </coordinates> | |||||
| <panel_attributes>i</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>700</x> | |||||
| <y>0</y> | |||||
| <w>50</w> | |||||
| <h>140</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;120;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>680</x> | |||||
| <y>120</y> | |||||
| <w>100</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>初始化服务</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>700</x> | |||||
| <y>130</y> | |||||
| <w>50</w> | |||||
| <h>70</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;50;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>680</x> | |||||
| <y>180</y> | |||||
| <w>100</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>获取门店信息</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>700</x> | |||||
| <y>190</y> | |||||
| <w>50</w> | |||||
| <h>70</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;50;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>650</x> | |||||
| <y>240</y> | |||||
| <w>170</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>获取门店中转设备信息</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>650</x> | |||||
| <y>300</y> | |||||
| <w>170</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>获取门店打印机信息</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>700</x> | |||||
| <y>250</y> | |||||
| <w>50</w> | |||||
| <h>70</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;50;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>630</x> | |||||
| <y>430</y> | |||||
| <w>210</w> | |||||
| <h>80</h> | |||||
| </coordinates> | |||||
| <panel_attributes>根据配置的入队规则 | |||||
| 为每个打印机生成打印任务队列 | |||||
| 任务状态为:PREPRINT | |||||
| 记录更新日志</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>700</x> | |||||
| <y>370</y> | |||||
| <w>50</w> | |||||
| <h>80</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;60;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>800</x> | |||||
| <y>730</y> | |||||
| <w>130</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>等待中转设备 | |||||
| 轮询打印队列</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>580</x> | |||||
| <y>600</y> | |||||
| <w>150</w> | |||||
| <h>150</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<. | |||||
| 推送</panel_attributes> | |||||
| <additional_attributes>50;130;50;50;130;50</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>720</x> | |||||
| <y>600</y> | |||||
| <w>186</w> | |||||
| <h>150</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| 轮询</panel_attributes> | |||||
| <additional_attributes>150;130;150;50;30;50</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>650</x> | |||||
| <y>850</y> | |||||
| <w>170</w> | |||||
| <h>80</h> | |||||
| </coordinates> | |||||
| <panel_attributes>更新已推送的打印 | |||||
| 任务状态为:PRINTING | |||||
| 记录更新日志 | |||||
| </panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>600</x> | |||||
| <y>740</y> | |||||
| <w>150</w> | |||||
| <h>130</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<.</panel_attributes> | |||||
| <additional_attributes>130;110;130;80;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>700</x> | |||||
| <y>740</y> | |||||
| <w>190</w> | |||||
| <h>130</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;110;30;80;170;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>700</x> | |||||
| <y>900</y> | |||||
| <w>50</w> | |||||
| <h>90</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<.</panel_attributes> | |||||
| <additional_attributes>30;70;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>650</x> | |||||
| <y>1060</y> | |||||
| <w>170</w> | |||||
| <h>80</h> | |||||
| </coordinates> | |||||
| <panel_attributes>更新打印任务 | |||||
| 状态为:PRINTED | |||||
| 记录更新日志 | |||||
| 任务弹出队列 | |||||
| </panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>700</x> | |||||
| <y>1000</y> | |||||
| <w>50</w> | |||||
| <h>80</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<.</panel_attributes> | |||||
| <additional_attributes>30;60;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Decision</type> | |||||
| <coordinates> | |||||
| <x>710</x> | |||||
| <y>530</y> | |||||
| <w>40</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes/> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>700</x> | |||||
| <y>480</y> | |||||
| <w>50</w> | |||||
| <h>70</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| </panel_attributes> | |||||
| <additional_attributes>30;50;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Decision</type> | |||||
| <coordinates> | |||||
| <x>710</x> | |||||
| <y>630</y> | |||||
| <w>40</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes/> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>660</x> | |||||
| <y>540</y> | |||||
| <w>132</w> | |||||
| <h>110</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| Stop = false</panel_attributes> | |||||
| <additional_attributes>70;90;70;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>720</x> | |||||
| <y>520</y> | |||||
| <w>406</w> | |||||
| <h>750</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<- | |||||
| Stop = true</panel_attributes> | |||||
| <additional_attributes>50;730;350;730;350;30;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.FinalState</type> | |||||
| <coordinates> | |||||
| <x>710</x> | |||||
| <y>1350</y> | |||||
| <w>20</w> | |||||
| <h>20</h> | |||||
| </coordinates> | |||||
| <panel_attributes>i</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>1000</x> | |||||
| <y>80</y> | |||||
| <w>100</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>POS生成订单</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>980</x> | |||||
| <y>170</y> | |||||
| <w>150</w> | |||||
| <h>70</h> | |||||
| </coordinates> | |||||
| <panel_attributes>根据菜品生成打印任务 | |||||
| 初始任务状态为:INIT | |||||
| 记录更新日志</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>1020</x> | |||||
| <y>90</y> | |||||
| <w>50</w> | |||||
| <h>100</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;80;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Systemborder</type> | |||||
| <coordinates> | |||||
| <x>940</x> | |||||
| <y>50</y> | |||||
| <w>230</w> | |||||
| <h>260</h> | |||||
| </coordinates> | |||||
| <panel_attributes/> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>700</x> | |||||
| <y>280</y> | |||||
| <w>300</w> | |||||
| <h>170</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;150;30;130;280;130;280;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>670</x> | |||||
| <y>1230</y> | |||||
| <w>100</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>关闭服务</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>690</x> | |||||
| <y>1240</y> | |||||
| <w>50</w> | |||||
| <h>140</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;120;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>640</x> | |||||
| <y>360</y> | |||||
| <w>190</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>获取状态为非 | |||||
| PRINTERED的打印任务</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>700</x> | |||||
| <y>310</y> | |||||
| <w>50</w> | |||||
| <h>70</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;50;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Systemborder</type> | |||||
| <coordinates> | |||||
| <x>1200</x> | |||||
| <y>550</y> | |||||
| <w>280</w> | |||||
| <h>460</h> | |||||
| </coordinates> | |||||
| <panel_attributes>对外服务接口: | |||||
| 1、获得中转设备的全部打印队列 | |||||
| 2、打印成功 | |||||
| 3、获取打印模板 | |||||
| 建队规则: | |||||
| 一级规则 | |||||
| 1、菜品类别 | |||||
| 2、菜品 | |||||
| 3、厨师? | |||||
| 二级规则: | |||||
| 1、压力均衡 | |||||
| 2、优先级 | |||||
| 打印机只限于后厨打印?</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.Systemborder</type> | |||||
| <coordinates> | |||||
| <x>1220</x> | |||||
| <y>50</y> | |||||
| <w>230</w> | |||||
| <h>260</h> | |||||
| </coordinates> | |||||
| <panel_attributes/> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>1280</x> | |||||
| <y>80</y> | |||||
| <w>100</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>POS请求补打</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.custom.State</type> | |||||
| <coordinates> | |||||
| <x>1260</x> | |||||
| <y>170</y> | |||||
| <w>150</w> | |||||
| <h>70</h> | |||||
| </coordinates> | |||||
| <panel_attributes>生成打印任务 | |||||
| 初始任务状态为:INIT | |||||
| 记录更新日志</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>1300</x> | |||||
| <y>90</y> | |||||
| <w>50</w> | |||||
| <h>100</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;80;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.UseCase</type> | |||||
| <coordinates> | |||||
| <x>530</x> | |||||
| <y>730</y> | |||||
| <w>210</w> | |||||
| <h>40</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=. | |||||
| 为每个打印机推送打印队列 | |||||
| </panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>880</x> | |||||
| <y>110</y> | |||||
| <w>620</w> | |||||
| <h>50</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=:</panel_attributes> | |||||
| <additional_attributes>30;30;600;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>700</x> | |||||
| <y>280</y> | |||||
| <w>670</w> | |||||
| <h>170</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;150;30;130;650;130;650;30</additional_attributes> | |||||
| </element> | |||||
| </diagram> | |||||
| @@ -0,0 +1,332 @@ | |||||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |||||
| <diagram program="umlet" version="11.4"> | |||||
| <zoom_level>10</zoom_level> | |||||
| <element> | |||||
| <type>com.umlet.element.Class</type> | |||||
| <coordinates> | |||||
| <x>400</x> | |||||
| <y>40</y> | |||||
| <w>210</w> | |||||
| <h>120</h> | |||||
| </coordinates> | |||||
| <panel_attributes>TransitEquipment | |||||
| -- | |||||
| -id: long | |||||
| -merchantId: long | |||||
| -- | |||||
| +checkDevice(): boolean | |||||
| +getPrinterList(): List<Printer></panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Class</type> | |||||
| <coordinates> | |||||
| <x>670</x> | |||||
| <y>40</y> | |||||
| <w>230</w> | |||||
| <h>120</h> | |||||
| </coordinates> | |||||
| <panel_attributes>Printer | |||||
| -- | |||||
| -id: long | |||||
| -printerId: long | |||||
| -- | |||||
| +checkDevice(): boolean | |||||
| +getPrinterSetting(): PrinterSetting | |||||
| </panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Class</type> | |||||
| <coordinates> | |||||
| <x>0</x> | |||||
| <y>40</y> | |||||
| <w>340</w> | |||||
| <h>120</h> | |||||
| </coordinates> | |||||
| <panel_attributes>Merchant | |||||
| -- | |||||
| -id: long | |||||
| -- | |||||
| +getMerchantPrintRule(): MerchantPrintRule | |||||
| +getTransitEquipmentList(): List<TransitEquipment> | |||||
| +getAllPrinterList(): List<Printer></panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Class</type> | |||||
| <coordinates> | |||||
| <x>950</x> | |||||
| <y>370</y> | |||||
| <w>340</w> | |||||
| <h>350</h> | |||||
| </coordinates> | |||||
| <panel_attributes>PrintTask | |||||
| -- | |||||
| -id: long | |||||
| -dishesId: long | |||||
| -priority: int | |||||
| -status: int | |||||
| -creatTime: long | |||||
| -printerId: long | |||||
| -- | |||||
| -getDishes(): Dishes | |||||
| -recordChangeLog():void | |||||
| +getChangeLog():List<PrintTaskStatusChangeLog> | |||||
| +updateStatus(status: int): boolean | |||||
| +getPriority(): int | |||||
| +setPriority(prio: int): void | |||||
| +getStatus(): int | |||||
| +setStatus(s: int): void | |||||
| +getCreatTime(): long | |||||
| +setCreatTime(ct: long): void | |||||
| +getPrinterId(): long | |||||
| +setPrinterId(printerId: long): void</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Class</type> | |||||
| <coordinates> | |||||
| <x>1350</x> | |||||
| <y>590</y> | |||||
| <w>190</w> | |||||
| <h>130</h> | |||||
| </coordinates> | |||||
| <panel_attributes>PrintTaskStatusChangeLog | |||||
| -- | |||||
| -id: long | |||||
| -printTaskId: long | |||||
| -fromState: int | |||||
| -toState: int | |||||
| -changeTime: long | |||||
| </panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Class</type> | |||||
| <coordinates> | |||||
| <x>0</x> | |||||
| <y>210</y> | |||||
| <w>330</w> | |||||
| <h>190</h> | |||||
| </coordinates> | |||||
| <panel_attributes>MerchantPrintRule | |||||
| -- | |||||
| -id: long | |||||
| -merchantId: long | |||||
| -rulePriority: int | |||||
| -ruleName: String | |||||
| -- | |||||
| +getRulePriority(): int | |||||
| +SetRulePriority(v: int): void | |||||
| +getRuleName(): String | |||||
| +setRuleName(v: String): void | |||||
| </panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Class</type> | |||||
| <coordinates> | |||||
| <x>380</x> | |||||
| <y>340</y> | |||||
| <w>500</w> | |||||
| <h>380</h> | |||||
| </coordinates> | |||||
| <panel_attributes>PrintService | |||||
| -- | |||||
| -mMerchant: Merchant | |||||
| -mTransitEquipmentList: List<TransitEquipment> | |||||
| -mAvailableTransitEquipmentList: List<TransitEquipment> | |||||
| -mPrinterList: List<Printer> | |||||
| -mAvailablePrinterList: List<Printer> | |||||
| -mPrintTaskQueueMap: Map<int , List<PrintTask>> | |||||
| -- | |||||
| -getAllTransitEquipment(): boolean | |||||
| -getAllPrinter(te: TransitEquipment): boolean | |||||
| -checkTransitEquipment(te: TransitEquipment): boolean | |||||
| -checkPrinter(p: Printer): boolean | |||||
| -initPringTaskQueueMap(): void | |||||
| -updatePringTaskMapQueue(pId: int): void | |||||
| -getPringTaskQueue(pId: int): List<PrintMapping> | |||||
| +startService(): boolean | |||||
| +stopService(): boolean | |||||
| +printSuccess(): boolean | |||||
| +getPrintTaskSet(pId: long, size: int): boolean | |||||
| +sendPrintTaskSet(ip: String, port: int): boolean | |||||
| </panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Class</type> | |||||
| <coordinates> | |||||
| <x>1010</x> | |||||
| <y>40</y> | |||||
| <w>530</w> | |||||
| <h>310</h> | |||||
| </coordinates> | |||||
| <panel_attributes>PrinterSetting | |||||
| -- | |||||
| -id: long | |||||
| -printerId: long | |||||
| -ip: String | |||||
| -port: String | |||||
| -dishesType: int | |||||
| -printType: int | |||||
| -- | |||||
| +getPrintDishesList() | |||||
| +getPrintDishesType() | |||||
| +setPrintDishesType(t: int): void | |||||
| +getPrintType(): int | |||||
| +setPrintType(t: int): void | |||||
| +getIp(): String: int | |||||
| +setIp(ip: String): void | |||||
| +getPort(): String | |||||
| +setPort(prrt: String): void | |||||
| </panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>130</x> | |||||
| <y>130</y> | |||||
| <w>50</w> | |||||
| <h>100</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;80;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>310</x> | |||||
| <y>40</y> | |||||
| <w>110</w> | |||||
| <h>50</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>90;30;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>580</x> | |||||
| <y>40</y> | |||||
| <w>110</w> | |||||
| <h>50</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>90;30;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Class</type> | |||||
| <coordinates> | |||||
| <x>1350</x> | |||||
| <y>370</y> | |||||
| <w>190</w> | |||||
| <h>190</h> | |||||
| </coordinates> | |||||
| <panel_attributes>Dishes | |||||
| -- | |||||
| -id: long | |||||
| -type: int | |||||
| -printerId: long | |||||
| -chefId: long | |||||
| -name: String | |||||
| -price: double | |||||
| -pic: int</panel_attributes> | |||||
| <additional_attributes/> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>1260</x> | |||||
| <y>440</y> | |||||
| <w>110</w> | |||||
| <h>50</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>90;30;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>1260</x> | |||||
| <y>440</y> | |||||
| <w>110</w> | |||||
| <h>260</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>90;240;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>850</x> | |||||
| <y>490</y> | |||||
| <w>120</w> | |||||
| <h>50</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>100;30;30;30</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>600</x> | |||||
| <y>130</y> | |||||
| <w>220</w> | |||||
| <h>230</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>200;30;30;210</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>480</x> | |||||
| <y>130</y> | |||||
| <w>170</w> | |||||
| <h>230</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;30;150;210</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>250</x> | |||||
| <y>130</y> | |||||
| <w>400</w> | |||||
| <h>230</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;30;380;210</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>300</x> | |||||
| <y>250</y> | |||||
| <w>350</w> | |||||
| <h>110</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>30;30;330;90</additional_attributes> | |||||
| </element> | |||||
| <element> | |||||
| <type>com.umlet.element.Relation</type> | |||||
| <coordinates> | |||||
| <x>870</x> | |||||
| <y>40</y> | |||||
| <w>160</w> | |||||
| <h>50</h> | |||||
| </coordinates> | |||||
| <panel_attributes>lt=<-</panel_attributes> | |||||
| <additional_attributes>140;30;30;30</additional_attributes> | |||||
| </element> | |||||
| </diagram> | |||||