| | |
| | | private static final String ANDROID = "ANDROID";
|
| | | private static final String IOS = "IOS";
|
| | | private static final String WEB = "WEB";
|
| | | private static final String WXMP = "WXMP";
|
| | |
|
| | | private static final Map<String, Integer> map = new HashMap<String, Integer>();
|
| | |
|
| | |
| | | map.put(ANDROID, 1);
|
| | | map.put(IOS, 2);
|
| | | map.put(WEB, 3);
|
| | | map.put(WXMP, 4);
|
| | | }
|
| | |
|
| | | @Override
|
| | | @Cacheable(value = "sysCache", key = "'getBusinessSystem-'+#platform+'-'+#packages")
|
| | | public BusinessSystem getBusinessSystem(String platform, String packages) {
|
| | | if (platform == null || packages == null) {
|
| | | return null;
|
| | |
| | | return list.get(0);
|
| | | }
|
| | |
|
| | | @Cacheable(value = "sysCache", key = "'getBusinessSystem-'+#platform+'-'+#packages")
|
| | | @Override
|
| | | public BusinessSystem getBusinessSystemCache(String platform, String packages) {
|
| | | return getBusinessSystem(platform, packages);
|