@Wahson
2020-03-22T15:27:46.000000Z
字数 3199
阅读 434
周报
Wanbo周报
- crm迁移 F_Crm_V1.0
- 授信申请: 创建company_credit,填写申请额度、申请账期 曹佳林
- 授信审核,审核失败填写审核原因,审核时保存授信额度、账期 曹佳林
- 变更申请,状态变回待审核、申请原因改变更申请 曹佳林
- 公司详情授信管理页面 陈均活
- 授信列表,审核操作 陈均活
- 开票信息审核 曹佳林 陈均活
- customer 客户管理接口crud 曹佳林
- 客户管理页面 陈均活
- 公司相关所有查询接口重构、所有调用端修改 曹佳林
- 公司信息缓存模块重构 曹佳林
- 增加action_journal,记录操作 曹佳林
- 公司数据迁移方案:company company_address company_bank company_invoice company_material_record company_purchaser_property,准备 曹佳林
- 所有供应商、我的采购商、我的供应商页面 陈均活
- 页面编辑输入格式校验 陈均活
- 报价迁移测试上线 梁华生
- 运营系统优化 F_Order_V1.11
- 库存单资金占用统计,库存供应商额度占用统计 陈均活 梁华生
- 增加约车时间,司机信息根据约车时间过滤 梁华生
- 付款指令合并 陈均活
- 开票条件,判断物流单据已回签 梁华生
- 修改采购员 陈均活 梁华生
alter table company add column
status smallint(2) default 10 not null comment '状态, 10:待审核(to_be_audited);20:审核通过(audited);21:审核不通过(audited_failed)',
uniform_social_credit_code varchar(50) default null comment '统一社会信用代码',
uniform_social_credit_code_cert varchar(128) default null comment '统一社会信用代码证附件, 阿里云文件名',
audited_by int default null comment '审核人',
audited_at timestamp default null comment '审核时间';
create table company_credit
(
company_id bigint not null comment '公司id' primary key,
status smallint(2) default 10 not null comment '状态, 10:待审核(to_be_audited);20:审核通过(audited);20:审核不通过(audited_fail);90:已冻结(frozen)',
apply_reason smallint(2) default 10 not null comment '申请原因,10:初次申请;20:变更申请',
request_credit_limit decimal(13, 2) default 0.00 not null comment '客户申请授信额度',
request_credit_term smallint(2) default 0 not null comment '申请账期;单位天',
credit_limit decimal(13, 2) default 0.00 not null comment '客户授信额度',
credit_term smallint(2) default 0 not null comment '客户账期;单位天',
credited_at timestamp default null comment '授信时间',
available_credit_limit decimal(13, 2) default 0.00 not null comment '客户可用授信额度',
overdue_order_cnt int(5) default 0 not null comment '逾期订单数,单位: 笔',
overdue_amount decimal(13, 2) default 0.00 not null comment '客户逾期总额',
audited_fail_reason varchar(128) default null comment '审核失败原因',
audited_by int default null comment '审核人',
audited_at timestamp default null comment '审核时间',
created_at timestamp default current_timestamp() not null,
created_by int default 0 not null,
updated_at timestamp default current_timestamp() not null,
updated_by int default 0 not null,
remark varchar(255) null comment '备注',
constraint credit_2_company foreign key (company_id) references company (id)
) engine = innoDb
charset = utf8mb4 comment '公司授信表';
-- 授信申请: 创建company_credit,填写申请额度、申请账期
-- 授信审核,审核失败填写审核原因,审核时保存授信额度、账期
-- 变更申请,状态变回待审核、申请原因改变更申请
-- 授信管理页面
-- 授信列表,审核操作,查看授信变更记录
create table customer
(
id bigint not null primary key,
company_id bigint not null comment '公司id',
is_deleted smallint(1) default '0' not null comment '是否已删除, 0: 否(no); 1: 是(yes)',
name varchar(255) not null comment '客户姓名',
position smallint null comment '职位, 1:老板(boss);2:采购总监(purchaseDirector);3:采购经理(purchaseManager);4: 采购员(purchaser); 5:技术人员(technicaler); 99:其他(other)',
other_position varchar(255) null comment '其他职位',
city char(6) not null comment '所在城市代码',
phone varchar(20) null comment '手机号码',
tel varchar(20) null comment '联系电话',
fax varchar(20) null comment '传真',
wx_user_id bigint default null comment '微信用户id, wechat_db.wx_user.id',
created_at timestamp default current_timestamp() not null,
created_by int default 0 not null,
updated_at timestamp default current_timestamp() not null,
updated_by int default 0 not null,
remark varchar(255) null comment '备注',
constraint customer_2_company foreign key (company_id) references company (id)
) engine = innoDb
charset = utf8mb4 comment '客户表';