|
@@ -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);
|
|
|
}
|
|
|
+
|
|
|
}
|