update - 调整底层的 Mapper 文件命名
This commit is contained in:
parent
ffe866af91
commit
7932e6bf1b
@ -6,5 +6,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
@Mapper
|
@Mapper
|
||||||
public interface SystemDictDataMapper extends BaseMapper<BpmDictDataDO> {
|
public interface BpmDictDataMapper extends BaseMapper<BpmDictDataDO> {
|
||||||
}
|
}
|
||||||
@ -1,7 +1,7 @@
|
|||||||
package cn.axzo.workflow.core.service.impl;
|
package cn.axzo.workflow.core.service.impl;
|
||||||
|
|
||||||
import cn.axzo.workflow.core.repository.entity.BpmDictDataDO;
|
import cn.axzo.workflow.core.repository.entity.BpmDictDataDO;
|
||||||
import cn.axzo.workflow.core.repository.mapper.SystemDictDataMapper;
|
import cn.axzo.workflow.core.repository.mapper.BpmDictDataMapper;
|
||||||
import cn.axzo.workflow.core.service.BpmCategoryService;
|
import cn.axzo.workflow.core.service.BpmCategoryService;
|
||||||
import cn.axzo.workflow.core.service.converter.BpmCategoryConverter;
|
import cn.axzo.workflow.core.service.converter.BpmCategoryConverter;
|
||||||
import cn.axzo.workflow.core.service.dto.request.model.BpmCategoryDTO;
|
import cn.axzo.workflow.core.service.dto.request.model.BpmCategoryDTO;
|
||||||
@ -24,7 +24,7 @@ import java.util.stream.Collectors;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
public class BpmCategoryServiceImpl implements BpmCategoryService {
|
public class BpmCategoryServiceImpl implements BpmCategoryService {
|
||||||
@Resource
|
@Resource
|
||||||
private SystemDictDataMapper systemDictDataMapper;
|
private BpmDictDataMapper bpmDictDataMapper;
|
||||||
|
|
||||||
private final BpmCategoryConverter bpmCategoryConverter;
|
private final BpmCategoryConverter bpmCategoryConverter;
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ public class BpmCategoryServiceImpl implements BpmCategoryService {
|
|||||||
bpmDictDataDO.setLabel(createDTO.getLabel());
|
bpmDictDataDO.setLabel(createDTO.getLabel());
|
||||||
bpmDictDataDO.setValue(createDTO.getValue());
|
bpmDictDataDO.setValue(createDTO.getValue());
|
||||||
bpmDictDataDO.setRemark(createDTO.getRemark());
|
bpmDictDataDO.setRemark(createDTO.getRemark());
|
||||||
return systemDictDataMapper.insert(bpmDictDataDO);
|
return bpmDictDataMapper.insert(bpmDictDataDO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -46,12 +46,12 @@ public class BpmCategoryServiceImpl implements BpmCategoryService {
|
|||||||
bpmDictDataDO.setLabel(createDTO.getLabel());
|
bpmDictDataDO.setLabel(createDTO.getLabel());
|
||||||
bpmDictDataDO.setValue(createDTO.getValue());
|
bpmDictDataDO.setValue(createDTO.getValue());
|
||||||
bpmDictDataDO.setRemark(createDTO.getRemark());
|
bpmDictDataDO.setRemark(createDTO.getRemark());
|
||||||
return systemDictDataMapper.updateById(bpmDictDataDO);
|
return bpmDictDataMapper.updateById(bpmDictDataDO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int deleteBpmCategory(Long id) {
|
public int deleteBpmCategory(Long id) {
|
||||||
return systemDictDataMapper.deleteById(id);
|
return bpmDictDataMapper.deleteById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -61,7 +61,7 @@ public class BpmCategoryServiceImpl implements BpmCategoryService {
|
|||||||
.eq(StringUtils.isNotBlank(findDTO.getDictType()), BpmDictDataDO::getDictType, findDTO.getDictType())
|
.eq(StringUtils.isNotBlank(findDTO.getDictType()), BpmDictDataDO::getDictType, findDTO.getDictType())
|
||||||
.eq(StringUtils.isNotBlank(findDTO.getLabel()), BpmDictDataDO::getLabel, findDTO.getLabel());
|
.eq(StringUtils.isNotBlank(findDTO.getLabel()), BpmDictDataDO::getLabel, findDTO.getLabel());
|
||||||
|
|
||||||
List<BpmDictDataDO> bpmDictDataDO = systemDictDataMapper.selectList(queryWrapper);
|
List<BpmDictDataDO> bpmDictDataDO = bpmDictDataMapper.selectList(queryWrapper);
|
||||||
|
|
||||||
List<BpmCategoryItemVo> categoryVOS = bpmDictDataDO.stream().map(bpmCategoryConverter::toVo).collect(Collectors.toList());
|
List<BpmCategoryItemVo> categoryVOS = bpmDictDataDO.stream().map(bpmCategoryConverter::toVo).collect(Collectors.toList());
|
||||||
return categoryVOS;
|
return categoryVOS;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user