|
|
@ -69,7 +69,7 @@ public class SysMappingService extends MybatisBaseService<SysMappingMapper, SysM |
|
|
|
public QueryWrapper<SysMappingVo> queryWrapper(SysMappingQuery query) { |
|
|
|
QueryWrapper<SysMappingVo> qw = new QueryWrapper<>(); |
|
|
|
if (StringUtils.isNotBlank(query.getMap_sourceKey())) { |
|
|
|
qw.eq("sm.map_sourceKey", query.getMap_sourceKey()); |
|
|
|
qw.like("sm.map_sourceKey", query.getMap_sourceKey()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(query.getMap_sourceValue())) { |
|
|
|
qw.like("sm.map_sourceValue", query.getMap_sourceValue()); |
|
|
@ -81,22 +81,22 @@ public class SysMappingService extends MybatisBaseService<SysMappingMapper, SysM |
|
|
|
qw.like("sm.map_item", query.getMap_item()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(query.getMap_itemKey())) { |
|
|
|
qw.eq("sm.map_itemKey", query.getMap_itemKey()); |
|
|
|
qw.like("sm.map_itemKey", query.getMap_itemKey()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(query.getMap_itemValue())) { |
|
|
|
qw.like("sm.map_itemValue", query.getMap_itemValue()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(query.getDictTypeCode())) { |
|
|
|
qw.eq("dc.dictKey", query.getDictTypeCode()); |
|
|
|
qw.like("dt.dictTypeCode", query.getDictTypeCode()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(query.getDictTypeName())) { |
|
|
|
qw.like("dc.dictValue", query.getDictTypeName()); |
|
|
|
qw.like("dt.dictTypeName", query.getDictTypeName()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(query.getDictKey())) { |
|
|
|
qw.eq("dt.dictTypeCode", query.getDictKey()); |
|
|
|
qw.like("dc.dictKey", query.getDictKey()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(query.getDictValue())) { |
|
|
|
qw.like("dt.dictTypeName", query.getDictValue()); |
|
|
|
qw.like("dc.dictValue", query.getDictValue()); |
|
|
|
} |
|
|
|
return qw; |
|
|
|
} |
|
|
@ -137,7 +137,7 @@ public class SysMappingService extends MybatisBaseService<SysMappingMapper, SysM |
|
|
|
public void saveMappingList(List<SysMappingDto> dto) { |
|
|
|
for (SysMappingDto sysMappingDto : dto) { |
|
|
|
SysMapping entity = new SysMapping(); |
|
|
|
BeanUtil.copyProperties(sysMappingDto, entity, "sid"); |
|
|
|
BeanUtil.copyProperties(sysMappingDto, entity); |
|
|
|
entity.setCreateBySid(sysMappingDto.getUserSid()); |
|
|
|
save(entity); |
|
|
|
} |
|
|
|