|
|
@@ -11,6 +11,7 @@ import com.dk.common.response.ResponseResultVO;
|
|
|
import com.dk.mdm.infrastructure.convert.mac.RecPayConvert;
|
|
|
import com.dk.mdm.infrastructure.convert.mac.RecPayHandleItemConvert;
|
|
|
import com.dk.mdm.infrastructure.convert.mac.RecPayItemConvert;
|
|
|
+import com.dk.mdm.infrastructure.util.AuthUtils;
|
|
|
import com.dk.mdm.mapper.mac.*;
|
|
|
import com.dk.mdm.mapper.mst.CustomerMapper;
|
|
|
import com.dk.mdm.mapper.mst.MoneyAccountItemMapper;
|
|
|
@@ -114,6 +115,10 @@ public class ReceiptService extends BaseService<RecPay> {
|
|
|
@Autowired
|
|
|
private RecPayHandleItemConvert recPayHandleItemConvert;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private AuthUtils authUtils;
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* @desc : 条件查询
|
|
|
* @author : 付斌
|
|
|
@@ -196,10 +201,12 @@ public class ReceiptService extends BaseService<RecPay> {
|
|
|
// 创建客户,获取编码和主键UuId
|
|
|
Map<String, Object> codeMapCus = commonService.getUniqueNoteCode(Constant.docNameConstant.CUSTOMER.getName(), true);
|
|
|
Customer customer = new Customer();
|
|
|
+ List<String> followStaffs = new ArrayList<>();
|
|
|
+ followStaffs.add(authUtils.getStaff().getStaffId());
|
|
|
customer.setCusId(codeMapCus.get("outId").toString()).setCusCode(codeMapCus.get("outNote").toString()).setCusName(recPayVO.getCusName())
|
|
|
.setCusPhone(recPayVO.getCusPhone()).setAddressArea(recPayVO.getAddressArea()).setAddressName(recPayVO.getAddressName())
|
|
|
.setAddressNo(recPayVO.getAddressNo()).setAddressGcj02(recPayVO.getAddressGcj02()).setAddressFull(recPayVO.getAddressFull())
|
|
|
- .setChannelId(channelId).setOrgId(recPayVO.getOrgId()).setStaffId(recPayVO.getStaffId())
|
|
|
+ .setChannelId(channelId).setOrgId(recPayVO.getOrgId()).setStaffId(recPayVO.getStaffId()).setFollowStaffs(followStaffs)
|
|
|
.setReportStaff(recPayVO.getStaffId()).setSaleStatus(Constant.SaleStatus.QIANKE.getName()).setCpId(recPayVO.getCpId());
|
|
|
customerMapper.insert(customer);
|
|
|
recPayVO.setObjectId(customer.getCusId());
|