From 262264255b0be3f35674595c0bebab3f2f6c910d Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期一, 25 八月 2025 14:26:45 +0800 Subject: [PATCH] 库存调整单功能优化调整 --- rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/ReviseLogItem.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/ReviseLogItem.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/ReviseLogItem.java index 0c10f05..aa524d2 100644 --- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/ReviseLogItem.java +++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/ReviseLogItem.java @@ -3,6 +3,8 @@ import com.baomidou.mybatisplus.annotation.TableLogic; import java.text.SimpleDateFormat; import java.util.Date; + +import lombok.experimental.Accessors; import org.springframework.format.annotation.DateTimeFormat; import java.text.SimpleDateFormat; import java.util.Date; @@ -22,6 +24,7 @@ import java.util.Date; @Data +@Accessors(chain = true) @TableName("man_revise_log_item") public class ReviseLogItem implements Serializable { @@ -241,6 +244,10 @@ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); } + public Double getDiffQty() { + return Math.round((this.reviseQty - this.anfme) * 10000) / 10000.0; + } + public String getUpdateBy$(){ UserService service = SpringUtils.getBean(UserService.class); User user = service.getById(this.updateBy); -- Gitblit v1.9.1