修改值问题
This commit is contained in:
@@ -36,8 +36,11 @@ public class ShopExtendServiceImpl extends ServiceImpl<ShopExtendMapper, ShopExt
|
|||||||
}
|
}
|
||||||
|
|
||||||
BeanUtil.copyProperties(shopExtendDTO, shopExtend);
|
BeanUtil.copyProperties(shopExtendDTO, shopExtend);
|
||||||
shopExtend.setAutoKey(null);
|
if (shopExtendDTO.getValue() == null) {
|
||||||
return update(shopExtend, new QueryWrapper().eq(ShopExtend::getShopId, shopId).eq(ShopExtend::getAutoKey, shopExtendDTO.getAutokey()));
|
shopExtend.setValue(null);
|
||||||
|
}
|
||||||
|
mapper.updateByQuery(shopExtend, false, new QueryWrapper().eq(ShopExtend::getShopId, shopId).eq(ShopExtend::getAutoKey, shopExtendDTO.getAutokey()));
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user