新增字典接口,调整国密经济行业分类字典
This commit is contained in:
parent
3d3981e237
commit
94cc2e964c
|
|
@ -27,13 +27,11 @@ import java.util.Set;
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping(Constants.API_PREFIX + Constants.ApiIndustryCategoryPrefixes.SYSTEM)
|
@RequestMapping(Constants.API_PREFIX + Constants.ApiIndustryCategoryPrefixes.SYSTEM)
|
||||||
public class DictController {
|
public class DictController {
|
||||||
private static final String DICT_URI = "/dicts";
|
|
||||||
private static final String DICT_SINGLE_URI = DICT_URI + "/{dictId}";
|
private static final String DICT_SINGLE_URI = DICT_URI + "/{dictId}";
|
||||||
private static final String DICT_ITEM_URI = "/dictItems";
|
private static final String DICT_ITEM_URI = "/dictItems";
|
||||||
private static final String DICT_ITEM_SINGLE_URI = DICT_ITEM_URI + "/{dictItemId}";
|
private static final String DICT_ITEM_SINGLE_URI = DICT_ITEM_URI + "/{dictItemId}";
|
||||||
private static final String DICT_ITEM_LIST_URI = DICT_ITEM_URI + "/list";
|
private static final String DICT_ITEM_LIST_URI = DICT_ITEM_URI + "/list";
|
||||||
private final DictService dictService;
|
private final DictService dictService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public DictController(DictService dictService) {
|
public DictController(DictService dictService) {
|
||||||
this.dictService = dictService;
|
this.dictService = dictService;
|
||||||
|
|
|
||||||
|
|
@ -240,18 +240,6 @@ public class DictService {
|
||||||
dictItemRepo.delete(dictItem);
|
dictItemRepo.delete(dictItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除字典项通过字典ID
|
|
||||||
*
|
|
||||||
* @param dictId 字典ID
|
|
||||||
*/
|
|
||||||
@Transactional
|
|
||||||
public void removeDictItemsByDictId(String dictId) {
|
|
||||||
DictItem dictItem = new DictItem();
|
|
||||||
Dict dict = new Dict();
|
|
||||||
dict.setDictId(dictId);
|
|
||||||
dictItem.setDict(dict);
|
|
||||||
dictItemRepo.delete(dictItem);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue