update - 调整底层的 Mapper 文件命名

This commit is contained in:
wangli 2023-07-07 18:08:54 +08:00
parent ffe866af91
commit 7932e6bf1b
2 changed files with 7 additions and 7 deletions

View File

@ -6,5 +6,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SystemDictDataMapper extends BaseMapper<BpmDictDataDO> {
public interface BpmDictDataMapper extends BaseMapper<BpmDictDataDO> {
}

View File

@ -1,7 +1,7 @@
package cn.axzo.workflow.core.service.impl;
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.converter.BpmCategoryConverter;
import cn.axzo.workflow.core.service.dto.request.model.BpmCategoryDTO;
@ -24,7 +24,7 @@ import java.util.stream.Collectors;
@Slf4j
public class BpmCategoryServiceImpl implements BpmCategoryService {
@Resource
private SystemDictDataMapper systemDictDataMapper;
private BpmDictDataMapper bpmDictDataMapper;
private final BpmCategoryConverter bpmCategoryConverter;
@ -35,7 +35,7 @@ public class BpmCategoryServiceImpl implements BpmCategoryService {
bpmDictDataDO.setLabel(createDTO.getLabel());
bpmDictDataDO.setValue(createDTO.getValue());
bpmDictDataDO.setRemark(createDTO.getRemark());
return systemDictDataMapper.insert(bpmDictDataDO);
return bpmDictDataMapper.insert(bpmDictDataDO);
}
@Override
@ -46,12 +46,12 @@ public class BpmCategoryServiceImpl implements BpmCategoryService {
bpmDictDataDO.setLabel(createDTO.getLabel());
bpmDictDataDO.setValue(createDTO.getValue());
bpmDictDataDO.setRemark(createDTO.getRemark());
return systemDictDataMapper.updateById(bpmDictDataDO);
return bpmDictDataMapper.updateById(bpmDictDataDO);
}
@Override
public int deleteBpmCategory(Long id) {
return systemDictDataMapper.deleteById(id);
return bpmDictDataMapper.deleteById(id);
}
@Override
@ -61,7 +61,7 @@ public class BpmCategoryServiceImpl implements BpmCategoryService {
.eq(StringUtils.isNotBlank(findDTO.getDictType()), BpmDictDataDO::getDictType, findDTO.getDictType())
.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());
return categoryVOS;