动态表单动态操作 功能优化

yun-zuoyi
wei.peng 6 years ago
parent fe2372ad33
commit 97c78467e2

@ -205,7 +205,7 @@ public class SysUserController extends CoreBaseController{
ValidatorBean.checkNotZero(status, "用户状态不能为空"); ValidatorBean.checkNotZero(status, "用户状态不能为空");
sysUserService.updateSysUserStatus(Long.parseLong(id), status, AuthUtil.getSessionUser()); sysUserService.updateSysUserStatus(Long.parseLong(id), status, AuthUtil.getSessionUser());
return new ResultBean(true); return ResultBean.success("操作成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
} catch (ImppBusiException busExcep) { } catch (ImppBusiException busExcep) {
return ResultBean.fail(busExcep); return ResultBean.fail(busExcep);
} catch (Exception e) { } catch (Exception e) {
@ -320,7 +320,7 @@ public class SysUserController extends CoreBaseController{
ValidatorBean.checkNotNull(id, "用户id 不能为空"); ValidatorBean.checkNotNull(id, "用户id 不能为空");
sysUserService.deleteSysUserById(Long.parseLong(id)); sysUserService.deleteSysUserById(Long.parseLong(id));
return ResultBean.success().setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()); return ResultBean.success("操作成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
} catch (ImppBusiException busExcep) { } catch (ImppBusiException busExcep) {
return ResultBean.fail(busExcep); return ResultBean.fail(busExcep);
} catch (Exception e) { } catch (Exception e) {
@ -347,8 +347,7 @@ public class SysUserController extends CoreBaseController{
} }
sysUserService.deleteBatchSysUserById(StringTool.getArrayLong(ids),AuthUtil.getSessionUser()); sysUserService.deleteBatchSysUserById(StringTool.getArrayLong(ids),AuthUtil.getSessionUser());
return ResultBean.success("操作成功") return ResultBean.success("操作成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
}catch(ImppBusiException busExcep){ }catch(ImppBusiException busExcep){
return ResultBean.fail(busExcep); return ResultBean.fail(busExcep);
}catch(Exception e){ }catch(Exception e){
@ -546,7 +545,7 @@ public class SysUserController extends CoreBaseController{
sysUser.setOrganizeId(Long.parseLong(organizeIdStr)); sysUser.setOrganizeId(Long.parseLong(organizeIdStr));
sysUserService.updateSysUser(sysUser); sysUserService.updateSysUser(sysUser);
return null; return ResultBean.success("操作成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
} catch (ImppBusiException busExcep) { } catch (ImppBusiException busExcep) {
return ResultBean.fail(busExcep); return ResultBean.fail(busExcep);
} catch (Exception e) { } catch (Exception e) {

@ -17,9 +17,7 @@ import cn.estsh.i3plus.pojo.platform.sqlpack.CoreHqlPack;
import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder; import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder;
import cn.estsh.impp.framework.boot.fastdfs.FastDFSClient; import cn.estsh.impp.framework.boot.fastdfs.FastDFSClient;
import cn.estsh.impp.framework.boot.fastdfs.FastDFSFile; import cn.estsh.impp.framework.boot.fastdfs.FastDFSFile;
import com.mchange.lang.IntegerUtils;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.apache.commons.beanutils.BeanUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;

Loading…
Cancel
Save