一、业务受理模块需求分析
整个BOS项目分为基础设置、取派、中转、路由、报表等几大部分。
受理环节,是物流公司业务的开始,作为服务前端,客户通过电话、网络等多种方式进行委托,业务受理员通过与客户交流,获取客户的服务需求和具体委托信息,将服务指令输入我司服务系统。
客户通过打电话方式进行物流委托,物流公司的客服人员需要将委托信息录入到BOS系统中,这个录入的信息称为业务通知单。
当客服人员将业务通知单信息录入到系统后,系统会根据客户的住址自动匹配到一个取派员,并为这个取派员产生一个任务,这个任务就称为工单。
取派员收到取货任务后,会到客户住址取货,取派员会让客户填写纸质的单子(寄件人信息、收件人信息等),取派员将货物取回物流公司网点后,需要将纸质单子上的信息录入到BOS系统中,录入的信息称为工作单。
二、业务受理模块数据库设计
/*==============================================================*/
/* DBMS name: MySQL 5.0 */
/* Created on: 2017/8/19 13:27:42 */
/*==============================================================*/
drop table if exists qp_noticebill;
drop table if exists qp_workbill;
drop table if exists qp_workordermanage;
/*==============================================================*/
/* Table: qp_noticebill */
/*==============================================================*/
create table qp_noticebill
(
id varchar(32) not null,
staff_id varchar(32),
customer_id varchar(32),
customer_name varchar(20),
delegater varchar(20),
telephone varchar(20),
pickaddress varchar(200),
arrivecity varchar(20),
product varchar(20),
pickdate date,
num int,
weight double,
volume varchar(20),
remark varchar(255),
ordertype varchar(20),
user_id varchar(32),
primary key (id)
);
/*==============================================================*/
/* Table: qp_workbill */
/*==============================================================*/
create table qp_workbill
(
id varchar(32) not null,
noticebill_id varchar(32),
type varchar(20),
pickstate varchar(20),
buildtime timestamp,
attachbilltimes int,
remark varchar(255),
staff_id varchar(32),
primary key (id)
);
/*==============================================================*/
/* Table: qp_workordermanage */
/*==============================================================*/
create table qp_workordermanage
(
id varchar(32) not null,
arrivecity varchar(20),
product varchar(20),
num int,
weight double,
floadreqr varchar(255),
prodtimelimit varchar(40),
prodtype varchar(40),
sendername varchar(20),
senderphone varchar(20),
senderaddr varchar(200),
receivername varchar(20),
receiverphone varchar(20),
receiveraddr varchar(200),
feeitemnum int,
actlweit double,
vol varchar(20),
managerCheck varchar(1),
updatetime date,
primary key (id)
);
alter table qp_noticebill add constraint FK_Reference_2 foreign key (user_id)
references t_user(id) on delete restrict on update restrict;
alter table qp_noticebill add constraint FK_Reference_3 foreign key (staff_id)
references bc_staff(id) on delete restrict on update restrict;
alter table qp_workbill add constraint FK_Reference_4 foreign key (staff_id)
references bc_staff(id) on delete restrict on update restrict;
alter table qp_workbill add constraint FK_workbill_noticebill_fk foreign key (noticebill_id)
references qp_noticebill (id) on delete restrict on update restrict;
三、执行Hibernate反向工程构建实体