feat(crm): 完善报价信息和物料视图数据

- 在CrmQuoteInfoMapper.xml中加入客户名称和供应商名称关联查询
- 扩展报价信息查询,增加客户联系人和供应商信息的左连接
- 在CrmQuoteMaterialVo.java中新增标准物料标识字段,支持字典转换
- 添加物料编号字段以支持SAP物料编码展示
dev
zangch@mesnac.com 4 weeks ago
parent e9295a55a7
commit ce3870c1bb

@ -46,6 +46,13 @@ public class CrmQuoteMaterialVo implements Serializable {
@ExcelProperty(value = "序号(ERP风格)")
private Long itemNo;
/**
* 1 2
*/
@ExcelProperty(value = "标准物料标识", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "material_flag")
private String materialFlag;
/**
* /
*/
@ -70,6 +77,12 @@ public class CrmQuoteMaterialVo implements Serializable {
@ExcelProperty(value = "销售物料ID(关联名)")
private Long relationMaterialId;
/**
* SAP
*/
@ExcelProperty(value = "物料编号")
private String materialCode;
/**
* SAP
*/

@ -13,12 +13,17 @@
t.total_tax, t.total_including_tax, t.customer_contact_id, t.customer_contact_name, t.customer_contact_phone, t.customer_contact_email,
t.supplier_contact_id, t.supplier_contact_name, t.supplier_contact_phone, t.supplier_contact_email, t.project_id, t.template_id, t.oss_id, t.quote_status,
t.flow_status, t.remark,
ci.customer_name as customerName,
s.supplier_name as supplierName,
d.dept_name as deptName,
u3.nick_name as createName,
t.del_flag, t.create_dept, t.create_by, t.create_time, t.update_by, t.update_time
from crm_quote_info t
left join sys_user u3 on t.create_by = u3.user_id
left join sys_dept d on d.dept_id = t.quote_dept_id
left join crm_customer_contact cc on t.customer_contact_id = cc.contact_id
left join crm_customer_info ci on ci.customer_id = cc.customer_id
left join crm_supplier_info s on s.supplier_id = t.supplier_contact_id
${ew.getCustomSqlSegment}
</select>

Loading…
Cancel
Save