代码检查提示

This commit is contained in:
2025-12-11 09:31:34 +08:00
parent 0cea08afd2
commit 4344704dd9
3 changed files with 8 additions and 5 deletions

View File

@@ -31,6 +31,9 @@ import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Map;
/**
* @author ww
*/
@Slf4j
@Service
public class PointsGoodPayServiceImpl implements PointsGoodPayService {
@@ -146,7 +149,7 @@ public class PointsGoodPayServiceImpl implements PointsGoodPayService {
goods = goodsService.getById(record.getPointsGoodsId());
}
record.setIsDel(0);
if (goods.getGoodsCategory().equals("优惠券")) {
if ("优惠券".equals(goods.getGoodsCategory())) {
record.setStatus("已完成");
record.setCheckoutTime(LocalDateTime.now());
goodsRecordService.save(record);