.
This commit is contained in:
@@ -67,7 +67,7 @@ public class ConfigController extends BaseController {
|
||||
@ApiImplicitParam(name = "id", value = "参数id", required = true)
|
||||
public HttpResult<Config> getSysConfigById(@RequestParam("id") String id) {
|
||||
String methodDescribe = getMethodDescribe("getSysConfigById");
|
||||
LogUtil.njcnDebug(log, "{}", methodDescribe, methodDescribe);
|
||||
LogUtil.njcnDebug(log, "{}", methodDescribe, id);
|
||||
Config config = iConfigService.getById(id);
|
||||
if (Objects.isNull(config)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe);
|
||||
@@ -83,7 +83,7 @@ public class ConfigController extends BaseController {
|
||||
@ApiImplicitParam(name = "id", value = "参数id", required = true)
|
||||
public HttpResult<Config> removeSysConfigById(@RequestParam("id") String id) {
|
||||
String methodDescribe = getMethodDescribe("removeSysConfigById");
|
||||
LogUtil.njcnDebug(log, "{}", methodDescribe, methodDescribe);
|
||||
LogUtil.njcnDebug(log, "{}", methodDescribe, id);
|
||||
boolean res = iConfigService.update( new UpdateWrapper<Config>().eq("sys_config.Id", id)
|
||||
.set("sys_config.State", DataStateEnum.DELETED.getCode()));
|
||||
if (res) {
|
||||
@@ -100,6 +100,7 @@ public class ConfigController extends BaseController {
|
||||
@ApiImplicitParam(name = "configParam", value = "新增配置实体", required = true)
|
||||
public HttpResult addSysConfig(@RequestBody @Validated ConfigParam configParam) {
|
||||
String methodDescribe = getMethodDescribe("addSysConfig");
|
||||
LogUtil.njcnDebug(log, "{}", methodDescribe, configParam);
|
||||
boolean res = iConfigService.addSysConfig(configParam);
|
||||
if (res) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
@@ -115,6 +116,7 @@ public class ConfigController extends BaseController {
|
||||
@ApiImplicitParam(name = "configUpdateParam", value = "更新配置实体", required = true)
|
||||
public HttpResult updateSysConfig(@RequestBody @Validated ConfigParam.ConfigUpdateParam configUpdateParam) {
|
||||
String methodDescribe = getMethodDescribe("updateSysConfig");
|
||||
LogUtil.njcnDebug(log, "{}", methodDescribe, configUpdateParam);
|
||||
boolean res = iConfigService.updateSysConfig(configUpdateParam);
|
||||
if (res) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
|
||||
@@ -58,7 +58,7 @@ public class DeptMapController extends BaseController {
|
||||
@ApiImplicitParam(name = "id", value = "参数id", required = true)
|
||||
public HttpResult<DeptConfigVO> getDeptMapConfigById(@RequestParam("id") String id) {
|
||||
String methodDescribe = getMethodDescribe("getDeptMapConfigById");
|
||||
LogUtil.njcnDebug(log, "{}", methodDescribe, methodDescribe);
|
||||
LogUtil.njcnDebug(log, "{}", methodDescribe, id);
|
||||
DeptConfigVO result = deptMapService.getDeptMapConfigById(id);
|
||||
if (Objects.isNull(result)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe);
|
||||
@@ -73,7 +73,7 @@ public class DeptMapController extends BaseController {
|
||||
@ApiImplicitParam(name = "deptId", value = "部门id", required = true)
|
||||
public HttpResult<DeptConfigVO> getConfigByDeptId(@RequestParam("deptId") String deptId) {
|
||||
String methodDescribe = getMethodDescribe("getConfigByDeptId");
|
||||
LogUtil.njcnDebug(log, "{}", methodDescribe, methodDescribe);
|
||||
LogUtil.njcnDebug(log, "{}", methodDescribe, deptId);
|
||||
DeptConfigVO result = deptMapService.getConfigByDeptId(deptId);
|
||||
if (Objects.isNull(result)) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe);
|
||||
@@ -88,6 +88,7 @@ public class DeptMapController extends BaseController {
|
||||
@ApiImplicitParam(name = "deptConfigParam", value = "新增配置实体", required = true)
|
||||
public HttpResult addDeptMapConfig(@RequestBody @Validated DeptConfigParam deptConfigParam) {
|
||||
String methodDescribe = getMethodDescribe("addDeptMapConfig");
|
||||
LogUtil.njcnDebug(log, "{}", methodDescribe, deptConfigParam);
|
||||
boolean res = deptMapService.addDeptMapConfig(deptConfigParam);
|
||||
if (res) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
@@ -102,7 +103,7 @@ public class DeptMapController extends BaseController {
|
||||
@ApiImplicitParam(name = "deptConfigUpdateParam", value = "修改配置实体", required = true)
|
||||
public HttpResult updateDeptMapConfigById(@RequestBody @Validated DeptConfigParam.DeptConfigUpdateParam deptConfigUpdateParam) {
|
||||
String methodDescribe = getMethodDescribe("updateDeptMapConfigById");
|
||||
LogUtil.njcnDebug(log, "{}", methodDescribe, methodDescribe);
|
||||
LogUtil.njcnDebug(log, "{}", methodDescribe, deptConfigUpdateParam);
|
||||
boolean res = deptMapService.updateDeptMapConfigById(deptConfigUpdateParam);
|
||||
if (res) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
@@ -117,7 +118,7 @@ public class DeptMapController extends BaseController {
|
||||
@ApiImplicitParam(name = "id", value = "参数id", required = true)
|
||||
public HttpResult removeDeptMapConfigById(@RequestParam("id") String id) {
|
||||
String methodDescribe = getMethodDescribe("removeDeptMapConfigById");
|
||||
LogUtil.njcnDebug(log, "{}", methodDescribe, methodDescribe);
|
||||
LogUtil.njcnDebug(log, "{}", methodDescribe, id);
|
||||
boolean res = deptMapService.removeDeptMapConfigById(id);
|
||||
if (res) {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
|
||||
Reference in New Issue
Block a user