| | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.common.properties.CrossDockProperties; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appe_time); |
| | | } |
| | | |
| | | /** |
| | | * 格式化库位号显示,如果是虚拟库位则显示"越库"标识 |
| | | * |
| | | * @return 格式化后的库位号(如果是虚拟库位,格式为:库位号(越库)) |
| | | */ |
| | | public String getLocNo$() { |
| | | if (Cools.isEmpty(this.loc_no)) { |
| | | return ""; |
| | | } |
| | | try { |
| | | CrossDockProperties crossDockProperties = SpringUtils.getBean(CrossDockProperties.class); |
| | | if (crossDockProperties != null && this.loc_no.equals(crossDockProperties.getVirtualLocationNo())) { |
| | | return this.loc_no + "(越库)"; |
| | | } |
| | | } catch (Exception e) { |
| | | // 如果获取配置失败,忽略异常,返回原始库位号 |
| | | } |
| | | return this.loc_no; |
| | | } |
| | | |
| | | } |