|
@@ -98,7 +98,7 @@ public class QrRepertoryServiceImpl implements QrRepertoryService {
|
|
SaveQrRepertoryColumnReq qrRepertoryColumn;
|
|
SaveQrRepertoryColumnReq qrRepertoryColumn;
|
|
for (int i = 0; i < qrRepertoryColumnList.size(); i++) {
|
|
for (int i = 0; i < qrRepertoryColumnList.size(); i++) {
|
|
qrRepertoryColumn = qrRepertoryColumnList.get(i);
|
|
qrRepertoryColumn = qrRepertoryColumnList.get(i);
|
|
- if (QrRepertoryTypeEnum.SYSTEM_GENERATE.is(req.getType()) && qrRepertoryColumn.getQrFormatId() == null) {
|
|
|
|
|
|
+ if (QrRepertoryTypeEnum.SYSTEM_GENERATE.is(req.getType()) && null == qrRepertoryColumn.getQrFormatId()) {
|
|
throw new BusinessException("码格式为空");
|
|
throw new BusinessException("码格式为空");
|
|
}
|
|
}
|
|
if (!notRepeat.add(qrRepertoryColumn.getAlias())) {
|
|
if (!notRepeat.add(qrRepertoryColumn.getAlias())) {
|
|
@@ -119,7 +119,7 @@ public class QrRepertoryServiceImpl implements QrRepertoryService {
|
|
// 新增or修改
|
|
// 新增or修改
|
|
Long userId = userUtil.getUser().getId();
|
|
Long userId = userUtil.getUser().getId();
|
|
qrRepertory.setUpdateBy(userId);
|
|
qrRepertory.setUpdateBy(userId);
|
|
- if (qrRepertoryId != null) {
|
|
|
|
|
|
+ if (qrRepertoryId != null) {
|
|
qrRepertoryMapper.updateById(qrRepertory);
|
|
qrRepertoryMapper.updateById(qrRepertory);
|
|
// 逻辑删除码库的列
|
|
// 逻辑删除码库的列
|
|
qrRepertoryColumnMapper.deleteByQrRepertoryId(qrRepertoryId);
|
|
qrRepertoryColumnMapper.deleteByQrRepertoryId(qrRepertoryId);
|