|
|
@ -70,11 +70,13 @@ public class CrmCustomerService extends MybatisBaseService<CrmCustomerMapper, Cr |
|
|
|
private CrmVisitService crmVisitService; |
|
|
|
|
|
|
|
//身份证识别
|
|
|
|
private static final String ID_CARDOCR = "0003"; |
|
|
|
private static final String ID_CARDOCR = "01"; |
|
|
|
//营业执照
|
|
|
|
private static final String BusinessLicenseOCR = "02"; |
|
|
|
// 护照识别
|
|
|
|
private static final String MLID_PASSPORTOCR = "0002"; |
|
|
|
private static final String MLID_PASSPORTOCR = "03"; |
|
|
|
// 港澳台通行证识别
|
|
|
|
private static final String PERMITOCR = "0001"; |
|
|
|
private static final String PERMITOCR = "04"; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ImageUploadUtil imageUploadUtil; |
|
|
@ -897,6 +899,8 @@ public class CrmCustomerService extends MybatisBaseService<CrmCustomerMapper, Cr |
|
|
|
api = TencentCloudApiUtils.TencentApi.MLIDPassportOCR; |
|
|
|
} else if (ID_CARDOCR.equals(type)) {//身份证
|
|
|
|
api = TencentCloudApiUtils.TencentApi.IDCardOCR; |
|
|
|
} else if (BusinessLicenseOCR.equals(type)) {//营业执照
|
|
|
|
api = TencentCloudApiUtils.TencentApi.BusinessLicenseOCR; |
|
|
|
} |
|
|
|
TencentCloudApiUtils.Result2 result2 = TencentCloudApiUtils.buildHeaders(api, json); |
|
|
|
HashMap<String, String> result = result2.getResult(); |
|
|
@ -943,6 +947,10 @@ public class CrmCustomerService extends MybatisBaseService<CrmCustomerMapper, Cr |
|
|
|
} else if (ID_CARDOCR.equals(type)) {//身份证
|
|
|
|
cardName = ConstantUtils.getString(map1, "Name", ""); |
|
|
|
cardNum = ConstantUtils.getString(map1, "IdNum", ""); |
|
|
|
} else if (BusinessLicenseOCR.equals(type)) {//营业执照
|
|
|
|
cardName = ConstantUtils.getString(map1, "Name", ""); |
|
|
|
cardNum = ConstantUtils.getString(map1, "RegNum", ""); |
|
|
|
|
|
|
|
} |
|
|
|
mapOne.put("Response", map1); |
|
|
|
mapOne.put("cardName", cardName); |
|
|
@ -974,8 +982,8 @@ public class CrmCustomerService extends MybatisBaseService<CrmCustomerMapper, Cr |
|
|
|
return baseMapper.cusList(); |
|
|
|
} |
|
|
|
|
|
|
|
public int updateRemindAndByCustomerSid(String customerSid, String remind_day, String remind_remark, String isOnRemind, String isOnRemindkey,String follow_state) { |
|
|
|
return baseMapper.updateRemindAndByCustomerSid(customerSid, remind_day, remind_remark, isOnRemind, isOnRemindkey,follow_state); |
|
|
|
public int updateRemindAndByCustomerSid(String customerSid, String remind_day, String remind_remark, String isOnRemind, String isOnRemindkey, String follow_state) { |
|
|
|
return baseMapper.updateRemindAndByCustomerSid(customerSid, remind_day, remind_remark, isOnRemind, isOnRemindkey, follow_state); |
|
|
|
} |
|
|
|
|
|
|
|
/*获取身份证信息*/ |
|
|
|