|
|
@@ -837,18 +837,46 @@ func buildStrategyByPartyB(templateConfigId int, fieldUserType int, cacheMap map
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ // if userType == 1 { // 个人
|
|
|
+ // reqParam["userid"] = strconv.Itoa(int(record.USERID))
|
|
|
+ // reqParam["cardnum"] = cacheMap["idCardNo"]
|
|
|
+ // reqParam["username"] = cacheMap["realName"]
|
|
|
+ // reqParam["cardtype"] = 0 // 目前写死证件类型为身份证 - 0
|
|
|
+ // reqParam["cardfrontphotourl"] = cacheMap["idCardPhoto"]
|
|
|
+ // reqParam["cardbackphotourl"] = cacheMap["idCardPhotoBackURL"]
|
|
|
+ // reqParam["bankaccount"] = cacheMap["bankCard"]
|
|
|
+ // reqParam["bankid"] = cacheMap["bankId"]
|
|
|
+ // reqParam["userinfotype"] = 1 // 1 - 个人
|
|
|
+ // } else {
|
|
|
+ // reqParam["userid"] = strconv.Itoa(int(record.USERID))
|
|
|
+ // reqParam["customername"] = cacheMap["companyName"]
|
|
|
+ // reqParam["cardtype"] = 4 // 企业统一信用
|
|
|
+ // reqParam["cardfrontphotourl"] = cacheMap["idCardPhoto"]
|
|
|
+ // reqParam["legalpersonname"] = cacheMap["realName"]
|
|
|
+ // reqParam["cardnum"] = cacheMap["creditCode"]
|
|
|
+ // reqParam["mobilephone"] = cacheMap["mobile"]
|
|
|
+ // reqParam["userinfotype"] = 2 // 2 - 企业
|
|
|
+ // }
|
|
|
for _, item := range fields {
|
|
|
switch item.FIELDKEY {
|
|
|
- case "P_PARTYB_NAME": // 乙方名称
|
|
|
+ case "P_PARTYB_NAME": // 乙方名称(个人)
|
|
|
receiverFillStrategyList = append(receiverFillStrategyList, APIReceiverFillStrategy{AttachNo: 1, Key: "P_PARTYB_NAME", Value: cacheMap["realName"].(string)})
|
|
|
- case "P_PARTYB_ID": // 乙方证件号码
|
|
|
+ case "P_PARTYB_ID": // 乙方证件号码(个人)
|
|
|
receiverFillStrategyList = append(receiverFillStrategyList, APIReceiverFillStrategy{AttachNo: 1, Key: "P_PARTYB_ID", Value: cacheMap["idCardNo"].(string)})
|
|
|
- case "P_PARTYB_MOBILE": // 乙方电话号码
|
|
|
+ case "P_PARTYB_MOBILE": // 乙方电话号码(个人)
|
|
|
receiverFillStrategyList = append(receiverFillStrategyList, APIReceiverFillStrategy{AttachNo: 1, Key: "P_PARTYB_MOBILE", Value: cacheMap["mobile"].(string)})
|
|
|
case "P_PARTYB_SIGNATURE": // 乙方签章(个人)
|
|
|
signStrategyList = append(signStrategyList, APISignStrategy{AttachNo: 1, LocationMode: 4, SignKey: "P_PARTYB_SIGNATURE", SignType: 1})
|
|
|
- case "P_PARTYB_DATE": // 乙方签署时间
|
|
|
+ case "P_PARTYB_DATE": // 乙方签署时间(个人)
|
|
|
signStrategyList = append(signStrategyList, APISignStrategy{AttachNo: 1, LocationMode: 4, SignKey: "P_PARTYB_DATE", SignType: 2})
|
|
|
+ case "E_PARTYB_SIGNATURE": // 乙方签章(企业)
|
|
|
+ signStrategyList = append(signStrategyList, APISignStrategy{AttachNo: 1, LocationMode: 4, SignKey: "E_PARTYB_SIGNATURE", SignType: 1})
|
|
|
+ case "E_PARTYB_DATE": // 乙方签署时间(企业)
|
|
|
+ signStrategyList = append(signStrategyList, APISignStrategy{AttachNo: 1, LocationMode: 4, SignKey: "E_PARTYB_DATE", SignType: 2})
|
|
|
+ case "E_PARTYB_NAME": // 乙方名称(企业)
|
|
|
+ receiverFillStrategyList = append(receiverFillStrategyList, APIReceiverFillStrategy{AttachNo: 1, Key: "E_PARTYB_NAME", Value: cacheMap["companyName"].(string)})
|
|
|
+ case "E_PARTYB_ID": // 乙方证件号码(企业)
|
|
|
+ receiverFillStrategyList = append(receiverFillStrategyList, APIReceiverFillStrategy{AttachNo: 1, Key: "E_PARTYB_ID", Value: cacheMap["creditCode"].(string)})
|
|
|
}
|
|
|
}
|
|
|
|