| | |
| | | plAction.plModifyUser = WebUtil.getCurrentUserId(); |
| | | plAction.plActionCls = StringUtils.defaultString(dto.getPlActionCls()); |
| | | plAction.plTypeType = StringUtils.defaultString(dto.getPlTypeType()); |
| | | plAction.plImage = StringUtils.defaultString(dto.getPlImage()); |
| | | boolean b = platformClientUtil.getUIService().savePLAction(plAction); |
| | | if(!b){ |
| | | throw new PLException("500", new String[]{"保存失败!!"}); |
| | |
| | | plAction.plModifyUser = WebUtil.getCurrentUserId(); |
| | | plAction.plActionCls = StringUtils.defaultString(dto.getPlActionCls()); |
| | | plAction.plTypeType = StringUtils.defaultString(dto.getPlTypeType()); |
| | | plAction.plImage = StringUtils.defaultString(dto.getPlImage()); |
| | | boolean b = platformClientUtil.getUIService().updatePLAction(plAction); |
| | | if(!b){ |
| | | throw new PLException("500", new String[]{"修改失败!!"}); |
| | |
| | | plAction.plModifyUser = WebUtil.getCurrentUserId(); |
| | | plAction.plActionCls = StringUtils.defaultString(dto.getPlActionCls()); |
| | | plAction.plTypeType = StringUtils.defaultString(dto.getPlTypeType()); |
| | | plAction.plImage = StringUtils.defaultString(dto.getPlImage()); |
| | | boolean b = platformClientUtil.getUIService().deletePLAction(plAction); |
| | | if(!b){ |
| | | throw new PLException("500", new String[]{"删除失败!!"}); |
| | |
| | | param.name = dto.getName(); |
| | | param.defaultValue = dto.getDefaultValue(); |
| | | param.description = dto.getDescription(); |
| | | param.action = dto.getAction(); |
| | | param.action = dto.getActionOid(); |
| | | String message = platformClientUtil.getUIService().createPLActionParam(param); |
| | | |
| | | if(message.startsWith("0")) { |
| | |
| | | param.name = dto.getName(); |
| | | param.defaultValue = dto.getDefaultValue(); |
| | | param.description = dto.getDescription(); |
| | | param.action = dto.getAction(); |
| | | param.action = dto.getActionOid(); |
| | | String message = platformClientUtil.getUIService().editPLActionParam(param); |
| | | |
| | | if(message.startsWith("0")) { |
| | |
| | | List<PLActionParamDTO> dtos = new ArrayList<>(); |
| | | for (PLActionParam paramArray : paramArrays) { |
| | | PLActionParamDTO dto = new PLActionParamDTO(); |
| | | dto.setAction(paramArray.action); |
| | | dto.setActionOid(paramArray.action); |
| | | dto.setOid(paramArray.oid); |
| | | dto.setName(paramArray.name); |
| | | dto.setDescription(paramArray.description); |