Explorar o código

fix: 码格式新增接口修改

fangxinjian %!s(int64=3) %!d(string=hai) anos
pai
achega
29d24e6ea8

+ 4 - 2
abi-cloud-qr-platform-server/src/main/java/com/abi/qms/platform/service/impl/QrFormatServiceImpl.java

@@ -108,6 +108,7 @@ public class QrFormatServiceImpl implements QrFormatService {
     public QrFormat addQrFormat(SaveQrFormatReq req) {
 
         QrFormat qrFormat = new QrFormat();
+        qrFormat.setId(req.getId());
         qrFormat.setBrief(req.getBrief());
         qrFormat.setDataType(req.getDataType());
         qrFormat.setDigit(req.getDigit());
@@ -127,8 +128,8 @@ public class QrFormatServiceImpl implements QrFormatService {
             codeSb.append(",").append(qr.getBuildCodeClass());
             codeVBC.append(",").append(qr.getParamName());
         }
-        qrFormat.setCodeVariableBuildClass(codeSb.toString());
-        qrFormat.setCodeVariable(codeVBC.toString());
+        qrFormat.setCodeVariableBuildClass(codeSb.toString().substring(1));
+        qrFormat.setCodeVariable(codeVBC.toString().substring(1));
 
         return qrFormat;
 
@@ -235,4 +236,5 @@ public class QrFormatServiceImpl implements QrFormatService {
         QrFormat update = new QrFormat().setId(req.getId()).setIsDelete(1);
         qrFormatMapper.updateById(update);
     }
+
 }

+ 0 - 1
abi-cloud-qr-platform-server/src/main/java/com/abi/qms/platform/service/impl/QrVariableServiceImpl.java

@@ -81,7 +81,6 @@ public class QrVariableServiceImpl implements QrVariableService {
         StringBuffer codeSb = new StringBuffer();
         for (QrVariable qrVariable : qrVariableList) {
             String tempCode = BuildCodeUtil.buildSingleCode(qrVariable.getBuildCodeClass(), null);
-            codeSb.append(tempCode).append(" ");
         }
         String code = codeSb.toString();
         PreviewQrVariableRes res = new PreviewQrVariableRes();