fix[litemall-admin-api]: 更新操作有误

This commit is contained in:
Junling Bu
2019-12-14 10:38:38 +08:00
parent c4b6e64ce1
commit 0735137816
2 changed files with 5 additions and 1 deletions

View File

@@ -36,6 +36,10 @@ public class LitemallGoodsAttributeService {
goodsAttributeMapper.logicalDeleteByExample(example);
}
public void deleteById(Integer id) {
goodsAttributeMapper.logicalDeleteByPrimaryKey(id);
}
public void updateById(LitemallGoodsAttribute attribute) {
attribute.setUpdateTime(LocalDateTime.now());
goodsAttributeMapper.updateByPrimaryKeySelective(attribute);