Java Code Examples for org.jeecg.modules.system.entity.SysDict#setDelFlag()

The following examples show how to use org.jeecg.modules.system.entity.SysDict#setDelFlag() . 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: SysDictController.java    From jeecg-cloud with Apache License 2.0 6 votes vote down vote up
/**
 * @功能:新增
 * @param sysDict
 * @return
 */
//@RequiresRoles({"admin"})
@RequestMapping(value = "/add", method = RequestMethod.POST)
public Result<SysDict> add(@RequestBody SysDict sysDict) {
	Result<SysDict> result = new Result<SysDict>();
	try {
		sysDict.setCreateTime(new Date());
		sysDict.setDelFlag(CommonConstant.DEL_FLAG_0);
		sysDictService.save(sysDict);
		result.success("保存成功!");
	} catch (Exception e) {
		log.error(e.getMessage(),e);
		result.error500("操作失败");
	}
	return result;
}
 
Example 2
Source File: SysDictController.java    From jeecg-boot with Apache License 2.0 6 votes vote down vote up
/**
 * @功能:新增
 * @param sysDict
 * @return
 */
//@RequiresRoles({"admin"})
@RequestMapping(value = "/add", method = RequestMethod.POST)
public Result<SysDict> add(@RequestBody SysDict sysDict) {
	Result<SysDict> result = new Result<SysDict>();
	try {
		sysDict.setCreateTime(new Date());
		sysDict.setDelFlag(CommonConstant.DEL_FLAG_0);
		sysDictService.save(sysDict);
		result.success("保存成功!");
	} catch (Exception e) {
		log.error(e.getMessage(),e);
		result.error500("操作失败");
	}
	return result;
}
 
Example 3
Source File: SysDictController.java    From jeecg-boot-with-activiti with MIT License 5 votes vote down vote up
/**
 * @功能:新增
 * @param sysDict
 * @return
 */
@RequestMapping(value = "/add", method = RequestMethod.POST)
public Result<SysDict> add(@RequestBody SysDict sysDict) {
	Result<SysDict> result = new Result<SysDict>();
	try {
		sysDict.setCreateTime(new Date());
		sysDict.setDelFlag(CommonConstant.DEL_FLAG_0);
		sysDictService.save(sysDict);
		result.success("保存成功!");
	} catch (Exception e) {
		log.error(e.getMessage(),e);
		result.error500("操作失败");
	}
	return result;
}
 
Example 4
Source File: SysDictController.java    From teaching with Apache License 2.0 5 votes vote down vote up
/**
 * @功能:新增
 * @param sysDict
 * @return
 */
@RequestMapping(value = "/add", method = RequestMethod.POST)
public Result<SysDict> add(@RequestBody SysDict sysDict) {
	Result<SysDict> result = new Result<SysDict>();
	try {
		sysDict.setCreateTime(new Date());
		sysDict.setDelFlag(CommonConstant.DEL_FLAG_0);
		sysDictService.save(sysDict);
		result.success("保存成功!");
	} catch (Exception e) {
		log.error(e.getMessage(),e);
		result.error500("操作失败");
	}
	return result;
}
 
Example 5
Source File: SysDictServiceImpl.java    From jeecg-cloud with Apache License 2.0 4 votes vote down vote up
/**
 * 根据字典类型id删除关联表中其对应的数据
 */
@Override
public boolean deleteByDictId(SysDict sysDict) {
    sysDict.setDelFlag(CommonConstant.DEL_FLAG_1);
    return  this.updateById(sysDict);
}
 
Example 6
Source File: SysDictServiceImpl.java    From jeecg-boot-with-activiti with MIT License 4 votes vote down vote up
/**
 * 根据字典类型id删除关联表中其对应的数据
 */
@Override
public boolean deleteByDictId(SysDict sysDict) {
    sysDict.setDelFlag(CommonConstant.DEL_FLAG_1);
    return  this.updateById(sysDict);
}
 
Example 7
Source File: SysDictServiceImpl.java    From teaching with Apache License 2.0 4 votes vote down vote up
/**
 * 根据字典类型id删除关联表中其对应的数据
 */
@Override
public boolean deleteByDictId(SysDict sysDict) {
    sysDict.setDelFlag(CommonConstant.DEL_FLAG_1);
    return  this.updateById(sysDict);
}
 
Example 8
Source File: SysDictServiceImpl.java    From jeecg-boot with Apache License 2.0 4 votes vote down vote up
/**
 * 根据字典类型id删除关联表中其对应的数据
 */
@Override
public boolean deleteByDictId(SysDict sysDict) {
    sysDict.setDelFlag(CommonConstant.DEL_FLAG_1);
    return  this.updateById(sysDict);
}