| | |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.Date; |
| | | import java.util.Map; |
| | | import java.util.UUID; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * @description: |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, String> getByChartId(String chartId) { |
| | | Map<String, String> result = new HashMap<>(); |
| | | Map<String, Object> params = new HashMap<String, Object>(1); |
| | | params.put("chartId", chartId); |
| | | List<ChartParamEntity> list = baseDao.selectList(getWrapper(params)); |
| | | if (CollectionUtils.isEmpty(list)) { |
| | | return result; |
| | | } |
| | | list.forEach(item -> { |
| | | result.put(item.getParamCode(), item.getParamValue()); |
| | | }); |
| | | return result; |
| | | } |
| | | |
| | | @Override |
| | | public void delete(String id) { |
| | | baseDao.deleteById(id); |
| | | } |