Browse Source

[fix] 销售管理

客户资料 客户标识字段导出,加上字典识别
修改财务应收账款结案后端接口,结案的时候同时修改关联销售订单的客户资料的客户标识状态为下过单
dev
liuxiaoxu 3 months ago
parent
commit
240989b636
  1. 8
      ruoyi-admin/src/main/java/com/ruoyi/financial/service/impl/FinancialReceivablesServiceImpl.java
  2. 4
      ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysCustomer.java

8
ruoyi-admin/src/main/java/com/ruoyi/financial/service/impl/FinancialReceivablesServiceImpl.java

@ -290,6 +290,14 @@ public class FinancialReceivablesServiceImpl implements IFinancialReceivablesSer
if (updateSysSalesOrderResult <= 0){ if (updateSysSalesOrderResult <= 0){
throw new BusinessException("销售订单结案失败"); throw new BusinessException("销售订单结案失败");
} }
//更改客户资料客户标识 为下过单
SysCustomerVo sysCustomerVo = sysCustomerMapper.selectSysCustomerByEnterpriseCode(sysSalesOrderVo.getEnterpriseCode());
sysCustomerVo.setCustomerSign("2");
int updateSysCustomer = sysCustomerMapper.updateSysCustomer(sysCustomerVo);
if (updateSysCustomer <= 0){
throw new BusinessException("客户资料更改客户标识失败");
}
return result; return result;
} }

4
ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysCustomer.java

@ -166,7 +166,9 @@ public class SysCustomer extends BaseEntity
private String auditStatus; private String auditStatus;
@Excel(name = "客户的状态") @Excel(name = "客户的状态")
private String useStatus; private String useStatus;
@Excel(name = "客户标识 0表示潜在客户(仅报价) 1表示 客户(已下单)")
//1表示潜在客户(仅报价) 2表示 客户(已下单)
@Excel(name = "客户标识",dictType = "sys_customer_sign")
private String customerSign; private String customerSign;
private List<String> currency; private List<String> currency;

Loading…
Cancel
Save