This commit is contained in:
han0
2025-01-21 18:00:05 +08:00
parent 9f2f24fcb9
commit 98ad0b7adf
2 changed files with 4 additions and 0 deletions

View File

@@ -247,6 +247,9 @@ public class PricePublish extends Model<PricePublish> {
if (params.getTax() != null) {
this.setTax(params.getTax());
}
if (params.getDisplayDigit() != null) {
this.setDisplayDigit(params.getDisplayDigit());
}
this.updateTime = LocalDateTime.now();
this.updateUserName = user.getName();

View File

@@ -165,6 +165,7 @@ public class PriceResult extends Model<PriceResult> {
}
public PriceResult update(PriceResultEditRequest item) {
this.setDisplayDigit(item.getDisplayDigit());
this.setPriceFtb(item.getPriceFtb().floatValue());
this.setFluctuatingFtb(item.getFluctuatingFtb().floatValue());
this.setPriceSs(item.getPriceSs().floatValue());