feat(service): 新增客户跟进附件处理服务实现
- 实现了根据附件ID集合批量查询附件信息并填充至传入对象列表
- 支持通过函数式接口抽取附件ID并注入附件信息
- 提供根据单个附件ID获取简易附件视图对象的方法
- 使用懒加载注入客户跟进服务以避免循环依赖
- 优化批量查询时的ID分割,防止单批量过大导致性能问题
feat(model): 新增工序实体类定义
- 定义工序实体ProductProcess对应数据库表product_process
- 包含工序编号、名称、机台、备注、工资定额等字段
- 支持计时或计件两种工序类型区分
- 定义自动填充字段如创建时间、修改时间、租户ID等
- 集成Swagger和Excel注解支持接口文档和导出功能
- 采用Lombok简化代码,自动生成getter/setter等方法
| | |
| | | @Override |
| | | public SimpleFileVo getSimpleFileVoById(Long id) { |
| | | if(id == null){ |
| | | return new SimpleFileVo(); |
| | | return null; |
| | | } |
| | | List<CustomerFollowUpFile> followUpFilesByIds = customerFollowUpService.getFollowUpFilesByIds(Lists.newArrayList(id)); |
| | | if(CollUtil.isEmpty(followUpFilesByIds)){ |
| | | return new SimpleFileVo(); |
| | | return null; |
| | | } |
| | | return SimpleFileVo.convert(followUpFilesByIds.get(0)); |
| | | } |
| | |
| | | * 工资定额 |
| | | */ |
| | | @Excel(name = "工资定额") |
| | | @TableField(updateStrategy = FieldStrategy.IGNORED) |
| | | // @TableField(updateStrategy = FieldStrategy.IGNORED) |
| | | private BigDecimal salaryQuota; |
| | | |
| | | @ApiModelProperty("类型 区分是计时还是计件 0 计时 1计件") |
| | | @Excel(name = "类型 0 计时 1计件") |
| | | // @Excel(name = "类型 0 计时 1计件") |
| | | private Long type; |
| | | |
| | | /** |