| | |
| | | import com.vincent.rsf.server.system.service.DictTypeService; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | import com.vincent.rsf.server.system.service.UserService; |
| | | import com.vincent.rsf.server.system.entity.User; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.stream.Collectors; |
| | | |
| | | @Data |
| | |
| | | @TableField(exist = false) |
| | | private List<Long> containerTypes; |
| | | |
| | | public BasStation() {} |
| | | public BasStation() { |
| | | } |
| | | |
| | | public String getType$() { |
| | | if (this.type == null) return null; |
| | | if (this.type == null) |
| | | return null; |
| | | return StationTypeEnum.getStationDesc(this.type); |
| | | } |
| | | |
| | |
| | | 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, longs1)); |
| | | List<Long> longs = dictData.stream().map(DictData::getId).collect(Collectors.toList()); |
| | | return longs; |
| | | } |
| | |
| | | DictDataService service = SpringUtils.getBean(DictDataService.class); |
| | | DictData dictData = service.getOne(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode, "sys_sta_use_stas") |
| | | .eq(DictData::getValue, this.useStatus) |
| | | ); |
| | | .eq(DictData::getValue, this.useStatus)); |
| | | if (!Cools.isEmpty(dictData)){ |
| | | return String.valueOf(dictData.getLabel()); |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | public String getCreateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.getById(this.createBy); |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getUpdateBy$() { |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.getById(this.updateBy); |
| | | if (!Cools.isEmpty(user)) { |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getArea$(){ |
| | | if (null == this.area){ return null; } |
| | | if (null == this.area) { |
| | | return null; |
| | | } |
| | | WarehouseAreasService service = SpringUtils.getBean(WarehouseAreasService.class); |
| | | WarehouseAreas warehouseAreas = service.getById(this.area); |
| | | if (!Cools.isEmpty(warehouseAreas)){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public Boolean getStatusBool(){ |
| | | if (null == this.status){ return null; } |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status){ |
| | | case 1: |
| | | return true; |