| | |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.crm.manager.service.ItemService; |
| | | import com.zy.crm.manager.service.OrderService; |
| | | import com.zy.crm.manager.service.PlanService; |
| | | import com.zy.crm.system.entity.User; |
| | | import com.zy.crm.system.service.UserService; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty(value= "创建部门") |
| | | @TableField("dept_id") |
| | | private Long deptId; |
| | | |
| | | @ApiModelProperty(value= "更新人员") |
| | | @TableField("update_user_id") |
| | | private Long updateUserId; |
| | |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getItemId$() { |
| | | ItemService itemService = SpringUtils.getBean(ItemService.class); |
| | | Item item = itemService.selectById(this.itemId); |
| | | if (!Cools.isEmpty(item)){ |
| | | return String.valueOf(item.getName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getOrderId$() { |
| | | OrderService orderService = SpringUtils.getBean(OrderService.class); |
| | | Order order = orderService.selectById(this.itemId); |
| | | if (!Cools.isEmpty(order)){ |
| | | return String.valueOf(order.getName()); |
| | | public String getPlanId$() { |
| | | PlanService planService = SpringUtils.getBean(PlanService.class); |
| | | Plan plan = planService.selectById(this.itemId); |
| | | if (!Cools.isEmpty(plan)){ |
| | | return String.valueOf(plan.getUuid()); |
| | | } |
| | | return null; |
| | | } |