|
|
@ -2,9 +2,11 @@ package com.hxgk.lowcode.service.impl; |
|
|
|
|
|
|
|
|
import com.hxgk.lowcode.mapper.FieldRecordMapper; |
|
|
import com.hxgk.lowcode.mapper.FieldRecordMapper; |
|
|
import com.hxgk.lowcode.model.entity.CustomerFormView; |
|
|
import com.hxgk.lowcode.model.entity.CustomerFormView; |
|
|
|
|
|
import com.hxgk.lowcode.model.entity.ManCont; |
|
|
import com.hxgk.lowcode.model.entity.response.QrCodeDetailsResponseEntity; |
|
|
import com.hxgk.lowcode.model.entity.response.QrCodeDetailsResponseEntity; |
|
|
import com.hxgk.lowcode.service.CustomerFormViewService; |
|
|
import com.hxgk.lowcode.service.CustomerFormViewService; |
|
|
import com.hxgk.lowcode.service.QrCodeService; |
|
|
import com.hxgk.lowcode.service.QrCodeService; |
|
|
|
|
|
import com.hxgk.lowcode.service.UserService; |
|
|
import com.hxgk.lowcode.utils.QRCodeUtil; |
|
|
import com.hxgk.lowcode.utils.QRCodeUtil; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -21,6 +23,8 @@ public class QrCodeServiceImpl implements QrCodeService { |
|
|
CustomerFormViewService customerFormViewService; |
|
|
CustomerFormViewService customerFormViewService; |
|
|
@Autowired |
|
|
@Autowired |
|
|
FieldRecordMapper fieldRecordMapper; |
|
|
FieldRecordMapper fieldRecordMapper; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
UserService userService; |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public String generateQrCodeByCfid(String cfid) { |
|
|
public String generateQrCodeByCfid(String cfid) { |
|
|
@ -122,6 +126,16 @@ public class QrCodeServiceImpl implements QrCodeService { |
|
|
//currentFieldsMap.put("qrCodeBase64","二维码"+"!@#@!"+currentBase64);
|
|
|
//currentFieldsMap.put("qrCodeBase64","二维码"+"!@#@!"+currentBase64);
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
for (Map.Entry<String, String> entry : currentFieldsMap.entrySet()) { |
|
|
|
|
|
String key = entry.getKey(); |
|
|
|
|
|
if (key.contains("owner")) { |
|
|
|
|
|
//System.out.println(entry.getValue());
|
|
|
|
|
|
|
|
|
|
|
|
String manContKey = entry.getValue().split("!@#@!")[1]; |
|
|
|
|
|
ManCont manContByKey = userService.getManContByKey(manContKey); |
|
|
|
|
|
entry.setValue("拥有者"+"!@#@!"+manContByKey.getName()+"("+manContByKey.getNumber()+")"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
qrCodeDetailsResponseEntity.setBufferedImage(currentBase64); |
|
|
qrCodeDetailsResponseEntity.setBufferedImage(currentBase64); |
|
|
qrCodeDetailsResponseEntity.setFieldsMap(currentFieldsMap); |
|
|
qrCodeDetailsResponseEntity.setFieldsMap(currentFieldsMap); |
|
|
qrCodeDetailsResponseEntity.setGroupName((String)appAndGroupNameMap.get("groupName")); |
|
|
qrCodeDetailsResponseEntity.setGroupName((String)appAndGroupNameMap.get("groupName")); |
|
|
|