com.ruoyi.system.domain.SysDictData Java Examples

The following examples show how to use com.ruoyi.system.domain.SysDictData. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SysDictDataController.java    From ruoyiplus with MIT License 5 votes vote down vote up
/**
 * 新增保存字典类型
 */
@Log(title = "字典数据", businessType = BusinessType.INSERT)
@RequiresPermissions("system:dict:add")
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(SysDictData dict)
{
    dict.setCreateBy(ShiroUtils.getLoginName());
    return toAjax(dictDataService.insertDictData(dict));
}
 
Example #2
Source File: SysDictDataController.java    From supplierShop with MIT License 5 votes vote down vote up
/**
 * 新增保存字典类型
 */
@Log(title = "字典数据", businessType = BusinessType.INSERT)
@RequiresPermissions("system:dict:add")
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(@Validated SysDictData dict)
{
    dict.setCreateBy(ShiroUtils.getLoginName());
    return toAjax(dictDataService.insertDictData(dict));
}
 
Example #3
Source File: SysDictDataController.java    From supplierShop with MIT License 5 votes vote down vote up
@Log(title = "字典数据", businessType = BusinessType.EXPORT)
@RequiresPermissions("system:dict:export")
@PostMapping("/export")
@ResponseBody
public AjaxResult export(SysDictData dictData)
{
    List<SysDictData> list = dictDataService.selectDictDataList(dictData);
    ExcelUtil<SysDictData> util = new ExcelUtil<SysDictData>(SysDictData.class);
    return util.exportExcel(list, "字典数据");
}
 
Example #4
Source File: SysDictDataController.java    From supplierShop with MIT License 5 votes vote down vote up
/**
 * 修改保存字典类型
 */
@Log(title = "字典数据", businessType = BusinessType.UPDATE)
@RequiresPermissions("system:dict:edit")
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(@Validated SysDictData dict)
{
    dict.setUpdateBy(ShiroUtils.getLoginName());
    return toAjax(dictDataService.updateDictData(dict));
}
 
Example #5
Source File: SysDictDataController.java    From ruoyiplus with MIT License 5 votes vote down vote up
/**
 * 修改保存字典类型
 */
@Log(title = "字典数据", businessType = BusinessType.UPDATE)
@RequiresPermissions("system:dict:edit")
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(SysDictData dict)
{
    dict.setUpdateBy(ShiroUtils.getLoginName());
    return toAjax(dictDataService.updateDictData(dict));
}
 
Example #6
Source File: SysDictDataController.java    From ruoyiplus with MIT License 5 votes vote down vote up
@Log(title = "字典数据", businessType = BusinessType.EXPORT)
@RequiresPermissions("system:dict:export")
@PostMapping("/export")
@ResponseBody
public AjaxResult export(SysDictData dictData)
{
    List<SysDictData> list = dictDataService.selectDictDataList(dictData);
    ExcelUtil<SysDictData> util = new ExcelUtil<SysDictData>(SysDictData.class);
    return util.exportExcel(list, "字典数据");
}
 
Example #7
Source File: SysDictDataController.java    From RuoYi with Apache License 2.0 5 votes vote down vote up
@Log(title = "数据字典", businessType = BusinessType.EXPORT)
@RequiresPermissions("system:dict:export")
@PostMapping("/export")
@ResponseBody
public AjaxResult export(SysDictData dictData) {
    List<SysDictData> list = dictDataService.selectDictDataList(dictData);
    ExcelUtil<SysDictData> util = new ExcelUtil<>(SysDictData.class);
    return util.exportExcel(list, "数据字典");
}
 
Example #8
Source File: SysDictDataController.java    From RuoYi with Apache License 2.0 5 votes vote down vote up
/**
 * 新增保存字典类型
 */
@Log(title = "字典数据", businessType = BusinessType.INSERT)
@RequiresPermissions("system:dict:add")
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(SysDictData dict) {
    dict.setCreateBy(ShiroUtils.getLoginName());
    return toAjax(dictDataService.insertDictData(dict));
}
 
Example #9
Source File: SysDictDataController.java    From RuoYi with Apache License 2.0 5 votes vote down vote up
/**
 * 修改保存字典类型
 */
@Log(title = "字典数据", businessType = BusinessType.UPDATE)
@RequiresPermissions("system:dict:edit")
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(SysDictData dict) {
    dict.setUpdateBy(ShiroUtils.getLoginName());
    return toAjax(dictDataService.updateDictData(dict));
}
 
Example #10
Source File: SysDictDataMapper.java    From ruoyiplus with MIT License 2 votes vote down vote up
/**
 * 新增字典数据信息
 * 
 * @param dictData 字典数据信息
 * @return 结果
 */
public int insertDictData(SysDictData dictData);
 
Example #11
Source File: SysDictDataMapper.java    From ruoyiplus with MIT License 2 votes vote down vote up
/**
 * 修改字典数据信息
 * 
 * @param dictData 字典数据信息
 * @return 结果
 */
public int updateDictData(SysDictData dictData);
 
Example #12
Source File: SysDictDataMapper.java    From ruoyiplus with MIT License 2 votes vote down vote up
/**
 * 根据字典数据ID查询信息
 * 
 * @param dictCode 字典数据ID
 * @return 字典数据
 */
public SysDictData selectDictDataById(Long dictCode);
 
Example #13
Source File: SysDictDataMapper.java    From ruoyiplus with MIT License 2 votes vote down vote up
/**
 * 根据字典类型查询字典数据
 * 
 * @param dictType 字典类型
 * @return 字典数据集合信息
 */
public List<SysDictData> selectDictDataByType(String dictType);
 
Example #14
Source File: SysDictDataServiceImpl.java    From ruoyiplus with MIT License 2 votes vote down vote up
/**
 * 新增保存字典数据信息
 * 
 * @param dictData 字典数据信息
 * @return 结果
 */
@Override
public int insertDictData(SysDictData dictData)
{
    return dictDataMapper.insertDictData(dictData);
}
 
Example #15
Source File: DictService.java    From RuoYi with Apache License 2.0 2 votes vote down vote up
/**
 * 根据字典类型查询字典数据信息
 *
 * @param dictType 字典类型
 * @return 参数键值
 */
public List<SysDictData> getType(String dictType) {
    return dictDataService.selectDictDataByType(dictType);
}
 
Example #16
Source File: ISysDictDataService.java    From RuoYi with Apache License 2.0 2 votes vote down vote up
/**
 * 根据条件分页查询字典数据
 *
 * @param dictData 字典数据信息
 * @return 字典数据集合信息
 */
List<SysDictData> selectDictDataList(SysDictData dictData);
 
Example #17
Source File: ISysDictDataService.java    From RuoYi with Apache License 2.0 2 votes vote down vote up
/**
 * 根据字典类型查询字典数据
 *
 * @param dictType 字典类型
 * @return 字典数据集合信息
 */
List<SysDictData> selectDictDataByType(String dictType);
 
Example #18
Source File: ISysDictDataService.java    From RuoYi with Apache License 2.0 2 votes vote down vote up
/**
 * 根据字典数据ID查询信息
 *
 * @param dictCode 字典数据ID
 * @return 字典数据
 */
SysDictData selectDictDataById(Long dictCode);
 
Example #19
Source File: ISysDictDataService.java    From RuoYi with Apache License 2.0 2 votes vote down vote up
/**
 * 新增保存字典数据信息
 *
 * @param dictData 字典数据信息
 * @return 结果
 */
int insertDictData(SysDictData dictData);
 
Example #20
Source File: ISysDictDataService.java    From RuoYi with Apache License 2.0 2 votes vote down vote up
/**
 * 修改保存字典数据信息
 *
 * @param dictData 字典数据信息
 * @return 结果
 */
int updateDictData(SysDictData dictData);
 
Example #21
Source File: SysDictDataServiceImpl.java    From RuoYi with Apache License 2.0 2 votes vote down vote up
/**
 * 根据条件分页查询字典数据
 *
 * @param dictData 字典数据信息
 * @return 字典数据集合信息
 */
@Override
public List<SysDictData> selectDictDataList(SysDictData dictData) {
    return dictDataMapper.selectDictDataList(dictData);
}
 
Example #22
Source File: SysDictDataServiceImpl.java    From RuoYi with Apache License 2.0 2 votes vote down vote up
/**
 * 根据字典类型查询字典数据
 *
 * @param dictType 字典类型
 * @return 字典数据集合信息
 */
@Override
public List<SysDictData> selectDictDataByType(String dictType) {
    return dictDataMapper.selectDictDataByType(dictType);
}
 
Example #23
Source File: SysDictDataServiceImpl.java    From RuoYi with Apache License 2.0 2 votes vote down vote up
/**
 * 根据字典数据ID查询信息
 *
 * @param dictCode 字典数据ID
 * @return 字典数据
 */
@Override
public SysDictData selectDictDataById(Long dictCode) {
    return dictDataMapper.selectDictDataById(dictCode);
}
 
Example #24
Source File: SysDictDataServiceImpl.java    From RuoYi with Apache License 2.0 2 votes vote down vote up
/**
 * 新增保存字典数据信息
 *
 * @param dictData 字典数据信息
 * @return 结果
 */
@Override
public int insertDictData(SysDictData dictData) {
    return dictDataMapper.insertDictData(dictData);
}
 
Example #25
Source File: SysDictDataServiceImpl.java    From RuoYi with Apache License 2.0 2 votes vote down vote up
/**
 * 修改保存字典数据信息
 *
 * @param dictData 字典数据信息
 * @return 结果
 */
@Override
public int updateDictData(SysDictData dictData) {
    return dictDataMapper.updateDictData(dictData);
}
 
Example #26
Source File: SysDictDataMapper.java    From RuoYi with Apache License 2.0 2 votes vote down vote up
/**
 * 根据条件分页查询字典数据
 *
 * @param dictData 字典数据信息
 * @return 字典数据集合信息
 */
List<SysDictData> selectDictDataList(SysDictData dictData);
 
Example #27
Source File: SysDictDataMapper.java    From RuoYi with Apache License 2.0 2 votes vote down vote up
/**
 * 根据字典类型查询字典数据
 *
 * @param dictType 字典类型
 * @return 字典数据集合信息
 */
List<SysDictData> selectDictDataByType(String dictType);
 
Example #28
Source File: SysDictDataMapper.java    From RuoYi with Apache License 2.0 2 votes vote down vote up
/**
 * 根据字典数据ID查询信息
 *
 * @param dictCode 字典数据ID
 * @return 字典数据
 */
SysDictData selectDictDataById(Long dictCode);
 
Example #29
Source File: SysDictDataMapper.java    From RuoYi with Apache License 2.0 2 votes vote down vote up
/**
 * 新增字典数据信息
 *
 * @param dictData 字典数据信息
 * @return 结果
 */
int insertDictData(SysDictData dictData);
 
Example #30
Source File: SysDictDataMapper.java    From RuoYi with Apache License 2.0 2 votes vote down vote up
/**
 * 修改字典数据信息
 *
 * @param dictData 字典数据信息
 * @return 结果
 */
int updateDictData(SysDictData dictData);