新版仿ok交易所-后端
1
zj
20 hours ago 640ccb9229224642515527daf87f308a7aa9bdf4
trading-order-admin/src/main/java/com/yami/trading/admin/controller/purchasing/PurchasingController.java
@@ -98,7 +98,7 @@
    public Result update(@RequestBody @Valid PurchasingUpdateModel updateModel){
       Purchasing purchasing=  purchasingService.getById(updateModel.getId());
       if (purchasing==null){
           throw  new YamiShopBindException("参数错误!");
           throw new YamiShopBindException("Invalid parameters!");
       }
        BeanUtils.copyProperties(updateModel,purchasing);
        purchasingService.updateById(purchasing);
@@ -110,7 +110,7 @@
    public Result delete(@RequestBody @Valid IdModel idModel){
        Purchasing purchasing=  purchasingService.getById(idModel.getId());
        if (purchasing==null){
            throw  new YamiShopBindException("参数错误!");
            throw new YamiShopBindException("Invalid parameters!");
        }
        purchasingService.removeById(purchasing);
        return  Result.ok(null);