| | |
| | | import java.util.Date; |
| | | |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.crm.manager.service.ItemService; |
| | | import com.zy.crm.manager.service.*; |
| | | 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; |
| | |
| | | @ApiModelProperty(value= "内部编号") |
| | | @TableField("in_order_num") |
| | | private String inOrderNum; |
| | | |
| | | @ApiModelProperty(value= "上级id") |
| | | @TableField("pri_online2_id") |
| | | private Long priOnline2Id; |
| | | |
| | | @ApiModelProperty(value= "业务员") |
| | | @TableField("member_id") |
| | |
| | | this.filepath = filepath; |
| | | } |
| | | |
| | | public Long getCstmrId$(){ |
| | | CstmrService cstmrService = SpringUtils.getBean(CstmrService.class); |
| | | Cstmr cstmr = cstmrService.selectByName(1L, this.templateName); |
| | | if (!Cools.isEmpty(cstmr)){ |
| | | return cstmr.getId(); |
| | | } |
| | | return 0L; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | return ""; |
| | |
| | | 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()); |
| | | 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; |
| | | } |
| | | public String getPriOnline2Id$() { |
| | | PriSalesService priSalesService = SpringUtils.getBean(PriSalesService.class); |
| | | PriSales priSales = priSalesService.selectById(this.priOnline2Id); |
| | | if (!Cools.isEmpty(priSales)){ |
| | | return String.valueOf(priSales.getId()); |
| | | } |
| | | return null; |
| | | } |