|  |  | 
 |  |  | package com.vincent.rsf.server.manager.entity; | 
 |  |  |  | 
 |  |  | import java.text.SimpleDateFormat; | 
 |  |  | import java.util.Date; | 
 |  |  | import java.util.*; | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 
 |  |  | 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 com.baomidou.mybatisplus.annotation.TableLogic; | 
 |  |  | 
 |  |  |         this.memo = memo; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | //    Stock stock = new Stock( | 
 |  |  | //            null,    // ASN单据, 带出PO单[非空] | 
 |  |  | //            null,    // ERP凭证 | 
 |  |  | //            null,    // ERP单号 | 
 |  |  | //            null,    // ERP库存地址 | 
 |  |  | //            null,    // 合同标识 | 
 |  |  | //            null,    // 锁定原因 | 
 |  |  | //            null,    // 锁定状态[非空] | 
 |  |  | //            null,    // 锁定人 | 
 |  |  | //            null,    // 锁定时间 | 
 |  |  | //            null,    // 状态[非空] | 
 |  |  | //            null,    // 是否删除[非空] | 
 |  |  | //            null,    // 租户 | 
 |  |  | //            null,    // 添加人员 | 
 |  |  | //            null,    // 添加时间[非空] | 
 |  |  | //            null,    // 修改人员 | 
 |  |  | //            null,    // 修改时间[非空] | 
 |  |  | //            null    // 备注 | 
 |  |  | //    ); | 
 |  |  |  | 
 |  |  | //    public String getLockedTime$(){ | 
 |  |  | //        if (Cools.isEmpty(this.lockedTime)){ | 
 |  |  | 
 |  |  | //        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.lockedTime); | 
 |  |  | //    } | 
 |  |  |  | 
 |  |  |     public String getType$(){ | 
 |  |  |         if (Cools.isEmpty(this.type)){ | 
 |  |  |             return ""; | 
 |  |  |         } | 
 |  |  |         DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); | 
 |  |  |         DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>().eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_ORDER_TYPE).eq(DictData::getValue, this.type)); | 
 |  |  |         if (Objects.isNull(dictData)) { | 
 |  |  |             return null; | 
 |  |  |         } | 
 |  |  |         return dictData.getLabel(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public String getWkType$(){ | 
 |  |  |         if (Cools.isEmpty(this.wkType)){ | 
 |  |  |             return ""; | 
 |  |  |         } | 
 |  |  |         DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); | 
 |  |  |         DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>().eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_BUSINESS_TYPE).eq(DictData::getValue, this.wkType)); | 
 |  |  |         if (Objects.isNull(dictData)) { | 
 |  |  |             return null; | 
 |  |  |         } | 
 |  |  |         return dictData.getLabel(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public String getStatus$(){ | 
 |  |  |         if (null == this.status){ return null; } | 
 |  |  |         switch (this.status){ |