|
@@ -64,7 +64,7 @@ public class SbPositionServiceImpl extends BaseServiceImpl<SbPositionMapper, SbP
|
|
|
// 获取父级
|
|
|
String parentId = model.getParentId();
|
|
|
SbPosition parent = null;
|
|
|
- if (StringUtils.isNotBlank(parentId)) {
|
|
|
+ /*if (StringUtils.isNotBlank(parentId)) {
|
|
|
parent = mapper.selectByPrimaryKeyForUpdate(parentId);
|
|
|
Weekend<SbPosition> weekendCount = new Weekend<>(SbPosition.class);
|
|
|
WeekendCriteria<SbPosition, Object> weekendCriteriaCount = weekendCount.weekendCriteria();
|
|
@@ -80,7 +80,7 @@ public class SbPositionServiceImpl extends BaseServiceImpl<SbPositionMapper, SbP
|
|
|
int i = mapper.selectCountByExample(weekendCount);
|
|
|
String code = IdGeneratorUtils.getStrNum("", ++i);
|
|
|
model.setCode(code);
|
|
|
- }
|
|
|
+ }*/
|
|
|
SbPosition sbPosition = super.saveModelByDTO(model);
|
|
|
if (parent != null) {
|
|
|
mapper.updateByPrimaryKeySelective(new SbPosition().setId(parentId).setUpdateTime(LocalDateTime.now()));
|