This commit is contained in:
777
2025-11-28 18:09:24 +08:00
parent ea9c4f2a61
commit 7f9b7bc639
2 changed files with 4 additions and 1 deletions

View File

@@ -4,3 +4,5 @@ ALTER TABLE cai_pay_trd_config
-- 2025-11-25 -- 2025-11-25
ALTER TABLE cai_goods ALTER TABLE cai_goods
ADD COLUMN `wx_amount` int default 0 not null comment '微信钻石'; ADD COLUMN `wx_amount` int default 0 not null comment '微信钻石';
update cai_goods
set wx_amount = amount;

View File

@@ -69,7 +69,8 @@ public class SettingAppController {
.eq(Goods::getStatus,0) .eq(Goods::getStatus,0)
.orderByAsc(Goods::getPrice)); .orderByAsc(Goods::getPrice));
list.forEach(i -> { list.forEach(i -> {
i.setAliAmountDiff(i.getAmount() - i.getWxAmount()); // i.setAliAmountDiff(i.getAmount() - i.getWxAmount());
i.setAliAmountDiff(0L);
}); });
vo.setGoods(list); vo.setGoods(list);
return R.ok(vo); return R.ok(vo);