| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | public Map<String, List<?>> selectsStandardMethodByFLSSM(String tree) { |
| | | String[] trees = tree.split(" - "); |
| | | Map<String, List<?>> map = new HashMap<>(); |
| | | if(trees.length < 3) { |
| | | map.put("standardMethodList", null); |
| | | return map; |
| | | String str = ""; |
| | | List<StandardMethodList> standardMethodLists = new ArrayList<>(); |
| | | switch (trees.length){ |
| | | case 5: |
| | | str += "\"" + trees[2] + "\",\"" + trees[3] + "\",\"" + trees[4] + "\""; |
| | | break; |
| | | case 4: |
| | | str += "\"" + trees[2] + "\",\"" + trees[3] + "\""; |
| | | break; |
| | | case 3: |
| | | str += "\"" + trees[2] + "\""; |
| | | break; |
| | | default: |
| | | map.put("standardMethodList", null); |
| | | return map; |
| | | } |
| | | List<StandardMethodList> standardMethodLists = standardMethodListMapper.selectStandardMethodLists(trees[2]); |
| | | map.put("standardMethodList", standardMethodLists); |
| | | map.put("standardMethodList", standardMethodListMapper.selectStandardMethodLists(str)); |
| | | return map; |
| | | } |
| | | |
| | |
| | | public List<StandardMethodList> selectStandardMethodEnum() { |
| | | return standardMethodListMapper.selectList(Wrappers.<StandardMethodList>lambdaQuery().select(StandardMethodList::getId,StandardMethodList::getCode,StandardMethodList::getName)); |
| | | } |
| | | |
| | | } |
| | | |
| | | |