| | |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.LocOwnerService; |
| | | import com.zy.common.utils.Synchro; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | private Integer owner; |
| | | |
| | | /** |
| | | * 是否付款 |
| | | * 货物形态:0:代采、1:仓储 |
| | | */ |
| | | @ApiModelProperty(value= "是否付款0:未付款、1:已付款 ") |
| | | @ApiModelProperty(value= "货物形态:0:代采、1:仓储") |
| | | private Integer payment; |
| | | |
| | | /** |
| | |
| | | @TableId(value = "uuid", type = IdType.ID_WORKER_STR) |
| | | @TableField("uuid") |
| | | private String uuid; |
| | | |
| | | public String getUserName$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getOwner$(){ |
| | | LocOwnerService service = SpringUtils.getBean(LocOwnerService.class); |
| | |
| | | if (null == this.payment){ return null; } |
| | | switch (this.payment){ |
| | | case 1: |
| | | return "已付款"; |
| | | return "仓储"; |
| | | case 0: |
| | | return "未付款"; |
| | | return "代采"; |
| | | default: |
| | | return String.valueOf(this.payment); |
| | | } |