| | |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.vincent.rsf.server.system.constant.DictTypeCode; |
| | | import com.vincent.rsf.server.system.entity.DictData; |
| | | import com.vincent.rsf.server.system.service.DictDataService; |
| | | import lombok.experimental.Accessors; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | |
| | | import com.vincent.rsf.server.system.entity.User; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.Objects; |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("man_loc_revise") |
| | | public class LocRevise implements Serializable { |
| | | |
| | |
| | | * 源库区ID |
| | | */ |
| | | @ApiModelProperty(value= "源库区ID") |
| | | private Long orgAreaId; |
| | | private Long areaId; |
| | | |
| | | /** |
| | | * 原库区名称 |
| | | */ |
| | | @ApiModelProperty(value= "原库区名称") |
| | | private String orgAreaName; |
| | | private String areaName; |
| | | |
| | | @ApiModelProperty("调整时间") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | private Date exceTime; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 冻结 |
| | |
| | | this.anfme = anfme; |
| | | this.reviseQty = reviseQty; |
| | | this.exceStatus = exceStatus; |
| | | this.orgAreaId = orgAreaId; |
| | | this.orgAreaName = orgAreaName; |
| | | this.areaId = orgAreaId; |
| | | this.areaName = orgAreaName; |
| | | this.status = status; |
| | | this.deleted = deleted; |
| | | this.tenantId = tenantId; |
| | |
| | | this.memo = memo; |
| | | } |
| | | |
| | | // LocRevise locRevise = new LocRevise( |
| | | // null, // 调整单 |
| | | // null, // 单据类型 |
| | | // null, // 单据数量 |
| | | // null, // 实际数量 |
| | | // null, // 执行状态: |
| | | // null, // 源库区ID |
| | | // null, // 原库区名称 |
| | | // null, // 状态[非空] |
| | | // null, // 是否删除[非空] |
| | | // null, // 租户 |
| | | // null, // 添加人员 |
| | | // null, // 添加时间[非空] |
| | | // null, // 修改人员 |
| | | // null, // 修改时间[非空] |
| | | // null // 备注 |
| | | // ); |
| | | |
| | | public String getType$(){ |
| | | if (null == this.type){ return null; } |
| | | switch (this.type){ |
| | | case 0: |
| | | return " 库存调整"; |
| | | case 2: |
| | | return " 盘点调整"; |
| | | default: |
| | | return String.valueOf(this.type); |
| | | if (Cools.isEmpty(this.type)) { |
| | | return null; |
| | | } |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | DictData dictDatas = dictDataService.getOne(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode, DictTypeCode.SYS_STOCK_REVISE_TYPE) |
| | | .eq(DictData::getValue, this.type)); |
| | | if (Objects.isNull(dictDatas) || Objects.isNull(dictDatas.getLabel())) { |
| | | return null; |
| | | } |
| | | return dictDatas.getLabel(); |
| | | } |
| | | |
| | | public String getExceStatus$(){ |