|
@@ -13,9 +13,17 @@
|
|
|
package vip.xiaonuo.modular.base.inventoryUse.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.*;
|
|
|
+import com.fhs.core.trans.anno.Trans;
|
|
|
+import com.fhs.core.trans.constant.TransType;
|
|
|
+import com.fhs.core.trans.vo.TransPojo;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Getter;
|
|
|
import lombok.Setter;
|
|
|
+import vip.xiaonuo.common.pojo.CommonEntity;
|
|
|
+import vip.xiaonuo.modular.base.baseConfig.entity.BaseConfig;
|
|
|
+import vip.xiaonuo.modular.base.department.entity.Department;
|
|
|
+import vip.xiaonuo.sys.modular.user.entity.SysUser;
|
|
|
+
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.Date;
|
|
|
|
|
@@ -27,8 +35,8 @@ import java.util.Date;
|
|
|
**/
|
|
|
@Getter
|
|
|
@Setter
|
|
|
-@TableName("inventory_use")
|
|
|
-public class InventoryUse {
|
|
|
+@TableName(value = "inventory_use", autoResultMap = true)
|
|
|
+public class InventoryUse extends CommonEntity implements TransPojo {
|
|
|
|
|
|
/** ID */
|
|
|
@TableId
|
|
@@ -45,6 +53,7 @@ public class InventoryUse {
|
|
|
|
|
|
/** 物资类别 */
|
|
|
@ApiModelProperty(value = "物资类别", position = 4)
|
|
|
+ @Trans(type = TransType.SIMPLE, target = BaseConfig.class, fields = "configName", alias = "type", ref = "itemTypeName")
|
|
|
private String itemType;
|
|
|
|
|
|
/** 品牌 */
|
|
@@ -59,62 +68,63 @@ public class InventoryUse {
|
|
|
@ApiModelProperty(value = "单位", position = 7)
|
|
|
private String unit;
|
|
|
|
|
|
+ /** 仓库ID */
|
|
|
+ @ApiModelProperty(value = "仓库ID", position = 8)
|
|
|
+ @Trans(type = TransType.SIMPLE, target = BaseConfig.class, fields = "configName", alias = "warehouse", ref = "warehouseName")
|
|
|
+ private String warehouseId;
|
|
|
+
|
|
|
/** 领用时间 */
|
|
|
- @ApiModelProperty(value = "领用时间", position = 8)
|
|
|
+ @ApiModelProperty(value = "领用时间", position = 9)
|
|
|
private Date useTime;
|
|
|
|
|
|
/** 领用数量 */
|
|
|
- @ApiModelProperty(value = "领用数量", position = 9)
|
|
|
+ @ApiModelProperty(value = "领用数量", position = 10)
|
|
|
private BigDecimal useQuantity;
|
|
|
|
|
|
/** 领用部门ID */
|
|
|
- @ApiModelProperty(value = "领用部门ID", position = 10)
|
|
|
- private String useOrgId;
|
|
|
+ @ApiModelProperty(value = "领用部门ID", position = 11)
|
|
|
+ @Trans(type = TransType.SIMPLE, target = Department.class, fields = "departmentName", alias = "department", ref = "departmentName")
|
|
|
+ private String useDepartmentId;
|
|
|
|
|
|
/** 领用人ID */
|
|
|
- @ApiModelProperty(value = "领用人ID", position = 11)
|
|
|
+ @ApiModelProperty(value = "领用人ID", position = 12)
|
|
|
+ @Trans(type = TransType.SIMPLE, target = SysUser.class, fields = "name", alias = "user", ref = "userName")
|
|
|
private String userId;
|
|
|
|
|
|
/** 归还时间 */
|
|
|
- @ApiModelProperty(value = "归还时间", position = 12)
|
|
|
+ @ApiModelProperty(value = "归还时间", position = 13)
|
|
|
private Date returnTime;
|
|
|
|
|
|
/** 归还图片地址 */
|
|
|
- @ApiModelProperty(value = "归还图片地址", position = 13)
|
|
|
+ @ApiModelProperty(value = "归还图片地址", position = 14)
|
|
|
private String returnImgUrl;
|
|
|
|
|
|
/** 备注 */
|
|
|
- @ApiModelProperty(value = "备注", position = 14)
|
|
|
-
|
|
|
+ @ApiModelProperty(value = "备注", position = 15)
|
|
|
private String remarks;
|
|
|
|
|
|
/** 组织ID */
|
|
|
- @ApiModelProperty(value = "组织ID", position = 15)
|
|
|
- private String orgId;
|
|
|
-
|
|
|
- /** 删除标志 */
|
|
|
- @ApiModelProperty(value = "删除标志", position = 16)
|
|
|
- @TableLogic
|
|
|
+ @ApiModelProperty(value = "组织ID", position = 16)
|
|
|
@TableField(fill = FieldFill.INSERT)
|
|
|
- private String deleteFlag;
|
|
|
-
|
|
|
- /** 创建时间 */
|
|
|
- @ApiModelProperty(value = "创建时间", position = 17)
|
|
|
- @TableField(fill = FieldFill.INSERT)
|
|
|
- private Date createTime;
|
|
|
-
|
|
|
- /** 创建用户 */
|
|
|
- @ApiModelProperty(value = "创建用户", position = 18)
|
|
|
- @TableField(fill = FieldFill.INSERT)
|
|
|
- private String createUser;
|
|
|
-
|
|
|
- /** 修改时间 */
|
|
|
- @ApiModelProperty(value = "修改时间", position = 19)
|
|
|
- @TableField(fill = FieldFill.UPDATE)
|
|
|
- private Date updateTime;
|
|
|
+ private String orgId;
|
|
|
|
|
|
- /** 修改用户 */
|
|
|
- @ApiModelProperty(value = "修改用户", position = 20)
|
|
|
- @TableField(fill = FieldFill.UPDATE)
|
|
|
- private String updateUser;
|
|
|
+ /** 物资类别名称 */
|
|
|
+ @ApiModelProperty(value = "物资类别名称", position = 17)
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String itemTypeName;
|
|
|
+
|
|
|
+ /** 仓库名称 */
|
|
|
+ @ApiModelProperty(value = "仓库名称", position = 18)
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String warehouseName;
|
|
|
+
|
|
|
+ /** 部门名称 */
|
|
|
+ @ApiModelProperty(value = "部门名称", position = 19)
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String departmentName;
|
|
|
+
|
|
|
+ /** 领用人名称 */
|
|
|
+ @ApiModelProperty(value = "领用人名称", position = 20)
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String userName;
|
|
|
}
|