|
@@ -54,7 +54,6 @@ public class GubiTypeInfoServiceImpl implements IGubiTypeInfoService {
|
|
|
cacheComponent.delPrefixKey(Const.ADMIN_CONTRACTINFO);
|
|
|
cacheComponent.delPrefixKey(Const.ADMIN_BI_INFO);
|
|
|
}
|
|
|
-
|
|
|
@Override
|
|
|
public Boolean add(GubiTypeInfo gubiTypeInfo, Long adminId) throws ServiceException {
|
|
|
Date now = new Date();
|
|
@@ -95,6 +94,7 @@ public class GubiTypeInfoServiceImpl implements IGubiTypeInfoService {
|
|
|
wrapper.eq("admin_id", adminId);
|
|
|
}
|
|
|
wrapper.eq("delete_flag", 0);
|
|
|
+ wrapper.orderBy("postion");
|
|
|
List<GubiTypeInfo> list = gubiTypeInfoMapper.selectPage(new RowBounds((page - 1) * limit, limit), wrapper);
|
|
|
Integer count = gubiTypeInfoMapper.selectCount(wrapper);
|
|
|
return new Page<GubiTypeInfo>(list, page, limit, count);
|
|
@@ -104,29 +104,38 @@ public class GubiTypeInfoServiceImpl implements IGubiTypeInfoService {
|
|
|
List<GubiTypeInfo> list = gubiTypeInfoMapper.selectList(new EntityWrapper<GubiTypeInfo>()
|
|
|
.eq("delete_flag", "0")
|
|
|
.orderBy("postion"));
|
|
|
+ if (!CollectionUtils.isEmpty(list)) {
|
|
|
+ for (int i = 0; i < list.size(); i++) {
|
|
|
+ List<GubiTypeSecond> gubiTypeSeconds = gubiTypeSecondMapper.selectList(new EntityWrapper<GubiTypeSecond>()
|
|
|
+ .eq("type_id", list.get(i).getId())
|
|
|
+ .eq("delete_flag", "0")
|
|
|
+ .orderBy("postion"));
|
|
|
+ if (!CollectionUtils.isEmpty(gubiTypeSeconds)) {
|
|
|
+ for (int k = 0; k < gubiTypeSeconds.size(); k++) {
|
|
|
+ List<GubiTypeThree> gubiTypeThrees = gubiTypeThreeMapper.selectList(new EntityWrapper<GubiTypeThree>()
|
|
|
+ .eq("second_id", gubiTypeSeconds.get(k).getId())
|
|
|
+ .eq("delete_flag", "0")
|
|
|
+ .orderBy("postion"));
|
|
|
+ gubiTypeSeconds.get(k).setChildren(gubiTypeThrees);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ list.get(i).setChildren(gubiTypeSeconds);
|
|
|
+ }
|
|
|
|
|
|
+ }
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public List<GubiTypeSecond> gubiTypeSeconds(String typeId) throws ServiceException {
|
|
|
- List<GubiTypeSecond> gubiTypeSeconds = gubiTypeSecondMapper.selectList(new EntityWrapper<GubiTypeSecond>()
|
|
|
- .eq("type_id", typeId)
|
|
|
- .eq("delete_flag", "0")
|
|
|
- .orderBy("postion"));
|
|
|
- return gubiTypeSeconds;
|
|
|
+ return null;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- public List<GubiTypeThree> listThreeInfo(String secondId) {
|
|
|
- List<GubiTypeThree> gubiTypeThrees = gubiTypeThreeMapper.selectList(new EntityWrapper<GubiTypeThree>()
|
|
|
- .eq("second_id", secondId)
|
|
|
- .eq("delete_flag", "0")
|
|
|
- .orderBy("postion"));
|
|
|
- return gubiTypeThrees;
|
|
|
+ @Override
|
|
|
+ public List<GubiTypeThree> listThreeInfo(String secondId) throws ServiceException {
|
|
|
+ return null;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public Boolean delete(String id) {
|