| | |
| | | package com.vci.frameworkcore.controller; |
| | | |
| | | import com.vci.dto.SmPasswordStrategyDTO; |
| | | import com.vci.frameworkcore.compatibility.SmPwdStrategyQueryServiceI; |
| | | import com.vci.frameworkcore.model.dto.SmPasswordStrategyDTO; |
| | | import com.vci.frameworkcore.pagemodel.SmPasswordStrategyVO; |
| | | import com.vci.pagemodel.SmPasswordStrategyVO; |
| | | import com.vci.starter.web.annotation.controller.VciUnCheckRight; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | | import com.vci.starter.web.pagemodel.BaseQueryObject; |
| | |
| | | * @throws VciBaseException 查询出错的时候会抛出异常,如果是老的项目里不抛出异常 |
| | | */ |
| | | @RequestMapping(value = "/refDataGrid",method = RequestMethod.GET) |
| | | @VciUnCheckRight |
| | | public BaseResult<SmPasswordStrategyVO> refDataGrid(BaseQueryObject queryObject) throws VciBaseException { |
| | | try { |
| | | DataGrid<SmPasswordStrategyVO> pwdStrategyVODataGrid = pwdStrategyQueryService.refDataGrid(queryObject.getConditionMap(),queryObject.getPageHelper()); |
| | |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "密码安全策略列表查询时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(exceptionMessage); |
| | | return BaseResult.fail(e.getMessage()); |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | | } |
| | | |
| | |
| | | * @throws VciBaseException |
| | | */ |
| | | @RequestMapping(value = "/selectPwdStrategyMap",method = RequestMethod.GET) |
| | | @VciUnCheckRight |
| | | public BaseResult<List<Map<String,String>>> selectPwdStrategyMap(BaseQueryObject queryObject) throws VciBaseException { |
| | | try { |
| | | List<Map<String,String>> pwdStrategyVODataGrid = pwdStrategyQueryService.selectPwdStrategyMap(queryObject.getConditionMap()); |
| | |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "密码安全策略下拉列表查询时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(exceptionMessage); |
| | | return BaseResult.fail(e.getMessage()); |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | | } |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/delPasswordStrateg",method = RequestMethod.DELETE) |
| | | @VciUnCheckRight |
| | | public BaseResult delPasswordStrateg(String[] pwdIds){ |
| | | try { |
| | | return pwdStrategyQueryService.delPasswordStrateg(pwdIds) |