| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler; |
| | | import com.vincent.rsf.server.manager.enums.StationTypeEnum; |
| | | import com.vincent.rsf.server.manager.service.WarehouseAreasService; |
| | | import com.vincent.rsf.server.system.entity.DictData; |
| | |
| | | import java.util.stream.Collectors; |
| | | |
| | | @Data |
| | | @TableName("man_bas_station") |
| | | @TableName(value = "man_bas_station", autoResultMap = true) |
| | | public class BasStation implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | /** |
| | | * 站点名称 |
| | | */ |
| | | @ApiModelProperty(value = "站点名称") |
| | | @ApiModelProperty(value = "站点编号") |
| | | private String stationName; |
| | | |
| | | /** |
| | | * 站点名称 |
| | | */ |
| | | @ApiModelProperty(value = "站点名称") |
| | | private String stationId; |
| | | |
| | | @ApiModelProperty("站点类型: {0:光电, 1:无光电}") |
| | | private Integer type; |
| | |
| | | * 可跨区区域id |
| | | */ |
| | | @ApiModelProperty(value = "可跨区区域id") |
| | | private String crossZoneArea; |
| | | @TableField(typeHandler = JacksonTypeHandler.class) |
| | | private List<Integer> crossZoneArea; |
| | | |
| | | /** |
| | | * 是否wcs站点 |
| | |
| | | * 容器类型 |
| | | */ |
| | | @ApiModelProperty(value = "容器类型") |
| | | private String containerType; |
| | | @TableField(typeHandler = JacksonTypeHandler.class) |
| | | private List<Integer> containerType; |
| | | |
| | | /** |
| | | * 条码 |
| | |
| | | @TableField(exist = false) |
| | | private List<Long> containerTypes; |
| | | |
| | | /** |
| | | * 别名 |
| | | */ |
| | | @ApiModelProperty(value = "别名") |
| | | @TableField(typeHandler = JacksonTypeHandler.class) |
| | | private List<String> stationAlias; |
| | | |
| | | public BasStation() { |
| | | } |
| | | |
| | |
| | | } |
| | | DictDataService service = SpringUtils.getBean(DictDataService.class); |
| | | |
| | | Object parse = JSONArray.parse(this.getContainerType()); |
| | | List<Long> longs1 = JSONObject.parseArray(parse.toString(), Long.class); |
| | | // Object parse = JSONArray.parse(this.getContainerType()); |
| | | // List<Long> longs1 = JSONObject.parseArray(parse.toString(), Long.class); |
| | | List<DictData> dictData = service.list(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode, "sys_container_type") |
| | | .in(DictData::getValue, longs1)); |
| | | .in(DictData::getValue, this.getContainerType())); |
| | | List<Long> longs = dictData.stream().map(DictData::getId).collect(Collectors.toList()); |
| | | return longs; |
| | | } |