From 83b51a5a0774ea8ecb9a06304af3b956a21307c8 Mon Sep 17 00:00:00 2001 From: pjb <123456> Date: 星期六, 08 三月 2025 09:06:55 +0800 Subject: [PATCH] CUT库条码T开头,截取后10位 --- zy-asrs-wms/src/main/java/com/zy/asrs/wms/common/domain/BaseParam.java | 110 ++++++++++++++++++++++++++++--------------------------- 1 files changed, 56 insertions(+), 54 deletions(-) diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/common/domain/BaseParam.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/common/domain/BaseParam.java index bea1f3b..9145e52 100644 --- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/common/domain/BaseParam.java +++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/common/domain/BaseParam.java @@ -1,54 +1,56 @@ -package com.zy.asrs.wms.common.domain; - -import com.baomidou.mybatisplus.annotation.TableField; -import lombok.Data; - -import java.io.Serializable; -import java.util.Map; - -/** - * Created by vincent on 2/13/2024 - */ -@Data -public class BaseParam implements Serializable { - - private static final long serialVersionUID = 1L; - - @TableField(exist = false) - private Integer current; - - @TableField(exist = false) - private Integer pageSize; - - @TableField(exist = false) - private String timeStart; - - @TableField(exist = false) - private String timeEnd; - - @TableField(exist = false) - private String condition; - - @TableField(exist = false) - private Map<String, Object> map; - - public void syncMap(Map<String, Object> map) { - if (null == map) { - return; - } - if (null != map.get("current")) { - this.setCurrent(Integer.parseInt(String.valueOf(map.get("current")))); - map.remove("current"); - } - if (null != map.get("pageSize")) { - this.setPageSize(Integer.parseInt(String.valueOf(map.get("pageSize")))); - map.remove("pageSize"); - } - if (null != map.get("condition")) { - this.setCondition(String.valueOf(map.get("condition"))); - map.remove("condition"); - } - this.setMap(map); - } - -} +package com.zy.asrs.wms.common.domain; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.Data; + +import java.io.Serializable; +import java.util.Map; + +/** + * Created by vincent on 2/13/2024 + */ +@Data +public class BaseParam implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableField(exist = false) + private Integer current; + + @TableField(exist = false) + private Integer pageSize; + + @TableField(exist = false) + private String timeStart; + + @TableField(exist = false) + private String timeEnd; + + @TableField(exist = false) + private String condition; + + @TableField(exist = false) + private Map<String, Object> map; + + public void syncMap(Map<String, Object> map) { + if (null == map) { + return; + } + if (null != map.get("current")) { + this.setCurrent(Integer.parseInt(String.valueOf(map.get("current")))); + map.remove("current"); + } + if (null != map.get("pageSize")) { + this.setPageSize(Integer.parseInt(String.valueOf(map.get("pageSize")))); + map.remove("pageSize"); + } + if (null != map.get("condition")) { + this.setCondition(String.valueOf(map.get("condition"))); + map.remove("condition"); + } + this.setMap(map); + } + +} -- Gitblit v1.9.1