|
|
@@ -1,6 +1,9 @@
|
|
|
package org.dromara.backstage.basics.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.convert.Convert;
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import org.dromara.common.core.utils.MapstructUtils;
|
|
|
+import org.dromara.common.core.utils.SpringUtils;
|
|
|
import org.dromara.common.core.utils.StringUtils;
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
@@ -15,6 +18,7 @@ import org.dromara.backstage.basics.domain.PtMealtype;
|
|
|
import org.dromara.backstage.basics.mapper.PtMealtypeMapper;
|
|
|
import org.dromara.backstage.basics.service.IPtMealtypeService;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.Collection;
|
|
|
@@ -128,4 +132,17 @@ public class PtMealtypeServiceImpl implements IPtMealtypeService {
|
|
|
}
|
|
|
return baseMapper.deleteByIds(ids) > 0;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String selectMealTypeNameByIds(String ids) {
|
|
|
+ List<String> list = new ArrayList<>();
|
|
|
+ for (Long id : StringUtils.splitTo(ids, Convert::toLong)) {
|
|
|
+// PtMealtypeVo vo = SpringUtils.getAopProxy(this).queryById(id);
|
|
|
+ PtMealtypeVo vo = baseMapper.selectVoById(id);
|
|
|
+ if (ObjectUtil.isNotNull(vo)) {
|
|
|
+ list.add(vo.getMealName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return String.join(StringUtils.SEPARATOR, list);
|
|
|
+ }
|
|
|
}
|