|
@@ -63,17 +63,17 @@ public class QrVariableServiceImpl implements QrVariableService {
|
|
|
@Override
|
|
|
public PreviewQrVariableRes previewQrVariable(PreviewQrVariableReq req) {
|
|
|
//校验入参
|
|
|
- if (CollectionUtils.isEmpty(req.getIds())) {
|
|
|
- throw new BusinessException("码格式入参id为空");
|
|
|
+ if (CollectionUtils.isEmpty(req.getParamNameList())) {
|
|
|
+ throw new BusinessException("码格式参数名称为空");
|
|
|
}
|
|
|
// 查询码格式变量
|
|
|
QueryWrapper<QrVariable> qrVariableQw = new QueryWrapper<>();
|
|
|
- qrVariableQw.in("id", req.getIds());
|
|
|
+ qrVariableQw.in("param_name", req.getParamNameList());
|
|
|
List<QrVariable> qrVariableList = qrVariableMapper.selectList(qrVariableQw);
|
|
|
if (CollectionUtils.isEmpty(qrVariableList)) {
|
|
|
throw new BusinessException("码格式变量不存在");
|
|
|
}
|
|
|
- if (qrVariableList.size() != req.getIds().size()) {
|
|
|
+ if (qrVariableList.size() != req.getParamNameList().size()) {
|
|
|
throw new BusinessException("部分码格式变量不存在");
|
|
|
}
|
|
|
|