Skip to content

admin模块中ProductController的shopStatus方法中的product.setPutawayTime(new Date()); #27

@qdnqwlgithub

Description

@qdnqwlgithub

有留意到本类的update方法中的代码如下

        if (dbProduct.getStatus() == 0 || productParam.getStatus() == 1) {
            product.setPutawayTime(new Date());
        }

估计作者关于Product的PutawayTime的逻辑如下:
收到商品上架请求首先要判断此product在db中的状态
db.product.status==0 -> 修改PutawayTime
db.product.status==1 -> 不修改PutawayTime

所以我认为admin模块中ProductController的shopStatus方法中的也添加判断

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions