| | |
| | | * 创建人员 |
| | | */ |
| | | @ApiModelProperty(value= "创建人员") |
| | | @TableField("create_by") |
| | | private Long createBy; |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 更新人员 |
| | |
| | | @ApiModelProperty(value= "合同编号") |
| | | private String serial; |
| | | |
| | | /** |
| | | * 部门ID |
| | | */ |
| | | @ApiModelProperty(value= "创建人员") |
| | | @TableField("dept_id") |
| | | private Long deptId; |
| | | |
| | | public Contract() {} |
| | | |
| | | public Contract(Long id, String customer, String address, String company, String companyAddress, String taxNum, String bank, String bankNum, Date createTime, Date updateTime, Long createBy, Long updateBy, String filepath, String city, String shippingAddress, String shippingName, String shippingPhone, Double price, String email, String name, Integer status, String memo, String boss, String serial) { |
| | | public Contract(Long id, String customer, String address, String company, String companyAddress, String taxNum, String bank, String bankNum, Date createTime, Date updateTime, Long userId, Long updateBy, String filepath, String city, String shippingAddress, String shippingName, String shippingPhone, Double price, String email, String name, Integer status, String memo, String boss, String serial, Long deptId) { |
| | | this.id = id; |
| | | this.customer = customer; |
| | | this.address = address; |
| | |
| | | this.bankNum = bankNum; |
| | | this.createTime = createTime; |
| | | this.updateTime = updateTime; |
| | | this.createBy = createBy; |
| | | this.userId = userId; |
| | | this.updateBy = updateBy; |
| | | this.filepath = filepath; |
| | | this.city = city; |
| | |
| | | this.memo = memo; |
| | | this.boss = boss; |
| | | this.serial = serial; |
| | | this.deptId = deptId; |
| | | } |
| | | |
| | | // Contract contract = new Contract( |
| | |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | } |
| | | |
| | | public String getCreateBy$() { |
| | | public String getUserId$() { |
| | | UserService userService = SpringUtils.getBean(UserService.class); |
| | | User user = userService.selectById(this.createBy); |
| | | User user = userService.selectById(this.userId); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getNickname()); |
| | | } |