Commit 0b21e888 authored by 廖旭伟's avatar 廖旭伟

修改营业执照数据对接接口bug

parent 5cd6f2e6
......@@ -150,22 +150,22 @@ public class BusinessLicenseServiceImpl extends AbstractCRUDServiceImpl<Business
formContent.put(key,businessLicenseEntity.getManageLocation());
}
String zcrq = businessLicenseEntity.getStartDate();
if(key.indexOf("年")>0){
if(key.indexOf("_年")>0){
formContent.put(key,dateFromt(zcrq).get("year"));
}
if(key.indexOf("月")>0){
if(key.indexOf("_月")>0){
formContent.put(key,dateFromt(zcrq).get("month"));
}
if(key.indexOf("日")>0){
if(key.indexOf("_日")>0){
formContent.put(key,dateFromt(zcrq).get("day"));
}
}
if(templateEntity.getTemplateType()==2) {
//正本
formContent.put("@image_1_二维码", businessLicenseEntity.getQrCodeOriginalBase64());
formContent.put("@image_1_二维码", baseurlPhotos(businessLicenseEntity.getQrCodeOriginalBase64()));
}else {
formContent.put("@image_1_二维码", businessLicenseEntity.getQrCodeDuplicateBase64());
formContent.put("@image_1_二维码", baseurlPhotos(businessLicenseEntity.getQrCodeDuplicateBase64()));
}
if(log.isDebugEnabled()){
log.debug("证照转化表单json:"+formContent.toJSONString());
......@@ -197,4 +197,8 @@ public class BusinessLicenseServiceImpl extends AbstractCRUDServiceImpl<Business
return dateMap;
}
public static String baseurlPhotos(String base64) {
return base64.substring(base64.indexOf( "," ) + 1 );
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment