@Wahson
2018-10-26T08:02:13.000000Z
字数 4679
阅读 1129
周报
Today周报
- 本周上线情况
- 10月18号v1.0.4灰度
- 10月20号v1.0.4上线
- 10月20号hotfix
- po2推进情况
- 数据检查中主要发现问题:寄库、经由单据状态不一致,寄库预约单数量不一致,下周继续验证
- 鲜食订购需求已经提测
灰度总结:本次采购灰度并没有达到灰度的目的,遇到了一些坑,而且因为准备不足,导致灰度没有达到效果。主要是几个问题:
1. 前端请求cookie传到 php,中转到中台时未带上cookie,导致apiGateWay无法根据cookie 判断跳转。主要原因是未考虑到测试环境与生产环境的不一致,未在测试环境进行严格测试。此问题及时联动杨瑞已经解决。
1. pda灰度前的版本未设置门店号cookie,灰度上线后通过反向配置灰度名单,导致非灰度门店也下载到了最新代码。这种带有投机取巧、且风险较高的处理后续应杜绝。
2. 灰度中的采购服务,无法调用灰度的商品服务。原因是多个灰度的服务,cookie 无法传递,导致打不到整体灰度的效果。架构小组已经解决。
3. 灰度转生产后,灰度机器中的采购服务没有及时停止服务,且作为master节点运行。因灰度机器网络配置(是否是网络配置,具体还需要生哥团队解答?)导致所有调用供应链的接口报链接超时,单据无法下发到仓库。解决是及时停掉灰度机器。建议灰度机器增加是否能被选为master节点的选项。另外发现灰度机器上的环境变量似乎与生产环境有差异,下周需要进一步确认一下。
- 线上问题跟进 曹璐 吴月
- 线上数据修复 涂亚松
- po2数据每日检查并进行问题汇总 涂亚松
- 鲜食订购测试跟进与上线 曹璐 曹佳林 徐泽鹏 朱方方
- 鲜食订购pda测试跟进与上线 吴月
- pda验收调整测试跟进 曹璐 吴月
- 供应链需求
- 提供供应商订单查询接口 曹璐
- 供应商订单接单接口 曹璐
- 仓库发货接口 曹佳林
- 天翼佳果直纳修正单推送仓库接口 曹佳林
- po2调整
- 单据流水记录, 流水类型,
- 修改子单时,父单即便没有变更,updated_at 也需要更新
- adjustReceiveNum 调整为裁决数量, adjustDeliveryNum 去掉
- 增加裁决状态
- 超时关闭 => 接单超时 , 增加超期关闭
- 多次收货时,原有修正单作废,新建一张新的
- 报废单开发
供应链需求
天翼佳果直纳修正单推送仓库接口
alter table purchase_order2
add column delivery_at datetime null comment '发货时间' after audited_by,
add column scrap_at datetime null comment '作废时间' after delivery_at,
add column correct_at datetime null comment '修正时间' after scrap_at,
add column correct_confirm_at datetime null comment '修正确认时间' after correct_at,
add column adjust_at datetime null comment '裁决时间' after correct_confirm_at,
add column correct_status tinyint(3) default null comment '修正单状态,10:待确认(to_be_confirmed);11:裁决中(adjudging);12:已完结(finished);13裁决已完结(ADJUDGE_FINISHED)' after purchase_status,
modify column purchase_status tinyint(3) default '10'not null comment '采购单状态,10:待审核(to_be_audited);11:审核不通过(audit_fail);20:待确认(to_be_confirmed);30:待供应方发货(to_be_deliveried);40:待验收(to_be_received);41:部分验收(partial_received);42:已验收(received);43:已自动验收(auto_received);90:接单超时(accept_timeout);91:拆单关闭中(splitting);92:拆单关闭完成(split);93:收货超时(receive_timeout);94:仓库关单(closed_by_storage);99:已取消(canceled)';
create table scrap_order(
id bigint not null primary key comment '主键',
code varchar(30) default '' not null comment '单号',
type tinyint(3) default 1 not null comment '报废类型,1:门店报废(store_scrap);2:仓库报废(storage_scrap)',
from_id varchar(20) not null comment '报废门店或仓库,仓库编号/门店财务编号',
status tinyint not null default 1 comment '报废状态,1:待确认(to_be_confirmed);2:已报废(discarded);3:已撤销(revoked);',
pos_id int default '0' not null comment 'pos机编号,单据类型为报废单是有大于0的值',
cashier_id int default '0' not null comment '收银员,单据类型为报废单是有大于0的值',
logistics_price_amount decimal(12, 4) default '0.0000' not null comment '物流销价总金额',
store_selling_price_amount decimal(12, 4) default '0.0000' not null comment '门店售价总金额',
scrap_at datetime null comment '门店实际报废时间',
created_at datetime not null comment '创建时间',
created_by int not null comment '特指后台创建人(公司员工 id)',
updated_at datetime not null comment '更新时间',
updated_by int not null comment '特指后台创建人(公司员工 id)',
remark varchar(200) default '' comment '备注'
) engine = InnoDb charset = utf8mb4 comment '报废单';
create table scrap_order_item(
id bigint not null primary key comment '主键',
scrap_order_id bigint not null default 0 comment '报废主单id',
sku_no varchar(32) not null default '' comment '货号',
sku_name varchar(64) not null default '' comment '商品名称',
spec varchar(64) not null default '' comment '规格',
sale_unit varchar(64) not null default '' comment '计价单位',
shelflife int default '0' not null comment '保质期',
shelflife_unit tinyint(2) default '5' not null comment '保质期单位,1:小时(hour);2:天(day);3:月(month);4:年(year);5:永久有效(for_ever)',
master_barcode varchar(32) not null default '' comment '国际条码(主)',
shipping_method varchar(255) not null default '01' comment '温层',
sale_unit_number int default 1 comment '基本订购单位',
sku_total_num int not null default 0 comment '商品报废总数',
buying_price decimal(12, 4) default '0.0000' not null comment '供应商进价',
store_selling_price decimal(12, 4) default '0.0000' null comment '门店售价(含税)',
logistics_price decimal(12, 4) default '0.0000' not null comment '物流销价(不含税)',
logistics_output_tax decimal(12, 4) default '0.0000' not null comment '物流销项税率',
input_tax decimal(12, 4) not null default 0.16 comment '进项税率',
output_tax decimal(12, 4) not null default 0.16 comment '销项税率',
sku_total_amount decimal(12, 4) default '0.0000' not null comment '进价总金额',
logistics_price_amount decimal(12, 4) default '0.0000' not null comment '报废物流销价总金额',
store_selling_price_amount decimal(12, 4) default '0.0000' not null comment '报废售价总金额',
created_at datetime not null comment '创建时间',
created_by int not null comment '特指后台创建人(公司员工 id)',
updated_at datetime not null comment '更新时间',
updated_by int not null comment '特指后台创建人(公司员工 id)',
remark varchar(200) default '' comment '备注'
) engine = InnoDb charset = utf8mb4 comment '报废单详情';